/* Mawqif Sports — reset, type, layout primitives */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mawqif-text);
  background: var(--mawqif-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: inherit;
  font-size: inherit;
}

/* Focus ring — whistle only */
:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--whistle);
  outline-offset: 2px;
}

/* ── Type scale ── */

.t-display-xl {
  font-family: var(--font-sans);
  font-size: clamp(3.25rem, 6vw, 5.625rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.t-display-l {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.t-display-m {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.t-h1 {
  font-family: var(--font-sans);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.t-h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.t-h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 600;
}

.t-body-l {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.6;
  font-weight: 400;
}

.t-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

.t-ui {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 500;
}

.t-small {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 400;
}

.t-micro {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
}

/* ── Layout ── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure {
  max-width: var(--measure);
}

.section {
  padding-block: var(--s9);
}

@media (max-width: 767px) {
  .section {
    padding-block: var(--s7);
  }
}

.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* Aspect ratios */
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-3-2  { aspect-ratio: 3 / 2; }
.ratio-4-5  { aspect-ratio: 4 / 5; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-9-16 { aspect-ratio: 9 / 16; }

.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-stone { color: var(--stone); }
.text-ink-80 { color: var(--ink-80); }
.text-pitch-500 { color: var(--text-brand-display); } /* legacy alias — display green only */
.text-pitch-600 { color: var(--text-brand-display); }
.text-brand-display { color: var(--text-brand-display); }
.text-brand-mono { color: var(--text-brand-mono); }
.text-chalk { color: var(--chalk); }
.text-on-brand { color: var(--on-brand); }

.visually-hidden-until-focus:not(:focus):not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
