/* ============================================================
   Thistle — shared design system
   Oatmeal cream, deep navy. Restrained, exact, inevitable.
   ============================================================ */

:root {
  --cream: #f1e9d8;
  --cream-2: #ece2cd;
  --paper: #fbf8f1;
  --navy: #1c2e52;
  --navy-2: #16264a;
  --ink: #1b2a48;
  --muted: rgba(27, 42, 72, 0.64);
  --muted-strong: rgba(27, 42, 72, 0.82);
  --line: rgba(27, 42, 72, 0.13);
  --line-soft: rgba(27, 42, 72, 0.08);

  --container: 1180px;
  --container-narrow: 760px;
  --header-h: 76px;
  --radius: 18px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.container-narrow {
  width: min(var(--container-narrow), calc(100% - 48px));
  margin: 0 auto;
}

.serif {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* ─────────────────────────  Header  ───────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(241, 233, 216, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--muted-strong);
  padding: 9px 14px;
  border-radius: 10px;
  transition: color 140ms ease, background 140ms ease;
}

.nav a:hover {
  color: var(--navy);
  background: rgba(27, 42, 72, 0.06);
}

.nav a.active { color: var(--navy); }

.nav .cta {
  margin-left: 10px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 11px;
}

.nav .cta:hover {
  background: var(--navy-2);
  color: #fff;
}

/* Keep the CTA legible on its own page, where it also carries .active */
.nav .cta.active { color: var(--cream); }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}

.nav-toggle svg { display: block; }

/* ─────────────────────────  Buttons  ───────────────────────── */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  user-select: none;
}

.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-2); color: #fff; }

.btn-ghost { background: transparent; color: var(--navy); padding: 0 6px; }
.btn-ghost .arrow { transition: transform 200ms var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover { background: #fff; }

.btn-lg { height: 54px; padding: 0 28px; font-size: 1.02rem; }

/* ─────────────────────────  Section scaffolding  ───────────────────────── */
section { position: relative; }

.band { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

/* Inner-page hero (every page except home) */
.page-hero {
  padding: 92px 0 56px;
  border-bottom: 1px solid var(--line);
}

.page-hero.center { text-align: center; }
.page-hero.center .lede { margin-left: auto; margin-right: auto; }

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--navy);
}

.page-hero h1.serif {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.lede {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted-strong);
  max-width: 60ch;
  margin: 24px 0 0;
}

/* ─────────────────────────  Prose (long-form)  ───────────────────────── */
.prose { max-width: 68ch; }

.prose p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.62;
  color: var(--muted-strong);
  margin: 0 0 1.4em;
}

.prose p.lead {
  font-size: 1.35rem;
  color: var(--ink);
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy);
  margin: 2em 0 0.6em;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.8em 0 0.5em;
}

.prose .big {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--navy);
  margin: 1.4em 0;
}

.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ─────────────────────────  Feature list (product)  ───────────────────────── */
.feature-list {
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.feature-row h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.feature-row p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted-strong);
}

.feature-row .num {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─────────────────────────  Info / trust cards  ───────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-grid.two { grid-template-columns: repeat(2, 1fr); }

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
}

.info-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted-strong);
}

.info-card a.more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
.info-card a.more:hover { text-decoration: underline; }

/* Declarative statement list (philosophy / home unit) */
.statement-list { border-top: 1px solid var(--line); }
.statement-list div {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--navy);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.statement-list div span { color: var(--muted); }

/* ─────────────────────────  Field notes index  ───────────────────────── */
.notes-list { border-top: 1px solid var(--line); }

.note-row {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 32px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background 140ms ease;
}

.note-row:hover { background: var(--paper); }

.note-row .cat {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.note-row h3 {
  margin: 0 0 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.note-row p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted-strong);
  max-width: 56ch;
}

.note-row .date {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: right;
}

/* ─────────────────────────  Access form  ───────────────────────── */
.form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.field label .opt { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28, 46, 82, 0.12);
}

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status {
  margin: 18px 0 0;
  font-size: 1rem;
  font-weight: 500;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #9b3434; }

.form-success {
  text-align: center;
  padding: 24px 0;
}
.form-success h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0 0 12px;
}
.form-success p { color: var(--muted-strong); font-size: 1.1rem; margin: 0; }

/* ─────────────────────────  Card shots / floating  ───────────────────────── */
.card-shot {
  border-radius: 16px;
  box-shadow:
    0 1px 1px rgba(27, 42, 72, 0.04),
    0 18px 44px -18px rgba(27, 42, 72, 0.28);
  width: 100%;
  height: auto;
}

/* ─────────────────────────  CTA band  ───────────────────────── */
.cta-band {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 104px 0;
}

.cta-band .flower {
  width: 52px;
  margin: 0 auto 28px;
  opacity: 0.9;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 18px;
  color: #fff;
}

.cta-band p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(241, 233, 216, 0.82);
  max-width: 48ch;
  margin: 0 auto 34px;
}

/* ─────────────────────────  Footer  ───────────────────────── */
.site-footer {
  background: var(--navy-2);
  color: rgba(241, 233, 216, 0.78);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(241, 233, 216, 0.14);
}

.footer-brand img { width: 44px; margin-bottom: 18px; }

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 30ch;
  margin: 0;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(241, 233, 216, 0.55);
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 0.96rem;
  color: rgba(241, 233, 216, 0.82);
  padding: 6px 0;
  transition: color 140ms ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(241, 233, 216, 0.55);
}

/* ─────────────────────────  Reveal animation  ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.float-card {
  opacity: 0;
  transform: translateY(64px) scale(0.94) rotate(var(--rot, -3deg));
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal.in,
.float-card.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .float-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ─────────────────────────  Responsive (shared)  ───────────────────────── */
@media (max-width: 920px) {
  .info-grid, .info-grid.two { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 10px; }
  .note-row { grid-template-columns: 1fr; gap: 8px; }
  .note-row .date { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
  }
  .nav.open a { padding: 13px 12px; font-size: 1.05rem; }
  .nav.open .cta { margin: 8px 0 0; text-align: center; }
  .band { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .container, .container-narrow { width: calc(100% - 36px); }
}
