/* Whittlo landing page
   Brand: forest green #1E3A2F, cream #EFE6D2, amber #E5A93C, Bricolage Grotesque.
   Warm and tactile: felt-patch cards with a dashed stitch, soft shadows, paper grain.
   Colors and fonts live in :root so you can retune everything in one place. */

:root {
  --cream: #efe6d2;
  --cream-deep: #e3d8bd;
  --surface: #fbf8f0;
  --white: #fffdf8;
  --green-deep: #1e3a2f;
  --green: #2c5443;
  --green-tint: #dfe8e0;
  --amber: #e5a93c;
  --amber-tint: #f8ecd0;
  --wood: #efc169;

  --ink: #1b2a22;
  --ink-2: #4b5a52;
  --line: rgba(30, 58, 47, 0.14);
  --stitch: rgba(30, 58, 47, 0.45);
  --error: #a3331f;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(30, 58, 47, 0.06), 0 4px 12px rgba(30, 58, 47, 0.06);
  --shadow-md: 0 2px 4px rgba(30, 58, 47, 0.06), 0 16px 40px -12px rgba(30, 58, 47, 0.25);
  --shadow-lg: 0 4px 8px rgba(30, 58, 47, 0.06), 0 32px 64px -20px rgba(30, 58, 47, 0.35);

  /* Faint paper grain, drawn by the browser (no image file). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-color: var(--cream);
  background-image:
    var(--grain),
    radial-gradient(900px 600px at 85% -10%, rgba(229, 169, 60, 0.28), transparent 65%),
    radial-gradient(800px 700px at -10% 35%, rgba(44, 84, 67, 0.12), transparent 60%);
}

h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -64px; z-index: 20; padding: 10px 16px; background: var(--green-deep); color: var(--cream); border-radius: 10px; transition: top 0.15s; }
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; line-height: 1.08; color: var(--green-deep); }
h2 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }

.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; flex: none; width: 22px; height: 3px; border-radius: 2px; background: var(--amber); }

.section-head { max-width: 40rem; margin-bottom: clamp(24px, 4vw, 40px); }
.fine { font-size: 0.9rem; color: var(--ink-2); }

/* Buttons */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none;
  color: var(--white);
  background: linear-gradient(180deg, #3a6652, var(--green));
  border: 0; border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 10px 24px -10px rgba(30, 58, 47, 0.6);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.15s, background-color 0.15s;
}
.btn:hover, button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active, button:active { transform: translateY(0); }
button[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.btn--ghost { color: var(--green-deep); background: var(--surface); border: 1.5px solid var(--line); box-shadow: none; }
.btn--ghost:hover { filter: none; background: var(--white); border-color: var(--green); }

/* ---------- Header ---------- */
.top { padding-top: 14px; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-deep); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand--small { font-size: 1.2rem; }
.brand--small img { width: 32px; height: 32px; }
.top__note { display: none; padding: 8px 14px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--green-deep); background: rgba(255, 253, 248, 0.7); border: 1px solid var(--line); border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { max-width: 760px; }
h1 { font-size: clamp(2.35rem, 9vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 16px; }
.lede { font-size: clamp(1.05rem, 4vw, 1.2rem); color: var(--ink-2); max-width: 44ch; margin-bottom: 24px; text-wrap: pretty; }

/* ---------- Sign-up form ---------- */
.signup { max-width: 34rem; }
.signup__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup__row { display: grid; gap: 10px; }
input[type="email"], input[type="text"] {
  width: 100%; min-height: 56px; padding: 0 18px;
  font: inherit; font-size: 1.0625rem; /* 16px or larger stops iPhones zooming in on focus */
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #66746c; opacity: 1; }
input[type="email"]:focus, input[type="text"]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(44, 84, 67, 0.18); }
input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 4px rgba(163, 51, 31, 0.15); }
.signup button { min-height: 56px; }

.signup__status { margin-top: 10px; font-size: 0.98rem; font-weight: 600; }
.signup__status:empty { display: none; }
.signup__status[data-state="error"] { color: var(--error); }
.signup__status[data-state="success"] { color: var(--green); }
.signup .fine { margin-top: 12px; }
.consent { margin-top: 6px; font-size: 0.82rem; color: var(--ink-2); max-width: 44ch; }

/* The spam trap: off-screen, not display:none, so simple bots still fill it in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.noscript-note { display: none; font-weight: 600; }

/* ---------- Thank-you step ---------- */
.thanks { max-width: 34rem; display: grid; gap: 16px; outline: none; }
.thanks__head { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--white); border: 1.5px solid rgba(44, 84, 67, 0.3); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.thanks__head h2 { font-size: 1.6rem; margin-bottom: 4px; }
.thanks__head p { color: var(--ink-2); }
.thanks__check, .perk__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); }
.thanks__check svg, .perk__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--green-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.followups, .share { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: grid; gap: 14px; }
.followups h3, .share h3 { font-size: 1.1rem; }
.followups legend, .field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-weight: 600; font-size: 0.95rem; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }
.choice:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.field { display: grid; }
.field input { min-height: 50px; }
.followups__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.followups__actions .btn { min-height: 48px; }
.share p { color: var(--ink-2); }
.share__link input { min-height: 50px; font-size: 0.95rem; color: var(--green-deep); background: var(--white); }
.share__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share__buttons .btn { min-height: 46px; padding: 0 18px; font-size: 0.95rem; }

