@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/content/fonts/instrument-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/content/fonts/instrument-serif-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/content/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --background: #f3f0e8;
  --paper: #fbfaf5;
  --paper-strong: #fffefa;
  --foreground: #17201e;
  --muted: #66706c;
  --border: #d7d3c8;
  --green: #137657;
  --green-soft: #dceee5;
  --forest: #10241e;
  --rust: #a85b43;
  --shadow: rgb(38 45 42 / 13%);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

body.content-page {
  min-width: 320px;
  min-height: 100vh;
  color: var(--foreground);
  background-color: var(--background);
  background-image:
    radial-gradient(circle at 12% 0, rgb(255 255 255 / 75%), transparent 32rem),
    radial-gradient(circle at 86% 16%, rgb(75 190 148 / 8%), transparent 28rem);
}

body.content-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.05;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--foreground);
  background: var(--green-soft);
}

.content-frame {
  width: min(calc(100% - 40px), 1160px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.content-site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: blur(18px) saturate(118%);
}

.content-site-header .header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.content-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  font-weight: 680;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.content-wordmark img {
  border-radius: 8px;
}

.content-site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.87rem;
  font-weight: 600;
}

.content-site-header nav > a:not(.header-button) {
  color: var(--muted);
  text-decoration: none;
}

.content-site-header nav > a[aria-current="page"] {
  color: var(--foreground);
}

