    :root {
      --paper: #f5f2eb;
      --ink: #26231f;
      --muted: #625c53;
      --chrome: #6b655c;
      --card: #faf8f3;
      --hair: rgba(38, 35, 31, .12);
      --underline: rgba(38, 35, 31, .35);
      --ring: 0 0 0 1px rgba(38, 35, 31, .10), 0 14px 36px -20px rgba(38, 35, 31, .28);
      --ph-a: #ebe6dc;
      --ph-b: #e3ddd1;

      --serif: "Newsreader", Georgia, serif;
      --sans: "Hanken Grotesk", system-ui, sans-serif;
      --ease: cubic-bezier(.4, 0, .2, 1);
    }

    @media (prefers-color-scheme: dark) {
      :root {
        --paper: #1b1a18;
        --ink: #e9e5dc;
        --muted: #a39d92;
        --chrome: #a39d92;
        --card: #22211f;
        --hair: rgba(233, 229, 220, .14);
        --underline: rgba(233, 229, 220, .4);
        --ring: 0 0 0 1px rgba(233, 229, 220, .12);
        --ph-a: #2c2a27;
        --ph-b: #262422;
      }
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; }

    html { background: var(--paper); }

    /* Paper grain: a faint noise layer behind the content. */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      opacity: .05;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    body {
      min-height: 100vh;
      font-family: var(--sans);
      font-size: 13px;
      line-height: 1.45;
      font-weight: 400;
      color: var(--ink);
      -webkit-font-smoothing: antialiased;
    }

    a { color: inherit; }

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

    /* Header */
    .topbar {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 2;
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 32px 40px;
    }

    .logo,
    .nav-link {
      font-family: var(--sans);
      font-size: 13px;
      line-height: 1.45;
      color: var(--chrome);
      text-decoration: none;
      transition: color .15s var(--ease);
    }

    .logo:hover,
    .nav-link:hover { color: var(--ink); }

    /* Page column */
    .page {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: clamp(112px, 18vh, 160px) 24px 96px;
    }

    .page-title {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      font-family: var(--serif);
      font-size: 28px;
      line-height: 1.2;
      font-weight: 400;
      text-align: center;
    }

    /* Two tiers: weekday as quiet chrome, date as the serif line. */
    .date-day {
      font-family: var(--sans);
      font-size: 12.5px;
      line-height: 1.45;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
    }

    .block-slot {
      width: min(880px, 100vw - 48px);
      margin-top: 48px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .block-slot:empty { margin-top: 0; }

    /* Arrivals resolve from blur, the same language as the sidebar. */
    .fade {
      opacity: 0;
      filter: blur(var(--blur, 8px));
      transition: opacity var(--dur, .4s) var(--ease), filter var(--dur, .4s) var(--ease);
    }

    .fade.is-in { opacity: 1; filter: none; }
    .page-title.fade { --blur: 6px; }
    .block-slot.fade { --blur: 12px; }
    .credit.fade { --blur: 6px; }
    .sidebar.fade { --blur: 6px; }

    img { background: var(--ph-a); }

    /* Block images resolve from blur when they arrive. */
    .block-slot img {
      opacity: 0;
      filter: blur(12px);
      transition: opacity var(--img-dur, .7s) var(--ease), filter var(--img-dur, .7s) var(--ease);
    }

    .block-slot img.is-loaded { opacity: 1; filter: none; }

    /* Credit */
    .credit {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      column-gap: 8px;
      row-gap: 4px;
      max-width: 640px;
      margin-top: 20px;
      font-family: var(--sans);
      font-size: 13px;
      line-height: 1.45;
      color: var(--muted);
    }

    .credit[hidden] { display: none; }
    .credit .author { color: var(--ink); }

    .credit a {
      color: var(--ink);
      text-decoration: none;
      border-bottom: 1px solid var(--underline);
      padding-bottom: 1px;
      transition: border-color .15s var(--ease);
    }

    .credit a:hover { border-bottom-color: var(--ink); }

    .note {
      margin-top: 20px;
      font-size: 13px;
      color: var(--muted);
      text-align: center;
    }

    .note[hidden] { display: none; }

    .note a {
      color: var(--ink);
      text-decoration: none;
      border-bottom: 1px solid var(--underline);
      padding-bottom: 1px;
    }

    .note a:hover { border-bottom-color: var(--ink); }

    /* Image */
    .image-expand {
      display: block;
      padding: 0;
      border: none;
      background: none;
      cursor: zoom-in;
      max-width: 100%;
    }

    .image-expand img {
      display: block;
      max-width: 100%;
      max-height: 62vh;
      width: auto;
      height: auto;
      object-fit: contain;
      box-shadow: var(--ring);
      pointer-events: none;
    }

    /* Text */
    .block-quote {
      max-width: 640px;
      font-family: var(--serif);
      font-size: 32px;
      line-height: 1.38;
      font-weight: 300;
      text-align: center;
      text-wrap: balance;
      white-space: pre-line;
    }

    .block-text {
      width: 100%;
      max-width: 600px;
      font-family: var(--serif);
      font-size: 20px;
      line-height: 1.6;
      font-weight: 400;
      text-align: left;
      text-wrap: pretty;
    }

    .block-text p { white-space: pre-line; }
    .block-text p + p { margin-top: 1em; }

    .block-title {
      font-family: var(--serif);
      font-size: 26px;
      line-height: 1.3;
      text-align: center;
    }

    /* Link */
    .block-link {
      display: block;
      width: 560px;
      max-width: 100%;
      background: var(--card);
      box-shadow: var(--ring);
      text-decoration: none;
      color: inherit;
    }

    .block-link img {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
    }

    .link-body {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 22px 26px 24px;
    }

    .link-title {
      font-family: var(--serif);
      font-size: 26px;
      line-height: 1.3;
    }

    .block-link.has-preview .link-title { font-size: 22px; }

    .link-domain {
      font-family: var(--sans);
      font-size: 13px;
      line-height: 1.45;
      color: var(--muted);
    }

    /* Video / PDF */
    .block-thumb {
      position: relative;
      display: block;
      max-width: 100%;
      text-decoration: none;
    }

    .block-thumb img {
      display: block;
      max-width: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      box-shadow: var(--ring);
    }

    .block-thumb.is-video img { max-width: min(880px, 100%); max-height: 496px; }
    .block-thumb.is-pdf img { max-width: 352px; max-height: 496px; }

    .play-mark {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 56px;
      height: 56px;
      margin: -28px 0 0 -28px;
      border-radius: 50%;
      background: var(--paper);
      box-shadow: 0 0 0 1px var(--hair);
      display: flex;
      align-items: center;
      justify-content: center;
      /* Appears with its thumbnail, not before it. */
      opacity: 0;
      transition: opacity var(--img-dur, .7s) var(--ease);
    }

    .block-thumb img.is-loaded + .play-mark { opacity: 1; }

    .play-mark::before {
      content: "";
      width: 13px;
      height: 16px;
      margin-left: 4px;
      background: var(--ink);
      clip-path: polygon(0 0, 100% 50%, 0 100%);
    }

    .block-fallback-img {
      display: block;
      max-width: 100%;
      max-height: 62vh;
      object-fit: contain;
      box-shadow: var(--ring);
    }

    /* Archive */
    .archive {
      width: 600px;
      max-width: 100%;
      margin-top: 40px;
    }

    .archive[hidden] { display: none; }

    .archive-month {
      padding: 28px 0 10px;
      font-family: var(--sans);
      font-size: 12.5px;
      line-height: 1.45;
      color: var(--muted);
    }

    .archive-month:first-child { padding-top: 0; }

    .archive-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      padding: 18px 0;
      border-top: 1px solid var(--hair);
      text-decoration: none;
      color: inherit;
      transition: background-color .15s var(--ease);
    }

    .archive-row:hover { background: var(--card); }

    /* Older days sit further behind frosted glass; hover or focus brings a row into focus. */
    .archive-text {
      filter: blur(min(calc(1px + var(--i, 0) * .2px), 2.5px));
      opacity: max(.55, calc(1 - var(--i, 0) * .04));
      transition: filter .2s var(--ease), opacity .2s var(--ease);
    }

    .archive-row:hover .archive-text,
    .archive-row:focus-visible .archive-text {
      filter: none;
      opacity: 1;
    }

    @media (hover: none) {
      .archive-text { filter: none; opacity: 1; }
    }

    .archive-date {
      font-family: var(--serif);
      font-size: 19px;
      line-height: 1.3;
      color: var(--ink);
    }

    .archive-meta {
      margin-top: 4px;
      font-family: var(--sans);
      font-size: 13px;
      line-height: 1.45;
      color: var(--muted);
    }

    .archive-thumb {
      flex: none;
      width: 64px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .archive-thumb img {
      display: block;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      box-shadow: 0 0 0 1px var(--hair);
    }

    .archive-thumb.is-text {
      padding: 8px;
      background: var(--card);
      box-shadow: 0 0 0 1px var(--hair);
      overflow: hidden;
      align-items: flex-start;
      justify-content: flex-start;
      font-family: var(--serif);
      font-size: 8px;
      line-height: 1.35;
      color: var(--ink);
    }

    .archive-empty {
      font-size: 13px;
      color: var(--muted);
      text-align: center;
    }

    /* Sidebar: wide screens only, a quiet index of days (today first) */
    .sidebar {
      display: none;
      position: fixed;
      z-index: 1;
      left: 40px;
      /* 28px of padding gives the edge fade room, so the first row still sits at the date line. */
      top: calc(clamp(112px, 18vh, 160px) - 28px);
      width: 180px;
      padding: 28px 0;
      max-height: calc(100vh - clamp(112px, 18vh, 160px) + 28px - 40px);
      overflow-y: auto;
      scrollbar-width: none;
      -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 28px), transparent);
      mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 28px), transparent);
      font-family: var(--sans);
      font-size: 13px;
      line-height: 1.45;
    }

    .sidebar::-webkit-scrollbar { display: none; }

    .side-month {
      padding: 14px 0 4px;
      font-size: 12.5px;
      color: var(--muted);
    }

    .side-month:first-child { padding-top: 0; }

    /* Older month labels recede with the rows; the current month stays with today's row. */
    .side-month { transition: opacity .5s var(--ease); }

    .sidebar:not(:hover):not(:focus-within) .side-month:not(:first-child) {
      opacity: .55;
      transition-duration: 1s;
    }

    .side-row {
      display: flex;
      align-items: baseline;
      gap: 10px;
      padding: 3px 0;
      color: var(--ink);
      text-decoration: none;
      filter: blur(min(calc(var(--i, 0) * .15px), 3px));
      /* Timings follow errant.quest's nav: clears in 0.5s, recedes over 1s. */
      transition: filter .5s var(--ease), opacity .5s var(--ease);
    }

    .sidebar:not(:hover):not(:focus-within) .side-row {
      transition-duration: 1s;
    }

    /* At rest the whole index recedes; today and the day on screen stay put. */
    .sidebar:not(:hover):not(:focus-within) .side-row:not(.is-today):not([aria-current="page"]) {
      opacity: .55;
    }

    .side-preview {
      position: fixed;
      z-index: 3;
      width: 176px;
      padding: 10px;
      background: var(--card);
      box-shadow: var(--ring);
      pointer-events: none;
      font-family: var(--sans);
    }

    .side-preview:not([hidden]) { animation: preview-in .2s var(--ease) both; }
    .side-preview[hidden] { display: none; }

    @keyframes preview-in { from { opacity: 0; } to { opacity: 1; } }

    .side-preview img {
      display: block;
      max-width: 100%;
      max-height: 160px;
      margin: 0 auto;
      object-fit: contain;
    }

    .side-preview__text {
      font-family: var(--serif);
      font-size: 13px;
      line-height: 1.4;
      color: var(--ink);
    }

    .side-preview__meta {
      margin-top: 8px;
      font-size: 12.5px;
      color: var(--muted);
    }

    .side-rule {
      flex: 1;
      min-width: 12px;
      border-bottom: 1px solid var(--hair);
      transform: translateY(-3px);
    }

    .side-type { color: var(--muted); }

    /* Moving into the index clears the fog on every row, so it can be scanned. */
    .sidebar:hover .side-row,
    .sidebar:focus-within .side-row {
      filter: none;
    }

    .sidebar .side-row:hover,
    .sidebar .side-row:focus-visible,
    .sidebar .side-row[aria-current="page"] {
      filter: none;
      opacity: 1;
    }

    @media (min-width: 1360px) {
      .sidebar:not([hidden]) { display: block; }
      body:not([data-route="archive"]) .nav-link { display: none; }

      /* The wordmark joins the sidebar: it stays put while the page scrolls. */
      .topbar { position: fixed; pointer-events: none; }
      .topbar a { pointer-events: auto; }
    }

    @media (hover: none) {
      .sidebar .side-row { filter: none !important; }
      .sidebar .side-row,
      .sidebar .side-month { opacity: 1 !important; }
      .side-preview { display: none !important; }
    }

    /* Lightbox */
    .image-lightbox {
      border: none;
      padding: 0;
      margin: auto;
      max-width: 95vw;
      max-height: 95dvh;
      background: transparent;
      color: var(--ink);
      overflow: visible;
    }

    .image-lightbox::backdrop {
      background: color-mix(in srgb, var(--paper) 92%, transparent);
    }

    .image-lightbox__close {
      position: fixed;
      top: 16px;
      right: 16px;
      z-index: 1;
      width: 36px;
      height: 36px;
      padding: 0;
      font-family: var(--sans);
      font-size: 20px;
      line-height: 1;
      border: none;
      border-radius: 50%;
      background: var(--card);
      box-shadow: 0 0 0 1px var(--hair);
      color: var(--ink);
      cursor: pointer;
    }

    .image-lightbox__img {
      display: block;
      max-width: 95vw;
      max-height: 95dvh;
      width: auto;
      height: auto;
      object-fit: contain;
      cursor: zoom-out;
      opacity: 0;
      transition: opacity .15s var(--ease);
    }

    .image-lightbox__img.is-ready { opacity: 1; }

    @media (max-width: 640px) {
      .topbar { padding: 22px 24px; }
      .page { padding-top: 112px; padding-bottom: 64px; }
      .page-title { font-size: 24px; }
      .block-slot { margin-top: 36px; }
      .block-quote { font-size: 25px; max-width: 320px; }
      .block-text { font-size: 18px; max-width: 334px; }
      .block-title { font-size: 22px; }
      .block-link { width: 100%; }
      .link-body { padding: 18px 20px 20px; }
      .link-title { font-size: 22px; }
      .block-link.has-preview .link-title { font-size: 20px; }
      .credit { max-width: 342px; }
      .block-thumb.is-video img { max-width: 100%; }
      .archive { width: 342px; margin-top: 28px; }
      .archive-row { padding: 16px 0; }
      .archive-date { font-size: 18px; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { transition: none !important; animation: none !important; }
      .fade { opacity: 1; filter: none; }
      .block-slot img { opacity: 1; filter: none; }
    }
