/* Hallmark · genre: editorial · macrostructure: Narrative Workflow · theme: Sport · enrichment: E1 clipped-edge (still screenshot) + Tier-B hand SVG · nav: N9 · footer: Ft1
 * tone: sports print · anchor hue: 27 (team red) · audience: youth/HS/club/race photographers · use: download for Mac
 * F4 step knobs: numbering=1–5 outline numerals, layout=alternating split, connector=thick rule
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }

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

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

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

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

.skip {
  position: absolute;
  left: var(--space-sm);
  top: -4rem;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-2xs) var(--space-sm);
  z-index: 10;
}
.skip:focus { top: var(--space-sm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 44px;
  padding: 0 1.15rem;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--dur-micro) var(--ease-out),
    background-color var(--dur-micro) var(--ease-out),
    border-color var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out);
}
.btn svg { width: 1em; height: 1em; flex: none; fill: currentColor; }

.btn--solid { background: var(--color-ink); color: var(--color-paper); }
.btn--line  { background: transparent; color: var(--color-ink); }

@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--color-accent); border-color: var(--color-accent); transform: translateY(-1px); }
  .btn--line:hover  { background: var(--color-ink); color: var(--color-paper); transform: translateY(-1px); }
}
.btn:active { transform: translateY(1px); }

.btn--lg { min-height: 52px; padding: 0 1.5rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
}

/* ---------- Nav (edge-aligned) ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.brand img { width: 34px; height: 34px; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-xl) var(--space-2xl); }

.hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.hero h1 { font-size: var(--text-display); }
.hero h1 .hl { display: block; color: var(--color-accent); }

.hero__lede {
  margin-top: var(--space-md);
  max-width: 34ch;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-lg);
}

.hero__meta {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-neutral);
}

.window {
  margin: 0;
  filter: var(--drop-window);
}
.window img { width: 100%; }

@media (min-width: 60rem) {
  .hero { padding-block: var(--space-2xl) var(--space-3xl); }
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); }
  /* The screenshot runs off the right edge on purpose */
  .hero__media { width: calc(100% + var(--gutter) + 10vw); }
}

/* One orchestrated entrance */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Section headings ---------- */
.section-head { max-width: 46rem; }
.section-head h2 { font-size: var(--text-3xl); }
.section-head p {
  margin-top: var(--space-sm);
  max-width: 52ch;
  color: var(--color-muted);
  font-size: var(--text-lg);
  line-height: 1.5;
}

/* ---------- Four reasons ---------- */
.why { padding-block: var(--space-2xl) var(--space-3xl); }

.points {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  border-top: var(--rule-thick) solid var(--color-ink);
}

.point {
  display: grid;
  gap: var(--space-xs) var(--space-xl);
  padding-block: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.point h3 { font-size: var(--text-2xl); }
.point p { max-width: 58ch; color: var(--color-muted); }

.point__proof {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3xs) var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

@media (min-width: 60rem) {
  .point { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2.5fr); align-items: start; }
  .point__proof { flex-direction: column; padding-top: 0.35rem; }
}

/* ---------- Workflow ---------- */
.flow {
  background: var(--color-paper-2);
  padding-block: var(--space-2xl) var(--space-xl);
}

.stages { list-style: none; margin: var(--space-xl) 0 0; padding: 0; }

.stage { padding-bottom: var(--space-2xl); }

.stage__rule {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  border-bottom: var(--rule-thick) solid var(--color-ink);
  margin-bottom: var(--space-lg);
}

.stage__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-numeral);
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-ink);
  font-variant-numeric: tabular-nums;
}
@supports not (-webkit-text-stroke: 2px black) {
  .stage__num { color: var(--color-ink); }
}

.stage__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding-bottom: var(--space-2xs);
}

.stage__body { display: grid; gap: var(--space-lg); align-items: start; }

.stage h3 { font-size: var(--text-2xl); max-width: 16ch; }
.stage__text p { margin-top: var(--space-sm); max-width: 46ch; color: var(--color-muted); }
.stage__text p:first-of-type { margin-top: var(--space-md); }

.stage figure { margin: 0; }
.stage figcaption, .caption {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-neutral);
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--color-rule);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  color: var(--color-ink);
}

@media (min-width: 60rem) {
  .stage__body { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-2xl); }
  .stage:nth-child(even) .stage__body { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .stage:nth-child(even) .stage__text { order: 2; }
}

/* Tag chips (illustration of Sideline's tag review) */
.tags {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2xs);
  max-width: 26rem;
}

.tag {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem;
  background: var(--color-paper);
  border: 2px solid var(--color-rule);
  border-radius: var(--radius-md);
}
.tag--doubt { border-color: var(--color-doubt); }

.tag__crop {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-kit-white);
  background: var(--color-accent);
}
.tag__crop--away { background: var(--color-away); }

