/* The Senior Dating Site: Plum Smoke (house brief, 2 Dec 2026)
   Cormorant Garamond 600 headings, Lato 400/700 body (18px base), self-hosted WOFF2.
   Angled-crop hero (photo left with a diagonal right edge and an offset smoke plate, copy on a solid plum block),
   solid header bar, soft corners, signature = oversized outline numerals on cards, rows and section heads. */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #1b141d;
  --surface: #271d2a;
  --block: #2b1c2e;
  --tint: #2e2131;
  --raised: #312436;
  --band: #3a1d35;
  --thead: #3c2541;
  --footer: #130e15;
  --text: #f5efe9;
  --muted: #c8bdb5;
  --link: #e7a3cf;
  --smoke: #a0457e;
  --join: #ae528b;
  --join-hover: #a0457e;
  --join-text: #ffffff;
  --line: rgba(231, 163, 207, 0.16);
  --line-strong: rgba(231, 163, 207, 0.34);
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 80px;
  --edge: max(32px, calc((100vw - 1200px) / 2 + 32px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.125rem; line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 400; background: var(--join); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; }

a { color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; max-width: 100%;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; line-height: 1.1; letter-spacing: 0.01em;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-join { background: var(--join); color: var(--join-text); border-color: var(--join); }
.btn-join:hover { background: var(--join-hover); border-color: var(--join-hover); color: var(--join-text); box-shadow: 0 0 0 2px var(--link); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--link); color: var(--text); }
.btn-sm { min-height: 48px; padding: 0 20px; font-size: 0.98rem; }
.btn-lg { min-height: 56px; padding: 0 34px; font-size: 1.1rem; }

/* ---------- Header: solid bar ---------- */
.site-header { position: relative; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 196px; height: auto; display: block; }
.mainnav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.mainnav a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 12px 14px; border-radius: var(--radius-sm);
}
.mainnav a:hover { color: var(--text); }
.mainnav a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--link); border-radius: 0; }
.mainnav a.nav-login { display: none; }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.menu-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0; background: transparent;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero: photo left with a diagonal right edge, copy on a solid plum block ---------- */
.hero {
  --panel-w: clamp(320px, 33vw, 470px);
  --media-right: calc(var(--edge) + var(--panel-w) + 36px);
  position: relative; overflow: hidden; background: var(--block);
  min-height: 540px; height: min(80vh, 720px);
  display: flex; align-items: center;
}
.hero-media, .hero-plate {
  position: absolute; top: 0; bottom: 0; left: 0; right: var(--media-right);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}
/* offset smoke plate peeking past the diagonal edge */
.hero-plate { right: calc(var(--media-right) - 18px); background: var(--smoke); }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center; }
.hero-copy { position: relative; z-index: 2; width: 100%; display: flex; justify-content: flex-end; padding-right: var(--edge); }
.hero-panel { width: var(--panel-w); }
.hero-heading {
  font-family: var(--font-head); font-weight: 600; color: var(--text);
  font-size: clamp(2.3rem, 3.6vw, 3.5rem); line-height: 1.06; margin: 0 0 18px; letter-spacing: -0.005em;
}
.hero-strapline { color: var(--muted); font-size: 1.15rem; line-height: 1.6; margin: 0 0 28px; max-width: 30em; }
.hero-btn { min-width: 230px; }

/* ---------- Content ---------- */
.seo-content { counter-reset: sec; }
.section { padding: 4rem 0 1.2rem; }
.section--first { padding-top: 4rem; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 1.2em; }
.prose p.lead { font-size: 1.24rem; line-height: 1.7; color: var(--text); }
.section .prose, .band--table .prose, .band--rows .prose { margin-left: 0; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--text); }
/* Cormorant defaults to old-style figures ("6o"); headings, hero and numerals use lining figures */
h1, h2, h3, .hero-heading, .seo-content h2::before, .feature-row li::before, .num-cards li::before,
.num-rows li::before, .sketch::before, .inventory td.num, .inventory tbody th, .feature-row li strong,
.num-cards li strong, .num-rows li strong, .footer-title { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
h1 { font-size: clamp(2.4rem, 4.4vw, 3.5rem); line-height: 1.08; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.95rem, 3vw, 2.6rem); line-height: 1.14; margin: 2.2em 0 0.5em; }
.prose > h2:first-child { margin-top: 0; }
h3 { font-size: clamp(1.45rem, 2.1vw, 1.7rem); line-height: 1.2; margin: 2em 0 0.45em; }

