:root {
  color-scheme: light;
  --ink: #122532;
  --ink-soft: #40545f;
  --paper: #f6f1e6;
  --paper-deep: #e8dfce;
  --white: #fffdf8;
  --teal: #176f73;
  --teal-dark: #0d4f54;
  --copper: #b45f3f;
  --coral: #e9785f;
  --lime: #b7c94b;
  --line: rgba(18, 37, 50, 0.18);
  --shadow: 0 22px 60px rgba(18, 37, 50, 0.12);
  --measure: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(18, 37, 50, 0.035) 1px, transparent 1px) 0 0 / 4.75rem 100%,
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--copper);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 230, 0.96);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto;
  align-items: center;
  width: min(calc(100% - 2rem), var(--measure));
  min-height: 5.2rem;
  margin: 0 auto;
  gap: 1.25rem;
}

.brand {
  display: inline-grid;
  max-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.1;
}

.brand span {
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  min-width: 3rem;
  min-height: 3rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  gap: 0.4rem 1rem;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--teal-dark);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.35em;
}

main {
  min-height: 65vh;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(118deg, rgba(23, 111, 115, 0.94), rgba(13, 79, 84, 0.98)),
    var(--teal);
  color: var(--white);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 253, 248, 0.28);
  transform: rotate(36deg);
}

.hero::before {
  width: 29rem;
  height: 8rem;
  right: -8rem;
  top: 3rem;
}

.hero::after {
  width: 22rem;
  height: 6rem;
  right: 2rem;
  bottom: -4rem;
}

.hero-inner,
.page-grid,
.site-footer-inner {
  width: min(calc(100% - 2rem), var(--measure));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.7fr);
  min-height: 31rem;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  align-items: end;
  gap: clamp(2rem, 8vw, 7rem);
}

.eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.9rem);
  letter-spacing: -0.045em;
}

.page-title h1 {
  max-width: 16ch;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
}

.hero-copy {
  max-width: 30rem;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-copy strong {
  display: block;
  margin-bottom: 1rem;
  color: #e2ed92;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  gap: 0.7rem;
}

.button-link {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.6rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  background: var(--white);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.button-link.secondary {
  background: transparent;
  color: var(--white);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 1fr);
  padding: clamp(3rem, 7vw, 6rem) 0;
  gap: clamp(2rem, 8vw, 7rem);
}

.section-index {
  align-self: start;
  position: sticky;
  top: 1.5rem;
  padding-top: 0.6rem;
  border-top: 0.35rem solid var(--coral);
}

.section-index p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.section-index strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.content-flow {
  max-width: 49rem;
}

.content-flow > :first-child {
  margin-top: 0;
}

.content-flow h2 {
  margin: 3.7rem 0 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.7rem, 4vw, 2.55rem);
}

.content-flow h3 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.35rem;
}

.content-flow p,
.content-flow li {
  color: var(--ink-soft);
}

.content-flow strong {
  color: var(--ink);
}

.lede {
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 3vw, 1.75rem);
  line-height: 1.45;
}

.callout {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  border-left: 0.4rem solid var(--copper);
  background: var(--white);
  box-shadow: var(--shadow);
}

.callout p:first-child {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  min-height: 8.5rem;
  padding: 1.3rem;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

.fact b {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--teal-dark);
  font-size: 1.8rem;
}

.numbered-list {
  margin: 2rem 0;
  padding: 0;
  counter-reset: item;
  list-style: none;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  counter-increment: item;
  gap: 1rem;
}

.numbered-list li::before {
  content: counter(item, decimal-leading-zero);
  color: var(--copper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.plain-list {
  padding-left: 1.25rem;
}

.plain-list li + li {
  margin-top: 0.6rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 253, 248, 0.78);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  padding: 3rem 0;
  gap: 2rem;
}

.site-footer strong {
  display: block;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 0.5rem 1.2rem;
}

.footer-links a {
  color: var(--white);
  font-size: 0.82rem;
}

.legal-line {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
}

code {
  padding: 0.1em 0.35em;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 0.9em;
}

@media (max-width: 52rem) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    padding-bottom: 1.2rem;
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .site-nav a {
    display: block;
    padding: 0.6rem 0;
  }

  .hero-inner,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 28rem;
    align-items: end;
  }

  .section-index {
    position: static;
  }

  .fact-row {
    grid-template-columns: 1fr;
  }

  .fact {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 35rem) {
  body {
    background: var(--paper);
  }

  .site-nav ul,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 24rem;
    padding: 3.5rem 0;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .hero-actions {
    display: none !important;
  }

  body,
  .hero {
    background: #fff;
    color: #000;
  }

  .hero-inner,
  .page-grid {
    display: block;
    width: 100%;
    padding: 1rem 0;
  }

  .section-index {
    position: static;
  }
}
