/* Network Nutrition waiting list. Plain navy on cream; no logo yet. */
:root {
  --bg: #f6f2ea;
  --card: #fffdf9;
  --ink: #16233b;
  --muted: #555f70;
  --line: #ddd5c6;
  --accent: #16233b;
  --accent-ink: #f6f2ea;
  --ok: #2f6b4f;
  --error: #9b2c2c;
  --radius: 10px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

a { color: var(--ink); }

h1, h2, h3, .wordmark { font-family: var(--serif); font-weight: normal; line-height: 1.2; }
h1 { font-size: 2.1rem; margin: 0 0 16px; }
h2 { font-size: 1.6rem; margin: 0 0 16px; }
h3 { font-size: 1.2rem; margin: 28px 0 8px; }

/* Header */
.top { border-bottom: 1px solid var(--line); padding: 20px 0 16px; }
.wordmark { font-size: 1.35rem; letter-spacing: 0.02em; margin: 0; }
.tag { margin: 2px 0 0; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 40px; }
.lede { font-size: 1.15rem; margin: 0 0 20px; }
.places {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.95rem;
}
.places strong { font-variant-numeric: tabular-nums; }

/* Sections */
.block { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.spec { margin: 24px 0; padding: 16px 16px 16px 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.spec li { margin: 4px 0; }
.daily { font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.bonus { padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.small { font-size: 0.85rem; color: var(--muted); }

/* Buttons */
.button {
  display: inline-block;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1rem/1.4 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { opacity: 0.9; }
.button:disabled { opacity: 0.6; cursor: wait; }
.button.ghost { background: transparent; color: var(--ink); }
.small-button { min-height: 44px; padding: 10px 16px; }
#submit { width: 100%; margin-top: 8px; }

/* Form */
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], input:not([type]), textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus, .button:focus-visible, .opt:focus-within, .check:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.unlock {
  margin: 24px 0 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px dashed var(--line);
  font-size: 0.95rem;
}
.unlock.is-done { border-style: solid; border-color: var(--ok); color: var(--ok); font-weight: 600; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q { margin: 24px 0; }
.q > legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.q > legend label { font-weight: 600; }
.qn {
  display: inline-block;
  width: 26px; height: 26px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.85rem;
  line-height: 26px;
  text-align: center;
  vertical-align: 1px;
}
.optional { font-weight: normal; color: var(--muted); }
.follow { margin: 14px 0 0; padding-left: 14px; border-left: 2px solid var(--line); }
.follow legend, .follow > label { display: block; font-size: 0.95rem; margin-bottom: 8px; padding: 0; }

.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
}
.opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input, .check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }

.note { font-size: 0.9rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; cursor: pointer; }
.check input { margin-top: 4px; }

.error { color: var(--error); font-weight: 600; }
.ref-note { color: var(--ok); font-weight: 600; }

/* Spam trap: off-screen for people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* After joining */
.done h2 { color: var(--ok); }
.done:focus { outline: none; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share input { flex: 1 1 220px; }

/* Privacy */
.privacy h3 { font-size: 1.05rem; }
.privacy ul { padding-left: 20px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 0.85rem; color: var(--muted); }
.foot p { margin: 0; overflow-wrap: anywhere; }

@media (min-width: 700px) {
  h1 { font-size: 2.6rem; }
  .hero { padding-top: 72px; padding-bottom: 56px; }
}
