@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&family=Prata&display=swap");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #EDF3EE;
  --paper-2: #DCE8E0;
  --surface: #F8FBF8;
  --ink: #18211F;
  --soft-ink: #43524D;
  --muted: #6D7D75;
  --green: #176B59;
  --green-2: #123F35;
  --gold: #D64E42;
  --sand: #A9EFD2;
  --rose: #C95847;
  --line: rgba(24, 33, 31, 0.16);
  --line-strong: rgba(23, 107, 89, 0.44);
  --shadow: none;
  --font-serif: "Prata", Georgia, serif;
  --font-sans: "Onest", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  overflow-x: hidden;
}

a { color: inherit; }
button, input, select { font: inherit; }

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

.skip-link {
  position: fixed;
  left: 20px;
  top: 12px;
  z-index: 300;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--green);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 72px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(246, 241, 232, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--green-2);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: var(--soft-ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--green);
  color: var(--green);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-cta:hover {
  background: var(--green);
  color: var(--surface);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  padding: 128px 5vw 96px;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--surface);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image, url("https://images.unsplash.com/photo-1512453979798-5ea266f8880c?w=1800&q=74&auto=format&fit=crop"));
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) brightness(0.72);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 20, 18, 0.88), rgba(18, 20, 18, 0.48) 58%, rgba(18, 20, 18, 0.18)),
    linear-gradient(0deg, rgba(18, 20, 18, 0.92), rgba(18, 20, 18, 0.1) 50%);
}

.hero-inner {
  width: min(100%, 920px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: 76px;
  line-height: 1.02;
  margin-bottom: 24px;
}

h2 {
  font-size: 54px;
  line-height: 1.06;
}

h3 {
  font-size: 30px;
  line-height: 1.15;
}

em {
  color: var(--sand);
  font-style: italic;
}

.hero-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.82;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
}

.btn.primary {
  background: var(--green);
  color: var(--surface);
}

.btn.primary:hover { background: var(--green-2); }

.btn.secondary {
  border-color: rgba(255,255,255,0.42);
  color: var(--surface);
  background: rgba(255,255,255,0.06);
}

.btn.secondary:hover { border-color: var(--sand); color: var(--sand); }

.light .btn.secondary,
.section .btn.secondary,
.article-layout .btn.secondary {
  border-color: var(--line-strong);
  color: var(--green);
  background: transparent;
}

.light .btn.secondary:hover,
.section .btn.secondary:hover,
.article-layout .btn.secondary:hover {
  background: rgba(35, 107, 90, 0.08);
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,0.22);
  background: rgba(23, 20, 17, 0.72);
}

.hero-stat {
  min-height: 130px;
  padding: 24px 5vw;
  border-right: 1px solid rgba(255,255,255,0.16);
}

.hero-stat:last-child { border-right: 0; }

.hero-stat strong {
  display: block;
  color: var(--sand);
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat span {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section {
  padding: 92px 5vw;
}

.section.alt { background: var(--paper-2); }
.section.dark { background: #171411; color: var(--surface); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 46px;
  align-items: end;
  margin-bottom: 42px;
}

.section-copy {
  color: var(--soft-ink);
  max-width: 560px;
}

.dark .section-copy,
.dark .card p,
.dark .plain-list li {
  color: rgba(255,255,255,0.72);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.card.compact { min-height: 170px; }

.dark .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}

.kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--soft-ink); }
.card:hover h3 { color: var(--green); }
.dark .card:hover h3 { color: var(--sand); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.media-panel {
  min-height: 520px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background-image: var(--panel-image, url("https://images.unsplash.com/photo-1526495124232-a04e1849168c?w=1200&q=74&auto=format&fit=crop"));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.plain-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 24px;
  color: var(--soft-ink);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--green);
}

.callout {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(35, 107, 90, 0.08);
  color: var(--soft-ink);
}

.callout.warn {
  border-color: rgba(201, 88, 71, 0.48);
  background: rgba(155, 77, 69, 0.08);
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 26px 0;
}

.table th,
.table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  width: 32%;
  color: var(--green);
  font-weight: 800;
}

.table td { color: var(--soft-ink); }

.article-hero {
  --hero-image: url("https://images.unsplash.com/photo-1512453979798-5ea266f8880c?w=1800&q=74&auto=format&fit=crop");
  min-height: 600px;
}

