/* Cold Tea Mysteries site: "Parlour Ink" palette, same tokens as src/constants/theme.ts */

@font-face { font-family: 'EB Garamond'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/eb-garamond-400.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url('fonts/eb-garamond-400i.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/eb-garamond-600.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/work-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/work-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/work-sans-600.woff2') format('woff2'); }

:root {
  --bg: #F6EFDD;
  --surface: #FAF5E9;
  --ink: #5A2222;
  --ink-soft: #786A4E;
  --gold: #B08D3E;
  --border: #E4D6BE;
  --burgundy: #6E2A2E;
  --on-fill: #FBF3E2;
  --shadow: rgba(58, 36, 18, 0.18);
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #201512; --surface: #2E211C; --ink: #F3E9D8; --ink-soft: #C9B79A;
    --gold: #D8B25C; --border: #4A3A30; --burgundy: #7E3535; --shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #201512; --surface: #2E211C; --ink: #F3E9D8; --ink-soft: #C9B79A;
  --gold: #D8B25C; --border: #4A3A30; --burgundy: #7E3535; --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: var(--gold); } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 6px var(--shadow); }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.01em; }
.topnav { display: flex; gap: 20px; font-size: 0.92rem; }
.topnav a { color: var(--ink-soft); text-decoration: none; }
.topnav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; gap: 32px; align-items: center; padding-block: 8px 48px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr 0.85fr; gap: 56px; padding-block: 16px 64px; } }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.3rem); line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 20px; text-wrap: balance;
}
.hero h1 em { display: block; font-weight: 400; color: var(--burgundy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--gold); } }
.pitch { font-size: 1.05rem; color: var(--ink-soft); max-width: 34rem; margin: 0 0 28px; }
.pitch + .pitch { margin-top: -14px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--burgundy); color: var(--on-fill);
  padding: 13px 22px; border-radius: 999px; font-weight: 500; font-size: 0.98rem;
  box-shadow: 0 6px 18px var(--shadow);
}
.soon svg { width: 18px; height: 18px; flex: none; }
.cta-note { font-size: 0.9rem; color: var(--ink-soft); }

.hero-art { position: relative; justify-self: center; display: grid; place-items: center; width: 100%; padding-block: 12px; }
.halo {
  position: absolute; width: min(78vw, 320px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--surface) 0 58%, transparent 59%);
  border: 1px solid var(--gold); opacity: 0.9;
}
.halo::after { content: ''; position: absolute; inset: 18px; border-radius: 50%; border: 1px dashed var(--border); }
.phone {
  position: relative; width: min(56vw, 230px); aspect-ratio: 9 / 19.2;
  border-radius: 40px; padding: 3px;
  background: linear-gradient(135deg, #8A97A8 0%, #4E5A6A 30%, #9AA7B8 52%, #46525F 75%, #7D8A9B 100%);
  box-shadow: 0 30px 60px var(--shadow), 0 8px 20px var(--shadow);
}
.phone::before, .phone::after {
  content: ''; position: absolute; width: 3px; border-radius: 2px; background: #5D6A7A;
}
.phone::before { left: -3px; top: 20%; height: 9%; box-shadow: 0 calc(230px * 0.12 * 2.1) 0 #5D6A7A, 0 calc(230px * 0.24 * 2.1) 0 #5D6A7A; }
.phone::after { right: -3px; top: 27%; height: 14%; }
.screen {
  height: 100%; border-radius: 37px; overflow: hidden; background: #F6EFDD;
  border: 7px solid #0E0B0A; display: flex; flex-direction: column;
}
.statusbar {
  position: relative; flex: none; height: 26px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px 0 22px; font: 600 10px/1 var(--sans); color: #1C1411; background: #F6EFDD;
}
.notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 42%; height: 20px; background: #0E0B0A; border-radius: 0 0 13px 13px;
}
.sb-icons { display: flex; gap: 4px; align-items: center; }
.sig { width: 13px; height: 8px; background: linear-gradient(90deg, #1C1411 0 22%, transparent 22% 26%, #1C1411 26% 48%, transparent 48% 52%, #1C1411 52% 74%, transparent 74% 78%, #1C1411 78%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.bat { width: 18px; height: 9px; border: 1px solid #1C1411; border-radius: 3px; position: relative; }
.bat::after { content: ''; position: absolute; inset: 1px 4px 1px 1px; background: #1C1411; border-radius: 1px; }
.statusbar.dark { background: #3B201C; color: #FBF3E2; }
.statusbar.dark .sig { background: linear-gradient(90deg, #FBF3E2 0 22%, transparent 22% 26%, #FBF3E2 26% 48%, transparent 48% 52%, #FBF3E2 52% 74%, transparent 74% 78%, #FBF3E2 78%); }
.statusbar.dark .bat { border-color: #FBF3E2; }
.statusbar.dark .bat::after { background: #FBF3E2; }
.screen img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; }

/* Section headings */
.section { padding-block: 56px; border-top: 1px solid var(--border); }
.section h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.1; margin: 0 0 10px; text-wrap: balance;
}
.section .sub { color: var(--ink-soft); margin: 0 0 32px; max-width: 38rem; }

/* Screenshot rail */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 260px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 20px; margin-inline: -16px;
  scrollbar-width: thin;
}
@media (min-width: 640px) { .shots { margin-inline: -32px; padding-inline: 32px; } }
@media (min-width: 1000px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  width: 100%; height: auto; aspect-ratio: 600 / 1304; border-radius: 18px;
  border: 1px solid var(--border); box-shadow: 0 10px 28px var(--shadow); background: var(--surface);
}

/* Features */
.features { display: grid; gap: 28px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.feature h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature .ficon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); background: var(--surface); margin-bottom: 14px; }
.feature .ficon svg { width: 24px; height: 24px; }

/* Margaret's note */
.note {
  display: grid; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; max-width: 760px; margin: 0 auto;
}
@media (min-width: 640px) { .note { grid-template-columns: auto 1fr; gap: 28px; padding: 36px 40px; } }
.note img { width: 112px; height: 112px; border-radius: 50%; border: 2px solid var(--gold); }
.note blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; }
.note cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding-block: 32px 48px; font-size: 0.9rem; color: var(--ink-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--ink-soft); }
.footer .legal { font-size: 0.8rem; margin-top: 4px; }

/* Document pages (privacy, support) */
.doc { max-width: 700px; margin: 0 auto; padding: 24px 16px 72px; }
@media (min-width: 640px) { .doc { padding-inline: 32px; } }
.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1.08; margin: 24px 0 10px; }
.doc .dek { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); margin: 0 0 8px; }
.doc .meta { font-size: 0.85rem; color: var(--ink-soft); padding-bottom: 28px; margin: 0 0 32px; border-bottom: 1px solid var(--border); }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 40px 0 10px; }
.doc h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 6px; }
.doc p, .doc li { max-width: 64ch; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--gold); }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin: 20px 0; }
.box p { margin: 0; }
.box p + p { margin-top: 10px; }
.doc details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.doc details:first-of-type { border-top: 1px solid var(--border); }
.doc summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.doc details[open] summary::after { content: '\2212'; }
.doc details p { margin: 10px 0 0; color: var(--ink-soft); }
.mail { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; word-break: break-all; }

@media (max-width: 420px) {
  .brand span { font-size: 1.12rem; white-space: nowrap; }
  .brand img { width: 34px; height: 34px; }
  .topnav { gap: 14px; font-size: 0.85rem; }
}
