/* soakyournuts.com — one page, no framework, no build step. */

:root {
  --bg: #f6efe3; /* warm oat paper */
  --ink: #2e2318; /* dark walnut */
  --muted: #6b5844; /* mid brown, 6:1 on --bg */
  --line: #d8c9b2; /* soft tan rule */
  --accent: #7a4a21; /* nut brown, 7:1 on --bg */
  --accent-soft: #ece0cc; /* tan tint for hover + panel */
  --focus: #1f6f5c; /* forest green — deliberately a different hue from
                       --accent so a focus ring never reads as hover */
}

/* Light only, by choice. No dark-mode variant. */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica,
    Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.page {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 9vw, 6rem) 1.25rem 4rem;
}

/* ---------- masthead ---------- */

.masthead {
  margin-bottom: clamp(2.5rem, 7vw, 4rem);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 12vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 800;
}

.tagline {
  margin: 0.9rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- survey ---------- */

h2 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.625rem;
}

.choice {
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem 1.125rem;
  text-align: left;
  font: inherit;
  font-weight: 500;
  color: inherit;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 0.625rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease,
    transform 0.06s ease;
}

.choice:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice:active {
  transform: translateY(1px);
}

.choice[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- free text ---------- */

.other-panel {
  margin-top: 1rem;
  padding: 1rem 1.125rem 1.125rem;
  border: 2px solid var(--accent);
  border-radius: 0.625rem;
  background: var(--accent-soft);
}

.other-panel[hidden] {
  display: none;
}

.other-panel label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 0.5rem;
  resize: vertical;
}

.hint {
  margin: 0.5rem 0 0.875rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.send {
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  cursor: pointer;
}

.send:hover {
  filter: brightness(1.1);
}

/* ---------- status / thanks ---------- */

.status {
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--accent);
}

.status:empty {
  display: none;
}

.thanks[hidden] {
  display: none;
}

.thanks h2 {
  margin-bottom: 0.25rem;
}

.thanks h2:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.thanks p {
  margin: 0;
  color: var(--muted);
}

/* ---------- backstory ---------- */

.backstory {
  margin-top: clamp(3rem, 10vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.backstory p {
  margin: 0 0 0.875rem;
}

.fineprint {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ---------- focus ---------- */

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

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