:root {
  color-scheme: light;
  --bg: #f4f3ed;
  --surface: #ffffff;
  --text: #22302a;
  --muted: #66736d;
  --line: #d8ded7;
  --primary: #1f6f5b;
  --primary-strong: #164f42;
  --water: #356f86;
  --harvest: #c18a3b;
  --accent: #b65f2a;
  --accent-soft: #f3e2d4;
  --soft: #e7efe8;
  --sky: #dbeadf;
  --shadow: 0 14px 34px rgba(34, 48, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 280px),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.site-header {
  background: rgba(251, 250, 246, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  text-decoration: none;
  color: var(--primary-strong);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.nav,
.site-footer {
  flex-wrap: wrap;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.nav a,
.site-footer a {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--primary-strong);
}

.hero,
.page-header,
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 64px 0 80px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
}

.hero h1,
.page-header h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p,
.page-header p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-header .page-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.page-header {
  padding: 72px 0 40px;
}

.hero-panel {
  min-height: 480px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, var(--sky), #e9efe5 45%, var(--accent-soft));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  align-content: space-between;
}

.hero-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: -10px -10px 20px;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 215, 0.9);
  border-radius: 8px;
  background: var(--accent-soft);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(18, 33, 36, 0.72);
  color: white;
  font-size: 0.74rem;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(216, 222, 215, 0.85);
  border-radius: 8px;
}

.metric-grid strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--primary-strong);
}

.metric-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.inline-metrics {
  max-width: 680px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.route-stack {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.route-stack span {
  padding: 10px 12px;
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-weight: 700;
}

.eyebrow,
.label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.label.water {
  color: var(--water);
}

.label.harvest {
  color: var(--harvest);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}

.button.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.button:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  transform: translateY(-1px);
}

.section {
  padding: 40px 0;
}

.section-link {
  margin-top: 18px;
  font-weight: 800;
  color: var(--primary-strong);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading h2,
.section h2 {
  margin: 0;
  line-height: 1.25;
}

.section-heading p {
  max-width: 520px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.photo-story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.95fr;
  gap: 14px;
}

.photo-story-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--primary-strong);
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.photo-story-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.photo-story-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(18, 33, 36, 0.02), rgba(18, 33, 36, 0.82));
}

.photo-story-card div {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 340px;
  align-content: end;
  padding: 24px;
}

.photo-story-card span {
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.photo-story-card h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.24;
}

.photo-story-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.photo-story-card:hover img {
  transform: scale(1.035);
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.list-item,
.panel,
.question,
.feature-band,
.answer-box,
.faq-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card {
  display: block;
  width: 100%;
  min-height: 220px;
  padding: 22px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  overflow-wrap: anywhere;
}

.compact-card {
  min-height: 160px;
}

.card:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.card p,
.list-item p,
.panel p,
.note {
  color: var(--muted);
}

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

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 22px;
}

