@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/archivo-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/archivo-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/archivo-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/archivo-latin-800-normal.woff2) format("woff2");
}

:root {
  --bg: #F5F6F8;
  --ink: #16202A;
  --ink-2: #3B4652;
  --muted: #5A6470;
  --line: #DDE1E6;
  --field: #B7BEC6;
  --primary: #2457D6;
  --primary-hover: #1A40A3;
  --amber: #E0A43A;
  --surface: #FFFFFF;
  --error: #B42318;
  --success: #1F6B3A;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Header -------------------------------------------------------------- */
.site-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo { flex: none; display: block; }
.wordmark {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.15;
}

/* Hero ---------------------------------------------------------------- */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  justify-content: space-between;
}
.hero-copy {
  flex: 1 1 400px;
  max-width: 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-art {
  flex: 1 1 420px;
  max-width: 580px;
  min-width: 0;
}
.hero-art svg { width: 100%; height: auto; display: block; }
.shop.paused * { animation-play-state: paused !important; }

h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.6rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.lede {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}

/* Form card ----------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  max-width: 520px;
}
.card-title {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 1.05rem;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row .field { flex: 1 1 200px; min-width: 0; }
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label { font-size: 14px; font-weight: 500; }

input, textarea {
  width: 100%;
  border: 1.5px solid var(--field);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
input { height: 44px; padding: 0 12px; }
textarea { padding: 10px 12px; resize: vertical; min-height: 5.5em; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }

.field-error {
  font-size: 14px;
  color: var(--error);
}
.field-error:empty { display: none; }

/* Honeypot: off-screen, hidden from assistive tech */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { min-height: 65px; }

.button {
  align-self: flex-start;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.button:hover { background: var(--primary-hover); }
.button[disabled] { opacity: .7; cursor: progress; }

.form-status { margin: 0; font-size: 14px; color: var(--error); }
.form-status:empty { display: none; }
.privacy { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

.success {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--success);
}
.success:focus { outline: none; }

/* Footer -------------------------------------------------------------- */
.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 32px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer p { margin: 0; }

/* Columns stack below ~900px: copy and form first, illustration after. */
@media (max-width: 900px) {
  .hero-copy, .hero-art { flex-basis: 100%; max-width: 560px; }
}

/* Keep the 300px Turnstile widget inside the card at 390px wide. */
@media (max-width: 420px) {
  .card { padding: 18px; }
}

/* No-JS result page (served by the Worker) ---------------------------- */
.result {
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 24px;
  font-size: 1.05rem;
  line-height: 1.55;
}
.result h1 { font-size: 2.2rem; margin-bottom: 16px; }
