/* Mood Reader — locked design tokens
   Warm cream, deep forest green, sage. Sharp 0.5pt rules.
   No shadows, no glows, no blurs, no material effects. */

:root {
  --cream: #F4EEDF;
  --cream-2: #EDE5D0;
  --forest: #1F3A2E;
  --forest-ink: #142418;
  --sage: #8AA898;
  --sage-2: #B6C6B6;
  --rule: #1F3A2E;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --stack-sm: 0.75rem;
  --stack: 1.5rem;
  --stack-lg: 3rem;
  --stack-xl: 6rem;

  --rule-width: 0.5px;
}

* { box-sizing: border-box; }

html {
  background: var(--cream);
  color: var(--forest-ink);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  background: var(--cream);
  color: var(--forest-ink);
}

a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}
a:hover { color: var(--forest-ink); }
a:focus-visible {
  outline: 0.5px solid var(--forest);
  outline-offset: 3px;
}

::selection {
  background: var(--forest);
  color: var(--cream);
}

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

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

.site-header {
  border-bottom: var(--rule-width) solid var(--rule);
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--cream);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--forest);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.005em;
}

.logo svg { color: var(--forest); }

.wordmark {
  font-size: 1.15rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Page container ---------- */

.page {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 9vw, 7rem);
  border-bottom: var(--rule-width) solid var(--rule);
}

.hero-inner {
  max-width: 52rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 8vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  color: var(--forest-ink);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}

.lede {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  max-width: 40rem;
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  color: var(--forest-ink);
}

.hero-meta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--forest);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: baseline;
}
.hero-meta .dot { opacity: 0.6; }

/* ---------- Features ---------- */

.features {
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-bottom: var(--rule-width) solid var(--rule);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
  color: var(--forest-ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature {
  padding: 0 clamp(1rem, 2vw, 1.75rem);
  border-left: var(--rule-width) solid var(--rule);
}
.feature:first-child { padding-left: 0; border-left: none; }
.feature:last-child { padding-right: 0; }

.feature-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--forest);
  margin: 0 0 1rem;
  opacity: 0.85;
}

.feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--forest-ink);
  letter-spacing: -0.002em;
}

.feature p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: var(--forest-ink);
  max-width: 30ch;
}

/* ---------- Quiet band ---------- */

.quiet {
  background: var(--forest);
  color: var(--cream);
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  margin: 0 calc(var(--gutter) * -1);
  border-top: var(--rule-width) solid var(--rule);
  border-bottom: var(--rule-width) solid var(--rule);
}

.quiet-inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: 52rem;
}

.quiet-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
  color: var(--cream);
}

.quiet p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--cream);
  max-width: 42rem;
  margin: 0 0 1rem;
}

.quiet a {
  color: var(--cream);
  text-decoration-color: var(--sage);
}
.quiet a:hover { color: var(--sage-2); }
.quiet ::selection { background: var(--cream); color: var(--forest); }

/* ---------- Waitlist ---------- */

.waitlist {
  padding: clamp(4rem, 8vw, 6rem) 0;
  max-width: 52rem;
}
.waitlist p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-width: 40rem;
}

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

.site-footer {
  border-top: var(--rule-width) solid var(--rule);
  padding: 2rem var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--forest);
  letter-spacing: 0.02em;
}
.footer-meta { margin: 0; }
.site-footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Document pages (privacy, support) ---------- */

.doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) clamp(5rem, 10vw, 8rem);
}

.doc-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 1.25rem;
}

.doc h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 1.5rem;
  color: var(--forest-ink);
}

.doc h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: var(--rule-width) solid var(--rule);
  color: var(--forest-ink);
}
.doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 2rem; }

.doc h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
  color: var(--forest-ink);
}

.doc p, .doc li {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--forest-ink);
}
.doc p { margin: 0 0 1.1rem; }

.doc ul, .doc ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.doc li { margin-bottom: 0.5rem; }
.doc li::marker { color: var(--forest); }

.doc strong { font-weight: 600; color: var(--forest-ink); }
.doc em { font-style: italic; }

.doc hr {
  border: none;
  border-top: var(--rule-width) solid var(--rule);
  margin: 2.5rem 0;
}

/* Suppress hr right before an h2 (h2 already has a top border) */
.doc hr + h2 { border-top: none; padding-top: 0; margin-top: 0; }
.doc hr:has(+ h2) { display: none; }

.doc-meta {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--forest);
  margin: 0 0 3rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--rule-width) solid var(--rule);
}
.doc-meta > * + * { margin-top: 0.25rem; }
.doc-meta div { margin: 0; }

.doc-closing {
  font-style: italic;
  color: var(--forest);
  font-size: 0.95rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: var(--rule-width) solid var(--rule);
}

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

@media (max-width: 780px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature {
    padding: 1.75rem 0;
    border-left: none;
    border-top: var(--rule-width) solid var(--rule);
  }
  .feature:first-child { padding-top: 0; border-top: none; }
  .feature:last-child { padding-bottom: 0; }

  .site-header { padding: 1rem var(--gutter); }
  .site-nav { gap: 1.25rem; font-size: 0.85rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-meta { flex-direction: column; gap: 0.35rem; align-items: flex-start; }
  .hero-meta .dot { display: none; }
}
