:root {
  color-scheme: light;
  --ink: #243732;
  --muted: #687a74;
  --paper: #f2eee5;
  --card: #fffdf8;
  --sage: #789b8d;
  --sage-dark: #416c5e;
  --line: #d7d7cc;
  --danger: #8b3434;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 12% 8%, rgba(120, 155, 141, 0.16), transparent 28rem),
    var(--paper);
  color: var(--ink);
}

a { color: inherit; }
button, input, textarea { font: inherit; }

.quiet-header,
.quiet-footer,
.page-shell {
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
}

.quiet-header {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.mark span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sage-dark);
  border-radius: 50%;
  color: var(--sage-dark);
}

.mark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.page-shell {
  padding: 44px 0 80px;
  display: grid;
  align-items: center;
}

.quiet-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.center-card,
.survey-card,
.review-card,
.admin-card {
  width: 100%;
  padding: clamp(28px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 28px 70px rgba(36, 55, 50, 0.08);
}

.center-card { max-width: 720px; margin-inline: auto; }
.admin-card.narrow { max-width: 620px; margin-inline: auto; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lead {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.5vw, 1.3rem);
  line-height: 1.7;
}

.small-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid #cfb29f;
  border-radius: 12px;
  background: #fff3e8;
}

.progress-copy {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #e0e0d6;
}

progress::-webkit-progress-bar { background: #e0e0d6; }
progress::-webkit-progress-value { background: var(--sage); }
progress::-moz-progress-bar { background: var(--sage); }

.question-form { margin-top: 48px; }

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3.65rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.field-help {
  margin: 16px 0 28px;
  color: var(--muted);
  line-height: 1.5;
}

.scale {
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}

.scale label { cursor: pointer; }
.scale input { position: absolute; opacity: 0; }

.scale span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  font-weight: 800;
}

.scale input:checked + span {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: white;
}

.scale input:focus-visible + span {
  outline: 3px solid rgba(65, 108, 94, 0.3);
  outline-offset: 2px;
}

.text-field {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
}

.text-field em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
}

textarea,
input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  padding: 16px;
  resize: vertical;
  line-height: 1.6;
}

input[type="password"] { padding: 14px 16px; }

textarea:focus,
input[type="password"]:focus {
  border-color: var(--sage-dark);
  outline: 3px solid rgba(65, 108, 94, 0.17);
}

.actions,
.submit-form {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--sage-dark);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  background: var(--sage-dark);
  color: white;
  cursor: pointer;
}

.secondary-button { background: transparent; color: var(--sage-dark); }

.skip-form {
  margin-top: 20px;
  text-align: right;
}

.skip-form button,
.quiet-action {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.review-list,
.response-list,
.submission-list {
  margin: 40px 0;
  padding: 0;
  list-style: none;
}

.review-list li,
.response-list li {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.review-question {
  margin: 0 0 10px;
  font-weight: 800;
  line-height: 1.5;
}

.review-answer,
.response-value {
  margin: 0 0 8px;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.review-comment,
.response-comment {
  margin: 12px 0;
  padding-left: 18px;
  border-left: 3px solid var(--sage);
  line-height: 1.7;
  white-space: pre-wrap;
}

.review-empty {
  margin: 0 0 8px;
  color: var(--muted);
  font-style: italic;
}

.review-list a,
.back-link {
  color: var(--sage-dark);
  font-size: 0.84rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.admin-form {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.admin-form .primary-button { justify-self: start; }

.submission-list li { border-top: 1px solid var(--line); }

.submission-list a {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
}

.submission-list span:first-child { display: grid; gap: 6px; }
.submission-list small,
.submission-list span:last-child { color: var(--muted); }

.danger-zone {
  margin-top: 58px;
  padding: 20px;
  border: 1px solid #d7b7b7;
  border-radius: 12px;
  color: var(--danger);
}

.danger-zone summary { cursor: pointer; font-weight: 800; }
.danger-zone button {
  padding: 10px 14px;
  border: 1px solid var(--danger);
  border-radius: 8px;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
}

@media (max-width: 620px) {
  .page-shell { padding-top: 20px; }

  .center-card,
  .survey-card,
  .review-card,
  .admin-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .progress-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .question-form { margin-top: 36px; }

  .scale {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }

  .actions,
  .submit-form { align-items: stretch; }
  .primary-button,
  .secondary-button { text-align: center; }

  .submission-list a { flex-direction: column; }
}
