:root {
  color-scheme: light;
  --canvas: #f8f5f3;
  --surface: #fff;
  --ink: #261e23;
  --muted: #695d64;
  --line: #e3d9df;
  --input-line: #9d8a95;
  --accent: #732943;
  --accent-hover: #5a1b33;
  --accent-soft: #f4e7ed;
  --radius: 10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
.frame { width: min(calc(100% - 96px), 1120px); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.wordmark { font-size: 15px; font-weight: 680; }
.storage {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.storage::before {
  content: "";
  align-self: center;
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: start;
  padding-block: clamp(42px, 6vw, 92px);
}
.intro { min-width: 0; padding-top: 12px; }
.intro h1 {
  margin: 0;
  font-size: clamp(33px, 4.15vw, 60px);
  font-weight: 730;
  line-height: 1.02;
  letter-spacing: -.065em;
}
.intro > p {
  max-width: 33ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 19px);
  line-height: 1.55;
}
.step-nav {
  max-width: 350px;
  margin-top: clamp(30px, 4vw, 58px);
}
.step-nav ol { list-style: none; margin: 0; padding: 0; }
.step-nav li { border-top: 1px solid var(--line); }
.step-nav li:last-child { border-bottom: 1px solid var(--line); }
.step-nav button {
  display: flex;
  gap: 13px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  align-items: center;
  text-align: left;
  font-size: 14px;
  font-weight: 560;
}
.step-nav button:hover { background: #f1e9ec; }
.step-nav button[aria-current="step"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}
.step-nav button span {
  display: grid;
  place-items: center;
  border: 1px solid var(--input-line);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  font-size: 12px;
}
.step-nav button[aria-current="step"] span { color: white; background: var(--accent); border-color: var(--accent); }
.survey {
  min-width: 0;
  padding: clamp(25px, 3.3vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 24px #43203407;
  scroll-margin-top: 16px;
}
.progress { margin-bottom: 26px; }
.progress p { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 680; }
.progress-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.progress-track span { height: 3px; border-radius: 2px; background: var(--line); }
.progress-track .reached { background: var(--accent); }
h2 { margin: 0; font-size: clamp(27px, 3.1vw, 39px); line-height: 1.12; letter-spacing: -.045em; }
h2:focus { outline: none; }
.step-intro { margin: 9px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.fields { display: grid; gap: 17px; margin-top: 23px; }
.fields label, .summary-label { display: block; font-size: 14px; font-weight: 650; line-height: 1.4; }
.hint { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 400; }
input, textarea, select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}
textarea { resize: vertical; min-height: 86px; }
select { padding-right: 20px; }
select:invalid, select:has(option[value=""]:checked) { color: var(--muted); }
:where(button, a, input, textarea, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.primary, .secondary {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  line-height: 1.2;
}
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-hover); }
.primary span { font-size: 17px; line-height: 1; }
#next { margin-left: auto; }
.secondary { background: var(--surface); border-color: var(--line); color: var(--accent); }
.secondary:hover { background: var(--accent-soft); }
.optional, .copy-instructions, .copy-status { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.optional { text-align: right; }
.copy-status:empty { display: none; }
.error { margin: 14px 0 0; color: #8e2443; font-size: 14px; }
.summary-label { margin-top: 23px; }
#summary { background: var(--canvas); min-height: 170px; white-space: pre-wrap; }
.notice { margin: 0; line-height: 1.5; }
@media (max-width: 925px) {
  .frame { width: calc(100% - 56px); }
  .layout { gap: 32px; }
  .field-pair { grid-template-columns: 1fr; }
}
@media (max-width: 730px) {
  .frame { width: min(calc(100% - 32px), 520px); }
  .topbar-inner { min-height: 54px; padding-block: 10px; flex-wrap: wrap; gap: 5px 14px; }
  .wordmark { font-size: 14px; }
  .storage { font-size: 11px; }
  .layout { grid-template-columns: 1fr; gap: 22px; padding-block: 26px 28px; }
  .intro { padding-top: 0; }
  .intro h1 { font-size: clamp(34px, 8vw, 46px); letter-spacing: -.055em; text-wrap: balance; }
  .desktop-break { display: none; }
  .intro > p { margin-top: 12px; max-width: 44ch; font-size: 15px; }
  .step-nav { display: none; }
  .survey { padding: 22px 19px; border-radius: 17px; }
  .progress { margin-bottom: 20px; }
  .fields { margin-top: 19px; gap: 15px; }
  .actions { margin-top: 20px; }
  #next { flex: 1; }
  .optional { text-align: left; }
}