/* ---------- This week's maker ---------- */
.maker { padding: clamp(8px, 2vw, 24px) 0 clamp(40px, 7vw, 80px); }
.maker__card { display: grid; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.maker__media { position: relative; display: block; color: inherit; text-decoration: none; }
.maker__frame {
  display: grid; place-items: center; align-content: end; gap: 6px;
  aspect-ratio: 4 / 3; padding: 20px 20px 16px; text-align: center; color: var(--ink-2); font-size: 0.85rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent),
    repeating-linear-gradient(135deg, var(--cream-deep) 0 10px, #d9ccae 10px 20px);
}
.maker__frame svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.maker__thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.maker__play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--amber); box-shadow: 0 12px 30px -8px rgba(30, 58, 47, 0.6);
  transition: transform 0.15s;
}
.maker__media:hover .maker__play { transform: scale(1.06); }
.maker__play svg { width: 28px; height: 28px; fill: var(--green-deep); margin-left: 3px; }
.maker__body { padding: 22px 22px 24px; }
.maker__body h2 { font-size: 1.5rem; margin-bottom: 2px; }
.maker__craft { font-weight: 600; color: var(--green); margin-bottom: 10px; }
.maker__desc { color: var(--ink-2); margin-bottom: 18px; }
.maker__links { display: flex; flex-wrap: wrap; gap: 10px; }
.maker__links .btn { min-height: 46px; padding: 0 18px; font-size: 0.95rem; }

