:root {
  --ink: #141414;
  --muted: #8b8b8b;
  --rule: #e2e2e2;
  --paper: #ffffff;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #000; }
img { max-width: 100%; height: auto; display: block; }

.wrap { display: grid; grid-template-columns: 200px minmax(0, 780px); gap: 56px; max-width: 1100px; padding: 44px 40px 24px; }

/* Sidebar */
.side { position: sticky; top: 44px; align-self: start; }
.site-title { display: block; font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; text-decoration: none; }
.tagline { color: var(--muted); font-size: 14px; line-height: 1.4; margin: 10px 0 28px; }
.side nav ul { list-style: none; margin: 0; padding: 0; }
.side nav li { margin: 0 0 6px; }
.side nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.side nav a:hover { text-decoration: underline; }
.side nav a[aria-current] { color: var(--muted); }
.social { margin: 28px 0 0; font-size: 12px; display: flex; gap: 14px; }
.social a { color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--ink); }

/* Chapters */
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.015em; margin: 4px 0 20px; font-weight: 700; }
.logline { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: -8px 0 22px; color: #333; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.next { margin: 22px 0 0; font-weight: 600; }
.next a { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.brian { margin: 44px 0 0; padding: 32px 0 0; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 18px; line-height: 1.65; columns: 2 300px; column-gap: 32px; }
.brian p { margin: 0 0 1em; }
.brian cite { display: block; font-style: normal; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.brian cite::before { content: "\2014\00a0"; }

/* Prose pages */
.prose { font-family: var(--serif); font-size: 18px; line-height: 1.7; }
.prose h1, .prose h2, .prose h3, .prose .meta, .prose figcaption, .prose cite { font-family: var(--sans); }
.prose h2 { font-size: 22px; line-height: 1.3; margin: 1.6em 0 0.6em; }
.prose h3 { font-size: 18px; margin: 1.4em 0 0.5em; }
.prose p { margin: 0 0 1.1em; }
.prose figure { margin: 28px 0; }
.prose figure img { border: 1px solid var(--rule); }
.prose figure.hero img { border: 0; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.about > h2:first-of-type { font-size: 30px; margin-top: 8px; }
.pull { margin: 36px 0; padding: 0 0 0 22px; border-left: 2px solid var(--ink); }
.pull p { font-size: 22px; line-height: 1.45; margin: 0 0 8px; font-style: italic; }
.pull cite { font-style: normal; font-size: 13px; color: var(--muted); }
.pull cite::before { content: "\2014\00a0"; }
.meta { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.meta a { color: var(--muted); }

/* Blog index */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { padding: 22px 0; border-top: 1px solid var(--rule); }
.posts li:first-child { border-top: 0; padding-top: 4px; }
.posts h2 { font-size: 21px; line-height: 1.3; margin: 0 0 6px; }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; }
.posts li > p:last-child { font-family: var(--serif); font-size: 17px; color: #333; margin: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 48px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 15px; }
.pager a { text-decoration: none; }
.pager a span { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager .newer { text-align: right; }
.pager a:hover { text-decoration: underline; }

/* Stills */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.grid li { aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.grid a { display: block; height: 100%; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.grid a:hover img { opacity: .85; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox button { position: fixed; background: none; border: 0; color: #fff; font: 28px/1 var(--sans); padding: 16px; cursor: pointer; opacity: .75; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

.foot { max-width: 1100px; padding: 40px 40px 48px; }
.foot p { margin: 0 0 0 256px; font-size: 12px; color: var(--muted); }

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

@media (max-width: 820px) {
  .wrap { grid-template-columns: 1fr; gap: 28px; padding: 24px 20px 12px; }
  .side { position: static; }
  .tagline { margin: 6px 0 16px; }
  .side nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .side nav li { margin: 0; }
  .social { margin-top: 14px; }
  h1 { font-size: 26px; }
  .prose { font-size: 17px; }
  .foot { padding: 28px 20px 36px; }
  .foot p { margin: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager .newer { text-align: left; }
}
