:root {
  --ink: #17212b;
  --muted: #56636f;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #d9dedb;
  --soft: #eef3ef;
  --accent: #176b5b;
  --accent-dark: #0d5144;
  --accent-light: #dcefe9;
  --warm: #b6613b;
  --shadow: 0 16px 42px rgba(23, 33, 43, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(182, 97, 59, 0.12), transparent 22rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 42px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 800px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.intro {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 70px;
}

.summary-panel {
  align-self: start;
  position: sticky;
  top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.summary-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.summary-heading h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

#progress-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--soft);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.answer-summary {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.answer-summary li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.answer-summary li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.answer-summary .answer-question {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.answer-summary .answer-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.empty-summary {
  color: var(--muted);
  font-size: 0.88rem;
}

.workspace {
  min-width: 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.question-card {
  padding: clamp(25px, 5vw, 48px);
}

.question-card h2,
.results-header h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.question-help,
.results-header p {
  max-width: 700px;
  color: var(--muted);
}

.answer-controls {
  display: grid;
  gap: 13px;
  margin: 30px 0 36px;
}

.option-button {
  width: 100%;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.option-button:hover,
.option-button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(23, 107, 91, 0.12);
  outline: 0;
  transform: translateY(-1px);
}

.option-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 780;
}

.option-description {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.navigation,
.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.button.quiet {
  color: var(--muted);
  background: transparent;
}

.error-box {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #db9c80;
  border-radius: 12px;
  color: #71351d;
  background: #fff0e9;
}

.results {
  display: grid;
  gap: 22px;
}

.results-header {
  padding: 18px 4px 4px;
}

.recommendation-list {
  display: grid;
  gap: 18px;
}

.recommendation-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.recommendation-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
  content: "";
}

.recommendation-rank {
  display: inline-block;
  margin-bottom: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recommendation-card h3 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.example-figure {
  overflow: hidden;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf7;
}

.example-figure img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #fff;
}

.example-figure figcaption {
  margin: 0;
  padding: 11px 13px 13px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.example-figure figcaption strong {
  color: var(--accent-dark);
}

.example-figure figcaption a {
  color: var(--accent-dark);
  font-weight: 750;
}

.recommendation-detail {
  margin-bottom: 11px;
}

.recommendation-detail:last-child {
  margin-bottom: 0;
}

.recommendation-detail strong {
  color: var(--accent-dark);
}

.recommendation-detail ul {
  margin: 7px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.recommendation-detail li + li {
  margin-top: 5px;
}

.supporting-card {
  padding: 26px 28px;
  box-shadow: none;
}

.supporting-card h3 {
  margin-bottom: 12px;
}

.supporting-card ul {
  margin: 0;
  padding-left: 20px;
}

.supporting-card li + li {
  margin-top: 8px;
}

footer {
  border-top: 1px solid var(--line);
}

footer p {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

footer p:last-child {
  padding: 8px 0 30px;
}

@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .layout,
  footer p {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    padding-top: 38px;
  }

  .layout {
    margin-top: 24px;
  }

  .question-card {
    border-radius: 16px;
  }
}