.header-button,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--paper);
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.header-button:hover,
.button:hover {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 34px;
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs span:last-child {
  max-width: min(55ch, 65vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-header {
  max-width: 910px;
  padding: clamp(68px, 9vw, 118px) 0 clamp(45px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.article-header h1,
.hub-header h1,
.not-found h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.article-deck,
.hub-header > p:last-child,
.not-found > p {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.79rem;
}

.article-meta span + span::before {
  margin-right: 18px;
  color: var(--border);
  content: "·";
}

.article-hero {
  padding: 0;
  margin: 0 0 clamp(70px, 9vw, 120px);
}

.article-hero picture {
  display: block;
  margin: 0;
  line-height: 0;
}

.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 22px 72px var(--shadow);
}

.article-hero figcaption,
.article-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
  justify-content: center;
}

.article-toc {
  position: sticky;
  top: 100px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-toc ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc a {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-decoration: none;
}

.article-content {
  min-width: 0;
  padding-bottom: 110px;
  font-size: 1.035rem;
  line-height: 1.78;
}

.direct-answer {
  margin: 0 0 56px;
  padding: 26px 28px;
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--border));
  border-radius: 18px;
}

.direct-answer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.direct-answer p {
  margin: 0;
  color: var(--foreground);
  font-size: 1.12rem;
  line-height: 1.65;
}

.article-content h2 {
  margin: 78px 0 22px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.article-content h3 {
  margin: 48px 0 14px;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.heading-anchor {
  margin-left: 0.28em;
  color: transparent;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.55em;
  text-decoration: none;
}

h2:hover .heading-anchor,
h3:hover .heading-anchor,
.heading-anchor:focus {
  color: var(--green);
}

.article-content p {
  margin: 0 0 25px;
}

.article-content > p:first-of-type {
  font-size: 1.1rem;
}

.article-content a:not(.button):not(.related-card) {
  color: var(--green);
}

.article-content strong {
  font-weight: 680;
}

.article-content ul,
.article-content ol {
  margin: 0 0 30px;
  padding-left: 1.4rem;
}

.article-content li {
  margin: 0.45rem 0;
  padding-left: 0.3rem;
}

.article-content blockquote {
  margin: 42px 0;
  padding: 6px 0 6px 26px;
  color: var(--foreground);
  border-left: 3px solid var(--rust);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.45;
}

.article-content blockquote p {
  margin: 0;
}

.article-content code {
  padding: 0.14em 0.34em;
  background: color-mix(in srgb, var(--border) 45%, transparent);
  border-radius: 5px;
  font-size: 0.88em;
}

.article-content pre {
  overflow-x: auto;
  margin: 34px 0;
  padding: 22px;
  color: #e8f1ed;
  background: var(--forest);
  border-radius: 16px;
}

.article-content pre code {
  padding: 0;
  background: transparent;
}

.article-content table {
  width: 100%;
  margin: 34px 0;
  border-collapse: collapse;
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  font-size: 0.89rem;
  line-height: 1.5;
}

.article-content th,
.article-content td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
}

.article-content th {
  color: var(--foreground);
  background: var(--green-soft);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-figure {
  display: flow-root;
  padding: 0;
  margin: 40px 0;
  line-height: 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.article-figure figcaption {
  margin: 0;
  padding: 10px 2px 0;
  line-height: 1.5;
}

.article-sources {
  margin-top: 80px;
  padding-top: 5px;
  border-top: 1px solid var(--border);
}

.article-sources > p,
.article-sources li {
  color: var(--muted);
  font-size: 0.86rem;
}

.related-reading {
  margin-top: 82px;
}

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

.related-card {
  display: grid;
  gap: 8px;
  min-height: 190px;
  align-content: start;
  padding: 22px;
  color: var(--foreground);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.related-card:hover {
  color: var(--foreground);
  border-color: var(--green);
  transform: translateY(-2px);
}

.related-card span {
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.related-card strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.08;
}

.related-card small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.content-cta {
  margin-top: 82px;
  padding: clamp(30px, 6vw, 56px);
  color: var(--paper);
  background: var(--forest);
  border-radius: 24px;
}

.content-cta .eyebrow {
  color: #72d8b2;
}

.content-cta h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.content-cta p:not(.eyebrow) {
  max-width: 560px;
  color: #c9d5d0;
}

.content-cta .button {
  color: var(--forest);
  background: #effbf5;
  border-color: #effbf5;
}

.content-cta .button:hover {
  color: var(--forest);
  background: #72d8b2;
  border-color: #72d8b2;
}

.article-disclosure {
  margin-top: 28px !important;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.hub-shell {
  min-height: 72vh;
  padding-bottom: 110px;
}

.hub-header {
  max-width: 930px;
  padding: clamp(90px, 13vw, 160px) 0 clamp(70px, 10vw, 115px);
}

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

.content-card {
  display: grid;
  overflow: hidden;
  color: var(--foreground);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.content-card:hover {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--green) 60%, var(--border));
  box-shadow: 0 18px 60px var(--shadow);
  transform: translateY(-3px);
}

.content-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--green-soft);
  border-bottom: 1px solid var(--border);
}

.content-card-copy {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.content-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-card h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 46px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
}

.not-found {
  min-height: 67vh;
  padding-top: 120px;
  padding-bottom: 120px;
}

.not-found h1 {
  max-width: 850px;
}

.not-found .button {
  margin-top: 32px;
}

.content-site-footer {
  padding: 56px 0 30px;
  color: #dbe4e0;
  background: var(--forest);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: start;
}

.content-site-footer .content-wordmark {
  color: #f3f0e8;
}

.content-site-footer p {
  margin: 13px 0 0;
  color: #9dafaa;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
}

.content-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: flex-end;
  font-size: 0.82rem;
}

.content-site-footer nav a {
  color: #c4d0cb;
  text-decoration: none;
}

.footer-note {
  margin-top: 44px;
  padding-top: 22px;
  color: #82958e;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.7rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .article-layout {
    display: block;
  }

  .article-toc {
    position: static;
    margin: -30px 0 52px;
  }

  .article-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .content-frame {
    width: min(calc(100% - 28px), 1160px);
  }

  .content-site-header .header-inner {
    min-height: 62px;
  }

  .content-site-header nav {
    gap: 14px;
  }

  .content-site-header nav > a:not(.header-button) {
    display: none;
  }

  .header-button {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.79rem;
  }

  .breadcrumbs {
    padding-top: 22px;
  }

  .article-header {
    padding-top: 58px;
  }

  .article-header h1,
  .hub-header h1,
  .not-found h1 {
    font-size: clamp(2.65rem, 14vw, 4.15rem);
    line-height: 0.97;
  }

  .article-hero {
    width: calc(100% + 28px);
    margin-left: -14px;
  }

  .article-hero img {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .article-hero figcaption {
    padding-inline: 14px;
  }

  .article-toc ol {
    display: block;
  }

  .article-toc li + li {
    margin-top: 9px;
  }

  .article-content {
    font-size: 1rem;
  }

  .direct-answer {
    padding: 22px;
  }

  .article-content h2 {
    margin-top: 62px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

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

  .content-cta {
    margin-inline: -6px;
    border-radius: 18px;
  }

  .hub-header {
    padding-top: 90px;
  }

  .footer-grid {
    display: grid;
  }

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

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

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