:root {
  --clay: #b85538;
  --clay-dark: #7b3224;
  --pumice: #f1e7d2;
  --paper: #faf5e9;
  --rain: #56798b;
  --green: #65745d;
  --ochre: #a77a54;
  --charcoal: #211f1b;
  --muted: #6b6457;
  --line: rgba(33, 31, 27, .16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 10% 0%, rgba(184, 85, 56, .08), transparent 28rem),
    repeating-linear-gradient(90deg, rgba(33, 31, 27, .018) 0 1px, transparent 1px 7px),
    var(--paper);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0; }
h1, h2 { margin: 0; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.8rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }

.skip {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: .7rem 1rem;
  background: white;
  color: var(--charcoal);
  border: 2px solid var(--clay);
}
.skip:focus { top: 1rem; }

.site-head {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: .7rem max(1rem, calc((100vw - var(--max)) / 2));
  color: white;
  background: rgba(33, 31, 27, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  min-width: 205px;
}
.brand img { width: 46px; height: 46px; border-radius: 13px; }
.brand span { display: grid; line-height: 1.05; }
.brand b { letter-spacing: .08em; }
.brand small { margin-top: .28rem; color: #dfb887; letter-spacing: .18em; font-weight: 800; }

.site-head nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .15rem;
  flex: 1;
}
.site-head nav a {
  padding: .55rem .7rem;
  border-radius: .55rem;
  color: #e9e3d7;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.site-head nav a:hover,
.site-head nav a:focus-visible { background: #453a31; color: #f1c697; }
.nav-toggle { display: none; }

main { overflow: hidden; }
.home-hero,
.page-hero {
  position: relative;
  max-width: var(--max);
  min-height: 640px;
  margin: 2.4rem auto 0;
  overflow: hidden;
  color: white;
  background: var(--charcoal);
  box-shadow: 0 28px 70px rgba(50, 35, 24, .22);
}
.home-hero { clip-path: polygon(0 0, 96% 0, 100% 10%, 100% 100%, 4% 100%, 0 90%); }
.home-hero > img,
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 20, 17, .96) 0%, rgba(22, 20, 17, .75) 48%, rgba(22, 20, 17, .1) 86%);
}
.hero-copy,
.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(700px, 78%);
  padding: clamp(3rem, 7vw, 7rem);
}
.hero-copy::before,
.page-hero > div::before {
  content: "";
  position: absolute;
  left: clamp(1.3rem, 3.4vw, 3.4rem);
  top: 7rem;
  bottom: 6rem;
  width: 8px;
  background: var(--clay);
}
.hero-copy h1 { max-width: 760px; }
.hero-copy > p:not(.eyebrow),
.page-hero > div > p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 1.6rem;
  color: #eee7db;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}