/* ---------- What you get: felt patches with a stitch ---------- */
.weekly { padding: clamp(8px, 2vw, 24px) 0 clamp(48px, 8vw, 96px); }
.patches { display: grid; gap: 14px; counter-reset: patch; }
.patch {
  position: relative; padding: 24px 22px 24px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.patch::before { /* the stitch */
  content: ""; position: absolute; inset: 7px; border: 2px dashed var(--stitch); border-radius: 14px; pointer-events: none; opacity: 0.7;
}
.patch__num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  font-size: 0.95rem; font-weight: 800; color: var(--green-deep); background: var(--amber); border-radius: 50%;
}
.patch h3 { margin-bottom: 6px; }
.patch p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- Sample issue ---------- */
.sample { padding: 0 0 clamp(48px, 8vw, 96px); }
.sample__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.mail, .mail__head, .mail__head > span { min-width: 0; }
.sample__note { color: var(--ink-2); font-size: 0.95rem; max-width: 30ch; }
.mail { justify-self: center; width: min(100%, 460px); padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.mail__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mail__head img { width: 36px; height: 36px; border-radius: 50%; }
.mail__head > span:not(.mail__tag) { min-width: 0; }
.mail__head strong { display: block; font-size: 0.95rem; color: var(--green-deep); line-height: 1.2; }
.mail__head small { display: block; font-size: 0.8rem; color: var(--ink-2); line-height: 1.2; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail__tag { flex: none; margin-left: auto; padding: 4px 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); background: var(--amber-tint); border-radius: 999px; }
.mail__sections { display: grid; gap: 16px; padding-top: 16px; }
.mail__section { display: grid; gap: 6px; }
.mail__kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.mail__title { font-size: 1.05rem; color: var(--green-deep); }
.mail__lines li, .mail__meta li { position: relative; padding-left: 16px; font-size: 0.92rem; color: var(--ink-2); }
.mail__lines li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.mail__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mail__meta li { padding-left: 0; font-size: 0.85rem; }
.mail__link { justify-self: start; padding: 8px 14px; font-size: 0.85rem; font-weight: 700; color: var(--green-deep); background: var(--amber-tint); border-radius: 999px; }

/* ---------- Perks ---------- */
.perks { padding: 0 0 clamp(48px, 8vw, 96px); }
.perks__list { display: grid; gap: 14px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.perk h3 { font-size: 1.05rem; margin-bottom: 4px; }
.perk p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 clamp(64px, 9vw, 120px); }
.faq__list { display: grid; gap: 10px; max-width: 46rem; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq__item summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 400; color: var(--green); transition: transform 0.2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 18px 18px; color: var(--ink-2); }
.draft { padding: 3px 9px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7a3d12; background: var(--amber-tint); border-radius: 999px; }

/* ---------- Footer ---------- */
.foot { padding: 32px 0 calc(40px + 72px); border-top: 1px solid var(--line); } /* extra bottom room for the sticky button */
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.social { display: flex; gap: 8px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font-size: 0.95rem; font-weight: 600; text-decoration: none; color: var(--green-deep); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.social a:hover { background: var(--white); border-color: var(--green); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot__meta { margin-top: 22px; font-size: 0.86rem; color: var(--ink-2); display: grid; gap: 6px; }
.foot__tagline { opacity: 0.85; }

/* ---------- Sticky button (phones) ---------- */
.sticky {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 15;
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--white);
  background: var(--green-deep); border-radius: 999px;
  box-shadow: 0 16px 36px -10px rgba(30, 58, 47, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* ---------- Privacy page ---------- */
.prose { padding: 24px 0 64px; max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 8px; }
.prose p { margin-top: 16px; color: var(--ink-2); }
.page .foot { padding-bottom: 40px; }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .top__note { display: inline-flex; }
  .signup__row {
    grid-template-columns: 1fr auto; gap: 0; padding: 6px;
    background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-md);
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .signup__row:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(44, 84, 67, 0.18), var(--shadow-md); }
  .signup__row:has([aria-invalid="true"]) { border-color: var(--error); box-shadow: 0 0 0 4px rgba(163, 51, 31, 0.15), var(--shadow-md); }
  .signup__row input[type="email"] { min-height: 50px; border: 0; box-shadow: none; background: transparent; }
  .signup__row input[type="email"]:focus { box-shadow: none; }
  .signup__row button { min-height: 50px; }
  .maker__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .maker__frame, .maker__thumb { aspect-ratio: auto; height: 100%; min-height: 280px; }
  .maker__body { padding: 28px; align-self: center; }
  .patches { grid-template-columns: repeat(2, 1fr); }
  .perks__list { grid-template-columns: repeat(3, 1fr); }
  .perk { flex-direction: column; }
}

@media (min-width: 880px) {
  .sample__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
  .sample__intro { padding-top: 24px; }
  .patches { grid-template-columns: repeat(4, 1fr); }
  .sticky { display: none; }
  .foot { padding-bottom: 40px; }
}

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