@font-face { font-family: Montreal; src: url("assets/PPNeueMontreal-Regular.otf"); font-display: swap; }
@font-face { font-family: Montreal; src: url("assets/PPNeueMontreal-Italic.otf"); font-style: italic; font-display: swap; }
@font-face { font-family: Montreal; src: url("assets/PPNeueMontreal-Semibold.otf"); font-weight: 600; font-display: swap; }
@font-face { font-family: Montreal; src: url("assets/PPNeueMontreal-SemiboldItalic.otf"); font-style: italic; font-weight: 600; font-display: swap; }
@font-face { font-family: Berkeley; src: url("assets/BerkeleyMono-Regular.otf"); font-display: swap; }
:root {
  --paper: #f6f4ef;
  --marker: #e84e18;
  --ink: #222;
  --body: #333;
  --pencil: #555;
  --rule: #dadada;
  --margin: clamp(24px, 3.75vw, 48px);
  --mono: Berkeley, ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { max-width: 1440px; padding: 0 var(--margin); margin: 0 auto; background: var(--paper); color: var(--ink); font: 18px/28px Montreal, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover, summary:hover, button:hover { color: #000; text-decoration: underline; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; left: var(--margin); top: 0; transform: translateY(-150%); padding: 8px; background: var(--paper); }
.skip:focus { transform: none; }
.masthead, footer, .archive h2, .meta, .read, .entry time, .arrow, .rail, .opening time, figcaption, dialog { font: 12px/18px var(--mono); color: var(--pencil); }
.masthead, footer, figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.masthead { padding: 32px 0; border-bottom: 1px solid var(--rule); }
.masthead a, footer a, .entry, h1 a { text-decoration: none; }
.masthead a:hover, footer a:hover, .masthead [aria-current], h1 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.wordmark { font: 600 32px/40px Montreal, Arial, sans-serif; letter-spacing: -.05em; color: var(--ink); white-space: nowrap; }
.masthead nav { display: flex; align-items: center; gap: 28px; }
.masthead nav a { padding-block: 6px; }
.feature { display: grid; grid-template-columns: 1.03fr 1fr; gap: clamp(40px, 5vw, 64px); align-items: center; padding: 64px 0 68px; }
.feature-copy > * + *, .subtitle { margin-top: 24px; }
.feature h1 { font-size: clamp(56px, 6.1vw, 78px); line-height: 1; letter-spacing: -.05em; }
.deck { max-width: 520px; font-size: 21px; line-height: 30px; }
.read { display: inline-block; color: var(--ink); }
.cover { width: 100%; max-width: 550px; height: auto; justify-self: end; }
.archive { border-top: 1px solid var(--ink); }
.archive h2 { padding: 16px 0 12px; }
.entry { display: grid; grid-template-columns: minmax(130px, 19.25%) 1fr auto; gap: 24px; align-items: center; border-top: 1px solid var(--rule); padding: 23px 0; font-size: 34px; line-height: 42px; letter-spacing: -.035em; }
.entry:hover { text-decoration: none; }
.entry:hover span:first-of-type { text-decoration: underline; text-decoration-thickness: 1px; }
.entry time { letter-spacing: normal; }
footer { border-top: 1px solid var(--rule); padding: 20px 0 28px; }
.opening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: start; padding: 68px 0 40px; }
.opening h1 { font-size: clamp(52px, 5vw, 64px); line-height: 1.065; letter-spacing: -.048em; }
.subtitle { font-size: 24px; line-height: 34px; }
.opening time { text-align: right; }
.rail { display: flex; flex-direction: column; align-items: start; gap: 20px; }
summary, button { cursor: pointer; }
details ul { list-style: none; margin: 12px 0 0; padding: 0; }
details li + li { margin-top: 8px; }
.prose { color: var(--body); }
.prose > :not(figure) { max-width: 680px; margin-inline: auto; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 28px; letter-spacing: -.025em; line-height: 34px; margin-top: 48px; scroll-margin-top: 24px; }
.prose > :first-child { margin-top: 0; }
.prose blockquote { font-size: 22px; line-height: 32px; padding-left: 24px; border-left: 1px solid var(--pencil); }
.prose blockquote p + p { margin-top: 12px; }
.prose figure { margin: 44px 0; }
.figure-link { display: block; width: fit-content; max-width: 100%; margin: 0 auto; cursor: zoom-in; }
.figure-link img { display: block; width: auto; height: auto; max-width: 100%; max-height: 360px; }
figcaption { border-top: 1px solid var(--rule); padding-top: 10px; }
dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 24px; background: var(--paper); }
dialog[open] { display: flex; flex-direction: column; gap: 16px; align-items: center; }
dialog form { align-self: end; }
dialog button { font: inherit; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); padding: 10px 16px; }
dialog img { display: block; flex: 1; width: 100%; min-height: 0; object-fit: contain; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 940px) {
  .opening { grid-template-columns: minmax(0, 680px); justify-content: center; gap: 18px; }
  .opening time { text-align: left; }
}
@media (max-width: 700px) {
  :root { --margin: 20px; }
  .masthead { gap: 12px; flex-wrap: wrap; padding: 22px 0; }
  .wordmark { font-size: 23px; line-height: 28px; }
  .masthead nav { gap: 12px; }
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 28px; }
  .feature h1, .opening h1 { font-size: clamp(40px, 12.3vw, 56px); line-height: 1.025; }
  .deck { font-size: 18px; line-height: 27px; }
  .cover { width: 93%; max-width: 400px; justify-self: center; }
  .entry { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 0; font-size: 26px; line-height: 30px; }
  .entry time { grid-column: 1 / -1; }
  .opening { padding: 32px 0; }
  .subtitle { font-size: 20px; line-height: 28px; }
  .prose figure { margin: 32px 0; }
  .figure-link img { max-height: 280px; }
  .prose h2 { font-size: 24px; line-height: 30px; }
}

.essay-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 200px clamp(20px, 4vw, 72px);
  border: 0;
  font: 12px/18px var(--mono);
  color: var(--pencil);
}
.essay-footer nav h2 { font: inherit; letter-spacing: normal; margin: 0 0 6px; }
.essay-footer ul { list-style: none; padding: 0; margin: 0; }
.essay-footer a { display: inline-block; padding-block: 3px; }
.essay-footer li a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.footer-tools { display: flex; flex-wrap: wrap; gap: 4px 20px; }
