/* Daily Bard - marketing + legal site
   Brand palette pulled from the app's Theme.swift so the site and app read as
   one edition. Playfair Display (display) + EB Garamond (body). No build step. */

:root {
  --ivory: #F6F0E3;
  --parchment: #EFE5CF;
  --ink: #2B2318;
  --sepia: #5A4632;
  --oxblood: #6E1F1F;
  --gold: #9A7B2D;
  --line: #C9B98F;
  --paper-shadow: rgba(43, 35, 24, 0.16);
  --max: 1080px;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ivory: #201A12;
    --parchment: #2A2318;
    --ink: #EFE5CF;
    --sepia: #B5A385;
    --oxblood: #B4494A;
    --gold: #C2A25A;
    --line: #5A4B33;
    --paper-shadow: rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain, drawn once, no image request. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background:
    radial-gradient(circle at 20% 12%, rgba(154, 123, 45, 0.05), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(110, 31, 31, 0.04), transparent 40%);
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

a { color: var(--oxblood); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

/* --- Eyebrow / folio label: gold, uppercase, tracked (mirrors the app) --- */
.eyebrow {
  font-family: "EB Garamond", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}
.fleuron { color: var(--gold); font-size: 1.2em; line-height: 1; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 7px; box-shadow: 0 1px 3px var(--paper-shadow); }
.brand span { font-family: "Playfair Display", serif; font-size: 1.28rem; font-weight: 600; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--sepia); text-decoration: none; font-size: 1rem; letter-spacing: 0.01em; }
.nav a:hover { color: var(--ink); }
.nav .btn { display: none; }
@media (max-width: 720px) {
  .nav a.navlink { display: none; }
  .nav .btn { display: inline-flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: "EB Garamond", serif; font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.72rem 1.5rem; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--oxblood); color: #F6F0E3; box-shadow: 0 2px 10px rgba(110, 31, 31, 0.28); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(110, 31, 31, 0.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--parchment); color: var(--ink); }
.btn small { font-size: 0.72rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }

/* --- Hero --- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); margin-bottom: 0.4em; }
.hero p.lede { font-size: 1.3rem; color: var(--sepia); max-width: 34ch; margin: 0 0 1.8rem; }
.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.1rem; color: var(--sepia); font-size: 1rem; font-style: italic; }

/* Framed engraving plate - the app's "plate depth" bevel + shadow */
.plate {
  position: relative;
  border-radius: 6px;
  padding: 10px;
  background: linear-gradient(160deg, #efe5cf, #d9c9a2);
  box-shadow: 0 24px 60px -20px var(--paper-shadow), 0 2px 0 rgba(255,255,255,0.4) inset;
  transform: rotate(-1deg);
}
.plate img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(43,35,24,0.25); }
.plate figcaption {
  position: absolute; left: 50%; bottom: -1.9rem; transform: translateX(-50%);
  white-space: nowrap; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 600;
}

/* --- Section rhythm --- */
section { padding: 4rem 0; position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--sepia); font-size: 1.2rem; margin: 0.6rem 0 0; }

.rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 0; }
.ornament-rule { text-align: center; color: var(--gold); font-size: 1.3rem; padding: 1.2rem 0; }

/* --- Anatomy / steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--oxblood);
  font-family: "Playfair Display", serif; font-size: 1.3rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.5rem; }
.step p { color: var(--sepia); margin: 0.3rem 0 0; }

/* --- Feature cards --- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 2rem 1.9rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset;
}
.card .mark { color: var(--gold); font-size: 1.4rem; line-height: 1; }
.card h3 { font-size: 1.55rem; margin: 0.7rem 0 0.35rem; }
.card p { color: var(--sepia); margin: 0; }

/* --- Gallery --- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery figure { margin: 0; border-radius: 6px; padding: 8px; background: linear-gradient(160deg, #efe5cf, #ddceac); box-shadow: 0 12px 30px -14px var(--paper-shadow); }
.gallery img { border-radius: 3px; aspect-ratio: 900 / 1272; object-fit: cover; box-shadow: 0 0 0 1px rgba(43,35,24,0.2); }

/* --- Price band --- */
.band { background: var(--parchment); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { text-align: center; }
.price { font-family: "Playfair Display", serif; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--ink); }
.price sup { font-size: 0.5em; top: -0.7em; color: var(--sepia); }
.band .sub { color: var(--sepia); font-style: italic; font-size: 1.2rem; margin: 0.2rem 0 1.6rem; }

/* --- FAQ --- */
.faq { max-width: 48rem; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: "Playfair Display", serif; font-size: 1.35rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--gold); font-size: 1.4rem; transition: transform 0.2s ease; }
.faq details[open] summary::after { content: "－"; }
.faq details p { color: var(--sepia); margin: 0.8rem 0 0; }

/* --- Final CTA --- */
.finale { text-align: center; }
.finale h2 { font-size: clamp(2.1rem, 4.4vw, 3rem); }
.finale p { color: var(--sepia); font-size: 1.25rem; max-width: 40ch; margin: 0.4rem auto 2rem; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); background: var(--parchment); padding: 3rem 0; margin-top: 2rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.site-footer .brand span { font-size: 1.1rem; }
.foot-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.foot-links a { color: var(--sepia); text-decoration: none; font-size: 1rem; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.copyright { width: 100%; color: var(--sepia); font-size: 0.95rem; padding-top: 1.2rem; border-top: 1px solid var(--line); text-align: center; }

/* --- Legal / support article pages --- */
.legal { padding: 3.5rem 0 4rem; }
.legal .doc { max-width: var(--measure); margin: 0 auto; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 0.2em; }
.legal .updated { color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.76rem; font-weight: 600; margin-bottom: 2.4rem; }
.legal h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.3rem; margin-top: 1.6rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.4rem 0; }
.legal a { font-weight: 600; }
.legal .lede { font-size: 1.28rem; color: var(--sepia); }
.back { display: inline-block; margin-bottom: 2rem; color: var(--sepia); text-decoration: none; font-size: 1rem; }
.back:hover { color: var(--ink); }
.callout {
  background: var(--parchment); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 1.1rem 1.3rem; margin: 1.6rem 0;
}
.callout p { margin: 0; color: var(--sepia); }

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 3rem; }
  .hero .plate { max-width: 380px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 2.4rem; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:last-child { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 1.12rem; }
  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 3rem 0; }
}
