/* ===========================================================
   Pyrus — "every story deserves to be told"
   Soft, warm, encouraging. For the reader who is a writer
   who hasn't started yet. Locked to one warm light mood.
   Fraunces (literary voice) + Hanken Grotesk (clean body).
   =========================================================== */

:root {
  color-scheme: light;

  --paper:    #faf7f1;
  --paper-2:  #f3ecdf;
  --card:     #fffdf9;
  --ink:      #2c2720;
  --ink-soft: #5a5247;
  --muted:    #8d8474;
  --rule:     #e9e1d2;
  --pear:     #5f7d36;
  --pear-deep:#4e6a29;
  --pear-soft: rgba(95, 125, 54, 0.10);
  --gold:     rgba(222, 186, 120, 0.22);
  --shadow:   rgba(74, 58, 32, 0.13);
  --shadow-2: rgba(74, 58, 32, 0.20);

  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background:
    radial-gradient(78% 42% at 78% -8%, var(--gold), transparent 62%),
    radial-gradient(60% 38% at 8% 18%, var(--pear-soft), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint warm paper grain */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  opacity: 0.03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--pear-deep); }

/* Shared elements -------------------------------------------------- */
.shell { max-width: 1120px; margin: 0 auto; padding: 0 30px; position: relative; z-index: 1; }
.narrow { max-width: 740px; margin-left: auto; margin-right: auto; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--pear-deep);
  background: var(--pear-soft); border-radius: 999px; padding: 8px 15px;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pear); }

.leafdiv { display: block; margin: 0 auto; width: 26px; height: 26px; opacity: 0.85; }
.leafdiv path { fill: var(--pear); }

/* Masthead --------------------------------------------------------- */
.masthead {
  max-width: 1120px; margin: 0 auto; padding: 24px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; z-index: 3;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 24%; box-shadow: 0 2px 8px var(--shadow); }
.brand b { font-family: var(--serif); font-size: 22px; font-weight: 520; letter-spacing: -0.01em; }
.pill-soon {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink-soft); background: var(--card); border: 1px solid var(--rule);
  border-radius: 999px; padding: 8px 16px; box-shadow: 0 1px 3px var(--shadow);
}

/* Hero ------------------------------------------------------------- */
.hero { text-align: center; padding: clamp(32px, 7vh, 72px) 0 clamp(40px, 7vh, 80px); }
.hero .tag { margin-bottom: 26px; }
.hero h1 {
  font-family: var(--serif); font-weight: 450;
  font-size: clamp(40px, 6.6vw, 82px); line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 auto 24px; max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--pear-deep); }
.hero .lede {
  font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft); line-height: 1.55;
  margin: 0 auto; max-width: 33ch;
}
.hero .soon { margin: 30px 0 0; font-weight: 600; font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Device "stage" --------------------------------------------------- */
.stage { margin: clamp(34px, 6vh, 60px) auto 0; max-width: 340px; text-align: center; }
.stage .device { margin: 0; }

.device { margin: 0; position: relative; display: inline-block; }
.device img, .shot {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 24px 44px var(--shadow));
}

/* Section rhythm --------------------------------------------------- */
section { padding-block: clamp(60px, 10vh, 130px); position: relative; z-index: 1; }
.center { text-align: center; }
.center .tag { margin-bottom: 22px; }
.h2 {
  font-family: var(--serif); font-weight: 460;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px;
}
.h2 em { font-style: italic; color: var(--pear-deep); }
.sub { color: var(--ink-soft); font-size: clamp(18px, 1.9vw, 20px); margin: 0 auto; max-width: 40ch; }

/* Manifesto -------------------------------------------------------- */
.manifesto { text-align: center; }
.manifesto .leafdiv { margin-bottom: 30px; }
.manifesto p {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(23px, 3vw, 34px); line-height: 1.36; letter-spacing: -0.012em;
  color: var(--ink); margin: 0 auto; max-width: 24ch;
}
.manifesto .big { max-width: 26ch; }
.manifesto em { font-style: italic; color: var(--pear-deep); }
.manifesto .sign { font-family: var(--sans); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 34px; }

/* Showcase rows ---------------------------------------------------- */
.row {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.row + .row { margin-top: clamp(70px, 12vh, 140px); }
.figure { display: flex; justify-content: center; margin: clamp(24px, 4vh, 40px) 0; }
.figure .device { max-width: 264px; }
.row h3 {
  font-family: var(--serif); font-weight: 480;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.018em; margin: 0;
}
.row h3 em { font-style: italic; color: var(--pear-deep); }
.row p { font-size: 19px; color: var(--ink-soft); margin: 0 auto; max-width: 38ch; }

/* Emotional banner ------------------------------------------------- */
.banner { text-align: center; }
.banner .leafdiv { margin-bottom: 26px; }
.banner p {
  font-family: var(--serif); font-weight: 440; font-style: italic;
  font-size: clamp(28px, 4.6vw, 56px); line-height: 1.16; letter-spacing: -0.02em;
  margin: 0 auto; max-width: 16ch; color: var(--ink);
}
.banner em { font-style: italic; color: var(--pear-deep); }

/* Closing ---------------------------------------------------------- */
.closing { text-align: center; }
.closing img.mark { width: 64px; height: 64px; border-radius: 22%; box-shadow: 0 12px 30px var(--shadow-2); }
.closing h2 {
  font-family: var(--serif); font-weight: 460;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.025em; margin: 26px 0 16px;
}
.closing h2 em { font-style: italic; color: var(--pear-deep); }
.closing p { color: var(--ink-soft); font-size: 20px; margin: 0 auto; max-width: 26ch; }
.closing .soon {
  display: inline-block; margin-top: 34px; font-family: var(--sans); font-weight: 600;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 11px 22px;
  box-shadow: 0 2px 8px var(--shadow);
}

/* Footer ----------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 40px 24px 52px; text-align: center;
}
.footer .motto { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft); }
.footer .links { display: flex; gap: 15px; align-items: center; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.footer .links a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.footer .links a:hover { color: var(--ink); }
.footer .dot { opacity: 0.5; }

/* Legal pages ------------------------------------------------------ */
.wrap { max-width: 680px; margin: 0 auto; padding: 0 30px; position: relative; z-index: 1; }
.legal { padding: 56px 0 100px; }
.back { display: inline-block; margin-bottom: 34px; color: var(--muted); text-decoration: none; font-family: var(--sans); font-size: 14px; }
.back:hover { color: var(--ink); }
.legal h1 { font-family: var(--serif); font-weight: 470; font-size: clamp(34px, 7vw, 48px); margin: 0 0 8px; letter-spacing: -0.02em; }
.legal .updated { color: var(--muted); font-family: var(--sans); font-size: 12.5px; margin: 0 0 38px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal .summary { font-family: var(--serif); font-size: 23px; line-height: 1.45; margin: 0 0 34px; color: var(--ink); }
.legal h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pear-deep); margin: 42px 0 12px; }
.legal p { margin: 0 0 15px; color: var(--ink-soft); }
.legal a { color: var(--pear-deep); }

/* Motion ----------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: 0.09s; }
[data-reveal].d2 { transition-delay: 0.20s; }
[data-reveal].d3 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .figure .device { max-width: 250px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .shell, .masthead { padding-left: 22px; padding-right: 22px; }
  .pill-soon { display: none; }
}
