/* CFWF survey, styled after winecellar.tc/cfwf: black page, Instrument Serif
   headings in festival yellow and orange, Helvetica body text, outlined
   buttons. The font is self-hosted (SIL Open Font License). */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/cfwf/assets/instrument-serif-v1.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/cfwf/assets/instrument-serif-italic-v1.woff2") format("woff2");
}

:root {
  --bg: #000000;
  --panel: #111111;
  --panel-2: #1a1a1a;
  --line: #333333;
  --text: #dcdcdc;
  --bright: #fafafa;
  --muted: #a3a3a3;
  --yellow: #f4eb19;
  --orange: #ff7a1a;
  --red: #c51f36;
  --allergy: #ff6b7d;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); }
a:hover { color: var(--yellow); }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 8px;
  text-align: center;
}
.banner { display: block; width: 100%; height: auto; border-radius: 2px; }
h1, h2, h3, legend, .legend {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}
h1 {
  margin: 40px 0 4px;
  color: var(--yellow);
  font-size: clamp(44px, 8vw, 72px);
  line-height: 1;
}
.dates {
  margin: 0 0 20px;
  color: var(--orange);
  font-family: var(--serif);
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.35;
}

/* ---------- form ---------- */
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 20px;
  margin: 0 0 16px;
}
.card h2 { margin: 0 0 16px; color: var(--yellow); font-size: 30px; line-height: 1.1; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .legend {
  display: block;
  padding: 0;
  margin: 0 0 16px;
  color: var(--bright);
  font-size: 26px;
  line-height: 1.2;
}
.num { color: var(--orange); }
b[aria-hidden] { color: var(--orange); font-weight: 400; }
i { color: var(--muted); font-style: normal; font-size: 14px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: var(--bright); font-size: 15px; }
.field small, .q small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.q.field { margin-bottom: 12px; }
.narrow input { max-width: 120px; }
input:not([type=checkbox]):not([type=radio]), textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--bright);
  border: 1px solid #555;
  border-radius: 3px;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming in */
}
input::placeholder { color: #6f6f6f; }
input:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
input:disabled { opacity: 0.45; }
textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.count { margin: 6px 0 0; text-align: right; color: var(--muted); font-size: 13px; }

/* checkboxes and radios: big tap targets */
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1.35;
}
.check:hover { background: var(--panel-2); }
input[type=checkbox], input[type=radio] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.check:has(input:checked) { background: var(--panel-2); color: var(--bright); }
.days { display: grid; gap: 18px; }
.day h3 {
  margin: 0 0 4px;
  color: #e8485f; /* the festival page's day red, lifted for contrast on black */
  font-size: 22px;
  line-height: 1.2;
}
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.other { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(200px, 1fr) 1.4fr; align-items: center; gap: 8px 12px; }

.yn { display: flex; gap: 12px; }
.pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid #555;
  border-radius: 3px;
  color: var(--bright);
  font-size: 18px;
  cursor: pointer;
}
.pill:has(input:checked) { border-color: var(--orange); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--orange); }

.disclaimer { border-color: #4a3a1a; }
.disclaimer h2 { font-size: 26px; color: var(--orange); }
.disclaimer p { margin: 0 0 12px; font-size: 15px; color: var(--text); }
.ack { margin-top: 8px; border: 1px solid #555; color: var(--bright); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #a33;
  border-left: 4px solid #ff4d5e;
  background: #2a0d10;
  color: #ffd5da;
  border-radius: 3px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 40px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 0;
  font: 500 18px var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
#survey .actions .btn { width: 100%; }
.btn:hover { background: var(--text); color: var(--bg); }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: wait; }
.btn.ghost { border-color: #555; color: var(--muted); }
.privacy { margin: 16px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.thanks { text-align: center; padding: 40px 24px; }
.thanks h2 { font-size: 40px; }
.thanks p { font-size: 17px; max-width: 560px; margin: 0 auto 14px; }
.thanks .small { color: var(--muted); font-size: 14px; }
.thanks .actions { justify-content: center; margin-top: 24px; }
.notice { padding: 16px; border: 1px solid var(--line); }

footer { padding: 24px 16px 40px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid #1f1f1f; }
footer p { margin: 0; }

@media (max-width: 640px) {
  .hero { padding-top: 20px; }
  h1 { margin-top: 28px; }
  .card { padding: 20px 14px; }
  .grid2, .needs { grid-template-columns: 1fr; }
  .other { grid-template-columns: 1fr; gap: 4px; }
  .other input:not([type=checkbox]) { margin: 0 0 8px; }
  legend, .legend { font-size: 24px; }
  .btn { padding: 0 24px; }
}
