/* Meggy's List: Bubblegum Arcade. Tokens from the Meggy's List design system. */

@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-weight: 400; font-display: swap; src: url("/fonts/pixelify-sans-latin-400-normal.woff2") format("woff2"); }

:root {
  --blush-paper: #fff4fa;
  --blush-deep: #ffe9f3;
  --white: #ffffff;
  --night-ink: #1e0b33;
  --ink-muted: #4b3a5e;
  --ink-placeholder: #6e5e80;
  --electric: #7b2ff7;
  --visited: #b0207a;
  --bubblegum: #ff3e9a;
  --sunshine: #ffe14d;
  --aqua: #2ee6d6;

  --font-display: Fredoka, "Varela Round", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Pixelify Sans", "Courier New", monospace;

  --border: 2px solid var(--night-ink);
  --shadow-button: 3px 3px 0 var(--night-ink);
  --shadow-card: 4px 4px 0 var(--night-ink);
  --shadow-hero: 6px 6px 0 var(--night-ink);
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 999px;
}

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

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

body {
  margin: 0;
  background: var(--blush-paper);
  color: var(--night-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

a { color: var(--electric); text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: var(--visited); }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }

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

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--white); border: var(--border); border-radius: var(--radius-md); padding: 10px 14px; z-index: 10; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }

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

.site-header { padding: 28px 0 8px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.logo { display: inline-block; line-height: 0; border-radius: var(--radius-lg); }
.logo img { display: block; height: 60px; width: auto; }
@media (min-width: 560px) { .logo img { height: 76px; } }

/* Home page: the logo is the big opener. */
.site-header--home { padding-top: 36px; }
.site-header--home .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
.site-header--home .brand { width: min(100%, 540px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.site-header--home .logo { width: 100%; }
.site-header--home .logo img { height: auto; width: 100%; }
.site-header--home + main .hero { padding-top: 20px; }

.pixel-label {
  font-family: var(--font-pixel); font-size: 0.875rem; line-height: 1.3; letter-spacing: 0.02em;
  display: inline-block; background: var(--night-ink); color: var(--white);
  border-radius: 4px; padding: 4px 8px;
}

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

.hero { padding: 32px 0 8px; }
.hero h1 { font-size: clamp(2.125rem, 7vw, 2.75rem); line-height: 1.08; margin-top: 16px; }
.hero .lead { font-size: 1.25rem; line-height: 1.4; margin: 14px 0 0; max-width: 34em; }

/* ---------- signup card (the one hero panel) ---------- */

.card {
  background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero); padding: 24px;
}
.signup { margin: 28px 0 8px; }
@media (min-width: 560px) { .signup { padding: 28px 32px; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; color: var(--ink-muted); font-size: 0.875rem; margin: -2px 0 8px; }

.field input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1.0625rem; color: var(--night-ink);
  background: var(--blush-paper); border: var(--border); border-radius: var(--radius-md);
}
.field input::placeholder { color: var(--ink-placeholder); }
.field input[aria-invalid="true"] { border-color: var(--visited); box-shadow: inset 0 0 0 1px var(--visited); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 10rem; } }

.error { display: flex; gap: 6px; color: var(--visited); font-weight: 700; font-size: 0.9375rem; margin: 8px 0 0; }
.error:empty { display: none; }
.error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--visited); color: var(--white); font-size: 0.8em; margin-top: 0.15em; }

.form-error { margin: 0 0 16px; padding: 12px 14px; border: var(--border); border-radius: var(--radius-md); background: var(--blush-deep); font-weight: 700; }
.form-error:empty { display: none; }

.turnstile { min-height: 0; margin: 4px 0 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-button);
  cursor: pointer; text-decoration: none;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn-primary { background: var(--electric); color: var(--white); }
.btn-primary:visited { color: var(--white); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--night-ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--night-ink); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-block { width: 100%; }
@media (min-width: 560px) { .btn-block { width: auto; } }

