/* ==========================================================================
   Quiet Launch — a Templatorium template
   Re-theme contract: five colors + three font stacks below — change them
   and the whole page follows. Full guide: docs/README.md
   ========================================================================== */

:root {
  --paper: #fbfaf7;   /* page ground */
  --ink: #23231f;     /* text · 15.1:1 on paper */
  --moss: #3f5d4c;    /* the one accent · 7.0:1 on paper */
  --mute: #6d6a60;    /* secondary text · 5.2:1 on paper */
  --line: #e5e2d8;    /* hairlines */

  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* The display stack above uses system serifs — zero files, but it renders
   slightly differently per OS. For a pixel-identical hero everywhere, drop a
   libre old-style serif (e.g. Lora) into fonts/ and uncomment:

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root { --font-display: "Lora", Georgia, serif; }
*/

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1.0625rem;
}

:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
/* moss fails 3:1 on the dark capture ground — use the light tint there */
.capture :focus-visible { outline-color: #a8c3b4; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- mono micro-labels: the editorial detail ------------------------------ */
.label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

/* --- masthead -------------------------------------------------------------- */
.masthead {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem clamp(1.25rem, 6vw, 5rem);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em;
}
.dot {
  display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.35em;
  border-radius: 50%; background: var(--moss);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* --- hero: intentionally off-center, oversized lowercase serif.
       At wide viewports the right field is counterweighted by a giant
       ghosted ellipsis — the wordmark, drawn at architectural scale. ------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 10vh, 7rem) clamp(1.25rem, 6vw, 5rem) clamp(3rem, 8vh, 5rem);
}
.hero > :not(.hero-dots) { max-width: 58rem; }
.hero .lede { max-width: 34rem; } /* keep the lede's measure after the wrapper change */
.hero-dots { display: none; }
@media (min-width: 1200px) {
  .hero-dots {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 2.5vw, 3rem);
    position: absolute;
    right: clamp(2rem, 6vw, 7rem);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .hero-dots i {
    width: clamp(6rem, 9vw, 10rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--moss);
  }
  .hero-dots i:nth-child(1) { opacity: 0.07; }
  .hero-dots i:nth-child(2) { opacity: 0.12; }
  .hero-dots i:nth-child(3) { opacity: 0.2; }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 1.25rem 0 1.5rem;
  overflow-wrap: break-word;
}
.hero h1 em { color: var(--moss); }
.lede { max-width: 34rem; font-size: 1.1875rem; color: var(--mute); }

.button {
  display: inline-block; margin-top: 2rem;
  background: var(--moss); color: #fff;
  font-weight: 600; text-decoration: none;
  padding: 0.8rem 1.6rem; border-radius: 4px;
  transition: transform 140ms ease;
}
.button:hover { transform: translateY(-2px); }

/* --- manifesto: the big left shift IS the asymmetry ------------------------ */
.manifesto {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.25rem, 6vw, 5rem);
  padding-left: clamp(2.5rem, 18vw, 16rem); /* deliberate off-grid shift */
}
.manifesto-body { margin-top: 1.5rem; }
.manifesto-figure { margin: 2rem 0 0; max-width: 36rem; }
.manifesto-figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 4px;
}
.manifesto-body p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.45;
  max-width: 36rem;
}
.manifesto-body .mut {
  font-family: var(--font-body); font-size: 1rem;
  color: var(--mute); margin-top: 1.25rem;
}

/* --- features: numbered rows, deliberately unequal ------------------------- */
.features {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.25rem, 6vw, 5rem);
}
.feature-list {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; gap: 2.5rem;
  max-width: 46rem;
}
.feature-list li { display: flex; gap: 1.25rem; align-items: baseline; }
/* rhythm break: committed with a second cue (rule + wider measure), so the
   indent reads as intent, not misalignment */
.feature-wide {
  padding-left: clamp(1.5rem, 8vw, 6rem);
  border-left: 1px solid var(--line);
}
.feature-wide p { max-width: 36rem; }
.num {
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--moss); border: 1px solid var(--moss);
  border-radius: 50%; width: 1.8em; height: 1.8em; flex: none;
  display: grid; place-items: center;
}
.feature-list h2 {
  font-family: var(--font-display); font-size: 1.375rem; margin-bottom: 0.35rem;
}
.feature-list p { color: var(--mute); font-size: 1rem; max-width: 32rem; }

/* --- capture: the one dark moment ------------------------------------------ */
.capture {
  background: var(--ink); color: var(--paper);
  padding: clamp(3rem, 9vh, 5.5rem) clamp(1.25rem, 6vw, 5rem);
}
.label-inverse { color: #a8c3b4; }
.capture h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  margin: 0.75rem 0 1.5rem;
}
.capture form { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 30rem; }
.capture input {
  flex: 1 1 14rem; font: inherit;
  padding: 0.75rem 1rem; border-radius: 4px;
  border: 1px solid #4a4a44; background: #fff; color: var(--ink);
}
.capture button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--moss); color: #fff;
  border: 0; border-radius: 4px; padding: 0.75rem 1.4rem;
  transition: transform 140ms ease;
}
.capture button:hover { transform: translateY(-2px); }
.fine { font-size: 0.8125rem; color: var(--mute); margin-top: 1rem; }
.capture .fine { color: #b3b1a7; }

/* --- footer ----------------------------------------------------------------- */
.footer {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.75rem clamp(1.25rem, 6vw, 5rem);
}

/* --- small screens ----------------------------------------------------------- */
@media (max-width: 640px) {
  .manifesto { padding-left: clamp(1.25rem, 6vw, 5rem); }
  .feature-wide { padding-left: 0; border-left: 0; }
}
