:root {
  --bg: #f4f3f0;
  --ink: #111;
  --muted: #6b6963;
  --line: #dcdad4;
  --accent: #111;
  /* Helvetica Neue on Apple devices; Inter (very close) everywhere else */
  --display: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --text: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
  letter-spacing: -0.005em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.page { min-height: 100vh; display: flex; flex-direction: column; overflow: clip; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* ---------- layout ---------- */
.top {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2rem);
}

.brand {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

main {
  flex: 1;
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 8rem) clamp(1.25rem, 6vw, 4rem) 2rem;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 1rem + 6.2vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.05em;
  max-width: 14ch;
  text-wrap: balance;
}

.lede { margin-top: clamp(3rem, 9vh, 6rem); max-width: 34rem; }
.lede p + p { margin-top: 1.1rem; }

/* hero: photo behind the headline, drifts up faster than the scroll (see script in index.html) */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 24rem; }
.hero h1 { position: relative; z-index: 1; }
.hero-photo {
  position: absolute; z-index: 0; top: 0; right: 0;
  width: 84%; max-width: 34rem; height: auto;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 38%, rgba(0,0,0,.6) 62%, rgba(0,0,0,.2) 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 38%, rgba(0,0,0,.6) 62%, rgba(0,0,0,.2) 82%, transparent 100%);
}
@media (min-width: 48rem) {
  .hero { align-items: center; min-height: 38rem; }
  .hero-photo { width: 52%; }
}
.story, .subscribe { position: relative; z-index: 2; }
.now { position: relative; z-index: 0; }
.now { margin: -1.5rem 0 0; width: 84%; max-width: 34rem; }
@media (min-width: 48rem) { .now { margin-top: -1rem; width: 52%; max-width: 34rem; } }
.now img { will-change: transform; display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 10%, rgba(0,0,0,.12) 24%, rgba(0,0,0,.4) 40%, rgba(0,0,0,.75) 58%, #000 74%, #000 90%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, transparent 10%, rgba(0,0,0,.12) 24%, rgba(0,0,0,.4) 40%, rgba(0,0,0,.75) 58%, #000 74%, #000 90%, transparent 100%); }

main > .story { margin-top: clamp(2rem, 5vh, 3rem); }
.story { max-width: 40rem; }
.story p + p { margin-top: 1.1rem; }
.story { color: #2b2a27; }

.subscribe { margin-top: 1.1rem; max-width: 40rem; }
.subscribe .ask { margin-bottom: 1.4rem; font-weight: 500; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise 1s cubic-bezier(.16,1,.3,1) forwards; }
  .rise.d1 { animation-delay: .15s; }
  .rise.d2 { animation-delay: .35s; }
  .rise.d3 { animation-delay: .32s; }
  .rise.d4 { animation-delay: .44s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- MailerLite form, restyled ---------- */
#mlb2-32510445 { width: 100%; }
#mlb2-32510445 .ml-form-embedWrapper { background: transparent; max-width: 26rem; }
#mlb2-32510445 .ml-form-embedBody,
#mlb2-32510445 .ml-form-successBody { padding: 0; }

#mlb2-32510445 .ml-form-embedBody form { margin: 0; }

#mlb2-32510445 input[type="email"] {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#mlb2-32510445 input[type="email"]::placeholder { color: #8a8a8a; }
#mlb2-32510445 input[type="email"]:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,.08);
}

#mlb2-32510445 .ml-form-checkboxRow { margin: 1rem 0 1.25rem; }
#mlb2-32510445 .ml-form-checkboxRow label {
  display: flex; gap: .65rem; align-items: flex-start; cursor: pointer;
  font-size: .9rem; color: var(--muted); line-height: 1.4;
}
#mlb2-32510445 .ml-form-checkboxRow input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .1rem;
  border: 1.5px solid #9a9a9a; border-radius: 4px; background: #fff;
  display: grid; place-content: center; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
#mlb2-32510445 .ml-form-checkboxRow input[type="checkbox"]::after {
  content: ""; width: .3rem; height: .6rem; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .12s ease;
}
#mlb2-32510445 .ml-form-checkboxRow input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
#mlb2-32510445 .ml-form-checkboxRow input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
#mlb2-32510445 .ml-form-checkboxRow input[type="checkbox"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#mlb2-32510445 .label-description p { display: inline; font: inherit; color: inherit; margin: 0; }
#mlb2-32510445 .label-description a { color: var(--ink); }

#mlb2-32510445 .ml-form-embedSubmit button.primary {
  width: 100%;
  font: inherit; font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.005em;
  color: #fff; background: var(--ink);
  border: 0; border-radius: 12px; padding: 1rem 1.2rem; cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
#mlb2-32510445 .ml-form-embedSubmit button.primary:hover { background: #2a2a2a; }
#mlb2-32510445 .ml-form-embedSubmit button.primary:active { transform: scale(.99); }
#mlb2-32510445 .ml-form-embedSubmit button.primary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#mlb2-32510445 .ml-form-embedSubmit button.loading {
  width: 100%; border: 0; border-radius: 10px; background: var(--ink); color: #fff; padding: .95rem 1.2rem;
}
#mlb2-32510445 .ml-form-embedSubmitLoad { display: inline-block; width: 20px; height: 20px; vertical-align: middle; }
#mlb2-32510445 .ml-form-embedSubmitLoad::after {
  content: ""; display: block; width: 11px; height: 11px; margin: 1px; border-radius: 50%;
  border: 4px solid #fff; border-color: #fff #fff #fff transparent; animation: spin 1.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#mlb2-32510445 .ml-error input[type="email"] { border-color: #c0392b; }
#mlb2-32510445 .ml-error .label-description,
#mlb2-32510445 .ml-error .label-description p,
#mlb2-32510445 .ml-error .label-description a { color: #c0392b; }
#mlb2-32510445 .ml-error input[type="checkbox"] { border-color: #c0392b; }

#mlb2-32510445 .ml-form-successBody h4 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: .4rem; }
#mlb2-32510445 .ml-form-successBody p { color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- footer ---------- */
footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 2rem;
  font-size: .85rem; color: var(--muted);
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}

/* ---------- text pages ---------- */
.doc h1 { font-size: clamp(2.25rem, 1.2rem + 4vw, 4rem); max-width: none; }
.doc .updated { color: var(--muted); font-size: .95rem; margin-top: 1rem; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; margin: 2.5rem 0 .6rem; }
.doc p, .doc li { font-size: 1.0625rem; max-width: 38rem; }
.doc p + p { margin-top: .9rem; }
.doc ul { margin: .6rem 0 0 1.25rem; }
.doc li + li { margin-top: .35rem; }
.doc .body { margin-top: 2.5rem; }
.back { display: inline-block; margin-top: 3rem; }
