:root {
  --ink: #17232a;
  --muted: #617078;
  --paper: #fff;
  --bg: #f3f7f5;
  --red: #8f1d36;
  --red-dark: #671226;
  --rose: #f7e9ed;
  --teal: #0b716b;
  --line: #dbe5e1;
  --amarillo: #f3a915;
  --shadow: 0 16px 45px rgba(23, 35, 42, 0.09);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.55;
}
.menu {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
}
.menu a {
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}
.menu a:hover {
  color: var(--amarillo);
}
.hero {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 255, 255, 0.16),
      transparent 25%
    ),
    linear-gradient(135deg, #611228, #9b2540 58%, #0b716b);
  color: #fff;
  padding: 64px 24px 72px;
}
.hero__inner,
.layout {
  width: min(1040px, 100%);
  margin: auto;
}
.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.04;
  margin: 0.35rem 0 1rem;
  max-width: 780px;
}
.hero p {
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0;
  color: #ffeef2;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 800;
}
.layout {
  display: grid;
  gap: 24px;
  padding: 0 24px 64px;
  margin-top: -36px;
}
.panel {
  background: var(--paper);
  border: 1px solid rgba(219, 229, 225, 0.8);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.section-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.section-heading h2,
.source h2 {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  margin: 0;
}
.section-heading p {
  color: var(--muted);
  margin: 0.2rem 0 0;
}
.step-badge {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  margin-bottom: 18px;
}
input,
textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  border: 1px solid #bdcbc6;
  border-radius: 10px;
  padding: 12px 13px;
  background: #fcfdfd;
}
input:focus,
textarea:focus {
  outline: 3px solid rgba(11, 113, 107, 0.17);
  border-color: var(--teal);
}
textarea {
  resize: vertical;
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--red-dark);
}
.btn--ghost {
  background: #eaf2ef;
  color: var(--ink);
}
.btn--danger {
  background: #fff0f1;
  color: #9d1f32;
}
.error {
  color: #a4102a;
  font-weight: 700;
}
.progress {
  height: 8px;
  background: #e8eeec;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--teal));
  transition: width 0.25s;
}
.question-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(145deg, #fff, #fbf5f7);
}
.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.question-card h3 {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  margin: 14px 0 18px;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.options {
  display: grid;
  gap: 12px;
}
.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  border: 1px solid #cdd9d5;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: 0.18s;
}
.option:hover,
.option:focus-visible {
  border-color: var(--red);
  box-shadow: 0 7px 22px rgba(143, 29, 54, 0.1);
  transform: translateY(-1px);
}
.option__letter {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--rose);
  color: var(--red);
  font-weight: 900;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.result {
  text-align: center;
  border-top: 6px solid var(--teal);
}
.result__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #dff4ee;
  color: var(--teal);
  font-size: 1.7rem;
  font-weight: 900;
}
.result h2 {
  font-family: Georgia, serif;
  margin: 0.4rem 0;
}
.genus {
  font:
    italic 700 clamp(2rem, 7vw, 4rem) Georgia,
    serif;
  color: var(--red);
  margin: 0.5rem 0 1rem;
}
.result details,
.result label {
  text-align: left;
}
.result details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 24px 0;
}
.result summary {
  font-weight: 800;
  cursor: pointer;
}
.result li {
  margin: 0.65rem 0;
}
.status {
  font-weight: 800;
  color: var(--teal);
}
.source {
  background: #edf5f2;
  box-shadow: none;
}
.source__citation {
  font-size: 0.9rem;
  color: var(--muted);
}
dialog {
  width: min(620px, calc(100% - 30px));
  border: 0;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}
dialog::backdrop {
  background: rgba(10, 20, 25, 0.6);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-head h2 {
  font-family: Georgia, serif;
}
.dialog-head button {
  border: 0;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
}
dt {
  font-weight: 900;
  color: var(--red);
}
dd {
  margin: 0 0 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 680px) {
  .hero {
    padding-top: 44px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .panel {
    border-radius: 16px;
  }
  .question-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .actions .btn {
    width: 100%;
  }
}
