:root {
  color-scheme: dark;
  --background: #0b0f14;
  --surface: #131a22;
  --surface-strong: #18212b;
  --border: #36404b;
  --text: #e8edf2;
  --muted: #aab4bf;
  --link: #79c0ff;
  --link-hover: #b6dcff;
  --focus: #f2cc60;
  --accent: #56d364;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
}

.site-shell {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--focus);
  color: #11161c;
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-nav {
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-name {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-links a:hover {
  color: var(--text);
}

.content {
  padding-block: 2.5rem 4rem;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #f5f7fa;
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 2rem;
}

h2 {
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.45rem;
}

h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

p,
ul,
ol,
blockquote,
pre,
table {
  margin-block: 0 1.25rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

strong {
  color: #ffffff;
}

blockquote {
  margin-inline: 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
}

code {
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-strong);
  color: #f0f3f6;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

pre {
  max-width: 100%;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-strong);
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

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

th {
  background: var(--surface-strong);
  color: #ffffff;
}

tr:nth-child(even) {
  background: var(--surface);
}

hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 36rem) {
  .site-shell {
    width: min(100% - 1.25rem, 52rem);
  }

  .site-nav {
    min-height: 4.25rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding-block: 0.55rem;
  }

  .content {
    padding-block: 1.75rem 3rem;
  }

  h1 {
    font-size: 1.7rem;
  }
}
