/* Greetings with Guts — cards for grown-ups. Dark ink ground, one foil-gold accent. */
:root {
  color-scheme: dark;
  --ink: #0e0c13;
  --ink-2: #16131e;
  --ink-3: #211d2c;
  --paper: #f6efe2;
  --text: #f4eee1;
  --muted: #b2aa9c;
  --foil: #e9b44c;
  --foil-2: #f8dc92;
  --line: rgba(244, 238, 225, 0.14);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--foil) 60%, transparent); text-underline-offset: 0.2em; }
a:hover { color: var(--foil-2); }
:focus-visible { outline: 3px solid var(--foil); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--foil); color: #1a1205; padding: 10px 16px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(64px, 13vw, 200px); font-variation-settings: "SOFT" 100, "opsz" 144; }
h2 { font-size: clamp(52px, 8vw, 88px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--foil); }
p { margin: 0 0 1em; text-wrap: pretty; }
.eyebrow { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--foil); margin: 0 0 20px; display: flex; gap: 12px; align-items: center; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--foil); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.55; color: var(--text); max-width: 46ch; }
.muted { color: var(--muted); }
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 980px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; font: 600 1rem/1 var(--sans); padding: 18px 28px; border-radius: 999px; border: 1.5px solid var(--foil); background: var(--foil); color: #1a1205; cursor: pointer; text-decoration: none; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s; }
.btn:hover { transform: translateY(-3px); background: var(--foil-2); color: #1a1205; box-shadow: 0 14px 40px -12px rgba(233, 180, 76, 0.6); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--foil); color: var(--foil-2); background: transparent; box-shadow: none; }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); view-transition-name: site-header; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { font: italic 600 1.5rem/1 var(--serif); text-decoration: none; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; gap: 2px; }
.brand i { color: var(--foil); font-style: normal; }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); padding-block: 8px; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-color: var(--foil); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); color: var(--text); border-radius: 999px; padding: 10px 18px; font: 600 0.9rem var(--sans); cursor: pointer; }
.header-cta { padding: 12px 20px; font-size: 0.9rem; }
@media (max-width: 1060px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; inset: 76px 0 auto 0; background: var(--ink-2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 12px var(--pad) 28px; gap: 4px; display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.2rem; width: 100%; padding-block: 12px; }
  .header-cta { display: none; }
}

