/* Same type and color as the digest pages. Grain stays at 0.04. */

:root {
  --bg: #191918;
  --ink: #e4e2db;
  --muted: #9a978e;
  --faint: #6f6d66;
  --line: #34332f;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Newsreader, "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.1875rem;
  line-height: 1.5;
  font-optical-sizing: auto;
}

main {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0 4.5rem;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

header.site { margin: 0 0 1.15rem; }

nav.site-nav {
  font-family: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav.site-nav a {
  color: var(--faint);
  text-decoration: none;
}

nav.site-nav a:hover { color: var(--ink); }

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.intro {
  margin: 0.9rem 0 0;
  padding-bottom: 1.55rem;
  border-bottom: 1px solid var(--line);
}

.intro p {
  margin: 0;
  color: var(--muted);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  mix-blend-mode: overlay;
}

@media (max-width: 800px) {
  main {
    width: min(40rem, calc(100% - 2rem));
    padding-top: 2.75rem;
  }
}
