/* F-Buddies · Coral Daylight (Hallmark redesign 2026-12-02)
   Warm cream + charcoal, one coral signal, soft rounded cards, lots of air.
   Display: Baloo 2 (rounded geometric). Body: Figtree. Self-hosted WOFF2 only.
   Design details (theme, macrostructure, palette, scores) recorded in
   _notes/sites/f-buddies.com.md, not in this shipped file. */

/* ---- Fonts (self-hosted WOFF2 only; no font host linked) ------------- */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); }

/* ---- Tokens (Coral Daylight + shared scale) -------------------------- */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 136px;
  --text-xs: 0.8125rem; --text-sm: 0.9375rem; --text-md: 1.0625rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.1rem, 3.4vw + 0.6rem, 3.3rem); --text-display: clamp(2.6rem, 4.6vw + 1rem, 4.6rem);
  --text-title: clamp(1.3rem, 0.8vw + 1rem, 1.75rem); --text-lead: clamp(1.18rem, 0.4vw + 1.05rem, 1.4rem);
  --text-numeral: clamp(4rem, 9vw + 1rem, 9rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 200ms;
  --container: 1200px; --container-text: 720px; --gutter: 64px;
  --z-sticky: 200; --z-sticky-nav: 300; --z-toast: 500;

  /* Coral Daylight palette */
  --color-paper: oklch(97.4% 0.012 52);        /* warm cream  #FFF6F1 */
  --color-paper-2: oklch(99.3% 0.004 60);      /* warm near-white card */
  --color-paper-3: oklch(93.5% 0.028 42);      /* blush tint  #FCE7DE */
  --color-ink: oklch(24% 0.018 40);            /* warm charcoal #241B19 */
  --color-ink-2: oklch(34% 0.02 42);           /* #3B302C */
  --color-muted: oklch(52% 0.02 45);           /* #6E5F58 */
  --color-rule: oklch(90% 0.016 48);           /* #EBDAD1 */
  --color-rule-2: oklch(84% 0.022 46);         /* #E0CCC1 */
  --color-accent: oklch(55% 0.17 33);          /* coral Join  #C03F26  (white AA 5.3:1, coral-on-cream 4.9:1) */
  --color-accent-strong: oklch(50% 0.17 33);   /* coral hover */
  --color-accent-ink: oklch(98.5% 0.004 60);   /* warm near-white on coral */
  --color-pink: oklch(60% 0.22 5);             /* logo-tie rose #E1276E (rules + underlines, decorative) */
  --color-focus: oklch(55% 0.17 33);

  --font-display: "Baloo 2", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius-card: 20px; --radius-card-s: 14px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: 0 14px 40px -20px oklch(40% 0.06 40 / 0.35);
  --shadow-soft: 0 6px 20px -12px oklch(40% 0.06 40 / 0.3);
  --shadow-cookie: 0 -8px 24px -18px oklch(40% 0.06 40 / 0.5);
  --tracking-display: -0.005em; --display-weight: 700;
  --header-h: 76px;
}

/* ---- Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-rule-2) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in oklab, var(--color-accent) 20%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.1; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display-s); line-height: 1.05; }
h2 { max-width: 24ch; font-size: var(--text-display-s); line-height: 1.08; }
h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-family: var(--font-body); font-size: var(--text-lead); line-height: 1.55; max-width: 58ch; color: var(--color-ink-2); }
p { margin: 0; text-wrap: pretty; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-sm); top: -56px; z-index: var(--z-toast); background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 600; text-decoration: none; transition: top var(--dur-micro) var(--ease-out); }
.skip-link:focus { top: var(--space-sm); }
@media (max-width: 60rem) { :root { --gutter: 28px; } }
@media (max-width: 40rem) { :root { --gutter: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ---- Buttons (rounded pills) ----------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-xl); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-family: var(--font-body); font-weight: 600; font-size: var(--text-md); line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); border-color: var(--color-rule-2); }
.btn:active { transform: translateY(1px); }
.btn-join { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); box-shadow: var(--shadow-soft); }
.btn-join:hover { background: var(--color-accent-strong); border-color: var(--color-accent-strong); color: var(--color-accent-ink); }
.btn-join:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 var(--space-2xl); font-size: var(--text-lg); }
.btn-sm { min-height: 44px; padding: 0 var(--space-lg); font-size: var(--text-sm); }
.btn:disabled, .nav-toggle:disabled, .cookie button:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- Header (light bar; in-flow accordion on phones) ----------------- */
.site-header { position: relative; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.site-header .inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); min-height: var(--header-h); padding-block: var(--space-sm); }
.brand { order: 0; margin-right: auto; display: inline-flex; align-items: center; text-decoration: none; }
.brand img, .brand-logo { width: clamp(132px, 34vw, 196px); height: auto; display: block; }
.mainnav { order: 1; display: flex; align-items: center; gap: var(--space-lg); }
.mainnav a { font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); color: var(--color-ink-2); text-decoration: none; padding-block: var(--space-2xs); border-bottom: 2px solid transparent; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.mainnav a:hover { color: var(--color-ink); }
.mainnav a.active { color: var(--color-ink); border-bottom-color: var(--color-accent); }
.mainnav .login-link { color: var(--color-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; }
.mainnav .login-link:hover { text-decoration-color: var(--color-accent); }
.header-join { order: 2; }
.nav-toggle { order: 3; display: none; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink); border-radius: var(--radius-pill); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 47.99rem) {
  .site-header .inner { gap: var(--space-sm) var(--space-xs); }
  .brand img, .brand-logo { width: clamp(118px, 36vw, 168px); }
  .nav-toggle { display: inline-flex; width: 46px; height: 46px; }
  .header-join { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
  .mainnav { order: 4; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); margin-top: var(--space-sm); }
  .mainnav.open { display: flex; }
  .mainnav a { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); color: var(--color-ink); }
  .mainnav a.active { border-bottom-color: var(--color-rule); color: var(--color-accent); }
  .mainnav .login-link { text-decoration: none; }
}