/* Signature, section heads: an oversized outline numeral and a short smoke hairline above every H2 */
.seo-content h2 { counter-increment: sec; }
.seo-content h2::before {
  content: counter(sec, decimal-leading-zero); display: block;
  font-family: var(--font-head); font-weight: 600; font-size: 4.2rem; line-height: 0.9; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1px var(--link); opacity: 0.75; margin-bottom: 0.18em;
}
.seo-content h2::after { content: ""; display: block; width: 64px; height: 2px; background: var(--smoke); margin-top: 0.42em; }
.notfound h1 { margin-bottom: 0.4em; }

/* In-content links, scoped so buttons keep their own colours */
.seo-content a:not(.btn) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.seo-content a:not(.btn):hover { text-decoration-thickness: 2px; color: #f3c6e2; }

/* ---------- Bands ---------- */
.band { padding: 4rem 0; margin-top: 3rem; }
.band--split, .band--table { background: var(--surface); }
.band--rows { background: linear-gradient(180deg, var(--tint), var(--bg)); }

/* Split text-and-image band */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 64px; align-items: center; }
.band--split-rev .split { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); }
.band--split-rev .split-text { order: 2; }
.split-art { display: flex; align-items: center; justify-content: center; }
.split-art svg { width: min(100%, 340px); height: auto; }

/* Three-feature row (outline numerals) */
.feature-row { list-style: none; margin: 1.6rem 0 2.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: feat; }
.feature-row li {
  counter-increment: feat; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); padding: 24px 26px 26px; color: var(--muted);
}
.feature-row li strong { display: block; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin-bottom: 8px; }
.feature-row li::before,
.num-cards li::before,
.num-rows li::before,
.sketch::before {
  display: block; font-family: var(--font-head); font-weight: 600; line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1.4px var(--link);
}
.feature-row li::before { content: counter(feat, decimal-leading-zero); font-size: 4.6rem; margin-bottom: 12px; }

/* Nightstand inventory table (centrepiece), outline numerals in the first column */
.table-wrap { margin: 1.4rem 0 2rem; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.inventory { width: 100%; border-collapse: collapse; font-size: 1.04rem; }
.inventory thead th {
  background: var(--thead); color: var(--text); text-align: left; font-weight: 700;
  padding: 15px 18px; font-size: 0.96rem; letter-spacing: 0.03em;
}
.inventory tbody tr { border-top: 1px solid var(--line); }
.inventory tbody tr:nth-child(even) { background: var(--block); }
.inventory tbody th, .inventory td { padding: 18px; vertical-align: top; text-align: left; color: var(--muted); }
.inventory tbody th { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; line-height: 1.2; color: var(--text); min-width: 180px; }
.inventory td.num {
  width: 92px; font-family: var(--font-head); font-weight: 600; font-size: 3.6rem; line-height: 0.85; text-align: center;
  color: transparent; -webkit-text-stroke: 1.3px var(--link);
}
.inventory td.says { color: var(--link); font-weight: 700; }

/* Numbered how-it-works cards: outline numeral breaking the card's top edge (no connecting line) */
.num-cards { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 26px; counter-reset: card; }
.num-cards li {
  counter-increment: card; position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 28px 26px; color: var(--muted);
}
.num-cards li strong { display: block; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin-bottom: 8px; }
.num-cards li::before {
  content: counter(card, decimal-leading-zero); position: absolute; top: -0.42em; left: 22px;
  font-size: 4.6rem; padding: 0 8px; background: var(--bg);
}

/* Numbered rows (page 3): numeral column + text, separate cards, no line */
.num-rows { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 18px; counter-reset: row; max-width: 980px; }
.num-rows li {
  counter-increment: row; display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; color: var(--muted);
}
.num-rows li::before { content: counter(row, decimal-leading-zero); grid-row: 1 / span 9; font-size: 5.4rem; align-self: start; }
.num-rows li strong { display: block; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1.55rem; line-height: 1.2; margin-bottom: 6px; }

/* Sketch cards (page 2): H3 cards with outline numerals */
.sketch-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 1.8rem 0 2.2rem; counter-reset: sketch; }
.sketch {
  counter-increment: sketch; background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--smoke); border-radius: var(--radius); padding: 26px 26px 24px; color: var(--muted);
}
.sketch::before { content: counter(sketch, decimal-leading-zero); font-size: 4.2rem; margin-bottom: 14px; }
.sketch h3 { margin: 0 0 0.45em; font-size: 1.55rem; }
.sketch p { margin: 0; }

