:root {
  color-scheme: light;
  --bg: #f4efe7;
  --surface: rgba(255, 251, 246, 0.84);
  --surface-strong: rgba(255, 248, 240, 0.92);
  --text: #1f1a16;
  --muted: #6f6458;
  --line: rgba(62, 46, 33, 0.12);
  --accent: #0f766e;
  --accent-strong: #0a4f4a;
  --shadow: 0 30px 70px rgba(78, 52, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.15), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(191, 122, 67, 0.17), transparent 30%),
    linear-gradient(180deg, #f6f0e6 0%, #efe4d3 100%);
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar,
.hero,
.note-band,
.cta-panel {
  display: flex;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 10px 4px;
}

.topbar-left,
.topbar-links,
.language-switcher,
.panel-grid,
.card-grid,
.step-grid,
.list-grid,
.cta-actions,
.footer {
  display: flex;
}

.topbar-left,
.topbar-links,
.language-switcher {
  align-items: center;
  gap: 14px;
}

.topbar-links {
  gap: 18px;
}

.brand,
.back-link,
.topbar-links a,
.footer a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-links a,
.back-link,
.footer,
.footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.language-switcher {
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.language-button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.language-button.is-active {
  background: var(--accent);
  color: #f7fffe;
}

.hero {
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  padding: 24px 0 40px;
}

.hero-copy,
.hero-panel,
.card,
.step-card,
.list-card,
.note-band,
.cta-panel {
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.note-band,
.cta-panel {
  border-radius: 28px;
  background: var(--surface);
}

.hero-copy,
.hero-panel {
  padding: 36px;
}

.hero-copy {
  flex: 1.4;
}

.hero-panel {
  flex: 0.9;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

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

h1 {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1.16;
  max-width: 18ch;
}

.lede,
.section-heading p,
.card p,
.step-card p,
.list-card p,
.note-copy p {
  color: var(--muted);
  line-height: 1.68;
}

.lede {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 1rem;
}

.panel-grid,
.card-grid,
.step-grid,
.list-grid {
  gap: 18px;
}

.panel-grid {
  flex-direction: column;
}

.panel-item {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.panel-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.panel-value {
  font-size: 1rem;
}

.section {
  margin-bottom: 28px;
}

.section-heading {
  margin-bottom: 22px;
  padding: 0 4px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 1.35vw, 1.4rem);
  line-height: 1.2;
  max-width: 18ch;
}

.card-grid,
.step-grid,
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.step-card,
.list-card,
.chart-guide-card {
  border-radius: 24px;
  padding: 24px;
  background: var(--surface-strong);
}

.card h3,
.step-card h3,
.list-card h3,
.chart-guide-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.28;
}

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

.chart-guide-kicker {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chart-guide-copy {
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.chart-guide-copy div {
  display: grid;
  gap: 4px;
}

.chart-guide-copy dt,
.chart-guide-copy dd {
  margin: 0;
}

.chart-guide-copy dt {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-guide-copy dd {
  color: var(--muted);
  line-height: 1.65;
}

.accent .step-card {
  background: rgba(255, 252, 247, 0.74);
}

.step-number {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 16px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  font-size: 0.85rem;
}

.note-band,
.cta-panel {
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
}

.note-copy {
  max-width: 48ch;
  display: grid;
  gap: 12px;
}

.cta-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.26;
  max-width: 22ch;
}

.footer {
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding: 0 4px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.cta-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.96rem;
}

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

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.54);
}

@media (max-width: 980px) {
  .hero,
  .card-grid,
  .step-grid,
  .list-grid,
  .note-band,
  .cta-panel,
  .topbar,
  .footer {
    flex-direction: column;
  }

  .card-grid,
  .step-grid,
  .list-grid,
  .chart-guide-grid {
    grid-template-columns: 1fr;
  }
}
