/* Paper by day, safelight by night. Photos supply the rest of the colour. */
:root {
  --paper: #ece8df;
  --ink: #191714;
  --soft: #6b655a;
  --line: #cbc5b7;
  --field: #f6f3ec;
  --accent: #c9301c;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --gutter: clamp(16px, 2.2vw, 28px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #120f0d; --ink: #e9e2d5; --soft: #a0978a; --line: #39322b;
    --field: #1c1815; --accent: #ff5a3c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #120f0d; --ink: #e9e2d5; --soft: #a0978a; --line: #39322b;
  --field: #1c1815; --accent: #ff5a3c; color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 18px/1.4 var(--serif);
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2 { font-weight: 400; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.02; letter-spacing: -.015em; }
h2 { font: 400 13px/1.3 var(--mono); }
small { font: 400 .28em/1 var(--mono); vertical-align: super; color: var(--soft); }
h2 small { font-size: 1em; vertical-align: baseline; }
code { font: .85em var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.muted { color: var(--soft); }
.num, .counter { font: 400 12px/1 var(--mono); }
.lede { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; margin: .6em 0; max-width: 34em; }
.jump { font: 13px var(--mono); }

/* Corner chrome */
.top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px var(--gutter); position: relative; z-index: 5;
}
.wordmark { font-size: 21px; font-style: italic; color: var(--accent); text-decoration: none; white-space: nowrap; }
.top nav { font-size: 17px; white-space: nowrap; }
.top nav a { text-decoration: none; padding: 8px 0; }
.top nav a:hover { color: var(--accent); }
.top nav a[aria-current] { text-decoration: underline; }
.comma { margin-right: .28em; }
.bottom {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); font: 12px var(--mono); color: var(--soft);
}
.lights { all: unset; cursor: pointer; padding: 8px 0; margin-left: auto; }
.lights:hover { color: var(--accent); }
.lights:focus-visible { outline: 2px solid var(--accent); }
.flash { margin: 0 var(--gutter) 12px; padding: 10px 14px; border: 1px solid var(--accent); color: var(--accent); font: 13px/1.4 var(--mono); }

.taglist { display: flex; flex-wrap: wrap; gap: 4px 14px; font-style: italic; margin: .8em 0; }
.taglist a { text-decoration: none; padding: 3px 0; }
.taglist a:hover, .taglist a[aria-current] { color: var(--accent); text-decoration: underline; }
.taglist sup { font: 10px var(--mono); margin-left: 2px; color: var(--soft); }

/* Home: moving along the list swaps the print */
.rolodex {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter);
  padding: 0 var(--gutter); min-height: calc(100dvh - 60px); align-items: start;
}
.preview {
  order: 2; position: sticky; top: 16px; height: calc(100dvh - 92px); min-height: 320px;
}
.preview figure {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.preview figure.on { opacity: 1; }
/* The frame stays one size; any photo shape fits inside it. The inline average
   colour is dropped here so it can't show as bars around the photo. */
.preview img { width: 100%; height: 100%; max-width: none; object-fit: contain; background: none !important; }
/* Every row is the same fixed box: two lines of title plus a reserved info line.
   The active row changes colour only, because italics would change the text
   width and make the title rewrap. */
.titles { order: 1; list-style: none; margin: 0; padding: 6vh 0 24px; --title-size: clamp(24px, 2.6vw, 40px); }
.titles a { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; padding: 5px 0; text-decoration: none; align-items: end; }
.titles .num { padding-bottom: calc(var(--title-size) * .3); }
.titles .name-box { display: flex; align-items: flex-end; height: calc(var(--title-size) * 2.24); overflow: hidden; }
.titles .name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: var(--title-size); line-height: 1.12; letter-spacing: -.012em;
}
.titles .meta { grid-column: 2; height: 19px; font: 12px/19px var(--mono); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .2s; }
.titles li { color: color-mix(in srgb, var(--ink) 38%, var(--paper)); transition: color .2s; }
.titles li.on { color: var(--ink); }
.titles li.on .num { color: var(--accent); }
.titles li.on .meta { opacity: 1; }
.titles .all-albums { margin-top: 18px; color: var(--ink); font: 14px var(--mono); }
.titles .all-albums a { display: inline-block; padding: 8px 0; margin-left: 42px; text-decoration: underline; }
.titles .all-albums a:hover { color: var(--accent); }