/* Callout panel */
.prose p.callout {
  background: var(--raised); border-left: 4px solid var(--smoke); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; color: var(--text); font-size: 1.14rem; margin: 1.6em 0;
}

/* Final Join band */
.band--join {
  background: radial-gradient(120% 150% at 100% 0%, #4a2342 0%, var(--band) 45%, var(--surface) 100%);
  border-top: 1px solid var(--line); margin-top: 4rem; padding: 4.2rem 0;
}
.join-inner { margin: 0 auto; text-align: center; }
.join-inner h2::after { margin-left: auto; margin-right: auto; }
.join-inner p { font-size: 1.2rem; line-height: 1.65; color: var(--text); }
.join-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
/* the hot spot of the gradient dips under 3:1 against the Join fill, so the button carries a soft ring here */
.band--join .btn-join { box-shadow: 0 0 0 2px var(--link); }

/* 404 */
.notfound { padding-bottom: 4rem; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: var(--muted); padding: 3.2rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-title { font-family: var(--font-head); font-weight: 600; color: var(--text); font-size: 1.3rem; margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
.footer a:hover { color: var(--link); }
.footer .brand { text-decoration: none; padding: 0; color: var(--text); }
.footer .brand-logo { width: 200px; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.95rem; }

/* ---------- Cookie banner ---------- */
.cookie {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--surface); color: var(--text); border-top: 2px solid var(--join);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45);
}
.cookie.show { display: block; }
.cookie-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 0.98rem; line-height: 1.4;
}
.cookie-inner a { color: var(--link); text-decoration: underline; }
.cookie-accept {
  flex: 0 0 auto; min-height: 44px; padding: 0 20px;
  background: var(--join); color: var(--join-text); border: 0; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; cursor: pointer;
}
.cookie-accept:hover { background: var(--join-hover); }

/* ---------- Wide screens: section numerals hang in the left gutter ---------- */
@media (min-width: 1180px) {
  .section .prose, .band--table > .container > .prose, .band--rows > .container > .prose { margin-left: 120px; }
  .section .prose h2::before, .band--table .prose h2::before, .band--rows .prose h2::before {
    position: absolute; transform: translate(-130px, 0.08em); width: 110px; text-align: right; margin: 0;
  }
  .section .prose h2, .band--table .prose h2, .band--rows .prose h2 { position: relative; }
  .num-rows { margin-left: 120px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1023.98px) {
  .hero { --panel-w: clamp(290px, 42vw, 400px); }
  .split { gap: 40px; }
  .feature-row, .sketch-cards { grid-template-columns: 1fr; }
}

/* ---------- Accordion nav ---------- */
@media (max-width: 899.98px) {
  :root { --header-h: 64px; }
  .header-inner { flex-wrap: wrap; gap: 0 10px; min-height: var(--header-h); padding-top: 8px; padding-bottom: 8px; }
  .brand { order: 1; }
  .brand svg, .brand img, .brand-logo { width: clamp(110px, 33vw, 240px); }
  .header-cta { order: 2; margin-left: auto; }
  .header-login { display: none; }
  .menu-toggle { display: inline-flex; }
  .mainnav { order: 3; width: 100%; display: none; margin: 8px 0 0; border-top: 1px solid var(--line); }
  .mainnav.open { display: block; }
  .mainnav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.06rem; color: var(--text); }
  .mainnav a.active { box-shadow: inset 4px 0 0 var(--link); padding-left: 14px; }
  .mainnav a.nav-login { display: block; }
  .brand-logo { height: auto; }
}

