@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}

:root {
  --page: #FBF5E6;
  --ink: #000;
  --muted: #5C4B1F;
  --accent: #FFF200;
  --sand: #E3BE7A;
  --khaki: #836E3A;
  --strip: #FFE96B;
  --rule: #C9C2AE;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.5;
}
h1, h2, h3, p { margin: 0; }
a { color: #000; }
a:hover { color: #3A2E0E; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
::placeholder { color: #767676; opacity: 1; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.top { display: flex; flex-direction: column; gap: 32px; }

/* Header */
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.brand-mark {
  padding: 3px 12px;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
}
.brand-mark:hover { color: #000; }
.brand-note { font-size: 17px; color: var(--muted); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.signup { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.signup h1, .done h1 {
  font-weight: 700;
  font-size: clamp(32px, 3.7vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede { font-size: 20px; max-width: 28em; }

.form { margin: 6px 0 0; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.form label { font-size: 19px; font-weight: 700; }
.form input[type="email"] {
  width: 100%;
  height: 60px;
  padding: 0 16px;
  font: inherit;
  font-size: 22px;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
}
.strip {
  padding: 10px 14px;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  background: var(--strip);
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.strip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.btn-light {
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
}
.btn-main {
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  font: inherit;
  font-size: 23px;
  font-weight: 700;
  color: var(--accent);
  background: #000;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.btn-main[disabled] { cursor: progress; opacity: 0.8; }
.fine { font-size: 17px; color: var(--muted); }

/* Thumbnail-style card */
.peek { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.thumb { background: var(--sand); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.thumb-title { font-size: 25px; font-weight: 700; line-height: 1.2; text-align: center; color: #000; }
.thumb-panels { display: flex; flex-wrap: wrap; gap: 4px; background: var(--accent); border-radius: 10px; overflow: hidden; }
.thumb-panel {
  flex: 1 1 190px;
  min-width: 0;
  padding: 24px 16px;
  background: var(--khaki);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-panel p { font-size: 24px; font-weight: 700; line-height: 1.28; text-align: center; color: #000; }
.thumb-panel.alt p { color: var(--accent); }

/* Questions */
.faq { border-top: 2px solid #000; padding-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.faq h2 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.faq-items { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.faq-item { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.faq-item h3 { font-size: 19px; font-weight: 700; }
.faq-item p { font-size: 18px; }

/* Closing band */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 28px;
  background: var(--sand);
  border-radius: 16px;
}
.band p { font-size: 24px; font-weight: 700; line-height: 1.25; }
.btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  font-size: 21px;
  font-weight: 700;
  color: var(--accent);
  background: #000;
  border-radius: 10px;
  text-decoration: none;
}
.btn-link:hover { color: var(--accent); }

.foot { font-size: 16px; color: var(--muted); }
.foot a { color: var(--muted); }

/* Thank-you page */
.done { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.done h2 { margin-top: 20px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.story {
  background: var(--sand);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  font-size: 21px;
  line-height: 1.55;
}

/* Plain text page */
.text { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.text h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.text h2 { margin-top: 14px; font-size: 22px; line-height: 1.3; }

@media (max-width: 520px) {
  .wrap { padding: 20px 18px 40px; gap: 44px; }
  .top { gap: 24px; }
  .hero { gap: 32px; }
  .signup { gap: 14px; }
  .lede { font-size: 19px; }
  .thumb-panel p { font-size: 22px; }
  .band { padding: 22px 20px; }
  .btn-link { width: 100%; }
  .story { padding: 22px 20px; font-size: 20px; }
}

/* Other emails (thank-you page) */
.done-wide { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.done-wide .done { flex: 1 1 420px; min-width: 0; max-width: none; }
.first { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.first h2 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.recs { margin-top: 8px; padding: 22px; background: #fff; border: 2px solid #000; border-radius: 10px; display: flex; flex-direction: column; gap: 12px; }
.recs h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.rec { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); cursor: pointer; }
.rec input { flex: none; width: 28px; height: 28px; margin: 1px 0 0; accent-color: #000; }
.rec-name { display: block; font-weight: 700; }
.rec-note { display: block; font-size: 17px; color: var(--muted); }
.rec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 8px; }
.rec-actions a { font-size: 18px; }
.rec-list { display: flex; flex-direction: column; }
.rec-list > .fine { margin-bottom: 10px; }
.rec-list > .strip { margin-bottom: 12px; }
.btn-dark {
  min-height: 58px;
  padding: 0 28px;
  font: inherit;
  font-size: 21px;
  font-weight: 700;
  color: var(--accent);
  background: #000;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 520px) {
  .recs { padding: 18px 16px; }
  .btn-dark { width: 100%; }
}
