:root {
  --brand: #d7203b;
  --brand-dark: #97182c;
  --brand-soft: #fef2f4;
  --gold: #eab621;
  --ink: #17171a;
  --muted: #65656f;
  --line: #e7e1dc;
  --paper: #f7f4f0;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  border-radius: .6rem;
  background: var(--ink);
  color: var(--white);
  padding: .7rem 1rem;
  font-weight: 800;
}
.skip:focus { top: 1rem; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.header-inner, .hero-inner, .page-grid, .footer-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo-wrap {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .8rem;
  border: 1px solid var(--line);
  background: white;
  padding: .25rem;
  box-shadow: 0 8px 20px rgba(72,8,19,.1);
}
.brand-logo { display: block; width: auto; height: 100%; object-fit: contain; }
.brand-name { display: block; font-size: .98rem; font-weight: 850; letter-spacing: -.02em; }
.brand-sub { display: block; margin-top: .1rem; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.top-nav { display: flex; align-items: center; gap: .35rem; }
.top-nav a { border-radius: .55rem; padding: .58rem .75rem; color: var(--muted); font-size: .82rem; font-weight: 800; text-decoration: none; }
.top-nav a:hover, .top-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.top-nav .main-site { margin-left: .25rem; background: var(--ink); color: white; }
.top-nav .main-site:hover { background: var(--brand-dark); color: white; }
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: white;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}
.hero::before { width: 420px; height: 420px; right: -130px; top: -190px; }
.hero::after { width: 280px; height: 280px; left: -90px; bottom: -190px; border-color: rgba(234,182,33,.55); }
.hero-inner { position: relative; padding-block: 4.5rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  padding: .42rem .75rem;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2 { font-family: Poppins, Inter, ui-sans-serif, sans-serif; }
h1 { max-width: 760px; margin: 1.25rem 0 0; font-size: clamp(2.35rem, 6vw, 4rem); line-height: 1.03; letter-spacing: -.045em; }
.hero-summary { max-width: 730px; margin: 1.25rem 0 0; font-size: 1rem; font-weight: 550; line-height: 1.8; }
.updated { margin: 1.6rem 0 0; font-size: .78rem; font-weight: 750; }
.page-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; padding-block: 3.5rem; }
.toc-wrap { position: sticky; top: 1.5rem; align-self: start; }
.toc, .boundary, article { border-radius: 1.3rem; }
.toc, article { border: 1px solid var(--line); background: white; box-shadow: 0 10px 30px rgba(28,28,28,.04); }
.toc { padding: 1rem; }
.toc-title { margin: 0; padding: .2rem .5rem .7rem; color: var(--brand-dark); font-size: .65rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: item; }
.toc li { counter-increment: item; }
.toc a { display: grid; grid-template-columns: 1.45rem 1fr; gap: .25rem; border-radius: .55rem; padding: .5rem; color: var(--muted); font-size: .76rem; font-weight: 720; line-height: 1.45; text-decoration: none; }
.toc a::before { content: counter(item, decimal-leading-zero); color: #96969e; font-family: ui-monospace, monospace; font-size: .64rem; }
.toc a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.boundary { margin-top: 1rem; background: #242426; color: white; padding: 1.2rem; }
.boundary strong { display: block; font-size: .84rem; }
.boundary p { margin: .55rem 0 0; color: #d7d7db; font-size: .76rem; font-weight: 600; line-height: 1.65; }
article { padding: 2.5rem 3rem; }
.note { border: 1px solid #fbCBD3; border-radius: .75rem; background: var(--brand-soft); color: #64101f; padding: .9rem 1rem; font-size: .82rem; font-weight: 600; line-height: 1.75; }
.legal-section { border-bottom: 1px solid #e8e8eb; padding-block: 2rem; scroll-margin-top: 2rem; }
.legal-section:first-of-type { padding-top: 2.25rem; }
.legal-section:last-child { border-bottom: 0; padding-bottom: 0; }
h2 { margin: 0; font-size: 1.4rem; line-height: 1.25; letter-spacing: -.025em; }
.legal-section p, .legal-section li { color: var(--muted); font-size: .88rem; font-weight: 540; line-height: 1.9; }
.legal-section p { margin: .9rem 0 0; }
.legal-section ul { margin: .8rem 0 0; padding-left: 1.4rem; }
.legal-section li + li { margin-top: .45rem; }
.legal-section li::marker { color: var(--brand); }
.legal-section strong { color: var(--ink); font-weight: 800; }
.legal-section a { color: var(--brand-dark); font-weight: 800; text-underline-offset: .22rem; }
.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; color: var(--muted); font-size: .75rem; font-weight: 650; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { text-underline-offset: .2rem; }

@media (max-width: 800px) {
  .brand-sub, .top-nav .main-site { display: none; }
  .hero-inner { padding-block: 3.5rem; }
  .page-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2rem; }
  .toc-wrap { position: static; }
  .boundary { display: none; }
  article { padding: 1.5rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1.4rem; }
}

@media (max-width: 460px) {
  .header-inner, .hero-inner, .page-grid, .footer-inner { width: min(100% - 1.5rem, 1180px); }
  .brand-name { font-size: .86rem; }
  .brand-logo-wrap { width: 40px; height: 40px; }
  .top-nav a { padding: .5rem; font-size: .72rem; }
}

@media print {
  .site-header, .toc-wrap, .site-footer { display: none; }
  .hero { background: white; color: black; }
  .hero-inner { padding-block: 1rem; }
  .page-grid { display: block; width: 100%; padding: 0; }
  article { border: 0; box-shadow: none; padding: 0; }
}
