/* naughtyolderhearts.com - theme: Claret Letter (warm ivory cream + claret, blush panels; Fraunces / Source Sans 3)
 * macrostructure: Warm Editorial (airy centred reading column, light blush interlude bands, soft white feature cards with a claret top-hairline)
 * hero: Poster, image over a deep-burgundy scrim, cream hero copy flush-left bottom, clear of the centre third
 * header: light cream solid bar + in-flow accordion (house rule) - logo image left - footer: light statement mast
 * all copy static, no animation of any kind - self-hosted fonts only - full details recorded in the site note */

/* ---- Fonts (self-hosted WOFF2 only) ---------------------------------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

/* ---- Tokens (Claret Letter) ------------------------------------------ */
: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: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.9375rem; --text-md: 1.125rem; --text-lg: 1.3125rem; --text-xl: 1.5rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.3rem, 3.8vw + 0.6rem, 3.6rem); --text-display: clamp(2.7rem, 5vw + 1rem, 4.8rem);
  --text-section: clamp(1.95rem, 2.3vw + 1rem, 3.1rem); --text-title: clamp(1.45rem, 0.9vw + 1rem, 1.9rem); --text-lead: clamp(1.25rem, 0.5vw + 1.05rem, 1.5rem);
  --text-numeral: clamp(4rem, 9vw + 1rem, 9rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms; --dur-short: 220ms;
  --container: 1200px; --container-text: 720px; --gutter: 56px; --gap-columns: 24px;
  --z-base: 1; --z-raised: 10; --z-sticky: 200; --z-sticky-nav: 300; --z-toast: 500;

  /* Claret Letter palette (all pairings AA, lowest 5.85:1) */
  --color-paper: #FBF4EE;       /* warm ivory cream ground */
  --color-card: #FFFCFA;        /* warm white feature card */
  --color-blush: #F6E3DC;       /* blush interlude band */
  --color-blush-2: #F0D4C9;     /* deeper blush (callout, cookie, tint) */
  --color-ink: #2B1A1F;         /* body ink (deep warm near-black) */
  --color-ink-2: #4A343A;       /* secondary ink */
  --color-muted: #6E4A52;       /* fine print (AA on cream, 6.97:1) */
  --color-claret: #6E1E34;      /* headings + display */
  --color-rule: #E6CFC6;        /* hairline on cream */
  --color-rule-2: #D8B6AC;      /* stronger hairline / outline */
  --color-accent: #8A2140;      /* burgundy: Join + links (most prominent) */
  --color-accent-2: #6E1A33;    /* burgundy hover (darker) */
  --color-on-accent: #FFFFFF;   /* text on burgundy */
  --color-link: #8A2140;
  --color-focus: #8A2140;
  --color-hero-ink: #FBF4EE;    /* cream hero copy over the scrim */

  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 16px; --radius-btn: 10px;
  --rule-hair: 1px;
  --shadow-card: 0 18px 40px -26px rgba(110, 30, 52, 0.30);
  --shadow-soft: 0 10px 26px -20px rgba(110, 30, 52, 0.28);
  --tracking-display: 0; --display-weight: 600;
  --header-h: 74px;
}