/* Albums page: a compact index, light enough for mobile data */
[hidden] { display: none !important; }
.albums-page { padding: clamp(24px, 5vh, 56px) var(--gutter) 40px; max-width: 1080px; }
.albums-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 28px; margin-bottom: 18px; }
.album-filter { flex: 0 1 320px; min-width: min(100%, 240px); }
.album-filter input {
  width: 100%; padding: 10px 12px; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 0; font: 16px/1.3 var(--serif);
}
.album-filter input:focus { border-color: var(--ink); outline: none; }
.none { margin: 18px 0; }
.year { margin-top: 26px; }
.year h2 { padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.album-rows { list-style: none; margin: 0; padding: 0; }
.album-rows li { border-bottom: 1px solid var(--line); }
.album-rows a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, auto); column-gap: 14px; align-items: center;
  min-height: 56px; padding: 5px 0; text-decoration: none;
}
.album-rows a:hover { background: var(--field); }
.album-rows a:hover .name { color: var(--accent); }
.thumb { display: flex; align-items: center; justify-content: center; width: 56px; height: 44px; }
.thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.album-rows .name { font-size: 21px; line-height: 1.15; overflow-wrap: anywhere; }
.album-rows .meta { display: flex; gap: 16px; justify-content: end; font: 12px/1.4 var(--mono); color: var(--soft); white-space: nowrap; }

.below {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px);
  padding: 56px var(--gutter); border-top: 1px solid var(--line);
}
.overheard ul { list-style: none; margin: .8em 0 0; padding: 0; }
.overheard li + li { margin-top: 14px; }
.overheard a { text-decoration: none; display: block; }
.overheard q { display: block; font-style: italic; overflow-wrap: anywhere; }
.overheard .muted { font: 11px/1.5 var(--mono); }
.overheard a:hover q { color: var(--accent); }
.keycard {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; align-self: start;
  padding: 18px; min-height: 150px; text-decoration: none; background: var(--accent); color: #fff6ea;
  transform: rotate(-1.2deg); transition: transform .25s;
}
.keycard:hover { transform: rotate(.6deg) scale(1.015); }
.keycard strong { font-weight: 400; font-size: 24px; line-height: 1.1; }
.keycard span { font: 12px var(--mono); }

/* Album: a loose, uncropped wall */
.album-head { padding: clamp(28px, 7vh, 80px) var(--gutter) 24px; }
.stamp {
  display: inline-block; margin: 0 0 14px; padding: 5px 9px; border: 1px solid var(--accent); color: var(--accent);
  font: 12px var(--mono); transform: rotate(-1.5deg);
}
.spec { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 16px 0; font: 12px/1.4 var(--mono); }
.spec dt { color: var(--soft); }
.spec dd { margin: 0; }
.wall {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center;
  gap: clamp(52px, 8vw, 120px) clamp(20px, 4vw, 64px);
  padding: clamp(24px, 5vw, 64px) var(--gutter);
}
.tile { display: block; text-decoration: none; justify-self: center; width: 90%; }
.tile:nth-child(5n+1) { width: 86%; justify-self: end; }
.tile:nth-child(5n+2) { width: 100%; }
.tile:nth-child(5n+3) { width: 72%; justify-self: start; }
.tile:nth-child(5n+4) { width: 94%; justify-self: center; }
.tile:nth-child(5n+5) { width: 78%; justify-self: end; }
.tile img { width: 100%; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: translateY(-5px) rotate(-.4deg); }
.label { display: flex; justify-content: center; gap: 10px; align-items: baseline; margin-top: 9px; font-size: 16px; text-align: center; }
.said { font: 11px var(--mono); color: var(--accent); }

.onward { padding: 40px var(--gutter); border-top: 1px solid var(--line); }
.onward ol { list-style: none; margin: 12px 0 0; padding: 0; font-size: clamp(22px, 3vw, 34px); line-height: 1.2; }
.onward li { color: color-mix(in srgb, var(--ink) 45%, var(--paper)); }
.onward a { text-decoration: none; display: inline-block; padding: 3px 0; }
.onward a:hover { color: var(--ink); }

