/* Modern plaintext — monospace, high contrast, no chrome */

:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #57534e;
  --link: #0369a1;
  --link-hover: #0c4a6e;
  --border: #e7e5e4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a09;
    --fg: #fafaf9;
    --muted: #a8a29e;
    --link: #7dd3fc;
    --link-hover: #bae6fd;
    --border: #292524;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover,
.site-title a:focus {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.main p {
  margin: 0 0 1rem;
  max-width: 65ch;
}

.main a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.main a:hover,
.main a:focus {
  color: var(--link-hover);
}
