/* Vellum — vellum.lamonade.xyz
   Warm paper, gold nib, quiet type. Palette lifted from the app's own surfaces
   (PaperTone .warm) so the site and the product read as one thing. */

:root {
  --paper:       #F2E7D0;
  --paper-hi:    #F7EEDC;
  --paper-lo:    #E9DABB;
  --sheet:       #FAF5EA;
  --ink:         #23201C;
  --ink-soft:    #5F584E;
  --ink-faint:   #8B8175;
  --gold:        #A9762A;
  --gold-lift:   #C4913F;
  --rule:        rgba(35, 32, 28, 0.12);

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;

  --edge: clamp(20px, 5vw, 64px);
  --measure: 1140px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Viewport-sized paper vignette. A fixed layer instead of
   background-attachment: fixed, which iOS Safari doesn't support. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--paper-hi) 0%, var(--paper) 46%, var(--paper-lo) 100%);
  pointer-events: none;
}

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

.wrap { max-width: var(--measure); margin: 0 auto; padding-inline: var(--edge); }

/* ───────────── nav ───────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(242, 231, 208, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.stuck { border-bottom-color: var(--rule); }
.nav-inner {
  max-width: var(--measure); margin: 0 auto;
  padding: 14px var(--edge);
  display: flex; align-items: center; gap: 20px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--display);
  font-size: 21px; letter-spacing: 0.01em;
}
.wordmark img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav-links a {
  text-decoration: none; font-size: 14px; color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* The one always-on-screen CTA: a gold pill in the sticky nav. */
.nav-links a.nav-contribute {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--gold); color: var(--sheet);
  font-weight: 600; font-size: 13.5px;
  box-shadow: 0 6px 16px -10px rgba(169, 118, 42, 0.9);
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-links a.nav-contribute:hover {
  background: var(--gold-lift); color: var(--sheet); transform: translateY(-1px);
}
.nav-contribute span { font-size: 12px; line-height: 1; }

/* ───────────── buttons ───────────── */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  background: var(--ink); color: var(--sheet);
  border: 1px solid var(--ink);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
  box-shadow: 0 8px 22px -14px rgba(35, 32, 28, 0.85);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -16px rgba(35, 32, 28, 0.9); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: rgba(35, 32, 28, 0.22); box-shadow: none;
}
.btn-ghost:hover { background: rgba(35, 32, 28, 0.05); box-shadow: none; }
.btn svg { width: 17px; height: 17px; }

/* ───────────── hero ───────────── */

.hero { padding: clamp(56px, 11vh, 118px) 0 clamp(30px, 6vh, 62px); text-align: center; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 22px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 7.2vw, 78px);
  line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 auto 22px; max-width: 15ch; font-weight: 700;
}
.hero p.lede {
  font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft);
  max-width: 40ch; margin: 0 auto 34px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-note { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-faint); }

.hero-shot { margin: clamp(30px, 6vh, 66px) auto 0; max-width: 760px; }
.hero-shot img {
  border-radius: 22px;
  box-shadow: 0 40px 90px -50px rgba(35, 32, 28, 0.75), 0 2px 10px -6px rgba(35, 32, 28, 0.3);
}

/* ───────────── feature rows ───────────── */

.feature {
  display: grid; align-items: center;
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(48px, 9vh, 96px) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 60px; /* keep anchored headings clear of the sticky nav */
}
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip .feature-copy { order: 2; }
}
.feature-copy h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.14;
  letter-spacing: -0.015em; margin: 0 0 16px; font-weight: 700;
}
.feature-copy p { margin: 0 0 14px; color: var(--ink-soft); font-size: 16.5px; max-width: 46ch; }
.feature-copy p:last-child { margin-bottom: 0; }
.feature-shot img {
  border-radius: 18px;
  box-shadow: 0 34px 70px -46px rgba(35, 32, 28, 0.7), 0 2px 8px -5px rgba(35, 32, 28, 0.25);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.tags li {
  font-size: 12.5px; color: var(--ink-soft);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: rgba(250, 245, 234, 0.55);
}

/* ───────────── free band ───────────── */

.band {
  border-top: 1px solid var(--rule);
  padding: clamp(52px, 10vh, 104px) 0; text-align: center;
}
.band h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1;
  letter-spacing: -0.02em; margin: 0 auto 18px; max-width: 18ch;
}
.band p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 12px; font-size: 17px; }

.reqs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 30px 0 0; padding: 0; list-style: none;
}
.reqs li {
  font-size: 13px; color: var(--ink-soft);
  padding: 7px 15px; border-radius: 999px;
  background: rgba(250, 245, 234, 0.7); border: 1px solid var(--rule);
}

.band-cta { margin-top: 32px; }
.band .contrib-link { color: var(--gold); text-underline-offset: 3px; }
.band .contrib-link:hover { color: var(--gold-lift); }
.btn .heart { color: var(--gold); margin-right: 2px; }

/* ───────────── footer ───────────── */

.foot { border-top: 1px solid var(--rule); padding: 40px 0 56px; }
.foot-inner {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  align-items: center; justify-content: space-between;
}
.foot a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot small { color: var(--ink-faint); font-size: 13px; }

/* ───────────── entrance ───────────── */

/* Hidden-until-revealed only when JS is running (html.js is set inline in <head>),
   so content is never lost to a missing observer or disabled scripts. */
.js .rise { opacity: 0; transform: translateY(18px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; }
  .js .rise.in { transition: none; }
}