.list-item h2 {
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tags li {
  background: var(--soft);
  color: var(--primary-strong);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 24px;
}

.panel {
  padding: 22px;
}

.panel h2 + ul,
.panel h2 + p {
  margin-top: 10px;
}

.panel h2:not(:first-child) {
  margin-top: 24px;
}

.sticky-panel {
  align-self: start;
  position: sticky;
  top: 20px;
}

.content-block + .content-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.check-list {
  padding-left: 1.2rem;
}

.question-list {
  display: grid;
  gap: 16px;
}

.question {
  padding: 20px;
}

.question legend {
  font-weight: 800;
  margin-bottom: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.choice-grid label {
  display: flex;
  gap: 8px;
  min-height: 48px;
  align-items: center;
  padding: 10px 12px;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.choice-grid label:has(input:checked) {
  border-color: var(--primary);
  background: #edf6ef;
}

.result-card {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
}

.result-card .text-link {
  display: inline-flex;
}

.score-badge {
  display: inline-flex;
  width: fit-content;
  margin: 2px 0 12px;
  padding: 6px 10px;
  background: #edf6ef;
  color: var(--primary-strong);
  border-radius: 999px;
  font-weight: 800;
}

.diagnosis-next {
  margin-top: 24px;
}

[hidden] {
  display: none !important;
}

.feature-band {
  padding: 28px;
}

.answer-box,
.faq-list {
  padding: 28px;
}

.answer-box h2,
.faq-list h2 {
  margin: 0 0 16px;
}

.answer-box ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.answer-box li {
  padding-left: 18px;
  border-left: 4px solid var(--primary);
  color: var(--text);
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-list details:last-child {
  padding-bottom: 0;
}

.faq-list summary {
  cursor: pointer;
  color: var(--primary-strong);
  font-weight: 800;
}

.faq-list p {
  max-width: 780px;
  color: var(--muted);
}

.feature-band-strong {
  background:
    linear-gradient(90deg, rgba(31, 111, 91, 0.1), rgba(182, 95, 42, 0.1)),
    var(--surface);
}

.feature-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3.2vw, 2.7rem);
}

.topic-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.topic-strip div {
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 88%, var(--soft));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topic-strip strong {
  display: block;
  color: var(--primary-strong);
}

.topic-strip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.path-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.path-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.path-card p {
  color: var(--muted);
}

.path-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.path-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  background: var(--soft);
  color: var(--primary-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.source-list {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.reference-links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.reference-links li {
  padding: 10px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reference-links a {
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.text-link {
  margin-top: 18px;
  color: var(--primary-strong);
  font-weight: 800;
}

.area-table {
  display: grid;
  gap: 12px;
}

.area-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.area-row h2 {
  margin: 0;
  font-size: 1.3rem;
}

.area-row p {
  margin: 0;
  color: var(--muted);
}

.monetization-slot {
  margin: 32px 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.ad-placeholder {
  display: grid;
  min-height: 120px;
  place-items: center;
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
}

.article {
  max-width: 840px;
}

.article h2 {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article p {
  margin: 1rem 0;
}

.source-note {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.area-summary {
  display: grid;
  max-width: 680px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.area-summary div {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.area-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.area-summary strong {
  display: block;
  color: var(--primary-strong);
  font-size: 1.8rem;
  line-height: 1.1;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timeline div {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  font-weight: 800;
}

.timeline h3 {
  margin: 16px 0 8px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.official-links {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.official-links h2 {
  margin: 0 0 10px;
}

.official-links p {
  color: var(--muted);
}

.official-links ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.official-links li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 8px;
}

.official-links li span {
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.official-links li strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.official-links li a {
  color: var(--primary-strong);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .hero-layout,
  .section-heading,
  .list-item,
  .split,
  .area-row,
  .compact-grid,
  .timeline,
  .official-links,
  .official-links li {
    display: block;
  }

  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
    padding: 14px 0;
  }

  .nav {
    margin-top: 10px;
    gap: 12px;
    font-size: 0.95rem;
  }

  .hero {
    min-height: 420px;
    padding: 48px 0 64px;
  }

  .hero h1,
  .page-header h1 {
    font-size: 2.25rem;
  }

  .hero p,
  .page-header p {
    font-size: 1rem;
  }

  .page-header {
    padding: 46px 0 26px;
  }

  .section {
    padding: 28px 0;
  }

  .hero-panel,
  .compact-grid .card + .card,
  .timeline div,
  .official-links ul,
  .official-links li a {
    margin-top: 16px;
  }

  .inline-metrics,
  .metric-grid,
  .area-summary,
  .topic-strip,
  .path-grid,
  .photo-story-grid {
    grid-template-columns: 1fr;
  }

  .photo-story-card,
  .photo-story-card div {
    min-height: 260px;
  }

  .card,
  .feature-band,
  .answer-box,
  .faq-list,
  .question {
    padding: 18px;
  }

  .card {
    min-height: auto;
  }

  .card h3 {
    font-size: 1.28rem;
  }

  .section-heading h2,
  .section h2,
  .feature-band h2 {
    font-size: 1.45rem;
  }

  .button {
    width: 100%;
  }

  .list-item,
  .panel {
    margin-top: 12px;
  }

  .tags li {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero,
  .page-header,
  .section,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .hero h1,
  .page-header h1 {
    font-size: 1.95rem;
    line-height: 1.12;
  }

  .hero-panel,
  .card,
  .panel,
  .feature-band,
  .answer-box,
  .faq-list,
  .question,
  .official-links {
    padding: 16px;
  }

  .area-summary strong,
  .metric-grid strong {
    font-size: 1.55rem;
  }
}
