:root {
  color-scheme: dark;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  background: #0b0e0e;
  color: #eeeae0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(60rem 30rem at 85% 0, rgba(119, 217, 189, 0.065), transparent 72%),
    radial-gradient(55rem 32rem at 0 30%, rgba(217, 184, 93, 0.06), transparent 70%),
    #0b0e0e;
  color: #eeeae0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid #efd586;
  outline-offset: 4px;
}

.skip {
  position: fixed;
  z-index: 5;
  top: -5rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: #d9b85d;
  color: #17170f;
  font-weight: 700;
}

.skip:focus {
  top: 0;
}

.shell {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid rgba(235, 231, 217, 0.09);
}

.header-inner,
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  min-height: 5.25rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
}

.brand-logo {
  display: block;
  width: 0.95rem;
  height: 1.28rem;
  object-fit: contain;
}

.header-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  color: #a3aaa5;
  font-size: 0.78rem;
}

.header-nav a:hover,
.footer-nav a:hover,
.text-link:hover {
  color: #efd586;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0 1rem;
  border: 1px solid #d9b85d;
  border-radius: 0.42rem;
  background: #d9b85d;
  color: #17170f;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.header-cta {
  background: transparent;
  color: #efd586;
}

.header-cta:hover,
.button:hover {
  background: #efd586;
  color: #17170f;
  transform: translateY(-1px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 2.2rem;
  color: #707873;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.65rem;
}

.breadcrumb a:hover {
  color: #d9b85d;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: end;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 9rem);
}

.eyebrow {
  margin: 0;
  color: #d9b85d;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

h1 {
  max-width: 56rem;
  margin: 1.25rem 0 0;
  font-size: clamp(3.25rem, 7vw, 6.6rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

.lede {
  max-width: 43rem;
  margin: 1.7rem 0 0;
  color: #a7ada8;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.68;
}

.hero-aside {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(235, 231, 217, 0.16);
}

.hero-aside p {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(235, 231, 217, 0.12);
  color: #7f8782;
  font-size: 0.74rem;
  line-height: 1.5;
}

.hero-aside strong {
  color: #dad9d2;
  font-size: 0.88rem;
  font-weight: 600;
}

.content-band {
  border-block: 1px solid rgba(235, 231, 217, 0.1);
  background: rgba(20, 25, 24, 0.72);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.56fr) minmax(0, 1.44fr);
  gap: clamp(3rem, 9vw, 8rem);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-label {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.section-label h2,
.prose h2,
.related h2 {
  margin: 0.9rem 0 0;
  color: #e4e1d8;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-wrap: balance;
}

.prose {
  max-width: 46rem;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 3.7rem;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.prose h3 {
  margin: 2.4rem 0 0;
  color: #deddd5;
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: #a0a7a2;
  font-size: 0.96rem;
  line-height: 1.78;
}

.prose a,
.source-list a,
.text-link {
  color: #efd586;
  text-decoration: underline;
  text-decoration-color: rgba(239, 213, 134, 0.35);
  text-underline-offset: 0.2em;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.25rem;
}

.callout {
  margin: 2.5rem 0;
  padding: 1.4rem 1.5rem;
  border-left: 3px solid #d9b85d;
  background: rgba(217, 184, 93, 0.055);
}

.callout p {
  margin: 0;
  color: #c1c4bd;
}

.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(235, 231, 217, 0.12);
  border-radius: 0.55rem;
}

table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid rgba(235, 231, 217, 0.1);
  color: #9ca39e;
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(235, 231, 217, 0.035);
  color: #dfddd5;
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid rgba(235, 231, 217, 0.12);
  border-radius: 0.55rem;
  background: rgba(235, 231, 217, 0.12);
}

.cards article {
  padding: 1.5rem;
  background: #121716;
}

.cards h3 {
  margin: 0;
}

.cards p {
  margin-bottom: 0;
  font-size: 0.82rem;
}

details {
  border-bottom: 1px solid rgba(235, 231, 217, 0.12);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  color: #dddcd4;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 0 0 1.25rem;
}

.source-list {
  padding: 1rem 0 0;
  border-top: 1px solid rgba(235, 231, 217, 0.1);
  color: #7f8782;
  font-size: 0.72rem;
  line-height: 1.65;
}

.related {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.5rem;
  border-top: 1px solid rgba(235, 231, 217, 0.13);
  border-left: 1px solid rgba(235, 231, 217, 0.13);
}

.related-grid a {
  display: grid;
  min-height: 10rem;
  align-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem;
  border-right: 1px solid rgba(235, 231, 217, 0.13);
  border-bottom: 1px solid rgba(235, 231, 217, 0.13);
  color: #d8d7cf;
  font-size: 1rem;
  transition: background 180ms ease;
}

.related-grid a:hover {
  background: rgba(217, 184, 93, 0.045);
}

.related-grid span {
  color: #d9b85d;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-band {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #d9b85d;
  color: #17170f;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
}

.cta-inner h2 {
  max-width: 45rem;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.cta-inner p {
  max-width: 38rem;
  color: #655927;
  line-height: 1.65;
}

.cta-band .button {
  border-color: #17170f;
  background: #17170f;
  color: #eeeae0;
}

.site-footer {
  background: #080b0b;
}

.footer-inner {
  grid-template-columns: 1fr auto;
  min-height: 7rem;
}

.footer-nav {
  justify-content: end;
}

.footer-note {
  grid-column: 1 / -1;
  margin: -1.5rem 0 1.5rem;
  color: #606762;
  font-size: 0.68rem;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 2rem, 40rem);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

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

  .section-label {
    position: static;
  }

  .cards,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-block: 2rem;
  }

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

  .footer-note {
    grid-column: 1;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
