/* ===========================================================
   Novalis — "Almanac" variant
   Warm editorial print: ivory paper, ink, moss, ochre.
   =========================================================== */

:root {
  --paper: #FAF6EE;
  --paper-alt: #F1E9D8;
  --ink: #221E19;
  --ink-soft: #4A443C;
  --moss: #2F4B3E;
  --moss-deep: #1D2F27;
  --ochre: #C0762F;
  --ochre-ink: #8A5220;
  --rule: #D9CEB6;
  --rule-strong: #B7A97F;

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-ui: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;

  --container-w: 1120px;
  --edge: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-display: swap;
}

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

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

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--moss);
  color: var(--paper);
  padding: 0.75em 1.25em;
  z-index: 100;
  font-family: var(--font-ui);
}
.skip-link:focus {
  left: var(--edge);
  top: 0.75rem;
}

:focus-visible {
  outline: 2px solid var(--ochre-ink);
  outline-offset: 3px;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  max-width: var(--container-w);
  margin: 0 auto;
}

/* ---------- Kickers / eyebrows ---------- */

.kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-ink);
  margin: 0 0 0.9rem;
}

/* ---------- Masthead / header ---------- */

.masthead {
  background: var(--paper);
  padding-top: 1.1rem;
}

.masthead-top {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--edge);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.masthead-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}

.masthead-eyebrow--right { color: var(--moss); }

.masthead-rule {
  border-top: 3px double var(--rule-strong);
  max-width: var(--container-w);
  margin: 0 auto;
}

.nav {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 1rem var(--edge) 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover { color: var(--moss); border-color: var(--moss); }

.nav-links .nav-cta {
  color: var(--paper);
  background: var(--moss);
  padding: 0.55em 1.1em;
  border-radius: 2px;
  border-bottom: none;
}

.nav-links .nav-cta:hover { background: var(--moss-deep); color: var(--paper); }

.nav-toggle {
  display: none;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.5em 1em;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85em 1.7em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--moss);
  color: var(--paper);
}
.btn-primary:hover { background: var(--moss-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--moss); color: var(--moss); }

.btn:active { transform: translateY(1px); }

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 8rem) clamp(3.5rem, 7vw, 6rem);
}

.hero-orbital {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  opacity: 0.1;
  pointer-events: none;
  width: clamp(320px, 42vw, 620px);
  height: auto;
}

.hero-inner { position: relative; z-index: 1; }

.epigraph {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.epigraph em { font-style: italic; color: var(--moss); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 2vw + 2rem, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  max-width: 18ch;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.4vw + 1rem, 1.35rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 2.3rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.4vw + 1.5rem, 3rem);
  line-height: 1.15;
  margin: 0 0 1.8rem;
  max-width: 18ch;
}

.section p { max-width: 62ch; }
.section > .container > p { color: var(--ink-soft); }

.lede {
  font-size: 1.2rem;
  color: var(--ink) !important;
}

.drop-cap::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 4.2rem;
  line-height: 0.8;
  float: left;
  padding-right: 0.12em;
  padding-top: 0.08em;
  color: var(--moss);
}

/* ---------- Three Fields ---------- */

.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 2.5rem;
}

.field-icon { margin-bottom: 1.1rem; }

.field h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
}

.field p {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 40ch;
}

.meets-you-list {
  list-style: disc;
  margin: 0 0 1.6rem;
  padding-left: 1.3rem;
  max-width: 62ch;
}

.meets-you-list li {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.meets-you-list li::marker {
  color: var(--ochre-ink);
}

/* ---------- Timeline / almanac entries ---------- */

.entries {
  list-style: none;
  margin: 2.5rem 0 3.5rem;
  padding: 0;
  border-left: 1px solid var(--rule-strong);
}

.entry {
  position: relative;
  padding: 0 0 2.6rem 2.2rem;
}

.entry:last-child { padding-bottom: 0; }

.entry::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.4em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ochre);
}

.entry-date {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 0.6rem;
}

.entry-lead {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}
.entry-lead em { font-style: italic; }

.entry p:not(.entry-date):not(.entry-lead) {
  color: var(--ink-soft);
  max-width: 58ch;
}

.pull-quote {
  margin: 0;
  padding: 2.2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 1vw + 1.1rem, 1.8rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 44ch;
  margin: 0 auto;
}

/* ---------- Credo / thesis ---------- */

.credo { padding-block: clamp(4rem, 9vw, 7rem); }

.credo .credo-inner { max-width: 760px; }   /* narrower than default for an intimate measure */

.credo-mark {
  display: block;
  width: 34px;
  height: 0;
  border-top: 2px solid var(--ochre);
  margin-bottom: 1.9rem;
}

/* body paragraphs — beats .section > .container > p (0,2,1) */
.credo .container > p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 1.3rem;
}

/* higher specificity than the rule above so the lead's own size/color hold */
.credo .container > p.credo-lead {
  font-weight: 500;
  font-size: clamp(1.8rem, 1.4vw + 1.4rem, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--moss);
  max-width: 20ch;
  margin: 0 0 2rem;
}

.credo-turn { color: var(--ink) !important; }   /* pivot paragraph reads a shade darker */
.credo-turn strong { font-weight: 600; color: var(--ink); }

.credo-close { font-size: 1.2rem; margin-bottom: 0 !important; }
.credo-close em { font-style: italic; color: var(--ochre-ink); }

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

.waitlist { background: var(--paper-alt); }

.waitlist-inner { max-width: 640px; }

.waitlist-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.waitlist-form[hidden] { display: none; }

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-row label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field-row input {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 0.55em 0.1em;
}

.field-row input:focus {
  outline: none;
  border-bottom: 2px solid var(--moss);
}

.form-error {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: #9C3B1E;
  margin: 0;
}

.waitlist-form .btn { align-self: flex-start; margin-top: 0.5rem; }

.success-state {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.success-state[hidden] { display: none; }

.success-state p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--moss);
  max-width: 32ch;
}

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

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 3rem;
}

.footer-inner { text-align: center; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.footer-brand .wordmark { color: var(--paper); font-size: 1.15rem; }

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--paper);
  margin: 0 0 0.9rem;
}

.footer-fine {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #C9C0AF;
  margin: 0;
}
.footer-fine em { font-style: italic; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Logo pulse (respects reduced motion via JS removal) ---------- */

@keyframes logo-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}
.logo-pulse-dot { animation: logo-pulse 3.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .logo-pulse-dot { animation: none; }
}

/* ---------- Success stamp impact ---------- */

@keyframes stamp-impact {
  0% { transform: scale(1.6) rotate(-10deg); opacity: 0; }
  60% { transform: scale(0.94) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.success-state.is-visible .stamp {
  animation: stamp-impact 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .success-state.is-visible .stamp { animation: none; }
}

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

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 1.25rem var(--edge);
    gap: 1.1rem;
    display: none;
    z-index: 20;
  }

  .nav-links.is-open { display: flex; }

  .nav-links .nav-cta { margin-top: 0.4rem; }

  .hero-orbital { opacity: 0.07; right: -20%; }

  .entries { margin-left: 0.2rem; }
}

@media (max-width: 480px) {
  .success-state { flex-direction: column; text-align: center; }
  .drop-cap::first-letter { font-size: 3.2rem; }
}
