:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f5ef;
  color: #17211f;
  font-synthesis: none;
  --green-900: #153f37;
  --green-800: #195548;
  --green-100: #e5f0ec;
  --gold-600: #85570d;
  --gold-100: #f7edda;
  --ink: #17211f;
  --muted: #59645f;
  --line: #d9d3c7;
  --paper: #ffffff;
  --danger: #9a3930;
  --shadow: 0 10px 28px rgba(23, 33, 31, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f7f5ef;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--green-800);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--paper);
  border: 2px solid var(--green-800);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.shell {
  width: min(46rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  min-height: 7.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #ebe6dc;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  flex: none;
  border-radius: 8px;
}

.brand span {
  display: grid;
  gap: 0.1rem;
}

.brand strong {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.2;
}

.brand small {
  color: var(--gold-600);
  font-size: 0.78rem;
  font-weight: 700;
}

.privacy-mark {
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 700;
  border-left: 3px solid var(--gold-600);
  padding-left: 0.65rem;
}

.shell {
  padding-block: 2.25rem 4rem;
}

.task-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green-800);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
  animation: enter 180ms ease-out both;
}

.task-panel.compact {
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold-600);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 19ch;
  margin-bottom: 0.75rem;
  font-size: 2rem;
  line-height: 1.13;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.lead {
  max-width: 57ch;
  font-size: 1.03rem;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.5rem 0;
  border-block: 1px solid var(--line);
}

.status-strip div {
  min-width: 0;
  padding: 0.85rem 0.75rem;
}

.status-strip div + div {
  border-left: 1px solid var(--line);
}

.status-strip small,
.proof-grid dt {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.88rem;
}

.notice {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold-600);
  background: var(--gold-100);
  color: #5c451f;
  line-height: 1.5;
}

.notice.error {
  border-left-color: var(--danger);
  background: #f9e9e6;
  color: #722c25;
}

.turnstile-shell {
  display: flex;
  width: 100%;
  min-height: 4.5rem;
  margin-block: 1.5rem 0.75rem;
  align-items: center;
}

.turnstile-shell > * {
  max-width: 100%;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-block: 1.4rem;
}

.field label,
legend {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bbb4a7;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  line-height: 1.45;
}

input {
  min-height: 3rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d29a38;
  outline-offset: 3px;
}

fieldset {
  min-width: 0;
  margin: 1.5rem 0;
  padding: 0;
  border: 0;
}

.choices {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.8rem;
  min-height: 4.5rem;
  align-items: start;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--green-800);
  background: var(--green-100);
  box-shadow: inset 3px 0 var(--green-800);
}

.choice input {
  width: 1.15rem;
  min-height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: var(--green-800);
}

.choice span {
  min-width: 0;
}

.choice strong,
.choice small {
  display: block;
}

.choice strong {
  color: var(--ink);
  line-height: 1.35;
}

.choice small {
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.45;
}

.actions {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.response-details {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.response-details-heading,
.response-target-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.response-details-heading p {
  max-width: 48ch;
  margin: 0;
  font-size: 0.88rem;
}

.text-button {
  flex: none;
  min-height: 2.5rem;
  border: 1px solid var(--green-800);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  background: var(--paper);
  color: var(--green-800);
  font-weight: 750;
  cursor: pointer;
}

.text-button.danger {
  min-height: 2rem;
  border-color: transparent;
  color: var(--danger);
}

.response-targets {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.response-target {
  display: grid;
  gap: 0.8rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
}

.response-target + .response-target {
  border-top: 0;
}

.response-target-grid {
  display: grid;
  grid-template-columns: minmax(8rem, 0.75fr) minmax(12rem, 1.25fr);
  gap: 0.75rem;
}

.response-target label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.response-target textarea {
  min-height: 5.5rem;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-800);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  background: var(--green-800);
  color: #fff;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: #fff;
  color: var(--green-800);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.5rem 0;
  padding: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-grid div {
  min-width: 0;
  background: #fff;
  padding: 1rem;
}

.proof-grid dd {
  margin: 0.35rem 0 0;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fingerprint {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

.outcome {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 800;
}

.loading-state {
  min-height: 14rem;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
}

.loading-state p {
  margin: 0;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #cfdad6;
  border-top-color: var(--green-800);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.site-footer {
  min-height: 5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 38rem) {
  .site-header,
  .site-footer,
  .shell {
    width: min(100% - 1.25rem, 46rem);
  }

  .site-header {
    min-height: 6.75rem;
  }

  .privacy-mark {
    max-width: 7rem;
    text-align: right;
  }

  .shell {
    padding-top: 1.25rem;
  }

  .task-panel {
    padding: 1.25rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  .status-strip,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .status-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .actions {
    flex-direction: column;
  }

  .response-details-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .response-target-grid {
    grid-template-columns: 1fr;
  }

  .text-button {
    width: 100%;
  }

  .response-target-heading .text-button {
    width: auto;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 24rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1rem;
  }

  .privacy-mark {
    max-width: none;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
