@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/IBM_Plex_Mono_400_normal_latinext.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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/IBM_Plex_Mono_400_normal_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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/IBM_Plex_Mono_500_normal_latinext.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; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/IBM_Plex_Mono_500_normal_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: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/Spectral_400_italic_latinext.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; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/Spectral_400_italic_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: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Spectral_400_normal_latinext.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; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Spectral_400_normal_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: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Spectral_600_normal_latinext.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; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Spectral_600_normal_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; }

:root {
  --bg:          #12100c;
  --bg-deep:     #0b0a07;
  --surface:     #1a1712;
  --rule:        #2c2620;
  --rule-soft:   #221d18;
  --text:        #e6dccb;
  --text-mid:    #b8ab97;
  --text-dim:    #857a68;
  --amber:       #c8873a;
  --amber-soft:  #6b4a20;
  --ice:         #7d9aa5;
  --sage:        #8d9c6a;
  --sage-soft:   #454d2c;
  --ice-soft:    #3a4a51;
  --paper:       #ded4c0;
  --paper-ink:   #191712;
  --paper-edge:  #b8ad97;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Spectral', Georgia, serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.wrap {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

/* Masthead */

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.masthead {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.masthead h1 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 33px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.standfirst {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-top: 6px;
}

/* Contents */

.contents {
  padding: 18px 0 18px;
  border-bottom: 1px solid var(--rule);
}

.contents ol {
  list-style: none;
  margin-top: 20px;
  columns: 2;
  column-gap: 40px;
}

.contents li {
  break-inside: avoid;
  margin-bottom: 9px;
  font-size: 15px;
}

.contents a {
  color: var(--text-mid);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contents a:hover,
.contents a:focus-visible { color: var(--text); border-bottom-color: var(--amber); }

.contents .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-right: 10px;
}

@media (max-width: 620px) {
  .contents ol { columns: 1; }
}

/* Sections */

.section { padding-top: 20px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.section-head .eyebrow { flex-shrink: 0; }

.permalink {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 120ms linear;
}

.section-head:hover .permalink,
.permalink:focus-visible,
.section:target .permalink { opacity: 1; }

.permalink:hover, .permalink:focus-visible { color: var(--amber); }

.section:target h2 { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  .permalink { transition: none; }
}

.section-head .rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  align-self: center;
}

@media (max-width: 620px) {
  .permalink {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 120ms linear;
}

.section-head:hover .permalink,
.permalink:focus-visible,
.section:target .permalink { opacity: 1; }

.permalink:hover, .permalink:focus-visible { color: var(--amber); }

.section:target h2 { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  .permalink { transition: none; }
}

.section-head .rule { display: none; }
  .section-head h2 { flex-shrink: 1; }
}

/* Dialogue */

.line {
  display: grid;
  grid-template-columns: 82px 1fr;
  padding: 11px 0 11px 0;
}

.line .who {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: center;
  color: var(--text-dim);
}

.line .said {
  border-left: 2px solid var(--rule-soft);
  padding-left: 18px;
}

.line.nelly .who { color: var(--amber); }
.line.nelly .said { border-left-color: var(--amber-soft); }

.line.vlad .who { color: var(--ice); }
.line.vlad .said { border-left-color: var(--ice-soft); }

.line.theo .who { color: var(--sage); }
.line.theo .said { border-left-color: var(--sage-soft); }

.said em {
  font-style: italic;
  color: var(--text-mid);
}

@media (max-width: 620px) {
  .line { grid-template-columns: 1fr; gap: 4px; }
  .line .who { align-self: start; }
  .line .said { padding-left: 14px; }
}

/* Staging */

.stage {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.75;
  border-left: 2px solid var(--rule);
  padding: 4px 0 4px 20px;
  margin: 18px 0 26px;
}

.section .stage:first-of-type { margin-top: 0; }

/* Paper */

.paper {
  background: var(--paper);
  color: var(--paper-ink);
  margin: 22px 0 22px 110px;
  padding: 26px 28px;
  border-top: 3px solid var(--paper-edge);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.paper .paper-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6d6455;
  display: block;
  margin-bottom: 14px;
}

.paper p {
  font-size: 16px;
  line-height: 1.62;
  margin-bottom: 2px;
}

.paper p.gap { margin-bottom: 14px; }

.paper .lang {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #7a7061;
}

@media (max-width: 620px) {
  .paper { margin-left: 14px; margin-right: 0; padding: 20px 18px; }
}

/* Pagination */

.pager {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pager a {
  color: var(--text-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
}

.pager a:hover,
.pager a:focus-visible { color: var(--amber); border-bottom-color: var(--amber); }

.pager .part {
  color: var(--text-dim);
}

@media (max-width: 620px) {
  .pager { flex-direction: column; gap: 12px; }
}

/* Footer */

.colophon {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-dim);
}

.colophon p + p { margin-top: 14px; }

.colophon a { color: var(--text-mid); }

.top {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-block;
}

.top:hover, .top:focus-visible { color: var(--amber); }

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