/* ---- Hero (full-bleed photo + soft cream copy card) ------------------ */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--color-paper-3); color: var(--color-ink); min-height: clamp(560px, 84svh, 820px); }
.hero > picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 36%; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, color-mix(in oklab, var(--color-ink) 30%, transparent) 0%, color-mix(in oklab, var(--color-ink) 8%, transparent) 42%, transparent 66%); }
.hero-inner { position: relative; z-index: 2; width: 100%; display: flex; justify-content: flex-start; padding-block: var(--space-2xl) var(--space-3xl); }
.hero-card { background: color-mix(in oklab, var(--color-paper) 92%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: var(--rule-hair) solid color-mix(in oklab, var(--color-rule-2) 70%, transparent); border-radius: 28px; box-shadow: var(--shadow-card); padding: clamp(var(--space-lg), 3vw, var(--space-2xl)); max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); }
.hero-heading { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.04; letter-spacing: var(--tracking-display); font-size: var(--text-display); color: var(--color-ink); max-width: 15ch; }
.hero-heading .verb { color: var(--color-accent); }
.hero-strap { font-family: var(--font-body); font-weight: 400; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 44ch; }
.hero .btn { margin-top: var(--space-2xs); }

@media (max-width: 47.99rem) {
  .hero { min-height: calc(100svh - var(--header-h)); align-items: stretch; }
  .hero-scrim { background: linear-gradient(to top, color-mix(in oklab, var(--color-ink) 34%, transparent) 0%, transparent 48%); }
  .hero-inner { align-items: flex-end; padding-block: var(--space-xl) calc(var(--space-lg) + 72px); }
  .hero-card { max-width: none; width: 100%; gap: var(--space-sm); padding: var(--space-lg); }
  .hero-card .btn { width: 100%; }
}

/* ---- Content layout (one column, generous air) ----------------------- */
main { display: block; }
.section { padding-block: clamp(var(--space-3xl), 9vw, var(--space-4xl)); }
.seo-content { max-width: var(--container-text); margin-inline: auto; }
.seo-content h1 { margin-bottom: var(--space-lg); font-size: var(--text-display); line-height: 1.05; }
.seo-content h2 { margin-top: var(--space-3xl); margin-bottom: var(--space-md); padding-top: var(--space-lg); position: relative; }
.seo-content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 4px; border-radius: var(--radius-pill); background: var(--color-pink); }
.seo-content h3 { margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.seo-content p { max-width: 68ch; margin-top: var(--space-md); color: var(--color-ink-2); line-height: 1.7; }
.seo-content p.lead { margin-top: 0; color: var(--color-ink); }
.seo-content a:not(.btn) { color: var(--color-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-pink); text-underline-offset: 0.18em; text-decoration-thickness: 2px; transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seo-content a:not(.btn):hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }
.seo-content strong { font-weight: 600; color: var(--color-ink); }

/* ---- Signature: Friends With Benefits comparison table --------------- */
.cmp-wrap { margin-top: var(--space-2xl); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: clamp(var(--space-md), 2vw, var(--space-xl)); }
@media (min-width: 60rem) { .cmp-wrap { width: min(1000px, 92vw); margin-inline: calc((var(--container-text) - min(1000px, 92vw)) / 2); } }
.cmp { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.cmp caption { text-align: left; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.cmp thead th { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); color: var(--color-muted); border-bottom: 2px solid var(--color-rule-2); }
.cmp thead th.col-fwb { color: var(--color-accent); }
.cmp tbody th[scope="row"] { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); color: var(--color-muted); padding-left: 0; white-space: nowrap; }
.cmp tbody td { font-size: var(--text-md); color: var(--color-ink-2); line-height: 1.55; }
.cmp tbody td.col-fwb { color: var(--color-ink); background: var(--color-paper-3); font-weight: 600; }
.cmp tbody tr td.col-fwb:first-of-type { border-top-left-radius: 0; }
.cmp thead th.col-fwb, .cmp tbody td.col-fwb { box-shadow: inset 3px 0 0 var(--color-accent); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }

@media (max-width: 47.99rem) {
  .cmp-wrap { padding: var(--space-sm); }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp tbody tr { background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card-s); padding: var(--space-sm) var(--space-lg) var(--space-md); margin: var(--space-md) 0 0; }
  .cmp tbody th[scope="row"] { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); white-space: normal; color: var(--color-ink); font-size: var(--text-md); }
  .cmp tbody td { padding: var(--space-sm) 0 0; border-bottom: none; }
  .cmp tbody td.col-fwb { box-shadow: none; background: none; padding-left: 0; }
  .cmp thead th.col-fwb, .cmp tbody td.col-fwb { box-shadow: none; }
  .cmp tbody td::before { content: attr(data-label); display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); margin-bottom: var(--space-3xs); }
}

