:root {
  --cream: #fbf3e6;
  --paper: #fffaf2;
  --ink: #2b1b15;
  --muted: #6b5a50;
  --teal: #0e7c86;
  --teal-dark: #0a5d65;
  --orange: #f28c28;
  --maroon: #7a1f3d;
  --line: #e6d8c3;
  --error: #b3261e;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }

.top, main, .foot { width: 100%; max-width: 1100px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 6px; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 800; font-size: 1.2rem; line-height: 1.1; color: var(--maroon); }
.wordmark img { border-radius: 50%; }
.wordmark em { font-weight: 600; color: var(--teal-dark); }
.top-link { font-size: 0.9rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.top-link:hover { color: var(--ink); border-color: var(--ink); }

/* Hero */
.hero { display: grid; gap: 36px; padding: 28px 0 56px; align-items: start; }
.kicker { display: inline-block; margin: 0 0 14px; padding: 4px 12px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 4px; transform: rotate(-1.5deg); }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2rem, 5.6vw, 3.1rem); max-width: 15em; }
.u { font-style: italic; font-weight: 600; color: var(--maroon); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 0.09em; text-underline-offset: 0.12em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; margin: 14px 0 22px; }

/* Form */
.form, .done { background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: 22px; max-width: 560px; box-shadow: 6px 6px 0 var(--teal); }
.row2 { display: grid; gap: 14px; }
.field { display: block; }
.field span, .choice legend { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
small { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"] {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 4px;
}
input[type="text"]:focus, input[type="email"]:focus { outline: none; border-color: var(--teal); }
.choice { border: 0; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.choice legend { padding: 0; }
.choice label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 1rem; }
.choice input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; }

.btn {
  display: block; width: 100%; margin-top: 20px; padding: 15px 20px;
  font: inherit; font-weight: 700; font-size: 1.1rem; text-align: center; text-decoration: none;
  color: #fff; background: var(--maroon); border: 2px solid var(--ink); border-radius: 4px; cursor: pointer;
}
.btn:hover { background: #651832; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn[disabled] { opacity: 0.7; cursor: wait; }
.btn-light { background: var(--orange); color: var(--ink); width: auto; display: inline-block; padding: 14px 26px; }
.btn-light:hover { background: #e07f1c; }

.fine { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.form-error { margin: 12px 0 0; color: var(--error); font-weight: 700; font-size: 0.95rem; }
.done h2 { font-size: 1.7rem; margin-bottom: 8px; }
.done p { margin: 0; color: var(--muted); }
.done .btn { margin-top: 16px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Photo */
.photo { margin: 0; }
.photo img { border: 2px solid var(--ink); border-radius: 6px; background: #fff; transform: rotate(1.6deg); }
.photo figcaption { margin: 14px 4px 0; font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--muted); font-size: 0.95rem; }

/* Inside */
.inside { display: grid; gap: 36px; padding: 56px 0; border-top: 2px solid var(--ink); }
.inside h2, .family h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.inside-copy p { color: var(--muted); max-width: 30em; margin: 14px 0 22px; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.topics li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.topics b { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; background: var(--teal); color: #fff; font-size: 0.85rem; flex: none; }
.topics .bonus b { background: var(--orange); color: var(--ink); }

.sheet { background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 0 0 8px; transform: rotate(-1.2deg); overflow: hidden; max-width: 520px; }
.sheet-head { background: var(--teal); color: #fff; font-family: var(--serif); font-weight: 800; font-size: 1.25rem; padding: 14px 18px; display: flex; gap: 12px; align-items: center; }
.sheet-head .n { background: var(--orange); color: var(--ink); width: 30px; height: 30px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.sheet-cols { display: grid; grid-template-columns: 1.4fr 1fr; padding: 10px 18px 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); border-bottom: 2px solid var(--teal); }
.sheet-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.sheet-row strong { display: block; font-size: 1.02rem; line-height: 1.2; }
.sheet-row small { display: block; margin-top: 2px; }
.sheet-row em { color: var(--teal-dark); font-size: 0.95rem; }

/* Family */
.family { padding: 56px 0; border-top: 2px solid var(--ink); }
.cards { display: grid; gap: 40px; margin-top: 32px; }
.member img { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border: 2px solid var(--ink); border-radius: 150px 150px 6px 6px; background: var(--orange); }
.member h3 { margin-top: 16px; font-size: 1.6rem; }
.role { margin: 2px 0 8px; color: var(--teal-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.member p:last-child { margin: 0; color: var(--muted); max-width: 24em; }

/* Closer */
.closer { display: grid; gap: 24px; align-items: center; background: var(--teal); color: #fff; border-radius: 8px; padding: 28px; margin: 8px 0 56px; }
.closer img { width: 150px; border-radius: 50%; }
.closer h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.closer p { margin: 10px 0 20px; max-width: 28em; color: #e5f4f5; }

/* Footer */
.foot { padding-top: 8px; padding-bottom: 40px; color: var(--muted); font-size: 0.85rem; }
.foot p { margin: 0 0 8px; max-width: 46em; }

@media (min-width: 560px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .choice { grid-template-columns: 1fr 1fr; margin-top: 14px; }
  .choice legend { grid-column: 1 / -1; margin-bottom: 0; }
}

@media (min-width: 820px) {
  .top, main, .foot { padding-left: 32px; padding-right: 32px; }
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 56px; padding-top: 28px; }
  .photo { padding-top: 24px; }
  .inside { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .closer { grid-template-columns: auto 1fr; gap: 40px; padding: 36px 44px; }
  .closer img { width: 200px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