.eyebrow {
  margin-bottom: 1rem;
  color: #dfb887;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .72rem 1.15rem;
  color: white;
  background: var(--clay);
  border: 2px solid var(--clay);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.button:hover,
.button:focus-visible { background: var(--clay-dark); border-color: var(--clay-dark); }
.text-link { color: white; font-weight: 800; text-underline-offset: .22em; }

.statement,
.intro-band {
  max-width: 900px;
  margin: 4.5rem auto;
  padding: 0 1.4rem;
  color: var(--muted);
  font-size: clamp(1.4rem, 3.1vw, 2.4rem);
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.strata-list {
  display: grid;
  max-width: var(--max);
  gap: .7rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.stratum {
  --band: var(--clay);
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr 42px;
  align-items: center;
  gap: 1rem;
  min-height: 138px;
  padding: 1.4rem 2rem 1.4rem 1.3rem;
  overflow: hidden;
  color: white;
  background: var(--band);
  box-shadow: 9px 12px 0 rgba(33, 31, 27, .17);
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
  text-decoration: none;
  transition: transform .22s ease, filter .22s ease;
}
.stratum:nth-child(even) { margin-left: 4%; margin-right: 0; clip-path: polygon(7% 0, 100% 0, 100% 100%, 7% 100%, 0 50%); padding-left: 7%; }
.stratum:hover,
.stratum:focus-visible { transform: translateX(.5rem); filter: brightness(1.08); }
.stratum > span { font-size: 1.4rem; font-weight: 900; }
.stratum h2 { letter-spacing: -.01em; }
.stratum p { max-width: 760px; margin-top: .35rem; color: rgba(255, 255, 255, .86); }
.stratum > b { font-size: 2rem; }
.s02 { --band: var(--rain); }
.s03 { --band: #8c674c; }
.s04 { --band: #73806a; }
.s05 { --band: var(--ochre); }
.s06 { --band: #343a38; }

.three-points,
.policy-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  gap: 1rem;
  margin: 5rem auto;
  padding: 0 1rem;
}
.three-points article,
.policy-facts article {
  min-height: 215px;
  padding: 2rem;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 18px 44px rgba(62, 49, 37, .08);
}
.three-points span,
.policy-facts b { display: block; color: var(--clay); font-size: 3.6rem; line-height: 1; }
.three-points h2 { margin-top: 1rem; }
.three-points p { margin-top: .7rem; color: var(--muted); }

.source-prompt {
  max-width: var(--max);
  margin: 4rem auto 6rem;
  padding: clamp(2rem, 5vw, 5rem);
  color: white;
  background: var(--charcoal);
  clip-path: polygon(0 0, 96% 0, 100% 16%, 100% 100%, 4% 100%, 0 84%);
}
.source-prompt h2 { max-width: 780px; font-size: clamp(2rem, 4vw, 3.8rem); }
.source-prompt > p:not(.eyebrow) { max-width: 820px; margin: 1.2rem 0 1.8rem; color: #ddd6c9; font-size: 1.1rem; }

.page-hero { min-height: 540px; clip-path: polygon(0 0, 100% 0, 100% 88%, 94% 100%, 0 100%); }
.page-hero > div { padding-block: clamp(4rem, 7vw, 6.5rem); }
.page-hero > div::before { top: 6rem; bottom: 5rem; background: var(--rain); }
.page-hero h1 { font-size: clamp(2.7rem, 5vw, 5rem); }

.fold-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: var(--max);
  gap: 1rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.fold-card {
  position: relative;
  min-height: 230px;
  padding: 2.3rem 2.8rem 2.3rem 2.2rem;
  background: rgba(255, 255, 255, .92);
  border-left: 9px solid var(--clay);
  box-shadow: 10px 12px 0 rgba(33, 31, 27, .1);
  clip-path: polygon(0 0, 92% 0, 100% 18%, 100% 100%, 0 100%);
}
.fold-card:nth-child(3n+2) { border-left-color: var(--rain); transform: translateY(1.4rem); }
.fold-card:nth-child(3n) { border-left-color: var(--green); }
.fold-card p { margin-top: 1rem; color: var(--muted); }

.policy-hero {
  max-width: var(--max);
  margin: 4.5rem auto 2rem;
  padding: 0 1rem;
}
.policy-hero h1 { max-width: 800px; }
.policy-hero > p:last-child { max-width: 850px; margin-top: 1.2rem; color: var(--muted); font-size: 1.25rem; }
.policy-facts { margin: 2.5rem auto; }
.policy-facts article { min-height: 150px; display: grid; place-content: center; text-align: center; }
.policy-facts b { font-size: 3rem; }
.policy-facts span { margin-top: .5rem; color: var(--muted); font-weight: 800; }
.policy-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  gap: .5rem;
  margin: 3rem auto;
  padding: 0 1rem;
}
.policy-index a {
  padding: .7rem .85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: .6rem;
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}
.policy-index a:hover,
.policy-index a:focus-visible { color: var(--clay-dark); border-color: var(--clay); }
.policy-list {
  display: grid;
  max-width: var(--max);
  gap: 1rem;
  margin: 0 auto 6rem;
  padding: 0 1rem;
}
.policy-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  scroll-margin-top: 100px;
}
.policy-card:nth-child(even) { margin-left: 4%; border-left: 7px solid var(--rain); }
.policy-card:nth-child(odd) { margin-right: 4%; border-left: 7px solid var(--clay); }
.policy-number { color: var(--clay); font-size: 1.8rem; font-weight: 900; }
.policy-card h2 { font-size: 1.55rem; }
.policy-card div p { max-width: 950px; margin-top: .85rem; color: var(--muted); }

.source-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: var(--max);
  gap: 1rem;
  margin: 4rem auto;
  padding: 0 1rem;
}
.source-directory a {
  display: block;
  padding: 1.4rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--charcoal);
  font-weight: 850;
  text-decoration: none;
}
.source-directory a small { display: block; margin-top: .35rem; color: var(--muted); font-weight: 500; }
.source-directory a:hover,
.source-directory a:focus-visible { border-color: var(--rain); transform: translateY(-2px); }

.not-found { max-width: 900px; min-height: 70vh; margin: 0 auto; padding: 8rem 1rem; }
.not-found p:not(.eyebrow) { margin-top: 1.2rem; color: var(--muted); font-size: 1.2rem; }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 3.5rem max(1rem, calc((100vw - var(--max)) / 2));
  color: #efe8da;
  background: var(--charcoal);
}
footer > div:first-child p { color: #c5bbab; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: #dfb887; font-weight: 750; }
.legal { grid-column: 1 / -1; max-width: 950px; color: #a99f90; font-size: .85rem; }

@media (max-width: 900px) {
  .site-head { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    padding: .6rem .8rem;
    color: white;
    background: transparent;
    border: 1px solid #796a5c;
    border-radius: .55rem;
    font-weight: 800;
  }
  .site-head nav { display: none; flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; padding-bottom: .5rem; }
  .site-head nav[data-open="true"] { display: flex; }
  .home-hero, .page-hero { margin-top: 0; min-height: 610px; clip-path: none; }
  .hero-copy, .page-hero > div { width: 92%; padding: 5rem 2rem 3rem; }
  .hero-copy::before, .page-hero > div::before { display: none; }
  .fold-grid, .source-directory { grid-template-columns: 1fr; }
  .fold-card:nth-child(3n+2) { transform: none; }
  .three-points, .policy-facts { grid-template-columns: 1fr; }
  .policy-index { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  h1 { font-size: 2.65rem; }
  .brand { min-width: 0; }
  .brand span { display: none; }
  .home-hero { min-height: 640px; }
  .hero-copy { width: 100%; }
  .stratum, .stratum:nth-child(even) {
    grid-template-columns: 48px 1fr 24px;
    margin: 0;
    padding: 1.2rem;
    clip-path: none;
    border-radius: .8rem;
  }
  .policy-index { grid-template-columns: 1fr; }
  .policy-card,
  .policy-card:nth-child(even),
  .policy-card:nth-child(odd) { grid-template-columns: 1fr; margin: 0; padding: 1.35rem; }
  .source-prompt { clip-path: none; }
  footer { grid-template-columns: 1fr; }
  .legal { grid-column: 1; }
}

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