/* Lumiden landing — editorial paper-and-ink, ADR-023 */

:root {
  --paper: #f7f4ee;
  --ink: #23272e;
  --ink-80: rgba(35, 39, 46, 0.82);
  --ink-60: rgba(35, 39, 46, 0.62);
  --ink-30: rgba(35, 39, 46, 0.32);
  --sage: #8fa896;            /* decorative only — line art, hairlines */
  --sage-text: #5f7564;       /* accessible sage for text (WCAG AA on paper) */
  --sage-25: rgba(143, 168, 150, 0.28);
  --sage-50: rgba(143, 168, 150, 0.55);
  --terracotta: #c87550;
  --terracotta-dark: #b56644;
  --cream: #efe8da;
  --max: 1120px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Faint paper grain — SVG noise at very low opacity */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.20  0 0 0 0 0.23  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--terracotta); color: var(--paper); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--sage-25);
}

.site-header .container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 20, "SOFT" 50, "WONK" 0;
}

.nav-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  padding: 14px 4px;        /* expand tap target to ≥44px height */
  margin: -14px -4px;        /* but don't add visual weight */
}

.nav-link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */

.hero { padding: 128px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-text);
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--sage-50);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0 0 28px;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 0;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 80, "WONK" 1;
  color: var(--ink);
}

.hero p.lede {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink-80);
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-art {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-art svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* ---------- Library-card waitlist form ---------- */

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 480px;
}

.waitlist-form .field-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-text);
}

.waitlist-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding-top: 6px;
  border-top: 1px solid var(--ink-30);
  border-bottom: 1px solid var(--ink-30);
}

.waitlist-form input[type="email"] {
  flex: 1;
  height: 52px;
  padding: 0;
  background: transparent;
  border: none;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 40;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--ink-30);
  font-style: italic;
  font-variation-settings: "opsz" 24, "SOFT" 80, "WONK" 0;
}

.waitlist-form input[type="email"]:focus { outline: none; }
.waitlist-row:focus-within {
  border-top-color: var(--ink);
  border-bottom-color: var(--ink);
}

.waitlist-form button {
  align-self: center;
  height: 40px;
  padding: 0 22px;
  background: var(--terracotta);
  color: var(--ink);
  border: none;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease;
}

.waitlist-form button:hover { background: var(--terracotta-dark); }
.waitlist-form button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.legal-caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-60);
  max-width: 480px;
  line-height: 1.5;
  font-style: italic;
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 60;
}

.form-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--sage-text);
  min-height: 18px;
  font-style: italic;
  font-family: var(--serif);
}

.form-status.error { color: var(--terracotta-dark); font-style: normal; font-family: var(--sans); }

/* ---------- Section ornaments ---------- */

.ornament {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--sage-text);
  text-align: center;
  letter-spacing: 0.6em;
  margin: 0 0 28px;
  user-select: none;
  font-variation-settings: "opsz" 24, "SOFT" 80;
}

.section-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: var(--sage-text);
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0 0 36px;
  font-variation-settings: "opsz" 14, "SOFT" 80, "WONK" 0;
}

/* ---------- About ---------- */

.about { padding: 96px 0 80px; }

.about-body {
  max-width: 640px;
  margin: 0 auto;
}

.about-body p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  margin: 0 0 28px;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 0;
}

.about-body p:last-child { margin-bottom: 0; }

/* Drop cap on first paragraph */
.about-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 0.85;
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 50, "WONK" 1;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--ink);
}

/* ---------- Feature list (single column, editorial) ---------- */

.features { padding: 56px 0 96px; }

.feature-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.feature-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: start;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--sage-25);
}

.feature-item:first-child { border-top: 1px solid var(--ink); padding-top: 36px; }

.feature-numeral {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 350;
  line-height: 1;
  color: var(--sage-text);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60, "SOFT" 80, "WONK" 1;
  font-style: italic;
}

.feature-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 0;
}

.feature-body p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-80);
  margin: 0;
  max-width: 580px;
}

/* ---------- Secondary CTA ---------- */

.cta-band {
  padding: 112px 0;
  background: var(--cream);
  border-top: 1px solid var(--sage-25);
  border-bottom: 1px solid var(--sage-25);
}

.cta-band .inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 32px;
}

