@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap");

:root {
  color-scheme: light;
  --paper: #f1f3ec;
  --ink: #193a32;
  --muted: #6c7d73;
  --line: #cbd4c9;
  --accent: #d45139;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--paper);
  background-image: radial-gradient(#193a3210 0.65px, transparent 0.65px);
  background-size: 7px 7px;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell,
.admin-shell {
  width: min(100%, 620px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
}

.guest-shell {
  padding-top: 18px;
  padding-bottom: 16px;
}

.topline,
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topline {
  min-height: 36px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.wordmark-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  transform: translateY(25%);
}

.wordmark span {
  color: var(--accent);
}

.step-label,
.eyebrow,
.page-footer {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.step-label,
.page-footer {
  letter-spacing: 1.1px;
}

.step-label {
  color: var(--muted);
}

.step-label i {
  padding-inline: 5px;
  color: var(--accent);
  font-style: normal;
}

.intro {
  margin-top: clamp(42px, 8vh, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

h1,
h2,
p {
  margin-top: 0;
}

.intro h1,
.admin-content h1 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(43px, 12vw, 62px);
  font-weight: 500;
  line-height: 1.05;
}

h1 em {
  color: var(--accent);
  font-weight: 500;
}

.intro-copy {
  max-width: 340px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.name-form {
  margin-top: 38px;
}

.name-form label {
  display: block;
  margin-bottom: 11px;
  font-size: 12px;
  font-weight: 600;
}

.input-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.input-row input {
  flex: 1;
  width: 0;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.input-row input::placeholder {
  color: #9ba89d;
}

.input-row input:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px #193a321a;
}

.arrow-button {
  display: grid;
  width: 56px;
  min-width: 56px;
  min-height: 54px;
  place-items: center;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.arrow-button:hover {
  transform: translateX(2px);
  background: var(--accent);
}

.arrow-button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.page-footer {
  margin-top: auto;
  padding-top: 48px;
  color: var(--muted);
  font-size: 9px;
  justify-content: center;
}

.page-footer b {
  color: var(--accent);
  font-size: 13px;
}

.survey-intro {
  margin-top: clamp(38px, 7vh, 58px);
}

.survey-intro h1 {
  overflow-wrap: anywhere;
}

.survey-flow {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}

.progress-caption {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}

.survey-progress {
  display: block;
  width: 100%;
  height: 5px;
  margin: 10px 0 22px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: var(--line);
}

.survey-progress::-webkit-progress-bar {
  background: var(--line);
}

.survey-progress::-webkit-progress-value {
  background: var(--accent);
  transition: width 180ms ease;
}

.survey-progress::-moz-progress-bar {
  background: var(--accent);
  transition: width 180ms ease;
}

.survey-question h2,
.survey-complete h2 {
  margin-bottom: 13px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.admin-notice h2 {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.answer-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.answer-options legend {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.answer-choice {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fbfcf8;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}

.answer-choice:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px #193a321a;
}

.answer-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--accent);
}

.answer-choice input:checked + span {
  font-weight: 600;
}

.survey-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.survey-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.survey-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.survey-button:disabled {
  border-color: var(--line);
  color: #9ba89d;
  cursor: default;
}

.survey-button-secondary {
  background: transparent;
  color: var(--ink);
}

.survey-button-primary {
  margin-left: auto;
  background: var(--ink);
  color: #fff;
}

.survey-button-primary:not(:disabled):hover {
  border-color: var(--accent);
  background: var(--accent);
}

.survey-button-primary:disabled {
  border-color: var(--line);
  background: #dce2d8;
  color: #738277;
  cursor: not-allowed;
}

.survey-note,
.survey-complete p {
  max-width: 420px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.admin-notice p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.survey-complete {
  margin-top: 42px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.survey-complete h2 {
  margin-bottom: 0;
}

.survey-complete p {
  margin-top: 10px;
}

.admin-shell {
  width: min(100%, 840px);
  padding-inline: 32px;
}

.admin-content {
  margin-block: auto;
  padding-block: 76px;
}

.admin-content h1 {
  font-size: clamp(48px, 8vw, 72px);
}

.admin-notice {
  display: flex;
  gap: 16px;
  max-width: 620px;
  margin-top: 42px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice-mark {
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  place-items: center;
  border-radius: 50%;
  background: #d451391a;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 17px;
}

.admin-notice h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.desktop-gate {
  display: none;
}

@media (min-width: 760px) {
  .guest-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px;
  }

  .guest-shell {
    display: none;
  }

  .desktop-gate {
    display: block;
    width: min(100%, 620px);
    padding: 64px;
    border: 1px solid var(--line);
    background-color: var(--paper);
    background-image: radial-gradient(#193a3210 0.65px, transparent 0.65px);
    background-size: 7px 7px;
  }

  .desktop-gate h1 {
    margin-bottom: 16px;
    font-family: var(--serif);
    font-size: 54px;
    font-weight: 500;
    line-height: 1.08;
  }

  .desktop-gate p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
  }
}

@media (max-height: 760px) and (max-width: 759px) {
  .guest-shell {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .intro {
    margin-top: clamp(30px, 6vh, 44px);
  }

  .survey-intro {
    margin-top: clamp(28px, 5vh, 40px);
  }

  .name-form {
    margin-top: 28px;
  }

  .survey-flow {
    margin-top: 22px;
    padding-top: 12px;
  }

  .survey-progress {
    margin: 9px 0 14px;
  }

  .survey-question h2,
  .survey-complete h2 {
    margin-bottom: 10px;
    font-size: 25px;
  }

  .answer-options legend {
    margin-bottom: 8px;
  }

  .answer-choice {
    min-height: 48px;
    margin-bottom: 7px;
    padding-block: 8px;
  }

  .survey-controls {
    margin-top: 12px;
  }

  .survey-note {
    margin-top: 10px;
  }

  .guest-shell .page-footer {
    padding-top: 18px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-inline: 19px;
  }

  .intro h1 {
    font-size: 43px;
  }

  .admin-shell {
    padding-inline: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
