@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-400-italic.ttf') format('truetype');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-700-italic.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/roboto-mono-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/roboto-mono-700.ttf') format('truetype');
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #7a7a7a;
  --line: #0a0a0a;
  --hover: #5f5f5f;
  --font-sans: Helvetica, Inter, Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'Roboto Mono', monospace;
  --font: var(--font-sans);
  --max: 900px;
  --article: 720px;
  --top: 58px;
  --logo: 118px;
  --base: 21px;
  --lh: 1.42;
  --logo-filter: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: var(--base)/var(--lh) var(--font);
  letter-spacing: 0;
}

::selection {
  background: #ffe680;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

::-moz-selection {
  background: #ffe680;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

a {
  color: inherit;
  text-decoration: none;
}

.article-body a {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

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

.page {
  width: min(var(--max), calc(100vw - 36px));
  margin: 0 auto;
  padding: var(--top) 0 92px;
}

.logo {
  display: block;
  width: var(--logo);
  margin: 0 auto 48px;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--logo-filter);
}

.home-topic {
  margin: 0 0 38px;
}

.home-topic h1 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--line);
  color: var(--text);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.home-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
}

.home-column h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

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

.listing li {
  margin: 0 0 14px;
}

.listing a {
  display: grid;
  grid-template-columns: 10.5ch minmax(0, 1fr);
  gap: 0.9rem;
  align-items: baseline;
}

.listing time {
  color: var(--muted);
  white-space: nowrap;
}

.article {
  width: min(var(--article), calc(100vw - 36px));
  margin: 0 auto;
  --article-body-font: var(--font-sans);
  --article-heading-font: var(--font-sans);
}

.article.body-serif {
  --article-body-font: var(--font-serif);
}

.article.body-sans {
  --article-body-font: var(--font-sans);
}

.article.heading-serif {
  --article-heading-font: var(--font-serif);
}

.article.heading-sans {
  --article-heading-font: var(--font-sans);
}

.article-header {
  margin-bottom: 34px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--line);
  font-family: var(--article-heading-font);
}

.article-header h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.article-header time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.article-body h1,
.article-body h2,
.article-body h3 {
  margin: 2.2rem 0 0.7rem;
  font-weight: 700;
  font-family: var(--article-heading-font);
}

.article-body {
  font-family: var(--article-body-font);
}

.article-body h1 {
  font-size: 1.8rem;
  line-height: 1.06;
}

.article-body h2 {
  font-size: 1.45rem;
  line-height: 1.12;
}

.article-body h3 {
  font-size: 1.18rem;
  line-height: 1.18;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.article-body figure {
  margin: 0 0 1.3rem;
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6rem 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}

.article-body code,
.article-body pre {
  font-family: var(--font-mono);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.article-body pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--muted);
}

.article-body blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

@media (max-width: 620px) {
  .page {
    width: min(var(--max), calc(100vw - 28px));
    padding-top: 42px;
  }

  .logo {
    margin-bottom: 42px;
  }

  .home-topic h1,
  .article-header h1 {
    font-size: 2rem;
  }

  .home-columns {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .listing a {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


