/* The Station in Southie: tokens + page layout. Source of truth: brand-package/DESIGN.md.
   PROVISIONAL logo: swap files in assets/marks/ and keep filenames. */

@font-face {
  font-family: "Railway";
  src: url("../fonts/Railway-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Special Elite";
  src: url("../fonts/SpecialElite-Latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Metric-matched fallbacks so the swap does not shift layout (values from font hhea/OS2 metrics). */
@font-face {
  font-family: "Railway Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica"), local("Arimo");
  size-adjust: 100.8%; ascent-override: 94.6%; descent-override: 31.5%; line-gap-override: 2.2%;
}
@font-face {
  font-family: "Special Elite Fallback";
  src: local("Courier New"), local("Liberation Mono"), local("Courier");
  size-adjust: 96%; ascent-override: 73.2%; descent-override: 30.9%; line-gap-override: 0%;
}

:root {
  --station-blue: #6887AC;
  --cream: #F7F7E8;
  --white: #FFFFFF;
  --black: #000000;
  /* --jacket-yellow #D6BE6B is photo-only. Intentionally not defined as a UI token. */

  --font-display: "Railway", "Railway Fallback", Arial, sans-serif;
  --font-body: "Railway", "Railway Fallback", Arial, sans-serif;
  --font-type: "Special Elite", "Special Elite Fallback", "Courier New", Courier, monospace;

  --space-sm: 8px; --space-md: 16px; --space-lg: 32px; --space-xl: 64px; --space-xxl: 120px;
  --container: 1120px; --gutter: 24px; --margin-mobile: 20px; --margin-desktop: 48px;
  --rule: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--station-blue); color: var(--black); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }

/* Type roles (DESIGN.md typography) */
.display    { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; font-size: clamp(2.5rem, 1.4rem + 5vw, 6rem); text-wrap: balance; }
.display-sm { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem); text-wrap: balance; }
.lede       { font-size: 1.5rem; line-height: 1.4; text-wrap: balance; }
.body-lg    { font-size: 1.25rem; line-height: 1.55; max-width: 36rem; text-wrap: pretty; }
.typed      { font-family: var(--font-type); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.875rem; line-height: 1.4; }
.meta       { font-family: var(--font-type); letter-spacing: 0.06em; font-size: 0.75rem; line-height: 1.45; }

/* Grounds. White type on blue only at 24px and up (3.72:1); body on blue is black (5.65:1). */
.on-blue  { background: var(--station-blue); color: var(--black); }
.on-blue .display, .on-blue .display-sm, .on-blue .lede { color: var(--white); }
.on-cream { background: var(--cream); color: var(--black); }
.on-white { background: var(--white); color: var(--black); }
.on-black { background: var(--black); color: var(--cream); }

.wrap { width: min(100% - 2 * var(--margin-mobile), var(--container)); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(100% - 2 * var(--margin-desktop), var(--container)); } }

/* Focus: visible on every ground (currentColor is black on blue/cream/white, cream on black). */
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: 0; top: 0; transform: translateY(-120%); padding: 12px 20px; background: var(--black); color: var(--cream); text-decoration: none; z-index: 10; }
.skip:focus-visible { transform: none; outline-color: var(--white); }

/* Top rail */
.rail { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 20px 8px; }
.rail .home { display: inline-flex; align-items: center; min-height: 44px; }
.rail .home img { height: 14px; width: auto; }
@media (min-width: 700px) { .rail .home img { height: 16px; } }
.rail nav { display: flex; flex-wrap: wrap; column-gap: 20px; }
.rail nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.rail nav a:hover, .rail nav a:focus-visible { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.rail nav a:active { text-decoration-thickness: 4px; }
@media (min-width: 960px) {
  .rail { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--gutter); padding-block: 20px; }
  .rail nav { column-gap: 24px; }
}

/* Hero */
.hero { padding-block: var(--space-lg) var(--space-xl); }
.hero .lockup { margin: 0 auto; padding-block: var(--space-xl) var(--space-md); text-align: center; color: var(--cream);
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.98;
  font-size: clamp(2.5rem, 13.4vw, 6rem); }
.hero .lockup span { display: block; white-space: nowrap; }
.hero .lockup { white-space: normal; }
@media (min-width: 700px) { .hero .lockup { font-size: clamp(2.75rem, 0.4rem + 6.6vw, 6.25rem); white-space: nowrap; } .hero .lockup span { display: inline; } }
.partner a, .foot a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
.partner a:hover, .foot a:hover { text-decoration-thickness: 4px; }
.idx .body > .partner { margin-top: var(--space-sm); }
.hero .lede, .hero .note { text-align: center; }
.hero .lede { margin-top: var(--space-lg); }
.hero .note { margin-top: var(--space-lg); }
@media (min-width: 900px) { .hero { padding-block: var(--space-xl) var(--space-xxl); } }

/* Indexed sections: number beside content from 700px, above it below */
.block { padding-block: var(--space-xl); }
@media (min-width: 900px) { .block { padding-block: var(--space-xxl); } }
.idx { display: grid; grid-template-columns: 1fr; gap: var(--space-md); align-items: start; }
.idx .n { font-family: var(--font-type); letter-spacing: 0.14em; font-size: 0.875rem; line-height: 1.4; }
@media (min-width: 700px) {
  .idx { grid-template-columns: 80px 1fr; gap: var(--gutter); }
  .idx .n { padding-top: 10px; }
}
.idx .body > * + * { margin-top: var(--space-md); }
.idx .body > .mark + * { margin-top: var(--space-lg); }
.idx .body > .meta { margin-top: var(--space-lg); }

.mark-thrift { width: min(100%, 420px); }
.mark-1947 { width: 120px; }
@media (min-width: 700px) { .mark-1947 { width: 160px; } }

/* Design: copy left, tall pair right on wide screens */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-top: var(--space-lg); max-width: 540px; }
.pair img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
@media (min-width: 1000px) {
  .design-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: var(--space-xl); align-items: start; }
  .design-body .pair { margin-top: 0; }
}

/* Footer */
.foot { padding-block: var(--space-xl); border-top: 1px solid var(--black); }
.foot .row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--gutter); }
.foot img { height: 56px; width: auto; }
.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .skip { forced-color-adjust: auto; } }

/* Shared */
a { color: inherit; }
.nf { min-height: 60vh; }
.nf > * + * { margin-top: var(--space-lg); }
.nf .lede, .nf .note { text-align: left; margin-top: 0; }
