:root {
  --cream: #fdf9f5;
  --cream-2: #f8f2ea;
  --cream-3: #f4efe9;
  --ink: #2a2520;
  --ink-2: #5a5048;
  --ink-3: #7a736b;
  --ink-4: #a8a199;
  --gold: #c9a678;
  --gold-deep: #9b7444;
  --gold-soft: #f0e4d0;
  --border: #eae2d6;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --display: "Instrument Serif", "Fraunces", ui-serif, Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --max: 900px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--gold-deep) 35%, transparent);
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover { color: var(--ink); border-bottom-color: var(--ink); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--gold-soft); color: var(--ink); }
strong { color: var(--ink); font-weight: 600; }
em { color: var(--ink-2); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--cream);
  transform: translateY(-160%);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--cream) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 28px;
}

.wm {
  display: inline-flex;
  align-items: center;
  border: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 34px;
  font-style: normal;
  font-variation-settings: "SOFT" 0, "opsz" 144;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.wm:hover { color: var(--ink); }

.wm .dot {
  display: inline-block;
  align-self: flex-end;
  width: 9px;
  height: 9px;
  margin-bottom: 6px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.wm-tag {
  display: inline-block;
  margin-left: 12px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(6px);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
}

.nav-back:hover { color: var(--ink); }
.nav-back svg { width: 14px; height: 14px; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 28px 96px;
}

.document-head,
.reading-width { max-width: 760px; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(40px, 5.6vw, 64px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.05;
  text-wrap: balance;
}

.meta {
  margin: 0 0 24px;
  color: var(--ink-3);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 760px;
  margin: 0 0 40px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.doc-nav a { color: var(--ink-2); border-bottom-color: transparent; }
.doc-nav a:hover, .doc-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

h2 {
  max-width: 760px;
  margin: 48px 0 16px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

h3 {
  max-width: 760px;
  margin: 28px 0 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p, ul, ol { max-width: 760px; }
p { margin: 0 0 16px; text-wrap: pretty; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }

.callout {
  max-width: 760px;
  margin: 26px 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: var(--cream-2);
}

.callout p:last-child,
.callout ul:last-child { margin-bottom: 0; }

.caps {
  max-width: 760px;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--cream-2);
  color: var(--ink-2);
  font-size: 14.5px;
  letter-spacing: 0.005em;
  line-height: 1.55;
  text-transform: uppercase;
}

.table-wrap {
  width: 100%;
  margin: 24px 0 32px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in oklab, white 48%, var(--cream));
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

caption {
  padding: 16px 18px;
  color: var(--ink-2);
  font-weight: 600;
  text-align: left;
}

th, td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th {
  border-top: 0;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

tbody th { width: 22%; color: var(--ink); font-weight: 600; }

.tier-table { max-width: 600px; }
.tier-table td:last-child, .tier-table th:last-child { text-align: right; white-space: nowrap; }
.money-example { font-variant-numeric: tabular-nums; }

hr { margin: 48px 0; border: 0; border-top: 1px solid var(--border); }

footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--cream-3);
  font-size: 14px;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--ink-2);
}

.foot p { margin: 0; }
.foot a { color: var(--ink-2); border-bottom: 1px solid var(--border); }
.foot a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .nav-inner { padding: 0 20px; }
  .wm-tag { display: none; }
  main { padding: 48px 20px 72px; }
  .foot { padding: 0 20px; }
}

@media (max-width: 640px) {
  .data-map { border: 0; background: transparent; overflow: visible; }
  .data-map table, .data-map tbody, .data-map tr, .data-map th, .data-map td { display: block; width: 100%; }
  .data-map caption { padding: 0 0 12px; }
  .data-map thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .data-map tr { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--cream-2); overflow: hidden; }
  .data-map tbody th { padding: 15px 16px; border-top: 0; background: var(--gold-soft); }
  .data-map td { padding: 12px 16px; }
  .data-map td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
