:root {
  color-scheme: dark;
  --bg: #111214;
  --document: #1b1d21;
  --surface: #24262b;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f3f5;
  --secondary: #c4c9d1;
  --muted: #8b909a;
  --accent: #35d07f;
  --accent-soft: rgba(53, 208, 127, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.document {
  width: min(960px, calc(100vw - 32px));
  margin: 32px auto;
  padding: 34px;
  background: var(--document);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.document-nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.document-nav a {
  color: var(--secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--surface);
}

.document-nav a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.document-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p,
dl {
  margin: 0;
}

h1 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: 0;
}

.subtitle {
  max-width: 740px;
  margin-top: 12px;
  color: var(--secondary);
  font-size: 18px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.meta-grid div {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 650;
}

section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

section p,
section ul {
  margin-top: 14px;
}

p,
li {
  color: var(--secondary);
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 8px;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

@media (max-width: 760px) {
  .document {
    width: min(100vw - 20px, 960px);
    margin: 10px auto;
    padding: 22px;
  }

  .document-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 36px;
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }
}
