/* Landing page. Parchment, iron-gall ink, deep sage. The configuration tool is not on this page. */
:root {
  --bg: #F4EEDF;
  --paper: #FAF6EC;
  --ink: #2B2622;
  --muted: #5C534B;
  --sage: #4F6B53;
  --sage-dark: #3D5541;
  --line: #B9A88A;
  --letter: #F6F0E1;
  --letter-ink: #2B2118;
  --letter-muted: #5E4C38;
  --letter-link: #6B3F1D;
  --serif: "EB Garamond", Georgia, "Palatino Linotype", Palatino, serif;
  --display: "IM Fell English", Georgia, "Palatino Linotype", Palatino, serif;
  --small-caps: "IM Fell English SC", "IM Fell English", Georgia, serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("/landing/paper.svg");
  background-size: 160px 160px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--sage-dark); }
:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--sage);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  z-index: 40;
}
.skip:focus { transform: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 auto;
  max-width: 72rem;
  padding: 0.85rem 1.25rem;
  background: rgba(244, 238, 223, 0.94);
  border-bottom: 1px solid transparent;
}
main { display: grid; gap: 0; }
.copy {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.wide { max-width: 75rem; margin: 0 auto; padding: 0 1.25rem; }
/* The hemispheres plate is the only figure that sits above a text column.
   2rem matches the hero plate and the gap under the section headings. */
.wide + .copy { margin-top: 2rem; }
.hero {
  padding: 0 0 4rem;
  background-color: var(--bg);
  background-image: none;
}
/* 1200×675 hero. Full width until that width would make it taller than 80% of
   the viewport, then only as wide as that ceiling, centred. vh is the
   fallback; svh then dvh replace it where the browser knows them. The
   picture is never forced to 80vh: a narrow width keeps the shorter frame. */
.hero .plate-bleed {
  width: 100%;
  width: min(100%, calc(80vh * 1200 / 675));
  width: min(100%, calc(80svh * 1200 / 675));
  width: min(100%, calc(80dvh * 1200 / 675));
  margin: 0 auto 2rem;
}
.hero .plate-bleed img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  max-height: 80svh;
  max-height: 80dvh;
  object-fit: contain;
  object-position: center;
}
.hero h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.45rem; margin: 0.85rem 0 0.35rem; }
.subhead { font-size: 1.35rem; margin: 0 0 1.4rem; }
.kicker {
  font-family: var(--small-caps);
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  background: var(--sage);
  color: var(--bg);
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--small-caps);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.cta:hover { background: var(--sage-dark); color: var(--bg); }
.reassure, .member { color: var(--muted); font-size: 1.05rem; }
.reassure { margin: 0.9rem 0 0.2rem; }
.member { margin: 0.2rem 0 0; }
.band { padding: 6rem 0; }
.moments {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  max-width: 75rem;
  margin: 2rem auto 0;
  padding: 0 1.25rem;
}
.moment p { margin: 0.7rem 0 0; font-size: 1.05rem; }
.moment-name { font-family: var(--display); }
.moment-line { color: var(--muted); }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 75rem;
  margin: 2rem auto 0;
  padding: 0 1.25rem;
  counter-reset: step;
}
.steps li { margin: 0; }
.steps h3::before {
  counter-increment: step;
  content: counter(step) ". ";
  font-family: var(--small-caps);
  color: var(--muted);
}
.steps p { margin: 0; color: var(--ink); }
/* One plate for every engraving below the hero. The matte matches the opaque
   WebP ground (#F5EEE1, the lossy stand-in for #F4EEDF) so a flattened file
   and a transparent file meet the same panel. */
