/* ============================================================
   dovae · quiet hour theme
   Gesso field + bookish serif type + umber pill buttons.
   Palette: Gesso #F1EAD9 · Raw Silk #E2D3B8 · Umber Ink #33291F
            Kiln Sienna #A65B2E (one ember per composition)
            Dried Thyme #7C7963 (captions & secondary only)
   Re-theme the whole site from :root below.
   ============================================================ */

:root {
  --bg:        #F1EAD9;  /* Gesso — field */
  --bg-soft:   #F8F4E9;  /* panel */
  --ink:       #33291F;  /* Umber Ink — text & mark */
  --ink-soft:  #7C7963;  /* Dried Thyme — whisper */
  --line:      rgba(51,41,31,.18);
  --hairline:  rgba(51,41,31,.32);

  --sage:      #E2D3B8;  /* Raw Silk — surface */
  --sage-soft: #EAE0C9;
  --clay:      #A65B2E;  /* Kiln Sienna — accent, rationed */
  --clay-soft: #E9DCC4;
  --cream:     #F6F0E1;
  --sky:       #EDE5D2;

  --display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --serif:   "EB Garamond", Georgia, serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow: 0 8px 18px rgba(51,41,31,.14);
  --maxw: 1300px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.5rem; font-weight: 500; }

p { margin: 0 0 1.1em; color: rgba(51,41,31,.82); }

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
/* lowercase calm — the old uppercase treatment is retired */
.uc { text-transform: none; }

.lead { font-size: 1.18rem; color: rgba(51,41,31,.78); }

