@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0B1220;
  --surface: #141C2B;
  --raised: #1C2638;
  --line: #26324A;
  --ink: #F1EBDD;
  --muted: #9AA3B2;
  --rust: #D9774F;
  --tap: 44px;
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
figure { margin: 0; }
figcaption, .quiet { color: var(--muted); font-size: .9375rem; }
figcaption { margin-top: .75rem; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1 { font-size: 3rem; font-weight: 850; letter-spacing: -.06em; }
h2 { font-size: 1.875rem; font-weight: 750; letter-spacing: -.04em; }
h3 { font-size: 1.125rem; font-weight: 700; }
.wrap { width: min(100% - clamp(2rem, 8vw, 6rem), 72rem); margin-inline: auto; }
.narrow { max-width: 45rem; }
.section { padding-block: clamp(2rem, 6vw, 4.75rem); }
.lead { font-size: 1.1875rem; color: var(--ink); line-height: 1.5; }
.product-name { color: var(--muted); font-size: .9375rem; font-weight: 650; }

.skip {
  position: absolute;
  z-index: 10;
  inset: .75rem auto auto .75rem;
  min-height: var(--tap);
  padding: .55rem .85rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: .35rem;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.top { background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner, .foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
}
.top-inner { padding-block: .65rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: var(--tap);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.045em;
}
.brand img { width: 36px; height: 36px; border-radius: .55rem; }
nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
nav a, .text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: .9375rem;
  font-weight: 600;
}
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); text-decoration: underline; }

.button {
  display: inline-flex;
  min-height: var(--tap);
  max-width: 100%;
  justify-content: center;
  align-items: center;
  padding: .7rem 1.15rem;
  border-radius: .65rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.button:hover { text-decoration: underline; }
.button + .quiet { margin-top: .75rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 35rem;
  display: grid;
  align-items: end;
  background: var(--surface);
}
.hero-photo { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgb(11 18 32 / 94%) 22%, rgb(11 18 32 / 64%) 46%, transparent 76%),
              linear-gradient(0deg, var(--bg), transparent 48%);
}
.hero-inner { padding-block: clamp(2rem, 8vw, 7rem) clamp(2rem, 6vw, 5.6rem); }
.hero-copy { max-width: 38rem; }
.hero h1 { font-size: 4.5rem; margin-bottom: 1rem; }
.hero .lead { max-width: 30ch; }
.hero .quiet { margin-bottom: 0; }

.audience-list, .routine-list, .features { list-style: none; margin: 0; padding: 0; }
.audience-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.25rem;
}
.audience-list a {
  display: grid;
  position: relative;
  min-height: 6rem;
  gap: .25rem;
  padding: .85rem 2rem .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--surface);
  text-decoration: none;
}
.audience-list a:hover, .audience-list a[aria-current] { background: var(--raised); border-color: var(--muted); }
.audience-list a[aria-current] { border-color: var(--rust); }
.audience-list strong { font-size: 1.125rem; }
.audience-list span { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.audience-list .arrow { color: var(--ink); position: absolute; inset: 1rem .85rem auto auto; }

.app-section, .role-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 23rem);
  align-items: start;
  gap: clamp(2rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
}
.role-layout { border-top: 0; }
.role-layout h1, .app-section h2 { margin-bottom: .9rem; }
.app-section { align-items: center; }
.app-copy { max-width: 34rem; }
.app-shot {
  width: min(100%, 18rem);
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--line);
}
.features { display: grid; gap: .45rem; margin-block: 1.25rem; }
.features li { padding: .5rem .85rem; border-inline-start: 2px solid var(--line); background: var(--surface); }
.routine-section { margin-top: 2.25rem; }
.routine-list { margin-block: .85rem 1rem; }
.routine-list li { padding: .95rem 0; border-bottom: 1px solid var(--line); }
.routine-list p { margin: .25rem 0 0; }
.routine-list .routine-time { font-size: .9375rem; color: var(--muted); }

.article { padding-block: clamp(2.75rem, 7vw, 6rem); }
.article h1 { margin-bottom: .75rem; }
.article h2 { font-size: 1.4375rem; margin: 2rem 0 .6rem; }
.article h2 + p, .article dd { margin-bottom: 1rem; }
.article a { overflow-wrap: anywhere; }
.faq { margin: 0 0 1.5rem; }
.faq dt { margin-top: 1.2rem; font-weight: 750; }
.faq dd { margin: .25rem 0 0; color: var(--muted); }
.notice { margin: 1.5rem 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); }
.empty { min-height: 48vh; display: grid; align-content: center; }

.foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot-inner { align-items: start; padding-block: 1.25rem; }
.foot p { margin: 0; font-size: .9375rem; }
.foot span, .foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

@media (max-width: 62rem) {
  .audience-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 46rem) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.625rem; }
  .hero { min-height: 31rem; }
  .hero::before {
    background: linear-gradient(0deg, var(--bg) 0%, rgb(11 18 32 / 96%) 34%, rgb(11 18 32 / 85%) 70%, rgb(11 18 32 / 10%) 100%);
  }
  .hero-photo { object-position: 59% center; }
  .hero-inner { padding-block: 8rem 1.85rem; }
  .hero h1 { font-size: 3rem; }
  .hero-break { display: none; }
  .app-section, .role-layout { grid-template-columns: minmax(0, 1fr); }
  .role-layout figure { margin-top: -1rem; }
}

@media (max-width: 31rem) {
  .hero h1 { font-size: 2.875rem; }
  .hero-copy, .audience-list a, h1, h2 { overflow-wrap: anywhere; }
}

/* ===== Option B harmony (Chris chose Dec 2; PR #167 v2): app colours, rink lettering ===== */
/* Proposal only (Dec 2): the website in the app's colours. Loaded after style.css and home.css.
   Keeps the rink-board display font for headings; body text uses the app's font stack.
   Tokens from AGENTS.md: bg #0B1220, surface #141C2B, raised #1C2638, lines #26324A,
   cream #F1EBDD, muted #9AA3B2, rust #D9774F (markings only). */
:root {
  --night: #0B1220; --night-2: #141C2B; --night-3: #1C2638; --line: #26324A; --line-soft: #1C2638;
  --ink: #F1EBDD; --soft: #D9D3C6; --muted: #9AA3B2;
  --sheet: #F1EBDD; --sheet-2: #E6DFCF; --sheet-ink: #0B1220; --sheet-muted: #3E4656; --sheet-line: #D2C9B6;
  --rink-red: #D9774F; --rink-red-hi: #E9906C;
  --ice: #F1EBDD; --on-ice: #0B1220; --white: #FFF9EE;
  --shade: rgba(11, 18, 32, .78); --shade-0: rgba(11, 18, 32, 0); --shade-full: rgba(11, 18, 32, 1);
  --glow: rgba(241, 235, 221, .07);
  --text: "Inter", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
.demo .mf-demo { --mf-ink: #F1EBDD; --mf-track: #26324A; --mf-muted: #9AA3B2; --mf-accent: #D9774F; --mf-on-accent: #0B1220; --mf-focus: #F1EBDD; }
/* the app's buttons are pills */
.btn { border-radius: 999px; }

/* v2 (Dec 2): tweaks from the Gemini + ChatGPT review. Contrast checked (WCAG AA):
   rust #D9774F on night #0B1220 = 5.98:1, on surface #141C2B = 5.45:1 (passes text and 3:1 non-text);
   rust on cream #F1EBDD = 2.63:1 (fails), so cream sheets keep the night-ink focus ring. */

/* 1. Nav CTA: same pill as the app, same browser entry as the hero button (label "Try MeFlex" is a copy change, see README) */
.top nav a.top-cta { border-radius: 999px; box-shadow: none; background: var(--ink); color: var(--night); padding: 0 1.1rem; }
.top nav a.top-cta:hover { background: #FFF9EE; color: var(--night); text-decoration: none; }

/* 2. Rust gets a visible job: the eyebrow rule, link underlines, focus rings on dark */
.kicker::before { background: #D9774F; }
a { text-decoration-color: #D9774F; }
.hockey-links a { text-decoration-color: #D9774F; }
:root { --focus: #D9774F; }
.sheet :focus-visible, [class*="sheet"] :focus-visible { outline-color: var(--night); }
/* cream headline and primary button on the dark hero */
.open h1 { color: var(--ink); }
.open .btn { background: var(--ink); color: var(--night); }

/* 3. Stronger hero sub-copy and small captions (12.6:1 -> 14.5:1) */
.lead, .fine, .lib-note, .guides figcaption, .guide { color: #E8E2D5; }
.fine { font-size: max(var(--fs-small), 15px); }

/* 4. A quiet warm edge so the cream/rust UI and the black-and-white ice photo feel like one picture */
.b1::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 100%, rgba(217,119,79,.16), rgba(217,119,79,0) 55%); mix-blend-mode: soft-light; }
.demo .mf-btn { border-radius: 999px; }