.btn-quiet {
  min-height: 48px; padding: 12px 6px; background: none; border: 0;
  font: inherit; font-weight: 700; color: var(--electric); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

.fine-print { color: var(--ink-muted); font-size: 0.9375rem; margin: 14px 0 0; }

/* ---------- step 2: picks ---------- */

.done-head { display: flex; gap: 14px; align-items: flex-start; }
.done-head h2 { font-size: 1.75rem; line-height: 1.15; }
.check-badge {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--aqua); border: var(--border); border-radius: 50%;
}
.inbox-note { margin: 10px 0 0; font-size: 1.0625rem; }
.region-note { margin: 14px 0 0; padding: 12px 14px; background: var(--blush-deep); border: var(--border); border-radius: var(--radius-md); }

.picks { margin-top: 24px; padding-top: 22px; border-top: 2px dashed var(--night-ink); }
.picks > p { margin: 0 0 6px; }
.picks .picks-title { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.2; margin-bottom: 4px; }

fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
legend .hint { font-weight: 400; color: var(--ink-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 16px;
  background: var(--white); border: var(--border); border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.9375rem; line-height: 1.2; cursor: pointer; user-select: none;
}
.chip span::before {
  content: ""; width: 1.05em; height: 1.05em; flex: none;
  border: 2px solid var(--night-ink); border-radius: 4px; background: var(--white);
}
.chip input[type="radio"] + span::before { border-radius: 50%; }
.chip input:checked + span { background: var(--aqua); box-shadow: 2px 2px 0 var(--night-ink); }
.chip input:checked + span::before {
  content: "\2713"; display: grid; place-items: center;
  background: var(--night-ink); color: var(--white); font-size: 0.75em; line-height: 1;
}
.chip input:focus-visible + span { outline: 3px solid var(--electric); outline-offset: 3px; }
.chip span:hover { background: var(--blush-deep); }
.chip input:checked + span:hover { background: var(--aqua); }

.picks-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; }
.status { font-weight: 700; margin: 16px 0 0; }
.status:empty { display: none; }

/* ---------- what's coming ---------- */

.section { padding: 40px 0 8px; }
.section h2 { font-size: 1.75rem; line-height: 1.15; margin-bottom: 8px; }
.section > .wrap > p { margin: 0 0 18px; max-width: 36em; }

.coming { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 620px) { .coming { grid-template-columns: repeat(3, 1fr); } }
.coming li { background: var(--white); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 16px; }
.coming h3 { font-size: 1.25rem; line-height: 1.2; margin: 10px 0 6px; }
.coming p { margin: 0; font-size: 0.9375rem; color: var(--ink-muted); }
.tag {
  display: inline-block; font-family: var(--font-pixel); font-size: 0.8125rem; line-height: 1.3;
  background: var(--aqua); border: 1.5px solid var(--night-ink); border-radius: var(--radius-pill); padding: 2px 10px;
}


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

.site-footer { margin-top: 48px; padding: 28px 0 40px; border-top: var(--border); }
.site-footer .tagline { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer li a { display: inline-block; padding: 10px 0; }
.site-footer .small { color: var(--ink-muted); font-size: 0.875rem; margin: 8px 0 0; }

/* ---------- simple pages (privacy, confirmed, 404) ---------- */

.page { padding: 32px 0 8px; }
.page h1 { font-size: clamp(2rem, 6vw, 2.5rem); line-height: 1.1; margin: 16px 0 12px; }
.page h2 { font-size: 1.375rem; line-height: 1.2; margin: 32px 0 8px; }
.page p, .page li { max-width: 38em; }
.page ul { padding-left: 1.25em; }
.page li { margin: 4px 0; }
.page .lead { font-size: 1.1875rem; }

.table-wrap { overflow-x: auto; margin: 12px 0; border: var(--border); border-radius: var(--radius-lg); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1.5px solid var(--night-ink); }
tr:last-child td { border-bottom: 0; }
th { background: var(--blush-deep); font-weight: 700; }

.notice-card { margin-top: 24px; }

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

.field-hint { display: block; color: var(--ink-muted); font-size: 0.875rem; margin: -6px 0 16px; }
