:root {
  --paper: #f5f3ee;
  --ink: #272922;
  --muted: #606258;
  --accent: #b64c2b;
  --line: #d4d3ca;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.site-header {
  padding: 30px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-weight: 750;
  letter-spacing: -1.3px;
  font-size: 27px;
  text-decoration: none;
}
.wordmark span {
  vertical-align: top;
  font-size: 11px;
  letter-spacing: 0;
  margin-left: 3px;
}
.back-link {
  font: 11px monospace;
  text-decoration: none;
}
.intro {
  max-width: 1200px;
  margin: auto;
  padding: 48px 0 36px;
}
.eyebrow {
  font: 10px monospace;
  letter-spacing: 0.09em;
  line-height: 1.7;
}
.intro .eyebrow {
  display: flex;
  justify-content: space-between;
  margin: 0 0 24px;
}
.intro .eyebrow span {
  color: var(--muted);
}
h1 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.065em;
  line-height: 1.03;
  font-weight: 500;
  margin: 0 0 26px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.intro > p:last-child {
  max-width: 570px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.questionnaire-layout {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 65px;
  padding: 48px 0 80px;
  border-top: 1px solid var(--line);
}
.step-sidebar {
  align-self: start;
  position: sticky;
  top: 30px;
}
.step-sidebar > .eyebrow {
  margin: 0 0 24px;
}
#step-nav {
  display: grid;
  gap: 3px;
}
.step-mobile-name {
  display: none;
}
.step-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 17px;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  padding: 13px 10px;
  color: var(--muted);
  font-size: 13px;
  min-height: 48px;
}
.step-link[aria-current="step"] {
  border-left-color: var(--accent);
  color: var(--ink);
  background: #ebe8df;
}
.step-link:hover {
  background: #ebe8df;
}
.step-number {
  font: 10px monospace;
  color: var(--accent);
}
.step-link[aria-current="step"] .step-number {
  color: var(--ink);
}
.privacy-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 25px;
}
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font: 10px monospace;
  line-height: 1.6;
}
.progress-row p {
  margin: 0;
}
.progress-row span {
  text-align: right;
}
.progress-track {
  height: 2px;
  background: var(--line);
  margin: 15px 0 30px;
}
.progress-track div {
  height: 2px;
  background: var(--accent);
  transition: width 0.2s;
}
h2 {
  font-weight: 500;
  letter-spacing: -0.045em;
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.section-copy {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 610px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 26px;
}
.field {
  min-width: 0;
}
.field.wide {
  grid-column: 1/-1;
}
.field > label,
.field > legend {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 4px;
}
.field > label .required {
  color: var(--accent);
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b5b7aa;
  border-radius: 0;
  padding: 11px 2px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  outline-offset: 3px;
}
.field textarea {
  resize: vertical;
  min-height: 85px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #72766b;
  font-size: 13px;
}
.helper {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  margin: 6px 0 0;
}
.field fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  padding-top: 10px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  line-height: 1.4;
  font-size: 13px;
}
.choice input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 40px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-height: 48px;
  padding: 15px 19px;
  border: 1px solid var(--line);
  font-size: 12px;
  text-decoration: none;
  line-height: 1.4;
}
.button-dark {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.button-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.button-light {
  background: transparent;
  color: var(--ink);
}
.button-light:hover {
  background: #ebe8df;
}
.review-group {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.review-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.review-group h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
}
.edit-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  min-width: 44px;
  font-size: 12px;
}
.review-group dl {
  margin: 0;
  display: grid;
  gap: 14px;
}
.review-group dt {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.review-group dd {
  font-size: 14px;
  margin: 3px 0 0;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-group .unanswered {
  font-size: 13px;
  color: var(--muted);
}
.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 12px;
}
#action-status {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  min-height: 20px;
}
#copy-text {
  width: 100%;
  min-height: 240px;
  font-size: 13px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 28px 5%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: 10px monospace;
  line-height: 1.6;
  color: var(--muted);
}
.notice {
  max-width: 1200px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
@media (max-width: 1350px) {
  .intro,
  .questionnaire-layout,
  .notice {
    margin-left: 6%;
    margin-right: 6%;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 22px 6%;
  }
  .wordmark {
    font-size: 23px;
  }
  .back-link {
    font-size: 9px;
  }
  .intro {
    padding: 30px 0 24px;
  }
  .intro .eyebrow {
    margin-bottom: 25px;
    font-size: 9px;
  }
  .intro .eyebrow span {
    display: none;
  }
  h1 {
    font-size: clamp(40px, 9vw, 58px);
  }
  .intro > p:last-child {
    font-size: 14px;
  }
  .questionnaire-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 0 45px;
  }
  .step-sidebar {
    position: static;
  }
  .step-sidebar > .eyebrow,
  .step-sidebar > .privacy-note {
    display: none;
  }
  #step-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .step-link {
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 0;
    min-height: 44px;
  }
  .step-link[aria-current="step"] {
    border-left: 0;
    border-bottom-color: var(--accent);
  }
  .step-link .step-name {
    display: none;
  }
  .step-mobile-name {
    display: block;
    font-size: 10px;
  }
  .step-number {
    font-size: 12px;
  }
  .progress-row {
    font-size: 9px;
  }
  .progress-track {
    margin-bottom: 25px;
  }
  h2 {
    font-size: 30px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .field.wide {
    grid-column: auto;
  }
  .choices {
    gap: 5px 10px;
  }
  .choice {
    font-size: 12px;
  }
  .form-actions {
    margin-top: 30px;
  }
  .button {
    padding: 13px 15px;
    font-size: 11px;
  }
  .review-actions {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .progress-track div {
    transition: none;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  .site-header,
  .intro,
  #step-nav,
  .step-sidebar,
  .progress-row,
  .progress-track,
  #brief-form,
  .review-actions,
  #email-note,
  #action-status,
  #copy-fallback,
  .edit-button,
  footer,
  .privacy-note {
    display: none !important;
  }
  .questionnaire-layout {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    max-width: none;
  }
  .questionnaire-body {
    width: 100%;
  }
  .review-group {
    break-inside: avoid;
  }
  h2 {
    font-size: 28px;
  }
  .review-group dt {
    color: #444;
  }
  .review-group dd {
    font-size: 12px;
  }
  .section-copy {
    font-size: 12px;
  }
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 14px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
.wordmark span {
  color: var(--accent);
  vertical-align: baseline;
  font-size: inherit;
  margin-left: 0;
}
