@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: block;
  src: url(fonts/space-grotesk/space-grotesk-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: block;
  src: url(fonts/jetbrains-mono/jetbrains-mono-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 {
  --paper: #faf8f3;
  --ink: #16161a;
  --ink-soft: #4a4a52;
  --ink-mute: #8c8c95;
  --rule: #e3ddd0;
  --accent: rgb(255, 45, 45);
  --serif: "Space Grotesk", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --title-tracking: -0.03em;
  --title-weight: 500;
  --gap-entry: 72px;
  --gap-section: 80px;
  --pad-y: 40px;
  --year-size: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(0,0,0,0.012) 0, transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(0,0,0,0.012) 0, transparent 40%);
}

::selection { background: var(--accent); color: var(--paper); }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--pad-y) 80px 160px;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 14px;
}
.masthead h1 {
  font-family: var(--serif);
  font-weight: var(--title-weight);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: var(--title-tracking);
  margin: 0;
}
.masthead h1 em { font-style: italic; color: var(--accent); }
.masthead .right {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  line-height: 1.8;
}
.masthead .right strong { color: var(--ink); font-weight: 500; }

.sub-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 80px;
}

.dek {
  margin-bottom: var(--gap-section);
}
.dek p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(160px + 24px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}

.entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 80px;
  padding: 0 0 var(--gap-entry);
  position: relative;
}
.entry:last-child { padding-bottom: 0; }

.entry .date {
  position: sticky;
  top: 32px;
  align-self: start;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  line-height: 1.7;
}
.entry .date .year {
  display: block;
  font-family: var(--serif);
  font-size: var(--year-size);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  font-weight: var(--title-weight);
}
.entry .date .month { color: var(--ink-soft); }

.entry::after {
  content: "";
  position: absolute;
  left: calc(160px + 24px);
  top: 18px;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}
.entry.featured::after { background: var(--accent); border-color: var(--accent); }

.entry .body {
  padding-left: 56px;
}
.entry h2 {
  font-family: var(--serif);
  font-weight: var(--title-weight);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: var(--title-tracking);
  margin: 0 0 8px;
  text-wrap: balance;
}
.entry .kicker {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}
.entry .image {
  margin: 32px 0 28px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

img {
  border-radius: 0.4rem;
}

.entry .desc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.entry .desc p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}
.entry .desc .specs {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  line-height: 1.9;
}
.entry .desc .specs dt {
  color: var(--ink-mute);
}
.entry .desc .specs dd {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 500;
}
.entry .desc .specs dl {
  margin: 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: 16px;
  row-gap: 2px;
}
.entry .desc .specs dl dt,
.entry .desc .specs dl dd { margin: 0; padding: 6px 0; border-top: 1px solid var(--rule); }
.entry .desc .specs dl dt:first-of-type,
.entry .desc .specs dl dd:nth-of-type(1) { border-top: 0; padding-top: 0; }

.entry.featured h2 { font-size: clamp(56px, 7vw, 108px); }
.entry.featured .body { padding-left: 56px; }

.endrule {
  margin-top: 40px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.lb {
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--ink) 92%, transparent);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 64px 80px;
  cursor: zoom-out;
}
.lb.open { display: flex; }
.lb-stage {
  position: relative;
  width: fit-content;
  max-width: 100%;
  cursor: default;
}
.lb-figure {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.lb-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 440px);
}
.lb-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 4px 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  gap: 24px;
}
.lb-meta .lb-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--paper);
  font-weight: var(--title-weight);
  margin-bottom: 4px;
}
.lb-meta .lb-title em { font-style: italic; color: var(--accent); }
.lb-meta .lb-kicker {
  color: var(--accent);
  margin-bottom: 6px;
}
.lb-meta .lb-cap { color: rgba(240,235,222,0.65); max-width: 50ch; }
.lb-meta .lb-right { text-align: right; line-height: 1.8; color: rgba(240,235,222,0.65); }
.lb-meta .lb-right strong { color: var(--paper); font-weight: 500; }

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 1px solid rgba(240,235,222,0.4);
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, border-color .12s;
}
.lb-btn:hover { background: rgba(240,235,222,0.1); border-color: var(--paper); }
.lb-prev { left: -56px; }
.lb-next { right: -56px; }
.lb-close {
  position: absolute; top: -52px; right: 0;
  width: auto; height: auto;
  transform: none;
  padding: 6px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.lb-counter {
  position: absolute;
  top: -42px; left: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(240,235,222,0.65);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.lb-counter strong { color: var(--paper); font-weight: 500; }

@media (max-width: 880px) {
  .wrap { padding: 32px 24px 100px; }
  .masthead { grid-template-columns: 1fr; }
  .masthead .right { text-align: left; }
  .dek { margin-bottom: 64px; }
  .timeline::before { left: 18px; }
  .entry { grid-template-columns: 1fr; gap: 16px; padding-bottom: 72px; }
  .entry .date { position: static; padding-left: 40px; }
  .entry .date .year { font-size: 40px; display: inline; margin-right: 12px; }
  .entry::after { left: 18px; top: 12px; }
  .entry .body { padding-left: 40px; }
  .entry .desc { grid-template-columns: 1fr; gap: 24px; }
  .lb { padding: 60px 16px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-meta { flex-direction: column; align-items: flex-start; }
  .lb-meta .lb-title { font-size: 22px; }
}
