@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('../fonts/jetbrains-mono-latin-wght.woff2') format('woff2');
}

:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --chip: #f4f2ee;
  --ink: #12161c;
  --muted: #5b6069;
  --line: #d6d2ca;
  --cobalt: #2547c9;
  --mark: #fff1b8;
  --mark-ink: #5a4500;
  --ui: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

:root[data-theme='dark'] {
  --paper: #0e1116;
  --surface: #141920;
  --chip: #11151b;
  --ink: #e8e6e1;
  --muted: #949aa4;
  --line: #262d37;
  --cobalt: #7b93f5;
  --mark: #3d3208;
  --mark-ink: #ffe38a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--ui);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 68ch;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.back {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cobalt);
  text-decoration: none;
}

.back:hover { text-decoration: underline; }

h1 {
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 24px 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h1::before {
  content: '';
  width: 28px;
  height: 28px;
  flex: none;
  background: url('/leveljar-logo.svg') center / contain no-repeat;
}

h2 {
  font-size: 18px;
  margin: 32px 0 8px;
}

h3 {
  font-size: 16px;
  margin: 24px 0 6px;
}

.updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

p, ul { margin: 0 0 16px; }

li { margin-bottom: 6px; }

a { color: var(--cobalt); }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--chip);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 4px;
}

address { font-style: normal; }

.placeholder {
  background: var(--mark);
  color: var(--mark-ink);
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 4px;
}

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
