/* Inter (SIL Open Font License 1.1), self-hosted variable subsets. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #333;
  --bg: #fff;
  --muted: #767676;
  --rule: #e6e6e6;
  --measure: 640px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px 96px;
}

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 24px;
  top: 12px;
  background: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}

/* --- header --- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  padding: 40px 0 72px;
}

.wordmark {
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-header nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-header nav a:hover { color: var(--ink); }

/* --- sections --- */

main section { margin-bottom: 72px; }

.intro h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  margin: 0;
  max-width: 34em;
}

.section-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

/* --- cards (what I'm building) --- */

.cards { list-style: none; margin: 0; padding: 0; }

.cards li { margin-bottom: 28px; }
.cards li:last-child { margin-bottom: 0; }

.card-name {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.card-name:hover { border-bottom-color: currentColor; }

/* unlinked card (e.g. stealth work) — no rule, so it doesn't read as a link */
span.card-name { border-bottom: none; }

.cards p { margin: 6px 0 0; color: var(--muted); }

/* --- essay list --- */

.essays { list-style: none; margin: 0; padding: 0; }

.essays li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.essays li:last-child { border-bottom: none; }

.essays a { text-decoration: none; }
.essays a:hover { text-decoration: underline; text-decoration-color: currentColor; }

.essays .date {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.more { margin: 24px 0 0; }
.more a { color: var(--muted); text-decoration: none; }
.more a:hover { color: var(--ink); }

.inline-list { margin: 0; line-height: 2; }
.inline-list .note { color: var(--muted); font-size: 14px; }

/* --- long-form pages --- */

.single .site-header { padding-bottom: 56px; }

.post-header { margin-bottom: 40px; }

.post-header h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-wrap: balance;
}

.post-header .date { color: var(--muted); font-size: 14px; margin: 0; }

.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 22px; }

.prose h2, .prose h3, .prose h4 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 40px 0 14px;
}
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 20px; }
.prose h4 { font-size: 17px; }

.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.prose blockquote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose figure { margin: 32px 0; }
.prose img { max-width: 100%; height: auto; display: block; }
.prose figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.prose hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #f6f6f6;
  padding: 2px 5px;
  border-radius: 3px;
}

.prose iframe { max-width: 100%; border: 0; }

.embed { margin: 8px 0 16px; }
.embed iframe { max-width: 100%; }
.fallback { color: var(--muted); font-size: 15px; }

/* --- pager --- */

.pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.pager a { color: var(--muted); text-decoration: none; max-width: 45%; }
.pager a:hover { color: var(--ink); }
.pager .next { margin-left: auto; text-align: right; }

/* --- footer --- */

.site-footer { padding-top: 8px; }
.footer-links { margin: 0 0 32px; }
.colophon { color: var(--muted); font-size: 14px; margin: 0; }

/* --- responsive --- */

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px 64px; }
  .site-header { padding: 28px 0 48px; }
  .site-header nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 16px; }
  .intro h1 { font-size: 32px; }
  .lede { font-size: 17px; }
  .post-header h1 { font-size: 26px; }
  main section { margin-bottom: 56px; }
  .essays li { flex-direction: column; gap: 2px; padding: 11px 0; }
}

@media print {
  .site-header nav, .pager, .site-footer { display: none; }
  .wrap { max-width: none; }
}
