/* ============ TOKENS (Titan reference) ============ */
:root {
  --ink: #111111;
  --canvas: #ffffff;
  --sage: #f3efeb;
  --stone: #e9eaeb;
  --concrete: #d8d3cc;
  --gunmetal: #615e5b;
  --black: #000000;

  --ink-on-dark: #ffffff;
  --gray-on-dark: rgba(255, 255, 255, 0.62);
  --rule-on-dark: rgba(255, 255, 255, 0.16);

  --r-lg: 32px;
  --r-pill: 999px;

  --sans: 'Geist', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --max-w: 1200px;
  --gutter: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.65; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ NAV ============ */
nav {
  position: sticky;
  top: 0;
  background: var(--canvas);
  z-index: 100;
  padding: 1rem 0;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-logo:hover { opacity: 1; }
.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
  filter: grayscale(1) contrast(1.1);
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.nav-cta {
  background: var(--sage);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--stone); opacity: 1; }

.nav-rule {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-rule::after {
  content: '';
  display: block;
  border-bottom: 1px solid var(--stone);
}

/* ============ DOCUMENT ============ */
main { padding: 4.5rem 0 5.5rem; }

.doc-head {
  max-width: 760px;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 2.25rem;
  margin-bottom: 3rem;
}
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gunmetal);
  margin-bottom: 1.35rem;
}
h1 {
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 1rem 0;
  color: var(--ink);
}
.effective {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gunmetal);
  margin: 0;
}

.doc-body { max-width: 760px; }
.doc-body section { padding: 0; margin-bottom: 2.75rem; }
.doc-body section:last-child { margin-bottom: 0; }

h2 {
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem 0;
  color: var(--ink);
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
}
h2 .sec-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gunmetal);
  flex-shrink: 0;
}
.doc-body p {
  margin: 0 0 1.05em 0;
  color: var(--gunmetal);
  font-size: 0.98rem;
  line-height: 1.68;
}
.doc-body p:last-child { margin-bottom: 0; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a { text-decoration: underline; text-underline-offset: 2px; }

.doc-body ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  border-top: 1px solid var(--stone);
  counter-reset: item;
}
.doc-body li {
  counter-increment: item;
  padding: 0.85rem 0 0.85rem 2.6rem;
  position: relative;
  color: var(--gunmetal);
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--stone);
}
.doc-body li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.95rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink);
}

/* Legal all-caps blocks sit on a sage card so they read as set-apart */
.legal-block {
  background: var(--sage);
  border-radius: 20px;
  padding: 1.6rem 1.75rem;
  margin: 0 0 1.05em 0;
}
.legal-block p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--gunmetal);
  margin: 0;
}

/* ============ FOOTER ============ */
footer { padding: 2.25rem 0 2.75rem; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-inner .rule { border-top: 1px solid var(--stone); margin-bottom: 2rem; }
.footer-cols {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--gunmetal);
}
.footer-cols a { color: var(--gunmetal); text-decoration: underline; }
.footer-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  :root { --gutter: 1.35rem; }
  main { padding: 2.75rem 0 3.5rem; }
  h2 { flex-direction: column; gap: 0.3rem; }
}

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