/* ---- 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.7; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in srgb, var(--color-blush-2) 80%, transparent); color: var(--color-claret); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
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.08; overflow-wrap: break-word; min-width: 0; text-wrap: balance; color: var(--color-claret); }
h1 { max-width: 20ch; font-size: var(--text-display-s); font-weight: 700; line-height: 1.04; }
h2 { max-width: 24ch; font-size: var(--text-section); }
h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.14; }
.lead { font-family: var(--font-body); font-weight: 400; font-size: var(--text-lead); line-height: 1.55; max-width: 60ch; color: var(--color-ink); }
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: -48px; z-index: var(--z-toast); background: var(--color-accent); color: var(--color-on-accent); padding: var(--space-xs) var(--space-md); font-family: var(--font-body); font-weight: 600; text-decoration: none; border-radius: 0 0 var(--radius-btn) var(--radius-btn); transition: top var(--dur-micro) var(--ease-out); }
.skip-link:focus { top: 0; }
@media (max-width: 60rem) { :root { --gutter: 24px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; } }
@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 --------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-btn); background: var(--color-card); color: var(--color-claret); 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), box-shadow var(--dur-short) var(--ease-out); }
.btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn:active { background: var(--color-blush); }
.btn-join { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); box-shadow: var(--shadow-soft); }
.btn-join:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); color: var(--color-on-accent); }
.btn-join:active { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn-lg { min-height: 56px; padding: 0 var(--space-xl); font-size: var(--text-lg); }
.btn-sm { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-md); }
.btn:disabled, .nav-toggle:disabled, .cookie button:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- Header (light cream solid + in-flow accordion) ------------------ */
.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-md); 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-logo, .brand img { width: clamp(110px, 33vw, 214px); 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: 400; font-size: var(--text-md); color: var(--color-ink); 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-accent); }
.mainnav a.active { color: var(--color-claret); border-bottom-color: var(--color-accent); }
.mainnav .login-link { color: var(--color-claret); text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; }
.mainnav .login-link:hover { color: var(--color-accent); 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-card); border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-claret); border-radius: var(--radius-btn); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 47.99rem) {
  .nav-toggle { display: inline-flex; }
  .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-sm); 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-claret); }
  .mainnav .login-link { text-decoration: none; }
}

/* ---- Hero (Poster: image over a deep-burgundy scrim, cream copy) ----- */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--color-claret); color: var(--color-hero-ink); min-height: clamp(540px, 80svh, 760px); }
.hero > picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 38%; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(to top, rgba(30, 10, 18, 0.92) 0%, rgba(43, 14, 26, 0.74) 26%, rgba(43, 14, 26, 0.30) 58%, rgba(43, 14, 26, 0.08) 82%, transparent 100%),
  linear-gradient(to right, rgba(30, 10, 18, 0.55) 0%, rgba(30, 10, 18, 0.12) 46%, transparent 70%); }
.hero-inner { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); padding-block: var(--space-2xl); }
.hero-heading { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: var(--tracking-display); font-size: var(--text-display); color: var(--color-hero-ink); max-width: 15ch; text-shadow: 0 2px 18px rgba(20, 6, 12, 0.45); }
.hero-strap { font-family: var(--font-body); font-weight: 400; font-size: var(--text-lead); line-height: 1.5; color: var(--color-hero-ink); max-width: 46ch; text-shadow: 0 1px 12px rgba(20, 6, 12, 0.45); }
.hero .btn { margin-top: var(--space-xs); }
.hero .btn-join { box-shadow: 0 14px 34px -18px rgba(10, 4, 8, 0.8); }

@media (max-width: 47.99rem) {
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero-inner { padding-bottom: calc(var(--space-lg) + 78px); gap: var(--space-sm); }
}

/* ---- Content layout -------------------------------------------------- */
main { display: block; }
.section { padding-block: var(--space-3xl); }
.section + .section { padding-top: 0; }
.seo-content { max-width: var(--container-text); margin-inline: auto; }
.seo-content h1 { margin-bottom: var(--space-lg); }
.seo-content h2 { margin-top: var(--space-3xl); margin-bottom: var(--space-md); position: relative; padding-bottom: var(--space-sm); }
.seo-content h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 2px; background: var(--color-accent); }
.seo-content > h2:first-of-type { margin-top: 0; }
.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); }
.seo-content p.lead { margin-top: 0; }
.seo-content a:not(.btn) { color: var(--color-link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--color-link) 50%, transparent); text-underline-offset: 0.16em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.seo-content a:not(.btn):hover { text-decoration-color: var(--color-accent); }
.seo-content strong { font-weight: 600; color: var(--color-claret); }

