:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --paper: #ffffff;
  --surface: #ffffff;
  --brand: #6b3d8f;
  --brand-deep: #3d2868;
  --accent: #c45c26;
  --highlight: #f5f5f5;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  --radius: 10px;
  --max: 44rem;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  background: #ffffff;
  min-height: 100vh;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.page {
  width: min(100% - 2rem, 68rem);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 960px) {
  .page {
    grid-template-columns: 15rem minmax(0, var(--max));
    justify-content: center;
    gap: 3rem;
    padding-top: 3.5rem;
  }
}

.brand-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  color: var(--brand-deep);
  line-height: 1.1;
}

.brand span {
  color: var(--brand);
}

.meta-top {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--muted);
}

.toc {
  font-family: var(--font-sans);
}

@media (min-width: 960px) {
  .toc {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    max-height: calc(100vh - 3rem);
    overflow: auto;
  }
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.toc a {
  display: block;
  padding: 0.2rem 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.35;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
}

.toc a:hover {
  color: var(--brand);
  border-left-color: var(--brand);
}

main {
  min-width: 0;
}

.hero {
  margin-bottom: 2.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.hero-lede {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 38rem;
}

.facts {
  display: grid;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
}

@media (min-width: 560px) {
  .facts {
    grid-template-columns: auto 1fr;
    column-gap: 1.25rem;
    row-gap: 0.55rem;
    align-items: baseline;
  }

  .facts dt {
    margin: 0;
  }

  .facts dd {
    margin: 0;
  }
}

section {
  margin: 0 0 2.25rem;
  scroll-margin-top: 1.5rem;
}

section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

section h3 {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}

p {
  margin: 0 0 0.9rem;
}

ul, ol {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

li::marker {
  color: var(--brand);
}

.callout {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--highlight);
  border-left: 3px solid var(--brand);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.callout strong {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 650;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.45;
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f5f5f5;
  font-weight: 650;
  color: var(--brand-deep);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

th:first-child,
td:first-child {
  width: 38%;
}

th:last-child,
td:last-child {
  width: 62%;
}

tr:last-child td {
  border-bottom: none;
}

td:first-child {
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

@media (max-width: 560px) {
  th:first-child,
  td:first-child,
  th:last-child,
  td:last-child {
    width: auto;
  }

  table {
    table-layout: auto;
  }
}

code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.86em;
  background: #f3f3f3;
  color: var(--brand-deep);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
}

footer p {
  margin: 0;
}

.email-placeholder {
  font-style: italic;
  color: var(--accent);
}

.changelog {
  display: grid;
  gap: 1.25rem;
}

.changelog article h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.changelog .tag {
  display: inline-block;
  margin-right: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
