@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;700&family=IBM+Plex+Mono:wght@400;700&display=swap');

:root {
  --bg: #efeee9;
  --ink: #111;
  --muted: #616161;
  --rule: #b8b8b8;
  --accent: #c1121f;
  --sans: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --text-sm: 0.8rem;
  --text-md: 1.1rem;
  --text-lg: 1.2rem;
}

@font-face {
  font-family: "Ioskeley Mono"; /* set name */
  src: url("/static/IoskeleyMono-Web/WOFF2/IoskeleyMono-Regular.woff2"); /* url of the font */
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.65;
}

a { color: inherit; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

.wrapper {
  width: min(100% - 48px, 1080px);
  margin: 0 auto;
  padding: 64px 0 96px;
}

header { margin-bottom: 48px; }

.site-title {
  display: inline-block;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a { text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
nav a.active, nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }

.bio { margin-top: 24px; max-width: 58ch; font-size: var(--text-lg); color: #2a2a2a; }

hr { border: 0; border-top: 3px solid var(--ink); margin: 48px 0 24px; }


h2, h3, .year-label, .entry-meta, .article-meta, .archive-link, footer, .article-footer .nav-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2em 0 0.6em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.6em 0 0.4em;
}

.year-label, .entry-meta, .article-meta,
.archive-link, footer, .article-footer .nav-label {
  font-size: var(--text-sm);
}

.sep { color: var(--accent); }
footer { margin-top: 96px; color: var(--muted); }

.entry { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.entry-meta { color: var(--muted); }
.entry-title { display: block; font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 700; line-height: 1.3; text-decoration: none; }
.entry p { margin: 8px 0 0; font-size: var(--text-md); color: var(--muted); }

.archive-link { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); }
.archive-link:hover { border-bottom-color: var(--accent); }

.year-group { margin-bottom: 48px; }
.year-label { color: var(--muted); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }

.article-header { border-top: 3px solid var(--ink); padding-top: 16px; margin-bottom: 48px; }
.article-meta { color: var(--muted); }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-family: var(--mono);
  font-size: var(--text-sm);
}

.article-body th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-bottom: 3px solid var(--ink);
  color: var(--muted);
}

.article-body td {
  padding: 8px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: right;
}

.article-body td:first-child {
  text-align: left;
  color: var(--muted);
}

.article-body tr:last-child td {
  border-bottom: none;
}

.article-body tr:hover td {
  background: #e8e6de;
}


h1.article-title {
  margin: 0 0 12px;
  max-width: 24ch;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.article-subtitle { margin: 0; max-width: 56ch; font-size: var(--text-lg); color: var(--muted); }

.article-body { max-width: 100ch; }
.article-body p { margin: 0 0 1.2em; line-height: 1.78; }
.article-body h2 { margin: 2.4em 0 0.9em; }
.article-body blockquote { margin: 32px 0; padding-left: 24px; border-left: 2px solid var(--ink); color: #333; }

pre { margin: 32px 0; padding: 24px; overflow-x: auto; border: 1px solid var(--ink); background: #e8e6de; }
pre code { font-family: var(--mono); font-size: 1rem; line-height: 1.6; }

.article-footer { border-top: 3px solid var(--ink); margin-top: 64px; padding-top: 16px; display: flex; gap: 24px; justify-content: space-between; }
.article-footer > div { flex: 1; }
.article-footer > div:last-child { text-align: right; }
.article-footer .nav-label { display: block; margin-bottom: 4px; color: var(--muted); }
.article-footer a { font-weight: 700; text-decoration: none; }

figure { margin: 32px 0; }
figcaption { margin-top: 8px; font-family: var(--mono); font-size: var(--text-sm); color: var(--muted); }

.toc {
  margin: 32px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--ink);
}
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 4px 0; }
.toc a { font-family: var(--mono); font-size: var(--text-sm); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; }
.toc ul ul { padding-left: 16px; opacity: 0.6; }


.article-copyright {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: var(--text-sm);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


@media (max-width: 700px) {
  body { font-size: 18px; }
  .wrapper { width: min(100% - 32px, 1080px); padding: 48px 0 64px; }
  .article-footer { flex-direction: column; }
  .article-footer > div:last-child { text-align: left; }
}