:root {
  color-scheme: light;
  --bg: #f1ede4;
  --bg-soft: #dcebe7;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #173038;
  --muted: #5a6d74;
  --accent: #0f766e;
  --accent-dark: #0b5b56;
  --warn: #96512a;
  --warn-dark: #7d3f1d;
  --border: rgba(15, 118, 110, 0.14);
  --shadow: 0 24px 48px rgba(23, 48, 56, 0.12);
  --shadow-strong: 0 32px 60px rgba(23, 48, 56, 0.16);
  --radius-lg: 28px;
  --radius-md: 22px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 32%),
    radial-gradient(circle at 100% 10%, rgba(15, 118, 110, 0.14), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(150, 81, 42, 0.08), transparent 24%),
    linear-gradient(140deg, var(--bg) 0%, #f8f4ed 38%, #f7fbfa 68%, var(--bg-soft) 100%);
}

.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 30px 18px 42px;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.7fr);
  gap: 24px;
  padding: 30px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(11, 91, 86, 0.98), rgba(15, 118, 110, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  box-shadow: 0 30px 54px rgba(11, 91, 86, 0.22);
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-panel::before {
  inset: -60px auto auto -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
}

.hero-panel::after {
  inset: auto -70px -100px auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
}

.hero-copy,
.hero-nav {
  position: relative;
  z-index: 1;
}

.hero-label {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.02em;
}

h1 {
  max-width: min(13ch, 100%);
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  line-height: 1.04;
  color: #ffffff;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-chips span,
.hero-nav a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.hero-chips span {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hero-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-nav a {
  justify-content: space-between;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.hero-nav a::after {
  content: "→";
  opacity: 0.78;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.14);
}

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

.section-card {
  position: relative;
  padding: 30px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.section-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.95), rgba(15, 118, 110, 0.28));
}

.section-card::after {
  content: attr(data-section);
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.section-card h2 {
  max-width: calc(100% - 4.5rem);
  margin-bottom: 18px;
  font-size: 1.6rem;
  line-height: 1.12;
  color: var(--text);
}

.section-card p,
.numbered-list li,
.bullet-list li {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.numbered-list,
.bullet-list {
  margin: 0;
}

.numbered-list {
  padding: 0;
  list-style: none;
  counter-reset: clause;
}

.numbered-list li {
  position: relative;
  padding-left: 3rem;
}

.numbered-list li::before {
  counter-increment: clause;
  content: "(" counter(clause) ")";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

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

.bullet-list li::marker {
  color: var(--accent);
}

.numbered-list li + li,
.bullet-list li + li,
.section-card p + .numbered-list,
.section-card p + .bullet-list,
.numbered-list + p,
.bullet-list + p,
.section-card p + p {
  margin-top: 14px;
}

.tone-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
}

.tone-accent {
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.07), rgba(255, 255, 255, 0.94)),
    var(--surface-strong);
}

.tone-warn {
  background:
    linear-gradient(180deg, rgba(150, 81, 42, 0.08), rgba(255, 255, 255, 0.94)),
    var(--surface-strong);
}

.tone-warn::before {
  background: linear-gradient(90deg, rgba(150, 81, 42, 0.95), rgba(150, 81, 42, 0.28));
}

.tone-warn::after {
  background: rgba(150, 81, 42, 0.1);
  color: var(--warn-dark);
  box-shadow: inset 0 0 0 1px rgba(150, 81, 42, 0.1);
}

.span-3 {
  grid-column: span 3;
}

.span-6 {
  grid-column: span 6;
}

.span-9 {
  grid-column: span 9;
}

.span-12 {
  grid-column: span 12;
}

@media (max-width: 980px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

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

  .span-3,
  .span-6,
  .span-9,
  .span-12 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 14px;
  }

  .hero-panel,
  .section-card {
    padding: 22px;
    border-radius: var(--radius-md);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.7rem, 8vw, 2.45rem);
    line-height: 1.08;
  }

  .section-card h2 {
    max-width: calc(100% - 3.6rem);
    font-size: 1.42rem;
  }

  .section-card::after {
    top: 14px;
    right: 14px;
    min-width: 2.1rem;
    height: 2.1rem;
    padding-inline: 0.62rem;
  }

  .numbered-list li {
    padding-left: 2.5rem;
  }
}