/* small-caps eyebrow label */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { text-decoration: none; }
.btn-dark { background: var(--ink); color: var(--bg-soft); }
.btn-dark:hover { background: #211a12; }
.btn-text { background: transparent; color: var(--ink); padding: 15px 8px; }
.btn-text:hover { text-decoration: underline; }
.btn-light { background: var(--bg-soft); color: var(--ink); }
/* the page's one ember — rationed to a single call-to-action */
.btn-ember { background: var(--clay); color: #F1EAD9; }
.btn-ember:hover { background: #8F4E27; }

/* quiet text link: small caps over a hairline */
.textlink {
  display: inline-block;
  font-family: var(--sans); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--hairline); padding-bottom: 7px;
}
.textlink:hover { text-decoration: none; color: var(--clay); border-color: var(--clay); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  transition: padding-top .45s cubic-bezier(.2,.7,.2,1);
}
.nav.scrolled { padding-top: 22px; }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: max-width .45s cubic-bezier(.2,.7,.2,1), padding .45s cubic-bezier(.2,.7,.2,1),
              border-radius .45s ease, box-shadow .45s ease, background .45s ease, margin-top .45s ease;
}
/* on scroll the bar condenses into a floating centered pill */
.nav.scrolled .nav-inner {
  max-width: 720px;
  padding: 11px 16px 11px 22px;
  background: rgba(248,244,233,0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 26px; width: auto; display: block; }
.footer .brand-logo { height: 24px; }
.brand span {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links li { display: flex; align-items: center; }
.nav-links a {
  font-family: var(--sans); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); line-height: 1;
}
.nav-links a:hover { color: var(--clay); text-decoration: none; }
.nav-links .ig-link { display: inline-flex; align-items: center; color: var(--ink); }
.nav-links .ig-link svg { width: 20px; height: 20px; display: block; }
.nav-links .ig-link:hover { color: var(--clay); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
/* journal pill — the nav's only colored element; stays visible on mobile */
.nav-side { display: flex; align-items: center; gap: 14px; }
.nav-journal {
  font-family: var(--sans); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--clay); color: #F1EAD9;
  border-radius: 999px; padding: 10px 20px; line-height: 1;
  transition: background 0.25s ease;
}
.nav-journal:hover { background: #8F4E27; color: #F1EAD9; text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 0; }
.hero-top {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 32px 64px;
  display: flex; flex-direction: column; gap: 48px;
}
.hero-title { font-size: clamp(2.4rem, 4.8vw, 4.2rem); max-width: 60%; margin: 0; }
.hero-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
}
.hero-row .lead { max-width: 44ch; margin: 0; flex: 1 1 360px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-media { position: relative; overflow: hidden; }
.hero-media .ph { min-height: 62vh; border-radius: 0; }
.hero-photo {
  min-height: 66vh;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background:
    linear-gradient(rgba(241,234,217,.16), rgba(241,234,217,.16)),
    url('hero.jpg') center / cover no-repeat,
    radial-gradient(120% 100% at 30% 30%, #E2D3B8 0%, transparent 55%),
    radial-gradient(110% 90% at 80% 20%, rgba(166,91,46,.18) 0%, transparent 50%),
    radial-gradient(120% 100% at 70% 90%, rgba(124,121,99,.28) 0%, transparent 55%),
    #F6F0E1;
}

/* ---------- Placeholder blocks ---------- */
.ph {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(51,41,31,0.45);
  font-family: var(--sans);
  font-weight: 500; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 25% 25%, #E2D3B8 0%, transparent 60%),
    radial-gradient(110% 90% at 80% 85%, rgba(124,121,99,.25) 0%, transparent 55%),
    #F6F0E1;
  overflow: hidden;
}
.ph.round { border-radius: 3px; }
.ph .ph-icons { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ph .ph-icons svg { display: block; }
.ph.square { aspect-ratio: 1/1; }
.ph.tall { aspect-ratio: 3/4; }

/* ---------- Section spacing ---------- */
section { padding: 96px 0; }
.sec-head { max-width: 620px; margin-bottom: 12px; }

/* ---------- Pillars ---------- */
.pillars-top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
  margin-bottom: 44px;
}
.pillars-top h2 { max-width: 16ch; margin: 0; }
.social-proof { display: flex; align-items: center; gap: 12px; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--bg-soft); margin-left: -12px;
  background: var(--sage); box-shadow: 0 2px 6px rgba(51,41,31,0.12);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--clay); }
.avatars span:nth-child(3) { background: var(--ink-soft); }
.social-proof small { font-family: var(--sans); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 3px; padding: 36px 32px; }
.pillar .icon { width: 36px; height: 36px; margin-bottom: 46px; color: var(--ink); }
.pillar h3 { margin-bottom: 0.35em; }
.pillar p { margin: 0; font-size: 0.98rem; }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 52px 0 92px; overflow: hidden; }
.marquee {
  background: var(--cream);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.marquee-track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-family: var(--display); font-weight: 400; font-style: italic; font-size: 1.15rem;
  color: var(--ink); white-space: nowrap;
}
.marquee-track .sep { color: var(--clay); font-style: normal; margin: 0 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Deck / product ---------- */
.deck-head { text-align: center; margin-bottom: 56px; }
.deck-head p { max-width: 44ch; margin-left: auto; margin-right: auto; }
.deck-card {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 3px; padding: 30px;
  max-width: 940px; margin: 0 auto 40px;
}
/* sticky stacking — cards gather/collapse as you scroll */
.deck-list .deck-card { position: sticky; }
.deck-list .deck-card:nth-child(1) { top: 100px; }
.deck-list .deck-card:nth-child(2) { top: 120px; }
.deck-list .deck-card:nth-child(3) { top: 140px; }
.deck-list .deck-card:nth-child(4) { top: 160px; }
.deck-card .media { border-radius: 2px; aspect-ratio: 5/4; }
.deck-list .deck-card:nth-child(1) .media { background: var(--sage); }
.deck-list .deck-card:nth-child(2) .media { background: var(--sage-soft); }
.deck-list .deck-card:nth-child(3) .media { background: var(--sky); }
.deck-list .deck-card:nth-child(4) .media { background: var(--cream); }
.deck-card .info h3 { font-size: 1.9rem; margin-bottom: 0.3em; }
.deck-card .info p { margin-bottom: 18px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
  font-family: var(--sans);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}

/* ---------- Method ---------- */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.method-item {
  background: var(--bg-soft); border: 1px solid var(--hairline); border-radius: 3px; padding: 28px 26px;
  display: flex; flex-direction: column;
}
.method-item .no { font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em; color: var(--clay); margin-bottom: 20px; }
.method-item h3 { font-size: 1.35rem; margin-bottom: 12px; line-height: 1.1; }
.method-item p { font-size: 0.95rem; margin: 0 0 18px; }
.fw-tag {
  margin-top: auto; align-self: flex-start;
  font-family: var(--sans);
  background: var(--sage); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Collection badges / coming-soon ---------- */
.badge {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--sans);
  border-radius: 999px; padding: 6px 14px; font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.badge.live { background: var(--ink); color: var(--bg-soft); }
.badge.soon { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.deck-card.soon .media { opacity: 0.55; }
.soon-text { font-style: italic; color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--sage); }
.newsletter .inner { max-width: 620px; margin: 0 auto; text-align: center; }
.news-form {
  display: flex; gap: 10px; margin-top: 28px; background: var(--bg-soft);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 6px 6px 20px;
}
.news-form input {
  flex: 1; border: none; background: transparent; font-family: var(--serif);
  font-size: 1rem; color: var(--ink); outline: none;
}
.news-form input::placeholder { color: var(--ink-soft); }
.news-alt { margin-top: 16px; font-size: 0.92rem; }

/* ---------- Story split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .ph { min-height: 420px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 48px auto 0; }
.faq details { border-top: 1px solid var(--hairline); padding: 24px 4px; }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  font-family: var(--display); font-weight: 500; font-size: 1.3rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--clay); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #F1EAD9; text-align: center; }
.cta-band h2 { color: #F1EAD9; }
.cta-band p { color: rgba(241,234,217,0.72); }
.cta-band .btn-light:hover { background: var(--sage); }

/* ---------- Footer ---------- */
.footer { background: var(--sage-soft); border-top: 1px solid var(--line); padding: 70px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer .brand span { color: var(--ink); }
.footer p { max-width: 34ch; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a {
  font-family: var(--sans); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.footer-note { margin-top: 40px; font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Scroll reveal / entrance ---------- */
.anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.anim .reveal.in { opacity: 1; transform: none; }
.anim .reveal-fade { opacity: 0; transition: opacity .9s cubic-bezier(.2,.7,.2,1); }
.anim .reveal-fade.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .anim .reveal, .anim .reveal.in,
  .anim .reveal-fade, .anim .reveal-fade.in { opacity: 1; transform: none; transition: none; }
}

/* hover polish — quiet shadow only */
.pillar, .method-item, .deck-list .deck-card { transition: box-shadow .3s ease; }
.pillar:hover, .method-item:hover { box-shadow: var(--shadow); }
.deck-list .deck-card:hover { box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  section { padding: 66px 0; }
  .hero-title { max-width: 100%; }
  .pillars { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .news-form { flex-direction: column; border-radius: 22px; padding: 12px; }
  .news-form input { text-align: center; padding: 8px 0; }
  .deck-card { grid-template-columns: 1fr; }
  .deck-list .deck-card { position: static; }
  .deck-card .media { aspect-ratio: 16/10; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .hero-top { align-items: flex-start; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 22px 28px; gap: 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