/* ---- Interlude band (light blush - the macrostructure's rhythm) ------ */
.band { padding-block: var(--space-3xl); background: var(--color-blush); color: var(--color-ink); border-block: var(--rule-hair) solid var(--color-rule); }
.section + .band, .band + .section { padding-top: var(--space-3xl); }
.band .seo-content { max-width: var(--container-text); }
.band-wide .seo-content { max-width: var(--container); }
.band .seo-content > h2:first-of-type { margin-top: 0; }
.band .seo-content p { color: var(--color-ink); }

/* ---- Non-prose: pull-quote (home + over-50s) ------------------------- */
.pull { margin: var(--space-2xl) auto; max-width: var(--container-text); background: var(--color-blush); border: var(--rule-hair) solid var(--color-rule); border-left: 4px solid var(--color-accent); border-radius: var(--radius-card); padding: var(--space-xl) var(--space-2xl); box-shadow: var(--shadow-soft); }
.pull p { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.18; font-size: var(--text-title); color: var(--color-claret); max-width: 30ch; margin-top: 0; }
.band .pull { background: var(--color-card); }

/* ---- Non-prose: feature cards (life-stage panels + statements) ------- */
.stages { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.stages .stage { background: var(--color-card); border: var(--rule-hair) solid var(--color-rule); border-top: 3px solid var(--color-accent); border-radius: var(--radius-card); padding: var(--space-xl); box-shadow: var(--shadow-card); }
.stages .stage h3 { margin-top: 0; margin-bottom: var(--space-sm); }
.stages .stage p { margin-top: 0; max-width: none; color: var(--color-ink); line-height: 1.65; }

/* ---- Non-prose: aside well (over-50s) -------------------------------- */
.aside-well { margin: var(--space-xl) 0 0; background: var(--color-blush-2); color: var(--color-claret); border: var(--rule-hair) solid var(--color-rule-2); border-left: 4px solid var(--color-accent); border-radius: var(--radius-card); padding: var(--space-lg) var(--space-xl); }
.aside-well p { margin: 0; max-width: 48ch; font-family: var(--font-display); font-weight: 600; font-size: var(--text-title); line-height: 1.24; color: var(--color-claret); }

/* ---- Non-prose: two statement panels (mature-sex-chat) -------------- */
.statements { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.statements .statement { background: var(--color-card); border: var(--rule-hair) solid var(--color-rule); border-top: 3px solid var(--color-accent); border-radius: var(--radius-card); padding: var(--space-xl); box-shadow: var(--shadow-card); }
.statements .statement p { margin: 0; max-width: none; font-family: var(--font-display); font-weight: 600; font-size: var(--text-title); line-height: 1.24; color: var(--color-claret); }

@media (max-width: 60rem) {
  .stages { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .statements { grid-template-columns: minmax(0, 1fr); }
}

/* ---- CTA action bar (headingless; no invented copy) ------------------ */
.cta { padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-blush); 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 (light statement mast) ----------------------------------- */
.site-footer { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl); 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: 700; font-size: var(--text-2xl); letter-spacing: 0; color: var(--color-claret); line-height: 1; }
.footer-line { font-size: var(--text-sm); color: var(--color-muted); max-width: 64ch; line-height: 1.55; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
.footer-nav a { font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--color-accent); 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-accent); text-decoration-color: var(--color-accent); }
.footer-copy { font-size: var(--text-sm); color: var(--color-muted); }

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

/* ---- Cookie banner (light blush) ------------------------------------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: none; background: var(--color-blush-2); border-top: var(--rule-hair) solid var(--color-rule-2); }
.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); }
.cookie a { color: var(--color-claret); 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 (keep subject clear of the flush-left copy) */
@media (min-width: 768px) {
  picture img { object-position: 68% 22% !important; }
}
@media (max-width: 767px) {
  picture img { object-position: 50% 42% !important; }
}
