/* ==========================================================================
   Openstile content pages: /crew, /subscription, /loyalty, /faq, /for-clubs, /about
   Season 26/27 look, built from the same tokens and components as the home page.

   index.html keeps its own inline copy of these styles, because openstile-app's
   landing sync (scripts/landing/sync.mjs) reads the CSS from that file. If a token
   or the header and footer change there, change them here too.

   This file lives outside /assets/ on purpose: /assets/ is cached for a year,
   so an edit here would not reach returning visitors if it lived there.
   ========================================================================== */

:root {
  --color-ink:         #1C2A33;
  --color-dark-slate:  #536C7C;
  --color-steel-blue:  #7B949C;
  --color-mist:        #96AEB5;
  --color-white:       #FFFFFF;
  --color-fog:         #F2F5F6;
  --color-line:        #DDE3E5;
  --color-steel-pale:  #E3EAEC;

  --season-lilac:      #B9A3EE;
  --season-lilac-pale: #F4EFFD;
  --season-lilac-deep: #4B2F92;
  --season-fern:       #7DB57C;
  --season-fern-pale:  #F0F8EC;
  --season-fern-deep:  #2C5E3A;
  --season-guava:      #EE8FAA;
  --season-guava-pale: #FDF0F3;
  --season-guava-deep: #8E2549;
  --season-stripe: linear-gradient(90deg, #B9A3EE 0 25%, #96AEB5 25% 50%, #7DB57C 50% 75%, #EE8FAA 75%);

  --surface:       var(--color-white);
  --surface-alt:   var(--color-fog);
  --surface-lilac: var(--season-lilac-pale);
  --surface-steel: var(--color-steel-pale);
  --surface-fern:  var(--season-fern-pale);
  --surface-guava: var(--season-guava-pale);
  --border:        var(--color-line);
  --text:          var(--color-ink);
  --text-muted:    var(--color-dark-slate);

  --font-display: 'Fraunces', Georgia, serif;
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Raleway', system-ui, -apple-system, sans-serif;

  --radius-card: 24px;
  --radius-pill: 9999px;

  --shadow-card-hover: 0 4px 12px rgba(28, 42, 51, 0.12);
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast: 150ms;
  --ink-hover: #27353E;

  --page-max: 1280px;
  --gutter: clamp(16px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul { margin: 0; }
img { max-width: 100%; }
picture { display: contents; }
picture > source { display: none; }
a { color: var(--text); }
a:hover { color: var(--text-muted); }
:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 200;
  padding: 0 24px; display: inline-flex; align-items: center; min-height: 48px;
  background: var(--color-ink); color: var(--color-white);
  font-family: var(--font-heading); font-weight: 600;
  text-decoration: none; border-radius: var(--radius-pill);
  transition: top var(--duration-fast) var(--ease-default);
}
.skip-link:focus { top: 8px; color: var(--color-white); }

.wrap { box-sizing: content-box; max-width: var(--page-max); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}
/* Muted text on Steel pale is Ink, never Slate. */
.eyebrow-ink { color: var(--text); font-weight: 700; }

/* ---------- Buttons: Ink pill, Space Grotesk 600, sentence case ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px;
  font-family: var(--font-heading); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  transition: background-color var(--duration-fast) ease-out, color var(--duration-fast) ease-out;
}
.btn-primary { background: var(--color-ink); color: var(--color-white); }
.btn-primary:hover { background: var(--ink-hover); color: var(--color-white); }
.btn-secondary { background: var(--color-white); color: var(--text); border: 1.5px solid var(--color-ink); }
.btn-secondary:hover { background: var(--surface-alt); color: var(--text); }

/* ---------- Header (as the home page) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.header-logo { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.header-logo img { height: 36px; width: auto; max-width: none; display: block; }
.site-nav { display: flex; align-items: center; gap: 32px; font-family: var(--font-heading); font-size: 15px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-steel-blue); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-white);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--duration-fast) ease-out;
}
.nav-cta:hover { background: var(--ink-hover); color: var(--color-white); }

/* ---------- Page intro ---------- */
.page-hero .wrap { padding-block: 48px 96px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.page-hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-heading); font-size: 14px; color: var(--text-muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--text-muted); }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--text); }
.h-page {
  max-width: 14ch;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'opsz' 36;
  font-size: clamp(44px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.025em;
}
.page-hero .lede { max-width: 52ch; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; }
.page-hero-art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.page-hero-art img {
  width: 100%; max-width: 440px; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: var(--radius-card); display: block;
}

/* ---------- Bands ---------- */
.band .wrap { padding-block: 96px; }
.band-lilac { background: var(--surface-lilac); }
.band-fern  { background: var(--surface-fern); }
.band-guava { background: var(--surface-guava); }
.band-steel { background: var(--surface-steel); }
.band-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; max-width: 760px; }
.h-band {
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'opsz' 36;
  font-size: clamp(36px, 4.5vw, 60px); line-height: 1; letter-spacing: -0.02em;
}
.band-head p { font-size: 18px; max-width: 60ch; }
.band-steel .band-head p { color: var(--text); }