/* Single frame */
.viewer { display: flex; flex-direction: column; height: calc(100dvh - 58px); min-height: 400px; padding: 0 var(--gutter) 10px; }
.stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.stage > img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.zone { position: absolute; top: 0; bottom: 0; width: 50%; -webkit-tap-highlight-color: transparent; }
.zone-prev { left: 0; cursor: w-resize; }
.zone-next { right: 0; cursor: e-resize; }
.viewer-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
  padding: 10px 0 8px; font: 12px/1.3 var(--mono);
}
.viewer-bar a { text-decoration: none; padding: 6px 0; }
.viewer-bar a:hover { color: var(--accent); }
.viewer-bar a:last-child { text-align: right; }
.strip { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; justify-content: safe center; }
.strip::-webkit-scrollbar { display: none; }
.strip a { flex: none; height: 54px; opacity: .3; transition: opacity .2s; }
.strip a:hover { opacity: .7; }
.strip a[aria-current] { opacity: 1; }
.strip img { height: 100%; width: auto; }
.frame-notes { padding: 20px var(--gutter) 0; }

/* Contact sheet: always black, like the real thing */
body.sheet { --paper: #0d0c0b; --ink: #e9e2d5; --soft: #8b8378; --line: #2a2622; --accent: #ff7a2e; color-scheme: dark; }
.sheet-head { padding: 26px var(--gutter) 10px; display: grid; grid-template-columns: 1fr auto; gap: 0 16px; align-items: end; }
.sheet-head h1 { font-size: clamp(30px, 5vw, 56px); }
.sheet-head .taglist { grid-column: 1 / -1; }
.sizes { display: flex; gap: 2px; font: 12px var(--mono); }
.sizes button { all: unset; cursor: pointer; padding: 8px 11px; color: var(--soft); }
.sizes button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.sheet-grid {
  --cell: 150px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--cell), 100%), 1fr));
  gap: 3px; padding: 8px var(--gutter) 32px;
}
.sheet-grid[data-size="s"] { --cell: 84px; }
.sheet-grid[data-size="l"] { --cell: 280px; }
.sheet-grid a { display: flex; flex-direction: column; text-decoration: none; background: #000; padding: 5px 5px 2px; }
.sheet-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: filter .2s; }
.sheet-grid a:hover img { filter: brightness(1.2); }
.rebate { display: flex; justify-content: space-between; gap: 6px; font: 9px/1.8 var(--mono); color: var(--accent); white-space: nowrap; }
.rebate-album { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* The smallest frames only have room for the number. */
.sheet-grid[data-size="s"] .rebate { justify-content: flex-end; }
.sheet-grid[data-size="s"] .rebate-album { display: none; }

/* Secret codes */
.key { padding: clamp(40px, 13vh, 130px) var(--gutter); max-width: 780px; }
.key-form { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.key-form input {
  flex: 1 1 220px; min-width: 0; padding: 13px 14px; font: 500 20px var(--mono); letter-spacing: .06em;
  color: var(--ink); background: var(--field); border: 1px solid var(--ink); border-radius: 0;
}
.key-form input::placeholder { color: var(--line); }
button { font: inherit; }
.key-form button, .reply button[type=submit] {
  padding: 12px 22px; font: 14px var(--mono); cursor: pointer; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 0;
}
.key-form button:hover, .reply button[type=submit]:hover { background: var(--accent); border-color: var(--accent); }
.keyring { margin-top: 44px; }
.keyring ul { list-style: none; margin: 10px 0; padding: 0; font-size: 24px; }

/* Board and comments: old web on purpose */
.talk { padding: 44px var(--gutter); max-width: 820px; scroll-margin-top: 10px; }
.posts { margin-top: 14px; }
.post { border-top: 1px solid var(--line); padding: 11px 0 13px; scroll-margin-top: 14px; }
.post:target { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: -8px 0 0 color-mix(in srgb, var(--accent) 12%, transparent), 8px 0 0 color-mix(in srgb, var(--accent) 12%, transparent); }
.post header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; font: 12px/1.6 var(--mono); color: var(--soft); }
.post .who { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.post .who.owner, .badge { color: var(--accent); }
.tag { padding: 0 5px; color: hsl(var(--hue) 55% 30%); background: hsl(var(--hue) 55% 82%); border-radius: 2px; }
.no { text-decoration: none; }
.no:hover { color: var(--accent); text-decoration: underline; }
.del button { all: unset; cursor: pointer; font: inherit; }
.del button:hover { color: var(--accent); text-decoration: underline; }
.post p { margin: 5px 0 0; overflow-wrap: anywhere; overflow: clip; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 14px 0; font: 13px var(--mono); }
.pager a { padding: 8px 0; }
.pager a:hover { color: var(--accent); }
.pager a[rel="next"] { text-align: right; }
.quoted { color: #4f7a2b; }
.ref { color: var(--accent); font: .85em var(--mono); }

.reply { display: grid; gap: 8px; margin-top: 20px; }
.reply textarea, .reply input:not([name=website]) {
  width: 100%; padding: 11px 12px; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 0;
  font: 16px/1.4 var(--serif); /* 16px stops iOS zooming on focus */
}
.reply textarea { resize: vertical; min-height: 84px; }
.reply textarea:focus, .reply input:focus { border-color: var(--ink); outline: none; }
.reply-row { display: flex; gap: 8px; align-items: end; }
.reply label > span:not(.sr) { display: block; font: 11px/1.8 var(--mono); color: var(--soft); }
.name { flex: 1; min-width: 0; }
.trap { position: absolute; left: -9999px; }
.error { color: var(--accent); font: 13px var(--mono); margin: 0; }
.help { font: 11px/1.6 var(--mono); color: var(--soft); }
.help summary { cursor: pointer; padding: 4px 0; }
.help p { margin: 4px 0; }

.board { padding: clamp(26px, 6vh, 64px) var(--gutter) 0; max-width: 980px; }
.board h2 { margin-top: 34px; }
.forum h1 { font-size: clamp(32px, 5vw, 58px); }
.forum .talk { max-width: 980px; }
.threads { width: 100%; margin-top: 26px; border-collapse: collapse; font: 13px/1.45 var(--mono); }
.threads th { text-align: left; font-weight: 400; color: var(--soft); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--ink); }
.threads td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; overflow-wrap: anywhere; }
.threads tbody tr:hover { background: var(--field); }
.threads .n { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 10px; }
.threads a { text-decoration-color: var(--line); }
.kind { display: inline-block; min-width: 48px; font-size: 10px; color: var(--soft); }
.new-topic { margin: 44px 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.admin-actions button, .board > form:last-child button { padding: 6px 10px; font: 12px var(--mono); cursor: pointer; }

/* Adding and editing albums */
.owner-edit { margin-right: 16px; }
.admin-new { margin: 18px 0 28px; }
.pick {
  display: inline-block; padding: 10px 16px; cursor: pointer; text-decoration: none;
  font: 13px var(--mono); color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
}
.pick:hover { background: var(--accent); border-color: var(--accent); }
.pick-folder { color: var(--ink); background: transparent; }
.album-editor h1 { margin-bottom: 14px; }
.album-editor .reply { margin-top: 16px; gap: 12px; }
.album-editor .reply label > span:not(.sr) { display: block; font: 11px/1.8 var(--mono); color: var(--soft); }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tag-suggest {
  position: absolute; z-index: 20; margin: 0; padding: 0; list-style: none;
  background: var(--field); border: 1px solid var(--ink); font: 14px/1.3 var(--mono);
}
.tag-suggest li { padding: 9px 10px; cursor: pointer; overflow-wrap: anywhere; }
.tag-suggest li:hover { background: var(--line); }
.tag-suggest li[aria-selected="true"] { color: var(--paper); background: var(--ink); }
.field-checks { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.album-editor .check { display: flex; align-items: center; gap: 7px; font: 13px var(--mono); cursor: pointer; }
.album-editor .check input { width: auto; }
.dropzone { padding: 20px; border: 1px dashed var(--soft); transition: border-color .15s, background .15s; }
.dropzone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.drop-hint { margin: 0 0 12px; font-size: 22px; }
.drop-hint strong { font-weight: 400; }
.drop-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.drop-status { margin: 0; font: 12px/1.5 var(--mono); }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 14px; }
.upload-grid:empty { display: none; }
.upload-tile { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--field); outline: 2px solid transparent; outline-offset: 1px; }
.upload-tile img { width: 100%; height: 100%; object-fit: contain; opacity: .35; transition: opacity .2s; }
.upload-tile.done { cursor: pointer; }
.upload-tile.done img { opacity: 1; }
.upload-tile.sending { outline-color: var(--soft); }
.upload-tile.failed { outline-color: var(--accent); }
.upload-tile.cover { outline-color: var(--ink); }
.upload-tile.cover::after { content: "cover"; position: absolute; left: 0; bottom: 0; padding: 1px 5px; font: 10px var(--mono); color: var(--paper); background: var(--ink); }
.upload-name { padding: 4px; font: 10px/1.3 var(--mono); overflow-wrap: anywhere; }
.upload-note { position: absolute; inset: auto 0 0 0; padding: 2px 4px; font: 9px/1.25 var(--mono); color: #fff; background: var(--accent); }
.upload-note:empty { display: none; }
.published { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin: 12px 0; padding: 14px 16px; color: #fff6ea; background: var(--accent); font-size: 21px; }
.published strong { font-weight: 400; }
.published a { font: 13px var(--mono); }
.share { margin: 14px 0 24px; padding: 14px 16px; border: 1px solid var(--line); }
.board .share h2 { margin-top: 0; }
.share-row { display: flex; gap: 8px; margin: 10px 0 4px; }
.share-row input { flex: 1; min-width: 0; padding: 9px 10px; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 0; font: 12px var(--mono); }
.share-row button, .danger button { padding: 8px 12px; font: 12px var(--mono); cursor: pointer; }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 12px; }
.edit-photo { display: grid; gap: 5px; align-content: start; }
.edit-photo img { width: 100%; height: 150px; object-fit: contain; }
.album-editor .edit-photo input:not([type=radio]):not([type=checkbox]) { padding: 7px 8px; font-size: 14px; }
.edit-photo-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; }
.move-bar { margin: 22px 0 14px; }
.move-bar select { display: block; width: 100%; max-width: 480px; margin-top: 5px; padding: 8px; background: var(--field); color: inherit; border: 1px solid var(--ink); font: inherit; }
.move-bar .muted { margin: 6px 0 0; }
.add-photos { margin: 40px 0 !important; }
.danger { margin: 28px 0 44px; }

/* Phones */
@media (max-width: 799px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick-folder { display: none; } /* phones pick photos, not folders */
  .edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edit-photo img { height: 120px; }
  body { font-size: 17px; }
  .top nav { font-size: 16px; }
  .top { padding-top: 11px; padding-bottom: 11px; }

  .rolodex { display: block; padding: 0; min-height: 0; }
  .preview { position: sticky; top: 0; height: 52dvh; min-height: 260px; padding: 0; z-index: 1; background: var(--paper); }
  .preview figure { padding: 4px var(--gutter) 10px; }
  .titles { padding: 14px var(--gutter) 20px; --title-size: 27px; }
  .titles .all-albums a { margin-left: 42px; }
  .album-rows a { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; }
  .album-rows .thumb { grid-row: span 2; }
  .album-rows .name { font-size: 19px; }
  .album-rows .meta { justify-content: start; gap: 10px; white-space: normal; flex-wrap: wrap; font-size: 11px; }

  .below { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; }
  .keycard { order: -1; }

  /* The wall stays loose: one column that wanders side to side. */
  .wall { grid-template-columns: minmax(0, 1fr); gap: 42px; padding-top: 18px; }
  .tile:nth-child(n) { width: 100%; justify-self: center; }
  .tile:nth-child(5n+1) { width: 88%; justify-self: start; }
  .tile:nth-child(5n+3) { width: 74%; justify-self: end; }
  .tile:nth-child(5n+4) { width: 92%; justify-self: end; }
  .tile:nth-child(5n+5) { width: 80%; justify-self: start; }

  .viewer { padding-left: 0; padding-right: 0; height: calc(100dvh - 50px); }
  .viewer-bar { padding-left: var(--gutter); padding-right: var(--gutter); }
  .strip { justify-content: flex-start; padding: 0 var(--gutter) 2px; }
  .strip a { height: 46px; }

  .threads th:nth-child(2), .threads td:nth-child(2) { display: none; }
  .kind { display: block; min-width: 0; }
  .sheet-grid { --cell: 114px; padding-left: 4px; padding-right: 4px; }
  .sheet-grid[data-size="s"] { --cell: 72px; }
  .sheet-grid[data-size="l"] { --cell: 170px; }
}