/* ---------- Phones: hero sized by svh, photo above with an angled bottom edge, button pinned to the bottom ---------- */
@media (max-width: 767.98px) {
  .container { padding: 0 16px; }
  .btn-sm { padding: 0 16px; font-size: 0.95rem; }
  .header-cta { gap: 8px; }

  .hero {
    display: flex; flex-direction: column; align-items: stretch;
    height: calc(100vh - 64px - 64px);
    height: calc(100svh - 64px - 64px);
    min-height: 420px;
  }
  .hero-plate { display: none; }
  .hero-media {
    position: relative; inset: auto; flex: 1 1 auto; min-height: 90px;
    clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
    border-bottom: 0;
  }
  .hero-media picture, .hero-media img { position: absolute; inset: 0; }
  .hero-media img { object-position: 50% 30%; }
  .hero-copy { flex: 0 0 auto; padding: 0; display: block; background: var(--block); }
  .hero-panel { width: 100%; padding: 12px 16px 16px; }
  .hero-heading { font-size: clamp(1.7rem, 7.6vw, 2rem); line-height: 1.08; margin-bottom: 8px; }
  .hero-strapline { font-size: 1rem; line-height: 1.45; margin-bottom: 14px; }
  .hero-btn { width: 100%; min-width: 0; min-height: 52px; }

  .section { padding: 2.8rem 0 0.6rem; }
  .section--first { padding-top: 2.6rem; }
  .band { padding: 2.8rem 0; margin-top: 2.2rem; }
  .seo-content h2::before { font-size: 3.2rem; }
  .split, .band--split-rev .split { grid-template-columns: 1fr; gap: 26px; }
  .band--split-rev .split-text { order: 0; }
  .split-art svg { width: 190px; }
  .num-cards { grid-template-columns: 1fr; gap: 42px; margin-top: 2.6rem; }
  .num-cards li::before { font-size: 3.8rem; }
  .num-rows li { grid-template-columns: 1fr; padding: 22px 20px; }
  .num-rows li::before { grid-row: auto; font-size: 3.6rem; margin-bottom: 10px; }
  .feature-row li::before, .sketch::before { font-size: 3.6rem; }

  /* table stacks into cards on phones */
  .table-wrap { border: 0; overflow: visible; background: transparent; }
  .inventory thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .inventory, .inventory tbody, .inventory tr, .inventory th, .inventory td { display: block; width: 100%; }
  .inventory tbody tr { background: var(--raised) !important; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; padding: 8px 0 12px; }
  .inventory td.num { width: auto; text-align: left; font-size: 3.2rem; padding: 14px 18px 4px; }
  .inventory tbody th { min-width: 0; padding: 6px 18px 6px; }
  .inventory td { padding: 6px 18px; }
  .inventory td:not(.num)::before { content: attr(data-label); display: block; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }

  .cookie-inner { padding: 8px 12px; gap: 10px; font-size: 0.82rem; justify-content: space-between; }
  .cookie-accept { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* hero focus (bulk runner v15) */
@media (min-width: 768px) {
  picture img { object-position: 66% 21% !important; }
}
@media (max-width: 767px) {
  picture img { object-position: 50% 50% !important; }
}