.cta-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 14px;
  color: var(--ink);
  font-variation-settings: "opsz" 40, "SOFT" 60, "WONK" 0;
}

.cta-band p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-80);
  margin: 0 0 32px;
  font-variation-settings: "opsz" 16, "SOFT" 80, "WONK" 0;
}

.cta-band .waitlist-form { margin: 0 auto; align-items: center; }
.cta-band .field-label { text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 72px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.footer-brand .brand { margin-bottom: 20px; }

.footer-meta {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.55;
  margin: 0;
}

.footer-credit {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-60);
  font-variation-settings: "opsz" 14, "SOFT" 80;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
  padding: 8px 0;            /* tap target */
  display: inline-block;
}

.footer-links a:hover { text-decoration: underline; }

.footer-contact {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}

.footer-contact .disclaimer {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-60);
  font-variation-settings: "opsz" 14, "SOFT" 80;
}

/* ---------- Responsive ---------- */

/* Tablet — keep asymmetric hero, narrow the gap */
@media (max-width: 1023px) and (min-width: 721px) {
  .container { padding: 0 28px; }
  .hero { padding: 96px 0 80px; }
  .hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
  }
  .hero-art svg { max-width: 240px; }
  .hero h1 { font-size: clamp(36px, 5.6vw, 56px); }
  .feature-list { max-width: 680px; }
}

/* Mobile + small tablet — stack the hero */
@media (max-width: 720px) {
  .container { padding: 0 24px; }

  .hero { padding: 64px 0 56px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Editorial mobile order: headline → art → form */
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; }
  .hero-copy h1 { order: 2; }
  .hero-art { order: 3; justify-content: center; }
  .hero-art svg { max-width: 180px; }
  .hero-copy p.lede { order: 4; max-width: none; }
  .hero-copy .waitlist-form { order: 5; max-width: none; }

  .about { padding: 72px 0 56px; }
  .features { padding: 40px 0 72px; }
  .feature-list { gap: 36px; }
  .feature-item {
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding-top: 28px;
  }
  .feature-numeral { font-size: 32px; }

  .cta-band { padding: 72px 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-links { gap: 0; }
}

/* Phone — stack form vertically, tighten type */
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.06;
  }

  .about { padding: 56px 0 48px; }
  .about-body p { font-size: 19px; line-height: 1.55; }
  .about-body p:first-of-type::first-letter { font-size: 56px; padding-right: 10px; }

  .feature-body h3 { font-size: 21px; }
  .feature-body p { font-size: 15px; }

  /* Stack the email form on tight viewports */
  .waitlist-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 0;
    border-top: none;
    border-bottom: none;
  }
  .waitlist-form input[type="email"] {
    height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--ink-30);
    font-size: 17px;
  }
  .waitlist-form input[type="email"]:focus {
    border-bottom-color: var(--ink);
  }
  .waitlist-form button {
    height: 48px;
    width: 100%;
    align-self: stretch;
    padding: 0;
  }

  .cta-band { padding: 56px 0; }
  .cta-band h2 { font-size: 24px; }
  .cta-band p { font-size: 15px; }
}

/* Tightest viewports (e.g., iPhone SE 1st gen — 320px) */
@media (max-width: 360px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 30px; }
  .feature-numeral { font-size: 28px; }
  .feature-item { grid-template-columns: 56px 1fr; gap: 14px; }
  .about-body p { font-size: 18px; }
  .about-body p:first-of-type::first-letter { font-size: 48px; padding-right: 8px; }
}

/* Reduced-motion safe — no animations declared, but stay future-proof */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Stub pages (privacy, terms) ---------- */

.simple-page {
  min-height: calc(100vh - 280px);
  padding: 96px 0;
}

.simple-page .container { max-width: 640px; }

.simple-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 28px;
  color: var(--ink);
  font-variation-settings: "opsz" 60, "SOFT" 60, "WONK" 0;
  letter-spacing: -0.015em;
}

.simple-page p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 22px;
  font-variation-settings: "opsz" 18, "SOFT" 30;
}

.simple-page .back {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-text);
  text-decoration: none;
  border-bottom: 1px solid var(--sage-50);
  padding-bottom: 3px;
}

.simple-page .back:hover { color: var(--ink); border-bottom-color: var(--ink); }
