/* Marriage Points Tracker site: same felt green, marigold and type as the app. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-400.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-700.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/bricolage-grotesque-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-mono-600.woff2) format("woff2"); }

:root {
  --bg: #edf1ee;
  --surface: #ffffff;
  --ink: #15241e;
  --muted: #55665e;
  --line: #d3ddd7;
  --felt: #0f5c45;
  --felt-deep: #083a2b;
  --felt-ink: #ffffff;
  --marigold: #b87308;
  --marigold-bright: #f0b23a;
  --win: #137544;
  --loss: #bf3524;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1613; --surface: #14211c; --ink: #e6eee9; --muted: #9aaca3; --line: #263730;
    --felt: #3bb185; --felt-ink: #06140f; --marigold: #f0b23a;
    --win: #4fcb8c; --loss: #ff7c68; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: var(--felt); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--marigold-bright); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; z-index: 10; }
.wrap {
  max-width: 980px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }

/* Header */
.top { padding-block: 16px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 18px; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { background: radial-gradient(120% 90% at 50% 0%, #178062 0%, var(--felt-deep) 70%); color: #f2f7f4; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding-block: 64px 56px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--marigold-bright); }
.hero p.lede { font-size: 1.15rem; max-width: 34ch; color: #d3e5dc; margin: 18px 0 26px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 18px;
  border-radius: 12px; background: #0b0f0d; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.25);
}
.store small { font-size: 0.7rem; opacity: 0.8; }
.store b { font-family: var(--display); font-size: 1.05rem; }
.store.soon { opacity: 0.75; }
.hero-art { justify-self: center; width: min(320px, 100%); }
.hero-art img { width: 100%; height: auto; border-radius: 22%; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }

/* Sections */
section.block { padding-block: 56px; }
section.block + section.block { border-top: 1px solid var(--line); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--marigold); margin: 0 0 10px; }
.block h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 14px; }
.block p { max-width: 65ch; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Worked example */
.example { overflow-x: auto; margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.example table { border-collapse: collapse; width: 100%; min-width: 520px; font-variant-numeric: tabular-nums; }
.example th, .example td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.example th:first-child, .example td:first-child { text-align: left; }
.example th { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.example td { font-family: var(--num); }
.example td:first-child { font-family: var(--body); font-weight: 700; }
.example tr:last-child td { border-bottom: 0; }
.pos { color: var(--win); } .neg { color: var(--loss); }
.formula { font-family: var(--num); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: inline-block; max-width: 100%; overflow-x: auto; }
.note { color: var(--muted); font-size: 0.93rem; }

/* Document pages */
.doc { padding-block: 40px 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); margin-bottom: 6px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.contact a { font-weight: 700; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 40px; gap: 28px; }
  .hero-art { width: 180px; justify-self: start; order: -1; }
  .top nav { gap: 14px; }
}
