@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --ink: #161616;
  --muted: #5C5C58;
  --rule: #8A8A85;
  --paper: #FFFFFF;
  --link: #0000EE;
  --visited: #551A8B;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: var(--link); }
a:hover { color: var(--visited); }
img, video, iframe { display: block; max-width: 100%; }
button { font: inherit; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 20px 48px; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.orb { width: 56px; height: 56px; border-radius: 50%; flex: none; border: 2px solid var(--ink); background: transparent; transition: background-color .35s ease, border-color .35s ease; }
.mark { display: flex; align-items: baseline; font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.blank { font: inherit; letter-spacing: inherit; color: var(--ink); background: transparent; border: 0; padding: 0; margin: 0; width: 1.2em; text-align: right; caret-color: var(--ink); border-radius: 0; }
.blank::placeholder { color: var(--ink); opacity: 1; }
.blank:focus { outline: 2px dotted var(--ink); outline-offset: 4px; }
.measure { position: absolute; visibility: hidden; white-space: pre; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; font-family: var(--sans); }
.sitenav { display: flex; gap: 16px; font-family: var(--mono); font-size: 13px; }

.crumb { margin: 10px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:has(.us), .pager a:has(.us) { text-decoration: none; }
.crumb a:has(.us):hover, .pager a:has(.us):hover { color: var(--ink); }
.us { font-weight: 700; }

/* homepage columns */
.cols { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 24px; }
.colhead { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 700; }
.colhead:hover { color: var(--ink); }
.plain { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.viewall { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.empty { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 4px 0 0; }

/* section view */
.sechead { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.sechead p { margin: 0; max-width: 560px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 13px; }
.rows { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px dotted var(--rule); }
.rows li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 0; border-bottom: 1px dotted var(--rule); }
.rows .d { font-family: var(--mono); font-size: 13px; color: var(--muted); min-width: 64px; }
.rows .t { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* about + footer */
.about { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; }
.about h2 { margin: 0; font-size: 15px; }
.about p { margin: 0; }
.foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* post page */
.post { margin-top: 32px; }
.post h1 { margin: 0; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
.spec { margin: 8px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.cap { margin: 16px 0 0; max-width: 560px; }
.statement { margin: 24px 0 0; max-width: 760px; font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.frames { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 20px; }
.frames.single { grid-template-columns: minmax(0, 560px); }
.frames li { display: flex; flex-direction: column; gap: 8px; }
.frame { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: #EDEDEA; }
.fcap { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.fcap b { color: var(--ink); font-weight: 500; margin-right: 8px; }
.player { margin-top: 32px; width: 100%; background: #000; border: 0; }
.player.r169 { aspect-ratio: 16 / 9; }
.player.r45 { aspect-ratio: 4 / 5; max-width: 560px; }
.shelf { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 28px 20px; }
.shelf li { display: flex; flex-direction: column; gap: 6px; }
.shelf img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: #EDEDEA; }
.shelf .st { font-weight: 700; }
.shelf .sn { font-size: 14px; }
.notes { margin-top: 40px; max-width: 640px; border-top: 1px dotted var(--rule); padding-top: 12px; }
.notes summary { cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--link); min-height: 44px; display: flex; align-items: center; list-style: none; }
.notes summary::-webkit-details-marker { display: none; }
.notes[open] summary .plus { display: none; }
.notes p { margin: 8px 0 0; }
.pager { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-family: var(--mono); font-size: 13px; }
.pager .off { color: var(--rule); }

@media (prefers-reduced-motion: reduce) { .orb { transition: none; } }
@media (max-width: 480px) {
  .mark, .measure { font-size: 36px; }
  .orb { width: 44px; height: 44px; }
  .post h1 { font-size: 26px; }
  .statement { font-size: 26px; }
}
