:root {
  --ink: #17212b;
  --muted: #5d6873;
  --paper: #ffffff;
  --canvas: #f4f7f9;
  --cobalt: #2457d6;
  --teal: #168a86;
  --coral: #e66a4e;
  --line: #d7dee4;
  --header-height: 72px;
  color-scheme: light;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  min-height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 33, 43, 0.14);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 25px;
  height: 31px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: var(--paper);
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: var(--canvas);
}

.brand-mark span {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 6px;
  height: 2px;
  background: var(--cobalt);
  box-shadow: 0 -5px 0 var(--teal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease-out;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cobalt);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 23px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease-out;
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(860px, 92dvh);
  padding: calc(var(--header-height) + clamp(48px, 9vh, 96px)) clamp(20px, 6vw, 96px) clamp(64px, 9vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 7vw, 112px);
  background-color: #e8eef2;
  isolation: isolate;
  overflow: hidden;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cobalt);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 9ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 8.4rem);
  font-weight: 400;
  line-height: 0.88;
}

.hero-intro {
  max-width: 560px;
  margin: 32px 0;
  color: #34414d;
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
  line-height: 1.7;
}

.text-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 2px;
  transition: color 180ms ease-out;
}

.text-action:hover {
  color: var(--cobalt);
}

.document-workspace {
  position: relative;
  min-height: clamp(430px, 62vh, 610px);
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(23, 33, 43, 0.16);
}

.workspace-rail {
  position: absolute;
  left: 22px;
  top: 50%;
  display: grid;
  gap: 13px;
  transform: translateY(-50%);
}

.rail-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.rail-dot.is-active {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.page-stack {
  position: relative;
  width: min(72%, 430px);
  aspect-ratio: 0.72;
}

.paper {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 33, 43, 0.13);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 22px 60px rgba(40, 54, 67, 0.14);
}

.paper-back {
  transform: translate(54px, -26px) rotate(7deg);
  background: #dce7ea;
}

.paper-middle {
  transform: translate(-34px, 25px) rotate(-5deg);
  background: #f4eee8;
}

.paper-front {
  padding: 13% 12%;
  display: flex;
  flex-direction: column;
  gap: 5.5%;
}

.paper-heading {
  width: 48%;
  height: 4%;
  background: var(--ink);
}

.paper-rule {
  width: 72%;
  height: 1.1%;
  background: #cbd4da;
}

.paper-rule.is-long {
  width: 100%;
}

.paper-rule.is-short {
  width: 53%;
}

.paper-figure {
  height: 34%;
  margin: 3% 0;
  padding: 8% 9% 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10%;
  background: #edf2f5;
}

.figure-column {
  width: 18%;
  height: 62%;
}

.figure-column.is-cobalt { height: 86%; background: var(--cobalt); }
.figure-column.is-teal { height: 64%; background: var(--teal); }
.figure-column.is-coral { height: 44%; background: var(--coral); }

.page-index {
  position: absolute;
  right: 2%;
  bottom: 6%;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
}

.page-index strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: 400;
}

.reading-band,
.principles,
.closing-band {
  padding: clamp(78px, 11vw, 150px) clamp(20px, 6vw, 96px);
}

.reading-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(48px, 10vw, 160px);
  background: var(--paper);
}

h2 {
  margin: 0;
  max-width: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
}

.reading-copy {
  align-self: end;
}

.reading-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.48rem);
  line-height: 1.75;
}

.reading-line {
  position: relative;
  width: 100%;
  height: 8px;
  margin-top: 56px;
  background: var(--cobalt);
}

.reading-line::before,
.reading-line::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
}

.reading-line::before {
  width: 54%;
  background: var(--teal);
}

.reading-line::after {
  width: 22%;
  background: var(--coral);
}

.principles {
  background: var(--ink);
  color: var(--paper);
}

.principles .eyebrow {
  color: #7eb9ff;
}

.principles-intro {
  max-width: 760px;
  margin-bottom: clamp(52px, 8vw, 96px);
}

.principle-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.principle-list li {
  min-height: 150px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: minmax(64px, 0.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.principle-number {
  color: #8fa2b1;
  font-variant-numeric: tabular-nums;
}

.principle-list h3 {
  margin: 0 0 7px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.principle-list p {
  margin: 0;
  color: #bdc8d0;
}

.closing-band {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #dce9e7;
}

.closing-band h2 {
  max-width: 14ch;
  margin-bottom: 36px;
}

.site-footer {
  min-height: 112px;
  padding: 24px clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer > :last-child {
  text-align: right;
}

.legal-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #eef2f4;
}

.legal-main {
  position: relative;
  width: min(100% - 40px, 1120px);
  min-height: 680px;
  margin: calc(var(--header-height) + 70px) auto 80px;
  padding: clamp(56px, 9vw, 116px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(40, 54, 67, 0.1);
}

.legal-main h1 {
  max-width: 12ch;
  font-size: clamp(3.5rem, 7vw, 7rem);
}

.legal-marker {
  position: absolute;
  top: 34px;
  right: 36px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.legal-empty {
  width: min(100%, 620px);
  height: 1px;
  margin-top: clamp(80px, 14vw, 150px);
  background: var(--line);
}

.legal-page .site-footer {
  margin-top: auto;
}

@media (max-width: 820px) {
  :root { --header-height: 66px; }

  .nav-toggle { display: grid; }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: 18px 20px 24px;
    display: none;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 54px);
    grid-template-columns: 1fr;
    gap: 54px;
  }

  h1 { font-size: clamp(3.8rem, 19vw, 6rem); }

  .document-workspace {
    min-height: min(112vw, 540px);
    border-left: 0;
    border-top: 1px solid rgba(23, 33, 43, 0.16);
  }

  .workspace-rail { left: 0; }
  .page-stack { width: min(74%, 350px); }

  .reading-band {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .reading-copy { align-self: auto; }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .site-footer > :last-child { text-align: left; }

  .legal-main {
    min-height: 540px;
    margin-top: calc(var(--header-height) + 34px);
    padding: 60px 26px;
  }
}

@media (max-width: 420px) {
  .site-header { padding-inline: 16px; }
  .hero,
  .reading-band,
  .principles,
  .closing-band { padding-left: 18px; padding-right: 18px; }
  .hero-intro { font-size: 1rem; }
  .page-index { right: 0; bottom: 2%; }
  .page-index strong { font-size: 2rem; }
  .principle-list li { grid-template-columns: 46px minmax(0, 1fr); }
  .legal-main { width: calc(100% - 28px); }
}

@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;
  }
}