/* Cards — the product, drawn in CSS + SVG */
.pcard { container-type: inline-size; aspect-ratio: 5 / 7; position: relative; background: var(--c-bg); color: var(--c-fg); border-radius: 4px 12px 12px 4px; overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 30px 60px -28px rgba(0,0,0,.8), 0 8px 18px -8px rgba(0,0,0,.5); isolation: isolate; }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.12) 1.2%, transparent 3.5%), radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.14), transparent 55%); }
.pcard::after { content: ""; position: absolute; inset: 4.5cqi; border: 1px solid color-mix(in srgb, var(--c-acc) 55%, transparent); border-radius: 2px 8px 8px 2px; z-index: 2; pointer-events: none; }
.pcard-in { position: relative; z-index: 1; height: 100%; padding: 10cqi 9cqi 9cqi 10cqi; display: flex; flex-direction: column; justify-content: space-between; }
.pcard .tag { font: 600 3.1cqi/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-acc); display: flex; justify-content: space-between; }
.pcard .motif { width: 44cqi; height: 44cqi; color: var(--c-acc); align-self: center; }
.pcard .front-text { font: 600 8.6cqi/1.04 var(--serif); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.pcard .front-text em { font-style: italic; font-weight: 400; color: var(--c-acc); }
.pcard.inside { background: var(--paper); color: #231c14; --c-acc: #b3262c; }
.pcard.inside .pcard-in { justify-content: center; gap: 6cqi; }
.pcard.inside .inside-text { font: italic 400 7.2cqi/1.35 var(--serif); margin: 0; text-wrap: pretty; }
.pcard.inside .sig { font: 600 3.1cqi/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #6b5d49; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(28px, 3vw, 48px); }
.card-item { display: grid; gap: 18px; align-content: start; }
.card-item[hidden] { display: none; }
.card-open { all: unset; cursor: pointer; display: block; border-radius: 12px; transition: transform 0.45s var(--ease); transform-style: preserve-3d; }
.card-open:hover { transform: translateY(-10px) rotate(-1.2deg); }
.card-open:focus-visible { outline: 3px solid var(--foil); outline-offset: 6px; }
.card-cap { padding: 0 4px; }
.card-cap h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.card-cap .inside-line { margin: 0 0 10px; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* Palettes */
.p-red { --c-bg: #b3262c; --c-fg: #fbf1e1; --c-acc: #f6cf6a; --c-acc2: #fff4dc; }
.p-pine { --c-bg: #15402f; --c-fg: #f6efe2; --c-acc: #e9b44c; --c-acc2: #d23a34; }
.p-navy { --c-bg: #14213d; --c-fg: #f5efe0; --c-acc: #f2c14e; --c-acc2: #9bc1d9; }
.p-cream { --c-bg: #f1e6d0; --c-fg: #1c1a24; --c-acc: #b3262c; --c-acc2: #1f4a3a; }
.p-plum { --c-bg: #3a1a3f; --c-fg: #f7ecd9; --c-acc: #f4b860; --c-acc2: #e68a9b; }
.p-mustard { --c-bg: #e9b44c; --c-fg: #20150b; --c-acc: #20150b; --c-acc2: #b3262c; }
.p-blush { --c-bg: #f3cfc6; --c-fg: #3b1420; --c-acc: #b3262c; --c-acc2: #1f4a3a; }
.p-ink { --c-bg: #1a1822; --c-fg: #f5efe0; --c-acc: #e9b44c; --c-acc2: #7fc8a9; }
.p-sky { --c-bg: #bcd8e8; --c-fg: #11243a; --c-acc: #11243a; --c-acc2: #e9b44c; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 110px) clamp(60px, 8vw, 120px); position: relative; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(233,180,76,.2), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; gap: clamp(40px, 5vw, 80px); position: relative; }
.hero h1 { max-width: 10ch; margin-bottom: 36px; }
.hero-sub { display: grid; gap: 28px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.fan { position: relative; height: clamp(280px, 62vw, 460px); perspective: 1400px; }
.fan .pcard { position: absolute; left: 50%; bottom: 0; width: clamp(130px, 14vw, 230px); transform-origin: 50% 120%; transform: translateX(-50%) translateX(calc(var(--x) * 1vw * 1.15)) rotate(calc(var(--r) * 1deg + var(--tilt-x, 0) * 1deg)) translateY(calc(var(--y, 0) * 1px)); transition: transform 0.6s var(--ease); }
.fan .pcard:hover { z-index: 9; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .hero h1 { max-width: none; }
  .fan { height: clamp(420px, 40vw, 600px); }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; translate: 0 40px; } }
  .hero h1, .hero-sub, .fan .pcard { animation: rise 0.9s var(--ease) both; }
  .hero-sub { animation-delay: 0.15s; }
  .fan .pcard:nth-child(1) { animation-delay: 0.2s; } .fan .pcard:nth-child(2) { animation-delay: 0.3s; } .fan .pcard:nth-child(3) { animation-delay: 0.4s; } .fan .pcard:nth-child(4) { animation-delay: 0.5s; } .fan .pcard:nth-child(5) { animation-delay: 0.6s; }
}

/* Ticker */
.ticker { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; position: relative; }
.ticker-track { display: flex; width: max-content; gap: 0; }
.ticker-track span { font: italic 400 clamp(1.4rem, 3vw, 2.2rem)/1 var(--serif); padding: 26px 34px; white-space: nowrap; display: inline-flex; gap: 34px; align-items: center; }
.ticker-track span::after { content: "✦"; color: var(--foil); font-style: normal; font-size: 0.7em; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes tick { to { transform: translateX(-50%); } }
  .ticker-track { animation: tick 60s linear infinite; }
  .ticker.paused .ticker-track { animation-play-state: paused; }
}
.ticker-btn { position: absolute; right: 14px; top: 50%; translate: 0 -50%; z-index: 2; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 0.78rem var(--sans); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ticker-btn { display: none; } .ticker-track { overflow-x: auto; width: 100%; } }

/* Pillars */
.pillars { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pillar { padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, var(--ink-2), var(--ink)); position: relative; overflow: hidden; transition: border-color 0.3s, transform 0.4s var(--ease); }
.pillar:hover { border-color: color-mix(in srgb, var(--foil) 60%, transparent); transform: translateY(-6px); }
.pillar .num { font: italic 400 4.5rem/1 var(--serif); color: var(--foil); display: block; margin-bottom: 20px; }
.pillar p { color: var(--muted); margin: 14px 0 0; }

/* Finder */
.finder { border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(120% 120% at 100% 0%, rgba(233,180,76,.12), transparent 50%), var(--ink-2); padding: clamp(28px, 5vw, 64px); display: grid; gap: 36px; }
.finder fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.finder legend { font: 600 0.8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 14px 22px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; transition: all 0.25s var(--ease); }
.opt span:hover { border-color: var(--foil); }
.opt input:checked + span { background: var(--foil); color: #1a1205; border-color: var(--foil); }
.opt input:focus-visible + span { outline: 3px solid var(--foil-2); outline-offset: 3px; }
.finder-out { min-height: 120px; }
.finder-out .card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 220px)); }
.finder-empty { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.3rem; margin: 0; }
.mini { display: grid; gap: 12px; text-decoration: none; }
.mini:hover { color: inherit; }
.mini .pcard { transition: transform 0.4s var(--ease); }
.mini:hover .pcard { transform: translateY(-8px) rotate(-1deg); }
.mini strong { font-weight: 600; }

/* Map tiles */
.map { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.tile { position: relative; display: grid; gap: 16px; align-content: space-between; min-height: 340px; padding: 36px; border-radius: 24px; border: 1px solid var(--line); background: var(--ink-2); text-decoration: none; overflow: hidden; transition: border-color .3s, transform .45s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(233,180,76,.2), transparent 45%); opacity: 0; transition: opacity .3s; }
.tile:hover { border-color: var(--foil); transform: translateY(-6px); color: var(--text); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile .big { font: italic 400 clamp(5rem, 9vw, 8rem)/0.9 var(--serif); color: color-mix(in srgb, var(--foil) 75%, transparent); }
.tile h3 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.tile p { color: var(--muted); margin: 10px 0 0; max-width: 36ch; min-height: 3.4em; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 0.72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); width: fit-content; }
.status.live { background: var(--foil); color: #1a1205; border-color: var(--foil); }
.tile.wide { grid-column: 1 / -1; min-height: 320px; background: linear-gradient(120deg, #1a3a2c, var(--ink-2) 70%); }
@media (min-width: 900px) { .tile.wide { grid-template-columns: 1.2fr 1fr; align-items: end; } }

/* Journal */
.posts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.post { display: grid; gap: 14px; align-content: start; padding: 36px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; background: var(--ink-2); transition: border-color .3s, transform .4s var(--ease); }
.post:hover { border-color: var(--foil); transform: translateY(-6px); color: var(--text); }
.post h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.post p { color: var(--muted); margin: 0; }
.post .more { color: var(--foil); font-weight: 600; }
.read { font: 600 0.78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 920px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); transition: border-color .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--foil) 55%, transparent); }
.faq summary { cursor: pointer; list-style: none; padding: 26px 36px; font: 600 clamp(1.15rem, 1.8vw, 1.45rem)/1.3 var(--serif); display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 2rem/1 var(--sans); color: var(--foil); transition: rotate .3s var(--ease); flex: none; }
.faq details[open] summary::after { rotate: 45deg; }
.faq .ans { padding: 0 36px 30px; color: var(--muted); max-width: 70ch; }
.faq .ans p:last-child { margin: 0; }

/* CTA band */
.cta-band { text-align: center; border-radius: 32px; padding: clamp(56px, 9vw, 130px) var(--pad); background: radial-gradient(80% 120% at 50% 0%, rgba(233,180,76,.28), transparent 60%), linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); display: grid; gap: 28px; justify-items: center; }
.cta-band h2 { max-width: 14ch; }
.cta-band p { max-width: 52ch; color: var(--muted); margin: 0; }

/* Page heads */
.page-head { padding-block: clamp(56px, 9vw, 130px) clamp(32px, 5vw, 64px); position: relative; overflow: clip; }
.page-head::before { content: ""; position: absolute; inset: -30% auto auto -10%; width: 60vw; aspect-ratio: 1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent, var(--foil)) 22%, transparent), transparent 70%); pointer-events: none; }
.page-head h1 { font-size: clamp(64px, 12vw, 180px); }
.page-head .lede { margin-top: 32px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 32px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin-inline: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; position: sticky; top: 76px; z-index: 20; padding-block: 14px; background: linear-gradient(var(--ink) 70%, transparent); }
.toolbar button { font: 600 .9rem/1 var(--sans); padding: 13px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: all .25s var(--ease); }
.toolbar button:hover { border-color: var(--foil); }
.toolbar button[aria-pressed="true"] { background: var(--foil); color: #1a1205; border-color: var(--foil); }
.count { color: var(--muted); font-size: .95rem; margin: 0 0 24px; }

/* Prose / articles */
.prose { max-width: 740px; margin-inline: auto; font-size: 1.18rem; line-height: 1.75; }
.prose h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.5rem; margin: 1.8em 0 .4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .6em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--foil); font: italic 400 1.4rem/1.45 var(--serif); }
.prose .answer { font-size: 1.35rem; line-height: 1.55; border-left: 3px solid var(--foil); padding-left: 24px; }
.meta { color: var(--muted); font-size: .95rem; margin-bottom: 40px; }
.next-up { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line); }
.feature-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.feature-list > div { padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); }
.feature-list h3 { margin-bottom: 12px; }
.feature-list p { color: var(--muted); margin: 0; }

/* Forms + dialogs */
dialog { color: var(--text); background: var(--ink-2); border: 1px solid var(--line); border-radius: 28px; padding: 0; max-width: min(92vw, 560px); width: 100%; box-shadow: 0 50px 120px -20px rgba(0,0,0,.9); }
dialog::backdrop { background: rgba(8, 6, 12, 0.78); backdrop-filter: blur(6px); overflow: hidden; overscroll-behavior: contain; }
dialog:modal { overscroll-behavior: contain; }
dialog:not([open]) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  dialog { transition: opacity .35s var(--ease), translate .35s var(--ease), display .35s allow-discrete, overlay .35s allow-discrete; opacity: 0; translate: 0 24px; }
  dialog[open] { opacity: 1; translate: 0 0; }
  @starting-style { dialog[open] { opacity: 0; translate: 0 24px; } }
}
.dlg { padding: clamp(28px, 5vw, 48px); display: grid; gap: 22px; }
.dlg h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.dlg p { margin: 0; color: var(--muted); }
.x { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); color: var(--text); font-size: 1.3rem; cursor: pointer; z-index: 5; }
.x:hover { border-color: var(--foil); }
label { font-weight: 600; font-size: .92rem; display: grid; gap: 8px; }
input[type="email"], input[type="text"], select { font: inherit; color: var(--text); background: var(--ink); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; width: 100%; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--foil); outline-offset: 2px; border-color: var(--foil); }
.fine { font-size: .85rem; color: var(--muted); }
.form-msg { min-height: 1.5em; font-weight: 600; color: var(--foil-2); }
.hp { position: absolute; left: -9999px; }
#cardDialog { max-width: min(94vw, 460px); background: transparent; border: 0; box-shadow: none; overflow: visible; }
#cardDialog .x { top: -56px; right: 0; }
.flip { perspective: 1800px; }
.flip-inner { position: relative; aspect-ratio: 5 / 7; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.flip.open .flip-inner { transform: rotateY(-180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; }
.flip-face > .pcard { height: 100%; width: 100%; aspect-ratio: auto; }
.flip-back { transform: rotateY(180deg); }
.flip-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; transform-style: flat; }
  .flip-face { backface-visibility: visible; }
  .flip .flip-back { display: none; transform: none; }
  .flip.open .flip-front { display: none; }
  .flip.open .flip-back { display: block; }
  .flip.open .flip-inner { transform: none; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 80px 48px; background: var(--ink-2); }
.foot-grid { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-grid h4 { font: 600 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--foil); margin-bottom: 20px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-grid a { text-decoration: none; color: var(--muted); }
.foot-grid a:hover { color: var(--text); }
.foot-brand { grid-column: span 2; max-width: 420px; }
.foot-brand .brand { font-size: 2.4rem; margin-bottom: 16px; }
.foot-brand p { color: var(--muted); }
.legal { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--muted); font-size: .9rem; }

/* Scroll reveals (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal { from { opacity: 0; translate: 0 56px; } }
    .reveal { animation: reveal auto linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .3s ease-in both vt-out; }
  ::view-transition-new(root) { animation: .45s ease-out both vt-in; }
  @keyframes vt-out { to { opacity: 0; translate: 0 -12px; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 18px; } }
}

/* ===== Shop layer: product pages, formats, card links ===== */
.card-link { display: inline-block; margin-top: 12px; font: 600 .82rem/1 var(--sans); color: var(--foil-2, var(--foil)); text-decoration: none; letter-spacing: .02em; }
.card-link:hover, .card-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.prod-head { padding-bottom: 8px; }
.prod-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.prod-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: sticky; top: 96px; }
.prod-visual .pcard { width: 100%; box-shadow: 0 24px 50px -22px rgba(0,0,0,.7); }
.prod-visual .pv-inside { margin-top: 28px; }
.prod-info .lede { margin-top: 0; }
.prod-h2 { font: 400 1.6rem/1.2 var(--serif); margin: 36px 0 16px; }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.format { border: 1px solid color-mix(in srgb, var(--foil) 35%, transparent); border-radius: 14px; padding: 22px; background: color-mix(in srgb, var(--foil) 5%, transparent); display: flex; flex-direction: column; gap: 10px; }
.format h3 { margin: 0; font: 600 1.05rem/1.2 var(--sans); }
.format p { margin: 0; color: var(--muted, #b2aa9c); font-size: .95rem; line-height: 1.5; }
.format .price { font: 400 1.5rem/1 var(--serif); color: var(--foil); }
.format-cta { margin-top: auto; padding-top: 6px; }
.format-cta .btn { width: 100%; justify-content: center; }
.pay-note, .fine { font-size: .82rem; color: var(--muted, #b2aa9c); margin: 14px 0 0; }
.prod-faq { margin-top: 28px; }
@media (max-width: 860px) { .prod-grid { grid-template-columns: 1fr; } .prod-visual { position: static; } }

/* Home teaser */
.ad-teaser { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 22px; text-decoration: none; color: inherit; border: 1px solid #ff3d6e55; background: radial-gradient(120% 140% at 0% 0%, #2a0b1a 0%, #0a0710 60%); transition: transform .3s var(--ease), border-color .3s; }
.ad-teaser:hover { transform: translateY(-3px); border-color: #ff3d6e; }
.ad-teaser h2 { margin: 0 0 8px; font: 400 clamp(1.8rem, 3.4vw, 2.6rem)/1.05 var(--serif); }
.ad-teaser h2 em { color: #ff3d6e; }
.ad-teaser p { margin: 0; color: #cbbfc8; max-width: 52ch; }
.ad-teaser .eyebrow { color: #ff7a9a; } .ad-teaser .eyebrow::before { background: #ff7a9a; }
.ad-teaser .btn { background: #ff3d6e; color: #12060b; border-color: #ff3d6e; }
.age-badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid #ff3d6e; color: #ff3d6e; font: 700 1.1rem/1 var(--sans); letter-spacing: .02em; }
.nav .age { font-style: normal; font-size: .62rem; font-weight: 700; margin-left: 6px; padding: 3px 6px; border-radius: 6px; border: 1px solid #ff3d6e; color: #ff3d6e; vertical-align: 2px; }
@media (max-width: 720px) { .ad-teaser { grid-template-columns: 1fr; text-align: left; } }

/* ===== Guts After Dark: its own look (neon-on-black), same fonts and layout ===== */
body.ad { --foil: #ff3d6e; --foil-2: #ff7a9a; background: #0a0710; }
body.ad .site-header { background: color-mix(in srgb, #0a0710 88%, transparent); border-bottom: 1px solid #ff3d6e33; }
body.ad .page-head::before { background: radial-gradient(60% 80% at 20% 0%, #ff3d6e33, transparent 70%); }
body.ad .ad-hero h1 { font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: -.02em; text-shadow: 0 0 40px #ff3d6e55; }
body.ad h1 em, body.ad h2 em { color: #ff3d6e; }
body.ad .btn { background: #ff3d6e; color: #12060b; border-color: #ff3d6e; }
body.ad .btn.ghost { background: transparent; color: #ff7a9a; border-color: #ff3d6e88; }
body.ad .chip { border-color: #ff3d6e55; }
body.ad .toolbar button[aria-pressed="true"] { background: #ff3d6e; color: #12060b; border-color: #ff3d6e; }
body.ad .card-item:hover .pcard { box-shadow: 0 0 0 1px #ff3d6e, 0 24px 60px -20px #ff3d6e66; }
body.ad .format { border-color: #ff3d6e55; background: #ff3d6e0d; }
body.ad .format .price { color: #ff7a9a; }
body.ad .site-footer { border-top: 1px solid #ff3d6e33; }
body.ad .hero-cta { align-items: center; }
.ag-noscript { margin: 0; padding: 14px 20px; text-align: center; background: #2a0b1a; color: #ffd6e0; }
.p-ember { --c-bg: #7a0f2a; --c-fg: #fff0f3; --c-acc: #ff3d6e; --c-acc2: #ffb347; }
.p-noir { --c-bg: #15111c; --c-fg: #f4eee1; --c-acc: #ff3d6e; --c-acc2: #8f5bff; }
.p-wine { --c-bg: #3d0f26; --c-fg: #fbe9ee; --c-acc: #ff7a9a; --c-acc2: #f6cf6a; }
.p-violet { --c-bg: #2a1458; --c-fg: #f3ecff; --c-acc: #b38bff; --c-acc2: #ff3d6e; }

/* Age gate */
dialog.agegate { max-width: min(92vw, 520px); text-align: center; border: 1px solid #ff3d6e; box-shadow: 0 0 0 1px #ff3d6e33, 0 40px 120px -20px #ff3d6e55; background: #0a0710; }
dialog.agegate::backdrop { background: rgba(5, 2, 8, .94); backdrop-filter: blur(14px); }
.agegate .eyebrow { justify-content: center; color: #ff7a9a; } .agegate .eyebrow::before { display: none; }
.agegate h2 em { color: #ff3d6e; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.agegate .btn { background: #ff3d6e; color: #12060b; border-color: #ff3d6e; }
.agegate .btn.ghost { background: transparent; color: #ff7a9a; border-color: #ff3d6e88; }

/* Real card artwork */
.pcard.imgcard { background: #111; }
.pcard.imgcard::before, .pcard.imgcard::after { display: none; }
.pcard.imgcard img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-item .pcard.imgcard, .mini .pcard.imgcard { box-shadow: 0 18px 40px -22px rgba(0,0,0,.75); }

/* Card art: keep the 5:7 ratio in every browser (iOS Safari fix) */
.pcard.imgcard { height: auto; }
.pcard.imgcard img { height: auto; aspect-ratio: 5 / 7; }
.flip-face > .pcard.imgcard, .flip-face > .pcard.imgcard img { height: 100%; }

/* ===== Hero v2: the card that opens ===== */
.hero-v2 h1 { max-width: 15ch; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; margin-bottom: 28px; }
.hero-v2 .lede strong { color: var(--ink, #f4eee1); font-weight: 600; }
.hero-occ { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-occ-label { font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted, #b2aa9c); margin-right: 6px; width: 100%; margin-bottom: 4px; }
.hero-occ .chip { text-decoration: none; padding: 9px 14px; font-size: .84rem; transition: border-color .2s, color .2s, background .2s; }
.hero-occ .chip:hover, .hero-occ .chip:focus-visible { border-color: var(--foil); color: var(--foil); }
.hero-facts { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 28px; margin: 6px 0 0; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--foil) 25%, transparent); justify-content: start; }
.hero-facts div { display: grid; gap: 6px; }
.hero-facts dt { font: 600 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted, #b2aa9c); }
.hero-facts dd { margin: 0; font: 400 1.35rem/1.1 var(--serif); color: var(--foil); }
@media (max-width: 560px) { .hero-facts { grid-template-columns: repeat(2, auto); } }

.opener-wrap { margin: 0; display: grid; justify-items: center; gap: 18px; }
.opener { --w: clamp(150px, 40vw, 300px); width: calc(var(--w) * 2); max-width: 100%; perspective: 2400px; position: relative; }
.opener::before { content: ""; position: absolute; inset: 8% 10% -6%; background: radial-gradient(closest-side, rgba(233,180,76,.28), transparent 75%); filter: blur(20px); z-index: -1; }
.op-stage { position: relative; width: var(--w); aspect-ratio: 5 / 7; margin-left: 50%; transform: translateX(-50%); transition: transform 1.1s var(--ease); transform-style: preserve-3d; }
.opener.open .op-stage { transform: translateX(0); }
.op-inside, .op-cover { position: absolute; inset: 0; border-radius: 3px 10px 10px 3px; }
.op-inside { overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0,0,0,.85); }
.op-inside img, .op-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.op-cover { transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1.1s var(--ease); z-index: 2; }
.opener.open .op-cover { transform: rotateY(-172deg); }
.op-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 3px 10px 10px 3px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,.85); }
.op-back { transform: rotateY(180deg); background: #f3ece0; display: grid; place-items: end center; padding-bottom: 14%; border-radius: 10px 3px 3px 10px; }
.op-back span { font: italic 600 clamp(.7rem, 1.6vw, 1rem)/1 var(--serif); color: #7a6a52; letter-spacing: .02em; }
.op-back i { color: var(--foil); font-style: normal; }
.opener.swap .op-stage { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.97); transition: opacity .35s, transform .35s; }
.op-cap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: .9rem; min-height: 40px; }
.op-occ { font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted, #b2aa9c); }
.op-link { color: var(--foil); text-decoration: none; font: italic 400 1.15rem/1.2 var(--serif); }
.op-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.op-pause { background: transparent; border: 1px solid color-mix(in srgb, var(--foil) 40%, transparent); color: var(--muted, #b2aa9c); border-radius: 999px; padding: 6px 12px; font: 600 .74rem/1 var(--sans); cursor: pointer; }
@media (min-width: 1000px) { .hero-v2 .hero-grid { grid-template-columns: 1fr 1fr; } .opener { --w: clamp(200px, 19vw, 300px); } }
@media (prefers-reduced-motion: reduce) { .op-stage, .op-cover { transition: none; } }
.hero-v2 .lede strong { color: inherit; font-weight: 600; }
.hero-facts { row-gap: 16px; }
.hero-v2 .opener { --w: clamp(170px, 44vw, 250px); }
@media (min-width: 1000px) { .hero-v2 .opener { --w: clamp(230px, 22vw, 340px); } }
@media (max-width: 999px) { .hero-v2 .opener-wrap { order: -1; margin-bottom: 8px; } .hero-v2 .hero-grid { gap: 32px; } }

/* ===== Warm ivory theme (main site). After Dark keeps its dark look. ===== */
:root {
  color-scheme: light;
  --ink: #f8f3ea;
  --ink-2: #f1e9db;
  --ink-3: #e9dfcc;
  --text: #231c14;
  --muted: #6b5d49;
  --foil: #9a6712;
  --foil-2: #7d520b;
  --line: rgba(35, 28, 20, 0.14);
  --gold: #e9b44c;
  --gold-2: #f3c96b;
}
.btn, .status.live { background: var(--gold); border-color: var(--gold); color: #1a1205; }
.btn:hover { background: var(--gold-2); color: #1a1205; box-shadow: 0 14px 34px -14px rgba(154, 103, 18, .55); }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(35, 28, 20, .28); }
.btn.ghost:hover { border-color: var(--foil); color: var(--foil); }
.tile.wide { background: linear-gradient(120deg, #e3ebe1, var(--ink-2) 70%); }
.hero::before { background: radial-gradient(closest-side, rgba(233, 180, 76, .28), transparent 70%); }
.opener::before { background: radial-gradient(closest-side, rgba(154, 103, 18, .22), transparent 75%); }
.op-inside, .op-face { box-shadow: 0 30px 60px -26px rgba(60, 40, 15, .55); }
.card-item .pcard.imgcard, .mini .pcard.imgcard, .prod-visual .pcard { box-shadow: 0 22px 44px -24px rgba(60, 40, 15, .55); }
.op-back { background: #fffaf1; }
.hero-v2 .lede strong { color: var(--text); }
::selection { background: #f3c96b; color: #1a1205; }

/* After Dark stays dark */
body.ad { color-scheme: dark; --ink: #0a0710; --ink-2: #140d1a; --ink-3: #1e1426; --text: #f4eee1; --muted: #b9a9b4; --line: rgba(244, 238, 225, .14); --gold: #ff3d6e; --gold-2: #ff7a9a; color: var(--text); }
body.ad .btn.ghost { color: #ff7a9a; border-color: #ff3d6e88; }

/* Desktop hero: tighter, everything above the fold */
@media (min-width: 1000px) {
  .hero-v2 { padding-block: clamp(36px, 5vw, 72px) clamp(48px, 5vw, 80px); }
  .hero-v2 h1 { font-size: clamp(3rem, 4.6vw, 4.6rem); }
  .hero-v2 .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .hero-v2 .opener { --w: clamp(200px, 15vw, 270px); }
  .hero-v2 .hero-sub { gap: 22px; }
}
.page-head h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); }
.prod-head h1 { font-size: clamp(2.4rem, 4.8vw, 4.4rem); }

/* ===== Ask Guts chat ===== */
.askg { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80; display: grid; justify-items: end; gap: 12px; font-family: var(--sans); }
.askg-fab { display: inline-flex; gap: 8px; align-items: center; padding: 14px 20px; border-radius: 999px; border: 0; background: #231c14; color: #f8f3ea; font: 600 .95rem/1 var(--sans); cursor: pointer; box-shadow: 0 14px 34px -12px rgba(35, 28, 20, .55); transition: transform .2s var(--ease); }
.askg-tag { margin: 0; padding: 6px 12px; border-radius: 999px; background: #f8f3ea; color: #231c14; font: 600 .78rem/1.2 var(--sans); box-shadow: 0 6px 18px -10px rgba(35, 28, 20, .5); order: -1; }
.askg-tag[hidden] { display: none; }
body.ad .askg-tag { background: #12060b; color: #ff9db6; }
.askg-fab:hover { transform: translateY(-2px); }
.askg-fab span { color: var(--gold, #e9b44c); }
.askg-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: grid; grid-template-rows: auto 1fr auto auto auto; background: #fffaf1; color: #231c14; border: 1px solid rgba(35, 28, 20, .14); border-radius: 22px; box-shadow: 0 30px 80px -24px rgba(35, 28, 20, .45); overflow: hidden; }
.askg-panel[hidden] { display: none; }
.askg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: #231c14; color: #f8f3ea; }
.askg-head strong { display: block; font: 600 1.05rem/1.2 var(--serif); }
.askg-head span { font-size: .78rem; color: #d8cdb8; }
.askg-x { background: transparent; border: 0; color: inherit; font-size: 1.5rem; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; }
.askg-log { overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; }
.askg-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.askg-msg.bot { background: #f1e9db; justify-self: start; border-bottom-left-radius: 4px; }
.askg-msg.me { background: #e9b44c; color: #1a1205; justify-self: end; border-bottom-right-radius: 4px; }
.askg-msg a { color: #7d520b; font-weight: 600; }
.askg-msg.typing { color: #6b5d49; letter-spacing: .2em; }
.askg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.askg-chips[hidden] { display: none; }
.askg-chips button { font: 500 .78rem/1.2 var(--sans); padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(35, 28, 20, .2); background: transparent; color: #231c14; cursor: pointer; }
.askg-chips button:hover { border-color: #9a6712; color: #9a6712; }
.askg-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(35, 28, 20, .12); }
.askg-form textarea { flex: 1; resize: none; font: inherit; font-size: .95rem; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(35, 28, 20, .2); background: #fff; color: #231c14; max-height: 120px; }
.askg-send { width: 44px; border-radius: 12px; border: 0; background: #e9b44c; color: #1a1205; font-size: 1.2rem; cursor: pointer; }
.askg-fine { margin: 0; padding: 0 14px 10px; font-size: .7rem; color: #6b5d49; }
body.ad .askg-fab { background: #ff3d6e; color: #12060b; } body.ad .askg-fab span { color: #12060b; }
.price-conv { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.cur-sel { font: inherit; font-size: .8rem; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); margin-top: 4px; }
@media print { .askg { display: none; } }
@media (max-width: 600px) { .askg-fab[aria-expanded="true"] { display: none; } }

/* ===== Sage theme (main site) — After Dark keeps its own dark look ===== */
:root {
  --ink: #9caf88;
  --ink-2: #adbf9a;
  --ink-3: #b9c9a7;
  --text: #1f1810;
  --muted: #33291c;
  --foil: #4d3003;
  --foil-2: #3d2602;
  --line: rgba(31, 24, 16, 0.2);
}
.tile.wide { background: linear-gradient(120deg, #c3d1b2, var(--ink-2) 70%); }
.btn.ghost { border-color: rgba(31, 24, 16, .35); }
.hero::before { background: radial-gradient(closest-side, rgba(255, 244, 214, .35), transparent 70%); }
.opener::before { background: radial-gradient(closest-side, rgba(255, 244, 214, .4), transparent 75%); }
.op-occ, .hero-occ-label, .hero-facts dt { color: var(--muted); }
.hero-facts dd { color: var(--foil); }
.chip { color: var(--muted); border-color: rgba(31, 24, 16, .25); }
body.ad { --ink: #0a0710; --ink-2: #140d1a; --ink-3: #1e1426; --text: #f4eee1; --muted: #b9a9b4; --foil: #ff3d6e; --foil-2: #ff7a9a; --line: rgba(244, 238, 225, .14); }
body.ad .chip { color: var(--muted); }
body:not(.ad) .nav .age { color: #8a1233; border-color: #8a1233; }
