@font-face {
  font-family: "Baloo 2";
  src: url("/assets/fonts/Baloo2.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf5ea;
  --paper-deep: #f3e7d4;
  --card: #fffdf9;
  --ink: #2f211a;
  --ink-soft: #6d5747;
  --terracotta: #bf5f38;
  --terracotta-dark: #9f4a28;
  --sage: #8b9c7b;
  --line: #e6d7c1;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(64, 41, 26, 0.55);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(60rem 30rem at 12% -10%, #fdf1dd 0%, transparent 60%),
    radial-gradient(45rem 28rem at 95% 8%, #f7e4cf 0%, transparent 62%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 1.0625rem/1.65 Nunito, ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Baloo 2", Nunito, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--terracotta-dark); }

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

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

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

.site-head {
  padding: 1.75rem 0 0.5rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  font-family: "Baloo 2", Nunito, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.wordmark span {
  font-family: Nunito, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.1rem;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

.lede strong {
  color: var(--ink);
  font-weight: 800;
}

/* ---------- form ---------- */

.signup {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.signup input[type="email"] {
  flex: 1 1 15rem;
  min-width: 0;
  padding: 1rem 1.15rem;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(64, 41, 26, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signup input[type="email"]::placeholder { color: #a9968430; color: #a2937f; }

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(191, 95, 56, 0.14);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font: 800 1rem/1 Nunito, sans-serif;
  letter-spacing: 0.01em;
  color: #fff9f1;
  background: var(--terracotta);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 22px -14px rgba(122, 55, 28, 0.9);
  transition: background 0.15s ease, transform 0.12s ease;
}

.button:hover { background: var(--terracotta-dark); }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: 0.65; cursor: progress; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.micro {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

.form-error {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #a4302a;
}

.done {
  margin-top: 1.9rem;
  padding: 1.6rem 1.6rem 1.5rem;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.done h2 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.done p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.done .button { margin: 1.1rem 0 0.2rem; }

/* ---------- cover art ---------- */

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding-block: 1rem;
}

.hero-art figure {
  margin: 0;
  width: min(19rem, 46%);
  filter: drop-shadow(0 22px 26px rgba(74, 47, 30, 0.28));
}

.hero-art figure:first-child {
  transform: rotate(-3.4deg) translateY(0.6rem);
  z-index: 1;
}

.hero-art figure:last-child {
  transform: rotate(2.6deg) translateX(-1.6rem);
  z-index: 2;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #e9dcc8;
}

/* ---------- sections ---------- */

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1.5px dashed var(--line);
}

.section h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  margin-bottom: 0.55rem;
}

.section .sub {
  color: var(--ink-soft);
  max-width: 52ch;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 2.2rem;
}

.point .num {
  display: block;
  font-family: "Baloo 2", Nunito, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.point h3 {
  font-size: 1.22rem;
  margin-bottom: 0.4rem;
}

.point p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.books {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  margin-top: 2rem;
}

.book {
  padding: 1.6rem 1.7rem;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.book .kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.45rem;
}

.book h3 { font-size: 1.4rem; margin-bottom: 0.45rem; }
.book p { color: var(--ink-soft); font-size: 0.97rem; }

.fineprint {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1.5px dashed var(--line);
  padding: 2.2rem 0 3rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-foot .imprint { font-weight: 700; color: var(--ink); }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }
  .hero-art { order: -1; }
  .hero-art figure { width: min(15rem, 47%); }
  .points { grid-template-columns: 1fr; gap: 1.6rem; }
  .books { grid-template-columns: 1fr; }
  .lede { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
