:root {
  color-scheme: light;
  --paper: #f4efe4;
  --paper-deep: #e5dac6;
  --ink: #231f19;
  --muted: #6d6254;
  --line: #c9bda8;
  --forest: #184433;
  --moss: #667844;
  --clay: #ad5536;
  --sky: #d8e5e7;
  --snow: #fffaf0;
  --shadow: 0 22px 70px rgba(35, 31, 25, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(216, 229, 231, 0.8), transparent 34%),
    linear-gradient(180deg, var(--paper), var(--paper-deep));
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.intro,
.quiz,
.result {
  min-height: calc(100vh - 80px);
}

.intro {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 32px 0;
}

.intro::before {
  content: "";
  display: block;
  width: min(100%, 760px);
  height: 180px;
  border: 1px solid rgba(35, 31, 25, 0.12);
  background:
    linear-gradient(160deg, rgba(24, 68, 51, 0.95), rgba(102, 120, 68, 0.72)),
    repeating-linear-gradient(110deg, rgba(255, 250, 240, 0.15) 0 1px, transparent 1px 22px);
  clip-path: polygon(0 72%, 11% 58%, 20% 66%, 29% 42%, 41% 55%, 51% 24%, 62% 49%, 73% 29%, 84% 54%, 100% 34%, 100% 100%, 0 100%);
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-kicker,
.share-label {
  margin: 0;
  color: var(--clay);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(2.55rem, 8vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.lede,
.question-note,
.result-dek,
.tum-cta p {
  max-width: min(680px, 100%);
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.lede {
  max-width: 34ch;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-strip span,
.match-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 7px 11px;
  background: rgba(255, 250, 240, 0.58);
  color: var(--forest);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  border: 0;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
}

.primary-action {
  width: fit-content;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--forest);
  color: var(--snow);
  box-shadow: 0 12px 30px rgba(24, 68, 51, 0.24);
}

.secondary-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 250, 240, 0.68);
  color: var(--forest);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.option-button:focus-visible,
.link-action:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.primary-action:active,
.secondary-action:active,
.option-button:active {
  transform: translateY(1px);
}

.quiz {
  display: grid;
  align-content: center;
  gap: 22px;
}

.quiz-topline {
  display: grid;
  gap: 12px;
}

.progress-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(35, 31, 25, 0.12);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--clay);
  transition: width 180ms ease;
}

.options {
  display: grid;
  gap: 12px;
}

.option-button {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 240, 0.76);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 24px rgba(35, 31, 25, 0.06);
}

.option-button:hover {
  border-color: var(--forest);
  background: var(--snow);
}

.option-title {
  display: block;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 850;
}

.option-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.35;
}

.result {
  padding: 22px 0 0;
}

.result-hero,
.panel,
.share-card,
.tum-cta {
  border: 1px solid rgba(35, 31, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
  box-shadow: var(--shadow);
}

.result-hero {
  padding: 24px;
}

.match-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.share-card {
  margin-top: 16px;
  padding: 18px;
  background: var(--forest);
  color: var(--snow);
}

.share-card p:last-child {
  margin-bottom: 0;
  font-size: 1.14rem;
  line-height: 1.4;
}

.share-label {
  margin-bottom: 8px;
  color: #e9bf98;
}

.result-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 20px;
}

.panel-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}

.pick-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 24px;
}

.pick-list li::marker {
  color: var(--clay);
  font-weight: 900;
}

.pick-name {
  display: block;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
}

.pick-why {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
}

.tum-cta {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 22px;
  background: linear-gradient(115deg, rgba(216, 229, 231, 0.9), rgba(255, 250, 240, 0.82));
}

.tum-cta h3 {
  margin-top: 6px;
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
}

.link-action {
  text-decoration: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.is-hidden {
  display: none;
}

@media (min-width: 720px) {
  .shell {
    padding: 40px 32px 72px;
  }

  .intro {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    column-gap: 44px;
    row-gap: 18px;
  }

  .intro::before {
    grid-column: 2;
    grid-row: 1 / span 5;
    height: min(56vw, 560px);
    align-self: stretch;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tum-cta {
    grid-template-columns: 1fr auto;
  }
}
