:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
  color-scheme: light;
  --bg: #c8cbcd;
  --panel: #e7e8e8;
  --surface: #f0f0ef;
  --raised: #fafaf9;
  --ink: #24272a;
  --muted: #656a70;
  --border: #ced1d3;
  --accent: #3974c2;
  --accent-soft: #e3ecf8;
  --paper: #fff;
  --paper-ink: #151719;
  --shadow: 0 8px 30px #20242620;
  --line: #acb2b8;
  --toolbar: 43px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17191b;
  --panel: #202326;
  --surface: #282b2f;
  --raised: #303438;
  --ink: #e5e8eb;
  --muted: #a0a6ac;
  --border: #373c41;
  --accent: #83afe8;
  --accent-soft: #293c53;
  --paper: #202326;
  --paper-ink: #eaecea;
  --shadow: 0 9px 36px #0005;
  --line: #353b41;
}
:root[data-theme="solarized-light"] {
  --bg: #d2c9b1;
  --panel: #eee8d5;
  --surface: #f7f0dc;
  --raised: #fdf6e3;
  --ink: #073642;
  --muted: #657b83;
  --border: #d1c9b4;
  --accent: #268bd2;
  --accent-soft: #d5e5df;
  --paper: #fdf6e3;
  --paper-ink: #073642;
  --line: #c2baa5;
}
:root[data-theme="solarized-dark"] {
  color-scheme: dark;
  --bg: #002b36;
  --panel: #073642;
  --surface: #10424d;
  --raised: #164955;
  --ink: #e0e4d5;
  --muted: #93a1a1;
  --border: #23505a;
  --accent: #65b9d9;
  --accent-soft: #164653;
  --paper: #073642;
  --paper-ink: #eee8d5;
  --line: #12434e;
}
:root[data-theme="sepia"] {
  --bg: #d4cec2;
  --panel: #e9e3d7;
  --surface: #f2ecdf;
  --raised: #fff8e9;
  --ink: #443c31;
  --muted: #867966;
  --border: #d4cbb9;
  --accent: #9b6939;
  --accent-soft: #e9dbc5;
  --paper: #fffaef;
  --paper-ink: #3b3328;
  --line: #bfb5a4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 32px 20px;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.65 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
main {
  max-width: 760px;
  margin: auto;
  padding: clamp(24px, 5vw, 48px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}
h1,
h2 {
  line-height: 1.2;
}
h1 {
  font-size: clamp(30px, 6vw, 42px);
  margin: 16px 0 24px;
}
h2 {
  font-size: 21px;
  margin-top: 32px;
}
small {
  color: var(--muted);
  letter-spacing: 0.08em;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.open {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
@media (max-width: 600px) {
  body {
    padding: 12px 8px;
  }
  main {
    padding: 24px 20px;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 20px;
  }
}