/* ---- Statement (a line set large on a blush band) -------------------- */
.statement { margin: var(--space-3xl) auto 0; max-width: var(--container-text); background: var(--color-paper-3); border-radius: var(--radius-card); padding: clamp(var(--space-lg), 4vw, var(--space-2xl)); }
.statement p { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-title); line-height: 1.22; color: var(--color-ink); max-width: 30ch; }

/* ---- Callout (a line held in a soft white card) ---------------------- */
.callout { margin: var(--space-3xl) auto 0; max-width: var(--container-text); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-left: 5px solid var(--color-accent); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); padding: clamp(var(--space-lg), 3vw, var(--space-xl)); }
.callout p { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-title); line-height: 1.3; color: var(--color-ink); max-width: 52ch; }

/* ---- Aside quote (a line pulled aside, coral bar) -------------------- */
.aside-quote { margin: var(--space-3xl) auto 0; max-width: var(--container-text); }
.aside-quote p { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-xl); line-height: 1.26; color: var(--color-ink); max-width: 30ch; padding-left: var(--space-lg); border-left: 4px solid var(--color-accent); border-radius: 2px; }

/* ---- CTA band (headingless action bar) ------------------------------- */
.cta { padding-block: clamp(var(--space-2xl), 6vw, var(--space-3xl)); background: var(--color-paper-3); color: var(--color-ink); }
.cta .container { display: flex; justify-content: center; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }

/* ---- Footer (letter close) ------------------------------------------- */
.site-footer { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-3xl); background: var(--color-paper); color: var(--color-ink); }
.site-footer .container { display: flex; flex-direction: column; gap: var(--space-lg); }
.footer-word { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-3xl); letter-spacing: var(--tracking-display); color: var(--color-accent); line-height: 1; }
.footer-line { font-size: var(--text-sm); color: var(--color-muted); max-width: 64ch; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
.footer-nav a { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
.footer-legal a { font-size: var(--text-sm); color: var(--color-muted); text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; }
.footer-legal a:hover { color: var(--color-ink-2); text-decoration-color: var(--color-accent); }
.footer-copy { font-size: var(--text-sm); color: var(--color-muted); }

/* ---- 404 ------------------------------------------------------------- */
.notfound { padding-block: var(--space-3xl) var(--space-2xl); }
.notfound .container { max-width: var(--container-text); }
.notfound .code404 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-numeral); line-height: 0.9; color: var(--color-accent); letter-spacing: var(--tracking-display); }
.notfound h1 { margin-top: var(--space-md); }
.notfound p { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 54ch; }
.notfound .cta-actions { justify-content: flex-start; margin-top: var(--space-xl); }

/* ---- Cookie banner --------------------------------------------------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: none; background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule-2); box-shadow: var(--shadow-cookie); }
.cookie.show { display: block; }
.cookie .cookie-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); padding-block: var(--space-sm); }
.cookie p { margin: 0; font-size: var(--text-sm); color: var(--color-ink-2); }
.cookie a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.16em; }
@media (max-width: 40rem) {
  .cookie .cookie-inner { gap: var(--space-sm); padding-block: var(--space-xs); flex-wrap: nowrap; }
  .cookie p { font-size: var(--text-xs); line-height: 1.35; }
  .cookie .btn-sm { min-height: 38px; flex: none; }
}

/* ---- Hero focus (holding-image crop) --------------------------------- */
@media (min-width: 768px) { picture img { object-position: 66% 18%; } }
@media (max-width: 767px) { picture img { object-position: 50% 42%; } }
