@font-face {
  font-family: "Inter Tight Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Pinyon Script";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/pinyon-script-latin-400-normal.woff2") format("woff2");
}

:root {
  --ink: #0d1b24;
  --ink-70: rgba(13, 27, 36, 0.72);
  --ink-muted: rgba(13, 27, 36, 0.64);
  --line: rgba(13, 27, 36, 0.1);
  --teal: #0f7a6e;
  --teal-soft: #d9efeb;
  --sky: #cfdcef;
  --blush: #f8dde0;
  --paper: #fbfaf8;
  --sans: "Inter Tight Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.75 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
code { font: 14.5px/1.5 var(--mono); background: rgba(13, 27, 36, 0.05); padding: 1px 6px; border-radius: 6px; }
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; padding: 12px 12px 0; }
.topbar-inner {
  max-width: 1152px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px -12px rgba(13, 27, 36, 0.2);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.wordmark span { font: 30px/1 var(--script); }
.topbar nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.topbar nav a { color: var(--ink-70); text-decoration: none; }
.topbar nav a:hover { color: var(--teal); }
.topbar nav a.pill { background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 12px; font-weight: 500; }
.topbar nav a.pill:hover { background: #1c2c36; color: #fff; }
@media (max-width: 640px) { .topbar nav a:not(.pill) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; margin-top: -72px; padding: 152px 0 88px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 8% 0%, var(--sky) 0%, transparent 70%),
    radial-gradient(55% 60% at 96% 10%, var(--blush) 0%, transparent 70%),
    radial-gradient(50% 50% at 50% 110%, var(--teal-soft) 0%, transparent 75%),
    var(--paper);
}
.eyebrow { font: 12px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin: 0; }
.hero h1 { font-size: clamp(44px, 7vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; margin: 20px 0 0; }
.lede { max-width: 620px; font-size: 20px; line-height: 1.6; color: var(--ink-70); margin: 24px 0 0; }
.dates { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.dates span {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-70);
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.dates span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* Layout */
.layout { display: grid; gap: 64px; padding-top: 64px; padding-bottom: 112px; }
@media (min-width: 1024px) { .layout { grid-template-columns: 248px minmax(0, 1fr); gap: 80px; } }
.doc { max-width: 740px; min-width: 0; }

/* Contents */
.toc-side { display: none; }
@media (min-width: 1024px) {
  .toc-side { display: block; position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 128px); overflow: auto; padding-right: 8px; }
  .toc-mobile { display: none; }
}
.toc-title { font: 12px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 16px; }
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc-list li { counter-increment: toc; margin: 0; }
.toc-list a {
  display: flex; gap: 12px; padding: 6px 10px; border-radius: 10px; font-size: 14px; line-height: 1.4;
  color: var(--ink-70); text-decoration: none;
}
.toc-list a::before { content: counter(toc, decimal-leading-zero); font: 12px/1.6 var(--mono); color: var(--teal); }
.toc-list a:hover { background: rgba(13, 27, 36, 0.05); color: var(--ink); }
.toc-mobile { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 4px 16px; margin-bottom: 48px; }
.toc-mobile summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; color: var(--teal); font-size: 20px; line-height: 1; }
.toc-mobile[open] summary::after { content: "−"; }
.toc-mobile .toc-list { padding-bottom: 12px; }

/* Summary card */
.summary {
  position: relative; border-radius: 28px; padding: 36px; margin-bottom: 24px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(13, 27, 36, 0.35);
}
.doc .summary h2 { display: block; margin: 12px 0 0; padding: 0; border: 0; font-size: 26px; }
.doc .summary ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .doc .summary ul { grid-template-columns: 1fr 1fr; gap: 20px 28px; } }
.doc .summary li { display: flex; gap: 14px; margin: 0; line-height: 1.55; }
.doc .summary li::before {
  content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); font-size: 14px; font-weight: 700;
}
.doc .summary .eyebrow { margin: 0; }
.doc .summary .fine { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); }

/* Clauses */
.doc h2 {
  display: flex; align-items: baseline; gap: 16px; font-size: 28px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 600;
  margin: 88px 0 24px; padding-top: 40px; border-top: 1px solid var(--line);
}
.doc h2 .num { font: 13px/1 var(--mono); color: var(--teal); letter-spacing: 0.05em; flex: none; transform: translateY(-4px); }
.doc h3 { font-size: 19px; letter-spacing: -0.01em; font-weight: 600; margin: 40px 0 12px; }
.doc p { margin: 18px 0; color: var(--ink-70); }
.doc li { margin: 12px 0; color: var(--ink-70); padding-left: 4px; }
.doc ul, .doc ol { padding-left: 24px; margin: 18px 0; }
.doc li > ul, .doc li > ol { margin: 10px 0; }
.doc li::marker { color: var(--teal); }
.doc strong { color: var(--ink); font-weight: 600; }
.caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.02em; line-height: 1.8; }

/* Tables as cards */
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 28px 0; font-size: 15px; line-height: 1.55;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.doc th { background: rgba(13, 27, 36, 0.03); font: 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-70); }
.doc td code { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: auto; }
  .doc table { background: transparent; border: 0; border-radius: 0; }
  .doc thead { display: none; }
  .doc tr { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin: 12px 0; padding: 10px 0; }
  .doc td { border: 0; padding: 4px 18px; }
}

/* Contact card */
.contact-card {
  margin: 28px 0; padding: 28px; border-radius: 24px; color: #fff;
  background: radial-gradient(80% 120% at 100% 0%, rgba(46, 196, 182, 0.35) 0%, transparent 60%), var(--ink);
}
.contact-card p { color: rgba(255, 255, 255, 0.78); margin: 8px 0; }
.contact-card strong { color: #fff; }
.contact-card a { color: #7fe3d6; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.site-footer .by { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-muted); text-decoration: none; }
.site-footer .by:hover { color: var(--teal); }
.site-footer nav { display: flex; gap: 32px; font-size: 14px; }
.site-footer nav a { color: var(--ink-70); text-decoration: none; }
.site-footer nav a:hover { color: var(--teal); }