.article-layout {
  max-width: 1220px;
  margin: 0 auto;
  padding: 72px 5vw 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 54px;
}

.article-body h2 {
  margin: 56px 0 18px;
}

.article-body h3 {
  margin: 34px 0 10px;
}

.article-body p {
  color: var(--soft-ink);
  margin-bottom: 18px;
}

.article-body strong {
  color: var(--ink);
  font-weight: 700;
}

.article-body ul,
.article-body ol {
  color: var(--soft-ink);
  margin: 18px 0 24px 22px;
}

.article-body li { margin-bottom: 10px; }

.byline {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  margin-top: 20px;
}

.aside {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.aside-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.aside-box h2,
.aside-box h3 {
  font-size: 30px;
  margin-bottom: 12px;
}

.aside-box p,
.aside-box a {
  color: var(--soft-ink);
  font-size: 14px;
}

.aside-box a.link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.aside-box a.link:hover { color: var(--green); }

.expert-band {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.expert-band img {
  width: 260px;
  height: 340px;
  object-fit: cover;
  border-radius: 6px;
}

.footer {
  padding: 34px 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer a { text-decoration: none; color: var(--green); }

@media (max-width: 980px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }

  .nav-links { flex-wrap: wrap; gap: 12px 18px; }
  .nav-cta { width: 100%; }
  .hero { min-height: 680px; padding: 96px 20px 64px; }
  h1 { font-size: 52px; }
  h2 { font-size: 40px; }
  .section { padding: 64px 20px; }
  .section-head,
  .split,
  .article-layout,
  .expert-band {
    grid-template-columns: 1fr;
  }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat { padding: 22px 20px; }
  .article-layout { padding: 54px 20px 72px; }
  .aside { position: static; }
  .media-panel { min-height: 360px; }
}

@media (max-width: 560px) {
  .brand { font-size: 23px; }
  .nav-links a { font-size: 10px; }
  .hero { min-height: 640px; }
  h1 { font-size: 43px; }
  h2 { font-size: 34px; }
  h3 { font-size: 27px; }
  .hero-lead { font-size: 16px; }
  .btn { width: 100%; padding: 0 18px; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-stat { min-height: 96px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 22px; min-height: auto; }
  .table th,
  .table td {
    display: block;
    width: 100%;
  }

  .expert-band img {
    width: 100%;
    height: auto;
    max-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Premium visual system shared by guides, districts and developer pages. */
:root {
  --paper:#f4f4f0;
  --paper-2:#e8e9e5;
  --surface:#f4f4f0;
  --ink:#080909;
  --soft-ink:#4e5050;
  --muted:#717371;
  --green:#080909;
  --green-2:#080909;
  --gold:#717371;
  --sand:#f4f4f0;
  --rose:#080909;
  --line:rgba(8,9,9,.18);
  --line-strong:rgba(8,9,9,.44);
  --font-serif:"Onest",Arial,sans-serif;
}

body { background:var(--paper);font-size:16px;line-height:1.62; }
.site-nav {
  min-height:76px;padding:0 36px;background:rgba(8,9,9,.95);
  border-bottom:1px solid rgba(255,255,255,.18);backdrop-filter:blur(12px);
}
.brand {
  color:#f4f4f0;font-family:var(--font-sans);font-size:15px;font-weight:600;
}
.nav-links a {
  color:rgba(255,255,255,.68);font-size:12px;font-weight:400;
  letter-spacing:0;text-transform:none;
}
.nav-links a:hover { color:#fff; }
.nav-cta {
  min-height:42px;padding:0;border:0;color:#f4f4f0;font-size:12px;
  font-weight:500;letter-spacing:0;text-transform:none;
}
.nav-cta::after { content:" →";margin-left:8px; }
.nav-cta:hover { background:transparent;color:#fff; }
.hero {
  min-height:82svh;padding:140px 5vw 68px;background:#080909;
}
.hero::before { filter:saturate(.86) brightness(.72);transform:scale(1.01); }
.hero::after {
  background:linear-gradient(0deg,rgba(0,0,0,.78),transparent 68%),
    linear-gradient(90deg,rgba(0,0,0,.34),transparent 58%);
}
.hero-inner { width:min(100%,940px); }
.eyebrow {
  gap:0;margin-bottom:20px;color:rgba(255,255,255,.7);font-size:13px;
  font-weight:400;letter-spacing:0;text-transform:none;
}
.eyebrow::before { display:none; }
h1,h2,h3 { font-family:var(--font-sans);font-weight:400; }
h1 { max-width:940px;font-size:68px;line-height:1.03;margin-bottom:22px; }
h2 { font-size:48px;line-height:1.08; }
h3 { font-size:27px;line-height:1.15; }
em { color:inherit;font-style:normal; }
.hero-lead { max-width:680px;font-size:17px;line-height:1.6; }
.byline { color:rgba(255,255,255,.56);font-size:12px; }
.btn {
  min-height:48px;padding:0 18px;border:1px solid currentColor;background:transparent;
  font-size:13px;font-weight:550;letter-spacing:0;text-transform:none;
}
.btn.primary { background:transparent;color:inherit; }
.dark .btn.primary,.hero .btn.primary { color:#f4f4f0; }
.btn.primary:hover { background:#080909;color:#f4f4f0; }
.dark .btn.primary:hover,.hero .btn.primary:hover { background:#f4f4f0;color:#080909; }
.section { padding:96px 5vw; }
.section.alt { background:var(--paper-2); }
.section.dark { background:#080909;color:#f4f4f0; }
.section-head { gap:64px;margin-bottom:48px; }
.section-copy { font-size:17px;line-height:1.65; }
.grid-2,.grid-3,.grid-4 { gap:0;border-top:1px solid var(--line); }
.card {
  min-height:240px;padding:28px 24px;border:0;border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);border-radius:0;background:transparent;
}
.grid-3 .card:nth-child(3n),.grid-4 .card:nth-child(4n),.grid-2 .card:nth-child(2n) { border-right:0; }
.dark .card { background:transparent;border-color:rgba(255,255,255,.18); }
.kicker { margin-bottom:40px;color:var(--muted);font-size:12px;font-weight:400;letter-spacing:0;text-transform:none; }
.card h3 { margin-bottom:16px; }
.card:hover h3,.dark .card:hover h3 { color:inherit; }
.split { gap:0;align-items:stretch; }
.media-panel { min-height:620px;border:0;border-radius:0; }
.plain-list li { padding:16px 0;border-bottom:1px solid var(--line); }
.plain-list li::before { display:none; }
.callout,.callout.warn {
  padding:22px 0;border:0;border-top:1px solid var(--line-strong);
  border-bottom:1px solid var(--line);background:transparent;
}
.table { border:0;border-top:1px solid var(--line);background:transparent; }
.table th { color:var(--ink);font-weight:600; }
.article-hero { min-height:72svh; }
.article-layout { max-width:1320px;padding:86px 5vw 110px;gap:8vw; }
.article-body { max-width:800px; }
.article-body h2 { margin:64px 0 18px; }
.aside-box {
  padding:24px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;
}
.aside-box h2,.aside-box h3 { font-size:26px; }
.expert-band img { border-radius:0; }
.footer {
  min-height:110px;padding:30px 36px;background:#080909;color:#aaa;
  border-color:rgba(255,255,255,.18);
}
.footer a { color:#f4f4f0; }

@media(max-width:980px) {
  .site-nav { min-height:66px;padding:0 20px;flex-direction:row;align-items:center; }
  .nav-links { display:none; }
  .nav-cta { width:auto; }
  .hero { min-height:76svh;padding:112px 20px 46px; }
  h1 { font-size:46px; }
  h2 { font-size:38px; }
  .section { padding:72px 20px; }
  .section-head { gap:22px; }
  .grid-4,.grid-3,.grid-2 { grid-template-columns:1fr; }
  .grid-4 .card,.grid-3 .card,.grid-2 .card { border-right:0; }
  .card { min-height:auto;padding:28px 0; }
  .kicker { margin-bottom:24px; }
  .article-layout { grid-template-columns:1fr;gap:36px;padding:64px 20px 82px; }
  .article-body { min-width:0; }
  .aside { position:static; }
}

@media(max-width:560px) {
  .brand { font-size:14px; }
  .nav-cta { font-size:11px; }
  .hero { min-height:72svh; }
  h1 { font-size:40px; }
  h2 { font-size:34px; }
  h3 { font-size:25px; }
  .hero-lead { font-size:16px; }
  .footer { padding:28px 20px; }
}
