:root {
  --ink: #15202b;
  --muted: #52606d;
  --soft: #eef3f6;
  --paper: #f8fafb;
  --line: #cbd5dc;
  --blue: #245fce;
  --blue-dark: #17499f;
  --white: #ffffff;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  outline: 3px solid rgba(36, 95, 206, 0.3);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.9rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-200%);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 251, 0.96);
}

.header-inner,
.page-shell,
.site-footer-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.76rem;
  letter-spacing: -0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45rem;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.eyebrow,
.section-kicker,
.record-label,
.policy-meta {
  margin: 0 0 1rem;
  color: var(--blue-dark);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.65rem, 7vw, 5rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.record-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(21, 32, 43, 0.08);
}

.record-card::after {
  content: "LA / 01";
  position: absolute;
  right: -0.1rem;
  bottom: -1.4rem;
  color: rgba(36, 95, 206, 0.06);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 4.8rem;
  font-weight: 800;
  letter-spacing: -0.12em;
  pointer-events: none;
}

.record-head,
.record-body {
  padding: 1.25rem 1.4rem;
}

.record-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.record-head strong {
  font-size: 0.9rem;
}

.record-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #17683a;
  font-size: 0.78rem;
  font-weight: 700;
}

.record-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #268a50;
}

.record-list {
  position: relative;
  z-index: 1;
  margin: 0;
}

.record-list div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--soft);
}

.record-list div:last-child {
  border-bottom: 0;
}

.record-list dt {
  color: var(--muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.record-list dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
}

.content-section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.boundary-grid,
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.boundary-card,
.workflow-step {
  min-height: 230px;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--white);
}

.boundary-card p,
.workflow-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--blue-dark);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.principle-band {
  margin-block: clamp(4rem, 8vw, 6.5rem);
  padding: clamp(1.8rem, 5vw, 3.5rem);
  border-left: 5px solid var(--blue);
  background: var(--ink);
  color: var(--white);
}

.principle-band h2 {
  max-width: 760px;
  margin-bottom: 1rem;
}

.principle-band p {
  max-width: 800px;
  margin: 0;
  color: #c8d2da;
}

.policy-hero {
  max-width: 860px;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem);
}

.policy-hero h1 {
  margin-bottom: 1.2rem;
}

.policy-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.15rem;
}

.policy-summary {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  background: var(--white);
}

.policy-summary strong {
  font-size: 0.96rem;
}

.policy-summary p {
  margin: 0;
  color: var(--muted);
}

.policy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-bottom: 6rem;
}

.policy-toc {
  position: sticky;
  top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.policy-toc p {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.policy-toc a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.policy-copy section {
  scroll-margin-top: 1rem;
  padding-block: 0 2.7rem;
  margin-bottom: 2.7rem;
  border-bottom: 1px solid var(--line);
}

.policy-copy section:last-child {
  border-bottom: 0;
}

.policy-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.policy-copy h3 {
  margin-top: 1.5rem;
}

.policy-copy p,
.policy-copy li {
  color: #394754;
}

.policy-copy a,
.policy-copy code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.policy-copy ul,
.policy-copy ol {
  padding-left: 1.25rem;
}

.policy-copy li + li {
  margin-top: 0.55rem;
}

.note {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink) !important;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .record-card {
    max-width: 620px;
  }

  .boundary-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .boundary-card,
  .workflow-step {
    min-height: 0;
  }

  .card-number {
    margin-bottom: 1.5rem;
  }

  .policy-layout,
  .policy-summary {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    position: static;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 64px;
  }

  .brand span:last-child {
    display: none;
  }

  .site-nav {
    gap: 0.85rem;
  }

  .record-list div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.5rem;
  }
}

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