/* Pre-workshop survey — shared styles. System fonts only, no external assets. */

:root {
  --paper: #f6f3ec;
  --field: #fffdf8;
  --ink: #1d1c1a;
  --ink-2: #34312c;
  --muted: #5f5a51;
  --faint: #6a645a;
  --line: #ddd6c9;
  --field-border: #cfc8ba;
  --dashed: #a39b8c;
  --code-bg: #f1ede4;
  --accent: #3f5b55;
  --error: #9a3a2b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

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

[hidden] { display: none !important; }

/* Layout */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.stack { display: flex; flex-direction: column; gap: 40px; }
.section { display: flex; flex-direction: column; gap: 24px; }
.section--tight { gap: 16px; }

.brand {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 500; margin: 0; }
h1 { font-size: 34px; line-height: 1.2; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.3; }
.lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.intro { display: flex; flex-direction: column; gap: 16px; }
.text { margin: 0; color: var(--ink-2); }
.small { margin: 0; font-size: 14px; color: var(--muted); }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Privacy notice */
.privacy {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
  color: #4f4a42;
}
.privacy summary { cursor: pointer; color: var(--ink-2); }
.privacy p { margin: 10px 0 0; }

/* Fields */
.lbl {
  display: block;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.req { font-weight: 400; font-size: 13px; color: var(--faint); margin-left: 6px; }
.hint { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); margin: 0 0 8px; }
.lbl + .inp, .lbl + .with-unit { margin-top: 4px; }

.inp {
  width: 100%;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 6px;
  padding: 11px 12px;
  min-height: 46px;
}
textarea.inp { min-height: 112px; resize: vertical; line-height: 1.5; }
textarea.inp--tall { min-height: 200px; }
.inp::placeholder { color: #8a8377; }
.inp:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.inp[aria-invalid="true"] { border-color: var(--error); }

.with-unit { display: flex; align-items: center; gap: 8px; }
.with-unit .inp { max-width: 120px; }
.with-unit span { color: var(--muted); }

.error { margin: 6px 0 0; font-size: 14px; color: var(--error); }

/* Task rows */
.tasks { display: flex; flex-direction: column; gap: 16px; }
.task {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 16px;
}

/* Buttons */
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 13px 28px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: #2f4743; color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: default; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--dashed);
  border-radius: 6px;
  padding: 11px 20px;
  min-height: 46px;
  font-size: 15px;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--ink); background: var(--code-bg); }
.btn-ghost--dashed { border-style: dashed; padding: 10px 18px; }

.btn-link {
  background: none;
  border: none;
  padding: 8px 4px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.submit-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Personal link box */
.card {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.link-field {
  flex: 1 1 260px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
  background: var(--code-bg);
  border: none;
  border-radius: 6px;
  padding: 12px;
  min-height: 46px;
}
.link-row .btn { padding: 12px 20px; min-height: 46px; font-size: 15px; }

/* Honeypot — visually hidden, not display:none */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 420px) {
  h1 { font-size: 29px; }
  .page { padding-top: 28px; gap: 32px; }
  .task { padding: 16px 14px 18px; }
}