.plate {
  margin: 0;
  background: #F5EEE1;
  border: 1px solid var(--line);
  padding: 0.65rem;
}
.plate img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #F5EEE1;
}
.plate img[hidden] { display: none; }
.plate-bleed,
.letter .plate,
.site-foot .plate {
  border: 0;
  padding: 0;
  background: transparent;
}
.plate-bleed img,
.letter .plate img,
.site-foot .plate img { background: transparent; }
.letter {
  max-width: 38rem;
  margin: 2rem auto 0;
  background: var(--letter);
  color: var(--letter-ink);
  border: 1px solid #D9CBAA;
  padding: 2.2rem 1.4rem 1.6rem;
  font-size: 1.15rem;
}
.letter a { color: var(--letter-link); }
.letter .plate {
  margin: 0.4rem 0 0.2rem;
  border-top: 1px solid #D9CBAA;
  border-bottom: 1px solid #D9CBAA;
  padding: 0.35rem 0;
}
.letter-kicker, .letter-label, .letter-subject {
  font-family: var(--small-caps);
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--letter-muted);
  margin: 0 0 0.8rem;
}
.letter-kicker a { color: var(--letter-muted); text-decoration: none; }
.letter-kicker a:hover { text-decoration: underline; }
.letter-subject { margin-bottom: 1.2rem; }
.letter-dear { font-size: 1.2rem; margin: 0 0 0.7rem; }
.letter-title {
  font-family: var(--display);
  font-size: 1.85rem;
  line-height: 1.25;
  text-align: left;
  text-wrap: balance;
  margin: 0 0 0.8rem;
}
.letter blockquote { margin: 0.4rem 0 1.2rem; text-align: center; }
.letter blockquote p { font-style: italic; font-size: 1.3rem; margin: 0 0 0.4rem; }
.letter blockquote footer, .letter-byline { color: var(--letter-muted); font-size: 0.95rem; letter-spacing: 0.04em; }
.letter-poem { font-style: italic; margin: 0 0 0.6rem 1.4rem; }
.letter-byline { margin: 0 0 1.2rem 1.4rem; }
.letter-astro {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  text-wrap: balance;
  margin: 0 0 0.6rem;
}
.letter-ornament { text-align: center; color: #9C8664; font-size: 1.6rem; margin: 0.8rem 0; }
.letter-share, .letter-signoff { text-align: center; color: var(--letter-muted); font-size: 0.95rem; }
.points { margin: 0 0 1.2rem; padding-left: 1.1rem; }
.points li { margin: 0.35rem 0; }
.season-line { font-family: var(--display); font-size: 1.45rem; margin: 0 0 1.2rem; }
.close { text-align: left; }
.site-foot {
  padding: 1rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
}
.site-foot .plate {
  width: min(280px, 70%);
  margin: 0 auto 1rem;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; }
.site-foot a { color: var(--muted); }
/* Wide screens. Below 1440px the 40rem text column stays as it is.
   From there, type and the column grow with the viewport, in CSS pixels,
   so a 4K display at 200% (1920 CSS px) uses the 1920 step. Do not add a
   resolution query. At 1440px, body copy stays near 60ch. From 1920px,
   and again from 2560px, that measure grows with the viewport. */
@media (min-width: 1440px) {
  body { font-size: clamp(1.2rem, 0.7rem + 0.55vw, 2.05rem); }
  .site-header,
  .moments,
  .steps,
  .wide { max-width: clamp(75rem, 28rem + 32vw, 120rem); }
  .site-wordmark { font-size: clamp(1.35rem, 1rem + 0.4vw, 1.8rem); }
  .site-header .nav-pill,
  .site-header .account-nav > a { font-size: clamp(14px, 12px + 0.2vw, 18px); }
  .copy { max-width: clamp(50rem, 18rem + 36vw, 96rem); }
  .copy > p,
  .points { max-width: 60ch; }
  .wide + .copy { margin-top: clamp(2rem, 1.15rem + 1.1vw, 4rem); }
  .hero { padding-bottom: clamp(4rem, 3rem + 2vw, 6rem); }
  .hero h1 { font-size: clamp(3.6rem, 1.4rem + 2.4vw, 7.2rem); }
  h2 { font-size: clamp(2.4rem, 0.95rem + 1.6vw, 4.6rem); }
  h3 { font-size: clamp(1.45rem, 1.05rem + 0.4vw, 2rem); }
  .subhead {
    font-size: clamp(1.35rem, 0.85rem + 0.55vw, 2.05rem);
    text-wrap: balance;
  }
  .kicker { font-size: clamp(1rem, 0.78rem + 0.25vw, 1.3rem); }
  .cta { font-size: clamp(1.05rem, 0.82rem + 0.26vw, 1.35rem); }
  .reassure,
  .member { font-size: clamp(1.05rem, 0.72rem + 0.35vw, 1.3rem); }
  .moment p { font-size: clamp(1.05rem, 0.75rem + 0.32vw, 1.4rem); }
  .season-line { font-size: clamp(1.45rem, 1rem + 0.5vw, 2.15rem); }
  .band { padding: clamp(6rem, 4rem + 3vw, 8rem) 0; }
  .letter {
    max-width: clamp(38rem, 24rem + 8vw, 44rem);
    font-size: clamp(1.15rem, 0.82rem + 0.28vw, 1.4rem);
  }
  .letter-title { font-size: clamp(1.85rem, 1.15rem + 0.75vw, 2.6rem); }
  .letter-astro { font-size: clamp(1.4rem, 0.95rem + 0.45vw, 1.9rem); }
  .letter blockquote p { font-size: clamp(1.3rem, 0.9rem + 0.4vw, 1.7rem); }
}
/* Large monitors. 1440px keeps the 60ch measure and the 75rem rows.
   These steps raise the cap so a short lead is not stuck on a laptop line. */
@media (min-width: 1920px) {
  .site-header,
  .moments,
  .steps,
  .wide { max-width: clamp(78rem, 2rem + 78vw, 150rem); }
  .copy > p,
  .points {
    max-width: clamp(68ch, 4rem + 50vw, 100ch);
    text-wrap: pretty;
  }
  .copy > p.subhead,
  .copy > p.season-line { text-wrap: balance; }
  .moment p { text-wrap: balance; }
  .steps p,
  .letter p { text-wrap: pretty; }
  .letter { max-width: clamp(42rem, 8rem + 30vw, 62rem); }
}
@media (min-width: 2560px) {
  .site-header,
  .moments,
  .steps,
  .wide { max-width: clamp(120rem, -4rem + 86vw, 170rem); }
  .copy > p,
  .points {
    max-width: clamp(84ch, 2rem + 48vw, 120ch);
    text-wrap: pretty;
  }
  .copy > p.subhead,
  .copy > p.season-line { text-wrap: balance; }
  .letter { max-width: clamp(56rem, 4rem + 34vw, 64rem); }
}
/* Large engravings. The moment row, the three steps, and the hemispheres
   figure use the wide clamps above, then this scale. It is 1 at 1920 CSS
   px and 0.75 at 3840, and it stays at 0.75 past that. Padding and the
   grid gaps take the same factor, so each picture (and the caption in
   its cell) keeps its ratio and stays centred with the row. The 1px
   plate rule does not scale. The header, the hero, and the sample email
   are not in this block. 1440px and phones never enter it.
   The footer flourish is a fixed 280px, so the same factor is its width. */
@media (min-width: 1920px) {
  body {
    --engraving-scale: calc(1 - min(0.25, (100vw - 1920px) / 7680px));
  }
  .moments,
  .steps,
  .wide {
    max-width: calc(clamp(78rem, 2rem + 78vw, 150rem) * var(--engraving-scale));
    padding-inline: calc(1.25rem * var(--engraving-scale));
  }
  .moments {
    column-gap: calc(1.25rem * var(--engraving-scale));
    row-gap: calc(1.5rem * var(--engraving-scale));
  }
  .steps { gap: calc(1.75rem * var(--engraving-scale)); }
  .moments .plate,
  .steps .plate,
  .wide > .plate { padding: calc(0.65rem * var(--engraving-scale)); }
  .site-foot .plate {
    width: calc(min(280px, 70%) * var(--engraving-scale));
  }
}
@media (min-width: 2560px) {
  .moments,
  .steps,
  .wide {
    max-width: calc(clamp(120rem, -4rem + 86vw, 170rem) * var(--engraving-scale));
  }
}
@media (max-width: 800px) {
  .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .band { padding: 4rem 0; }
  .hero { padding-bottom: 2.5rem; }
  body { font-size: 1.125rem; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 700ms ease, transform 700ms ease;
  }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
}
