:root {
  --paper: #f7f3ec;
  --card: #ffffff;
  --ink: #1c1a17;
  --muted: #5d574e;
  --line: #e4ddd1;
  --green: #1f5f4a;
  --green-ink: #ffffff;
  --gold: #f2b134;
  --gold-soft: #fbe7bd;
  --red: #b5432f;
  --radius: 14px;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171512;
    --card: #221f1b;
    --ink: #f3eee6;
    --muted: #b3aa9c;
    --line: #38332c;
    --green: #5fbf9a;
    --green-ink: #10241c;
    --gold: #f2b134;
    --gold-soft: #3d3220;
    --red: #e07a63;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: 980px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 640px; }

/* Preview banner: shown while the decision surveys are not live */
.preview-banner {
  background: var(--gold-soft);
  border-bottom: 1px solid var(--gold);
  font-size: 14px;
  padding: 8px 16px;
  text-align: center;
}
.preview-banner[hidden] { display: none; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--serif); letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; }
.top-link { font-size: 15px; color: var(--muted); text-decoration: none; }
@media (max-width: 420px) { .top-link { display: none; } }
.top-link:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding-top: 28px; padding-bottom: 36px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); margin: 0 0 10px; }
h1 .accent { color: var(--green); }
h1 { font: 700 38px/1.08 var(--serif); letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { font: 700 30px/1.15 var(--serif); letter-spacing: -0.01em; margin: 0 0 10px; }
h3 { font: 700 19px/1.25 var(--sans); margin: 0 0 6px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 22px; max-width: 34em; }
@media (min-width: 720px) {
  h1 { font-size: 64px; }
  h2 { font-size: 36px; }
  .hero { padding-top: 48px; padding-bottom: 56px; }
}

/* The "what are you deciding" box */
.ask {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 6px 6px 0 var(--ink);
  max-width: 640px;
}
.ask label { position: absolute; left: -9999px; }
.ask textarea {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 20px/1.4 var(--sans);
  padding: 10px 10px 4px;
  resize: none;
  min-height: 64px;
  width: 100%;
}
.ask textarea:focus { outline: none; }
.ask:focus-within { box-shadow: 6px 6px 0 var(--green); border-color: var(--green); }
.ask-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 2px 2px 10px; }
.ask-hint { font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 13px;
  font: 15px/1.2 var(--sans);
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 600 17px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card); color: var(--ink); border-color: var(--ink); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn:focus-visible, .chip:focus-visible, .card:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Sections */
section { padding-top: 40px; padding-bottom: 40px; }
.section-head { margin-bottom: 20px; }
.section-head p { color: var(--muted); margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Decision cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card .emoji { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .vs { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); }

/* How it works */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps li::before {
  content: counter(s);
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #1c1a17;
  font-weight: 700;
  margin-bottom: 8px;
}
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* The council */
.council { display: grid; grid-template-columns: 1fr; gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 560px) { .council { grid-template-columns: 1fr 1fr; } }
.voice { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.voice .face { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; border: 2px solid var(--ink); background: var(--gold-soft); }
.voice p { margin: 0; color: var(--muted); font-size: 15px; }
.voice q { color: var(--ink); font-style: italic; }

/* Friends loop */
.friends { background: var(--green); color: var(--green-ink); border-radius: 20px; padding: 28px 20px; display: grid; gap: 16px; }
.friends p { margin: 0; opacity: 0.92; }
.friends .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); justify-self: start; }
.friends .btn:hover { background: var(--gold); border-color: var(--gold); color: #1c1a17; }
@media (min-width: 720px) { .friends { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 36px; } .friends .btn { justify-self: end; } }

/* Decision page */
.crumbs { font-size: 15px; color: var(--muted); margin: 8px 0 18px; }
.crumbs a { color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; }
.panel h3 { margin-bottom: 10px; }
.factor-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.factor-list li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 15px; }
.your-q { font: 600 20px/1.35 var(--serif); margin: 0 0 6px; }
.note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 8px; }
.status { font-size: 15px; color: var(--green); min-height: 1.4em; margin: 0; }
.not-live { border: 2px dashed var(--red); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); margin: 0 0 16px; }
.not-live strong { color: var(--red); }
.help-line { font-size: 15px; background: var(--gold-soft); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }

/* Forms (done page) */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea {
  font: 17px/1.4 var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 80px; }
.field .hint { font-size: 13px; color: var(--muted); }

/* The share card */
.pick-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--gold);
  padding: 22px 20px;
  margin: 8px 0 22px;
}
.pick-card .label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.pick-card .q { font: 600 22px/1.3 var(--serif); margin: 0 0 16px; }
.pick-card .answer { font: 700 36px/1.1 var(--serif); color: var(--green); margin: 0 0 6px; overflow-wrap: anywhere; }
.pick-card .over { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.pick-card .why { border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; padding-bottom: 40px; font-size: 15px; color: var(--muted); }
footer p { margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
