:root {
  color-scheme: light;
  --paper: #fbf8f2;
  --ink: #231d26;
  --muted: #6f6670;
  --line: #ded6dc;
  --accent: #6d315f;
  --accent-soft: #f0e4ec;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

a { color: var(--accent); text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.masthead__inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { flex: 0 0 auto; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 18px; font-size: 14px; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }

.layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 720px) 220px;
  gap: 96px;
  align-items: start;
}

main { padding: 80px 0 112px; }

.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; line-height: 1.15; }
h1 { max-width: 680px; margin: 0 0 42px; font-size: clamp(38px, 6vw, 68px); font-weight: 500; }
h2 { margin: 64px 0 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 29px; }
h3 { margin: 34px 0 12px; font-size: 18px; }
p { margin: 0 0 19px; }
hr { margin: 72px 0; border: 0; border-top: 1px solid var(--line); }
ol { margin: 0 0 28px; padding-left: 24px; }
li { margin: 8px 0; }
strong { font-weight: 700; }

.revision { color: var(--muted); font-size: 14px; }
.doc-nav { position: sticky; top: 96px; margin-top: 84px; font-size: 14px; }
.doc-nav__label { margin-bottom: 14px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.doc-nav a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.support { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .masthead__inner { width: min(100% - 28px, 720px); min-height: 58px; }
  .nav { gap: 10px; font-size: 12px; }
  .nav a:first-child { display: none; }
  .layout { width: min(100% - 32px, 720px); display: block; }
  main { padding: 52px 0 80px; }
  h1 { margin-bottom: 34px; }
  h2 { margin-top: 52px; font-size: 26px; }
  .doc-nav { position: static; margin: -48px 0 72px; }
}

@media print {
  .masthead, .doc-nav { display: none; }
  .layout { display: block; width: 100%; }
  main { padding: 0; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
}
