/* Catchlight — shared stylesheet
   v1.0 · 2026-06-12 · Extracted from index.html v1.11 inline <style> (D-023);
   shared across index, /story, /faq, /privacy. New components added for the
   multi-page split: nav links, device mockups, trust band, story signature,
   message card. Palette + type system unchanged. */

:root {
  color-scheme: light;
  --bg:             #F7F4EF;
  --surface:        #E0D9CE;
  --ink:            #0F0E0C;
  --fog:            #B8B0A3;
  --text-secondary: #5C5650;
  --glow:           #EDD9A3;
  --ember:          #C9A96E;
  --ember-text:     #856539;
  --divider:        #E0D9CE;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg:             #0F0E0C;
    --surface:        #1C1A16;
    --ink:            #F5EDD8;
    --fog:            #B8B0A3;
    --text-secondary: #B8B0A3;
    --glow:           #EDD9A3;
    --ember:          #C9A96E;
    --ember-text:     #C9A96E;
    --divider:        #2D2A24;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* ── Logo asset switching ── */
/* CSS media query + JS class fallback (.scheme-dark on <html>) — dual path for Cloudflare resilience */
.logo-light { display: block; }
.logo-dark  { display: none !important; }

@media (prefers-color-scheme: dark) {
  .logo-light { display: none !important; }
  .logo-dark  { display: block !important; }
}

html.scheme-dark .logo-light { display: none !important; }
html.scheme-dark .logo-dark  { display: block !important; }

/* Wordmark colour — uses currentColor so it inherits from --ink without needing a media query */
.brand-wordmark  { color: var(--ink); }
.footer-wordmark { color: var(--ink); }

/* ── Layout ── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 80px 0; }
.section-tight { padding: 56px 0; }

/* ── Typography ── */
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-text);
  margin-bottom: 20px;
}

.display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(38px, 6vw, 56px);
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}

.body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}

.body:last-of-type { margin-bottom: 0; }

.pullquote {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 28px;
}

strong.em {
  color: var(--ember-text);
  font-weight: inherit;
  font-style: inherit;
  font-family: inherit;
  font-size: inherit;
}

/* Inline link inside copy */
.link {
  color: var(--ember-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}
.link:hover { opacity: 0.7; }

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  max-width: 680px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  text-decoration: none;
}

/* Icon: 40×40, rounded */
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Wordmark container: fixed height, width auto */
.brand-wordmark {
  height: 44px;
  display: flex;
  align-items: center;
}

.brand-wordmark svg {
  height: 44px;
  width: auto;
}

.nav-right {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Nav links (multi-page) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

/* ── Hero ── */
#hero {
  padding: 56px 0 72px;
}

.hero-lead {
  max-width: 540px;
}

/* ── Email form ── */
.email-form {
  display: flex;
  margin-top: 36px;
  max-width: 440px;
}

.email-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.01em;
}

.email-input::placeholder { color: var(--fog); }
.email-input:focus { border-color: var(--ember); }

.email-btn {
  background: var(--ember);
  color: #0F0E0C;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 13px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.email-btn:hover { opacity: 0.82; }
.email-btn:disabled { opacity: 0.45; cursor: default; }

.form-note {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 10px;
  letter-spacing: 0.01em;
}

.form-msg {
  font-size: 13px;
  font-weight: 300;
  margin-top: 12px;
  min-height: 18px;
  letter-spacing: 0.01em;
}

.form-msg.success { color: var(--ember-text); }
.form-msg.error   { color: #c0392b; }

/* ── Device mockups ── */
.mockups {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  padding: 6px 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mockups::-webkit-scrollbar { display: none; }

.device {
  flex: 0 0 auto;
  width: 186px;
  scroll-snap-align: center;
}

.device img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  box-shadow: 0 16px 38px rgba(15, 14, 12, 0.16);
}

@media (prefers-color-scheme: dark) {
  .device img { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); }
}
html.scheme-dark .device img { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); }

.device-cap {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 16px;
  letter-spacing: 0.03em;
}

/* ── Trust band (four standalone statements, no markers) ── */
.trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.trust li {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ── Inline section CTA row (links between pages) ── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 36px;
  align-items: center;
}

.cta-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ember-text);
  text-decoration: none;
  transition: opacity 0.2s;
}
.cta-link:hover { opacity: 0.7; }

/* ── Message card (story: personal note) ── */
.note-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 34px 32px;
  margin-top: 8px;
}

.signature {
  margin-top: 30px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
}

.signature-role {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ── Footer ── */
footer {
  padding: 80px 0 52px;
}

.footer-brand {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 40px;
}

.footer-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-wordmark {
  height: 52px;
  display: flex;
  align-items: center;
}

.footer-wordmark svg {
  height: 52px;
  width: auto;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(26px, 4vw, 34px);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}

.footer-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
  line-height: 1.65;
  max-width: 400px;
}

.footer-bottom {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom span, .footer-bottom a {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--ink); }

.footer-links { display: flex; gap: 20px; align-items: center; }

/* ── Responsive ── */
@media (max-width: 520px) {
  .container, nav { padding: 0 20px; }
  nav { padding: 24px 20px; }
  section { padding: 60px 0; }
  .section-tight { padding: 48px 0; }
  .email-form { flex-direction: column; max-width: 100%; }
  .email-input { border-right: 1px solid var(--divider); border-bottom: none; border-radius: 8px 8px 0 0; }
  .email-btn { border-radius: 0 0 8px 8px; padding: 13px; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 12px; }
  .nav-links { gap: 16px; }
  .mockups { gap: 18px; }
}

/* ── FAQ ── */
.faq-list { list-style: none; margin-top: 40px; }
.faq-item { padding: 28px 0; border-top: 1px solid var(--divider); }
.faq-item:last-child { border-bottom: 1px solid var(--divider); }
.faq-q {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 12px;
}
.faq-a {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}
.faq-a a { color: var(--ember-text); text-decoration: underline; text-underline-offset: 3px; }

/* ── Privacy / long-form prose (privacy page) ── */
.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--ink);
  margin: 44px 0 16px;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 15px; font-weight: 300; line-height: 1.7; letter-spacing: 0.01em; color: var(--ink); margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 20px; }
.prose li { font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--ink); margin-bottom: 8px; }
.prose a { color: var(--ember-text); text-decoration: underline; text-underline-offset: 3px; }
.page-meta { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
