:root {
  color-scheme: light;
  --ink: #202f3b;
  --green: #245c50;
  --paper: #f8f7f1;
  --line: #d5ded5;
  --muted: #53665f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    18px/1.65 system-ui,
    sans-serif;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #ad651e;
  outline-offset: 4px;
}
header {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  font-size: 25px;
  font-weight: 750;
  text-decoration: none;
}
.brand span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav button,
footer button,
.text {
  border: 0;
  background: transparent;
  color: var(--green);
  text-decoration: underline;
  padding: 8px;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 28px 24px 50px;
}
.intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 25px 0 45px;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--green);
}
intro p {
  max-width: 640px;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 20px 0;
}
h1 em {
  font-weight: 400;
  color: var(--green);
}
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 37px);
  line-height: 1.25;
  margin: 14px 0;
}
h3 {
  line-height: 1.4;
}
.lead {
  font-size: 20px;
  max-width: 580px;
  color: var(--muted);
}
.guide {
  background: #e8eee7;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 30px;
}
.guide p {
  font-size: 15px;
}
.mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font:
    26px Georgia,
    serif;
}
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  background: white;
  border-radius: 30px;
}
.disclosure {
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  margin-bottom: 40px;
}
.panel {
  background: white;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0;
}
.choice {
  display: block;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
}
.choice:hover {
  border-color: var(--green);
  background: #f0f5ef;
}
.choice strong {
  display: block;
  font-size: 20px;
}
.choice span {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-top: 5px;
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.primary,
.secondary {
  display: inline-block;
  border-radius: 30px;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 650;
  min-height: 48px;
}
.primary {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
}
.secondary {
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
}
.answers {
  display: grid;
  gap: 12px;
  margin: 25px 0;
}
.answer {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
}
.answer:has(input:checked) {
  background: #e8eee7;
  border-color: var(--green);
}
input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
  flex-shrink: 0;
}
progress {
  width: 100%;
  height: 8px;
  accent-color: var(--green);
}
fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}
legend {
  font-size: 24px;
  line-height: 1.45;
  margin: 22px 0 0;
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.result {
  font-size: 42px;
  font-family: Georgia, serif;
  color: var(--green);
  margin: 15px 0;
}
.safety {
  border: 2px solid #9b531f;
  background: #fff8ed;
  padding: 24px;
  border-radius: 16px;
  margin: 20px 0;
}
.safety h2 {
  color: #783c16;
}
.recommendation {
  border-left: 3px solid var(--green);
  padding-left: 20px;
  margin: 25px 0;
}
textarea {
  width: 100%;
  font: inherit;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 125px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
th,
td {
  text-align: left;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
}
footer {
  font-size: 13px;
  color: var(--muted);
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 5px;
  background: white;
  padding: 10px;
  z-index: 3;
}
.check {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin: 24px 0;
}
.check input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 5px;
}
@media (max-width: 720px) {
  header {
    padding: 18px;
    align-items: flex-start;
  }
  .brand {
    font-size: 21px;
  }
  nav {
    gap: 10px;
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  main {
    padding: 12px 18px 35px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 10px;
  }
  .guide {
    padding: 22px;
  }
  .guide h2 br {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 23px 18px;
  }
  legend {
    font-size: 22px;
  }
  .actions > * {
    flex-grow: 1;
    text-align: center;
  }
  th,
  td {
    font-size: 14px;
    padding: 10px 4px;
  }
}
@media print {
  header,
  footer,
  button,
  .actions,
  .intro,
  .disclosure {
    display: none;
  }
  .panel {
    border: 0;
  }
  body {
    background: white;
  }
}