.tag__name { display: block; font-size: var(--text-sm); font-weight: 600; line-height: 1.25; }
.tag__meta { display: block; font-size: var(--text-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.tag--doubt .tag__meta { color: var(--color-ink); }

/* Scoreboard (illustration of a Game) */
.board {
  margin: 0;
  background: var(--color-night);
  color: var(--color-night-ink);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.board__team {
  display: grid;
  grid-template-columns: 0.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-xs);
  border-bottom: var(--rule-hair) solid var(--color-night-rule);
}
.board__swatch { width: 0.75rem; height: 2.25rem; border-radius: 2px; background: var(--color-accent); }
.board__swatch--away { background: var(--color-away); }
.board__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
}
.board__score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.board__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3xs) var(--space-md);
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-night-mute);
}

.filters {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: var(--space-md) 0 0;
  border-top: var(--rule-hair) solid var(--color-night-rule);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}
.filters li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--color-night-2);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.filters .on { background: var(--color-night-ink); color: var(--color-night); font-weight: 600; }
.filters .star { color: var(--color-star); }
.board .caption { color: var(--color-night-mute); }

/* ---------- Looks ---------- */
.looks { padding-block: var(--space-3xl) var(--space-2xl); }

.looks__grid {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.stretch { margin: 0; }
.stretch__art {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-field);
}
.stretch h3 { margin-top: var(--space-md); font-size: var(--text-2xl); }
.stretch p { margin-top: var(--space-xs); max-width: 52ch; color: var(--color-muted); }

/* SVG fills reference tokens */
.ps-field   { fill: var(--color-field); }
.ps-field-2 { fill: var(--color-field-2); }
.ps-skin    { fill: var(--color-skin); }
.ps-kit     { fill: var(--color-accent); }
.ps-white   { fill: var(--color-kit-white); }
.ps-boot    { fill: var(--color-boot); }
.ps-stop-off { stop-color: var(--color-boot); }
.ps-stop-on  { stop-color: var(--color-kit-white); }
.ps-mask-on  { fill: var(--color-kit-white); }
.ps-num {
  fill: var(--color-kit-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
}
.ps-smear rect { transform-box: fill-box; transform-origin: right center; }
.is-armed .ps-smear rect { transform: scaleX(0.04); }
.is-armed.is-in .ps-smear rect {
  transform: none;
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 40ms);
}

.sheet { border-top: var(--rule-thick) solid var(--color-ink); }
.sheet__group { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.sheet__group h3 {
  font-size: var(--text-xl);
  letter-spacing: 0.04em;
}
.sheet__group ul {
  list-style: none;
  margin: var(--space-xs) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}
.sheet__group li {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.sheet__note { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }

@media (min-width: 60rem) {
  .looks__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
}

/* ---------- Specs (dark band) ---------- */
.specs {
  background: var(--color-night);
  color: var(--color-night-ink);
  padding-block: var(--space-2xl);
}
.specs .section-head p { color: var(--color-night-mute); }

.spec {
  width: 100%;
  margin-top: var(--space-xl);
  border-collapse: collapse;
  border-top: var(--rule-thick) solid var(--color-night-ink);
}
.spec th, .spec td {
  display: block;
  text-align: left;
  vertical-align: top;
}
.spec tr { display: block; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-night-rule); }
.spec th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  padding-bottom: var(--space-3xs);
}
.spec td { max-width: 62ch; color: var(--color-night-ink); }
.spec .fmt { font-family: var(--font-mono); font-size: 0.875em; color: var(--color-night-mute); }

@media (min-width: 40rem) {
  .spec tr { display: table-row; padding: 0; }
  .spec th, .spec td { display: table-cell; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-night-rule); }
  .spec th { width: 13rem; padding-right: var(--space-lg); padding-top: calc(var(--space-sm) + 0.15rem); }
}

/* ---------- FAQ ---------- */
.faq { padding-block: var(--space-3xl) var(--space-2xl); }

.faq__grid { display: grid; gap: var(--space-xl); }

.qa { border-top: var(--rule-thick) solid var(--color-ink); }

.qa details { border-bottom: var(--rule-hair) solid var(--color-rule); }

.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  min-height: 44px;
  padding-block: var(--space-sm);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform var(--dur-short) var(--ease-in-out);
}
.qa details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .qa summary:hover { color: var(--color-accent-2); }
}
.qa details p { padding-bottom: var(--space-md); max-width: 60ch; color: var(--color-muted); }

@media (min-width: 60rem) {
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
  .faq .section-head { position: sticky; top: var(--space-lg); }
}

/* ---------- Final call ---------- */
.get { padding-block: var(--space-2xl) var(--space-3xl); }
.get__inner { border-top: var(--rule-thick) solid var(--color-ink); padding-top: var(--space-xl); }
.get h2 { font-size: var(--text-display); max-width: 12ch; }
.get .hero__actions { margin-top: var(--space-lg); }

/* ---------- Footer ---------- */
.foot {
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-lg) var(--space-xl);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
}
.foot__tag { color: var(--color-muted); font-size: var(--text-sm); }
.foot__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-md);
  font-size: var(--text-sm);
}
.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .foot__links a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
}
.foot__fine { margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-neutral); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .reveal { transform: none; animation: reveal-reduced 150ms linear forwards; animation-delay: 0ms; }
  @keyframes reveal-reduced { to { opacity: 1; } }
  .is-armed .ps-smear rect { transform: none; }
}