.prose { max-width: 65ch; display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.prose a, .card a, .qa a { font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.card {
  background: var(--color-white); border-radius: var(--radius-card); padding: 32px;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
/* A card on a white band sits on Fog, so it still separates from the page. */
.band-white .card { background: var(--surface-alt); }
.card-num {
  border-radius: var(--radius-pill); padding: 4px 16px;
  font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 1.4; color: var(--text);
}
.num-lilac { background: var(--season-lilac); }
.num-fern  { background: var(--season-fern); }
.num-guava { background: var(--season-guava); }
.num-mist  { background: var(--color-mist); }
.card h3 {
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'opsz' 24;
  font-size: 28px; line-height: 1.05;
}
.card p { color: var(--text-muted); }

/* ---------- A big number with its source ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; }
.stat {
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'opsz' 36;
  font-size: clamp(88px, 12vw, 160px); line-height: 0.9; letter-spacing: -0.03em;
}
.stat-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.stat-source { font-size: 14px; color: var(--text-muted); max-width: 60ch; }

/* ---------- FAQ page ---------- */
.faq-page .wrap { padding-block: 0 96px; }
.faq-body { max-width: 880px; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group > h2 {
  margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'opsz' 36;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.05;
}
.qa { border-top: 1px solid var(--border); padding-block: 24px; }
.qa:last-child { border-bottom: 1px solid var(--border); }
.qa h3 { font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.4; }
.qa p { margin-top: 8px; max-width: 65ch; color: var(--text-muted); }

/* ---------- Closing call to action ---------- */
.cta-band { background: var(--surface-steel); }
.cta-inner { padding-block: 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta-inner .h-band { max-width: 16ch; }
.cta-inner p { max-width: 52ch; font-size: 18px; color: var(--text); }

/* ---------- Keep exploring ---------- */
.more .wrap { padding-block: 80px; }
.more h2 { margin-bottom: 24px; font-family: var(--font-heading); font-weight: 700; font-size: 20px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.more-link {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius-card);
  text-decoration: none; color: var(--text);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.more-link:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.more-link strong { font-family: var(--font-heading); font-weight: 600; font-size: 20px; }
.more-link span { font-size: 15px; color: var(--text-muted); }

/* ---------- Footer (as the home page) ---------- */
.site-footer { background: var(--color-white); }
.stripe { height: 8px; background: var(--season-stripe); }
.footer-inner { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-logo { height: 36px; width: auto; align-self: flex-start; display: block; }
.footer-brand p { font-size: 15px; color: var(--text-muted); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; font-family: var(--font-heading); font-size: 15px; }
.footer-col { display: flex; flex-direction: column; }
.footer-head { font-weight: 700; margin-bottom: 4px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-note { border-top: 1px solid var(--border); padding-top: 24px; font-size: 13px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 859px) {
  .nav-links { display: none; }
}
@media (max-width: 759px) {
  .page-hero .wrap { padding-block: 32px 64px; }
  .page-hero-art img { max-width: 320px; }
  .band .wrap, .cta-inner { padding-block: 64px; }
  .more .wrap { padding-block: 64px; }
  .faq-page .wrap { padding-block: 0 64px; }
}
@media (max-width: 479px) {
  .header-inner { gap: 12px; }
  .header-logo img { height: 30px; }
  .nav-cta { padding: 12px 18px; font-size: 14px; }
  .card { padding: 24px; }
}
@media (max-width: 359px) {
  .header-logo img { height: 27px; }
  .nav-cta { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
