/* Late-90s archive page built from acid materials. Libre Caslon Text, self-hosted (fonts/, SIL OFL). */
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/LibreCaslonText-normal.woff2) format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/LibreCaslonText-italic.woff2) format('woff2'); }
body { margin: 0; background: #000; color: #eadfc8; font-family: 'Libre Caslon Text', Times, 'Times New Roman', serif; font-size: 15px; }
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; }
body::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: -1; }

/* ticker: 6 copies of the phrases, moved by half, so it loops with no gap */
.marquee { overflow: hidden; border-top: 1px solid #b6ff00; }
.marquee > span { display: inline-block; white-space: nowrap; font-style: italic; color: #b6ff00; padding: 4px 0; animation: tick 150s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee > span { animation: none; } }

.page { box-sizing: border-box; max-width: 760px; margin: 24px auto 32px; padding: 12px 18px 18px; background: rgba(0,0,0,.15); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); } /* glass pane: tinted, lightly blurred, no border (owner's choice F, 2026-11-23) */
h1 { text-align: center; color: #b6ff00; font-weight: normal; font-size: 44px; margin: 8px 0 4px; letter-spacing: 1px; }
.sub { text-align: center; margin: 0; }
hr { border: 0; border-top: 1px solid #b6ff00; margin: 16px 0; }
a { color: #8ff7e6; } a:hover { color: #000; background: #b6ff00; }

/* first row: painting box 3/4, Elsewhere links 1/4 */
.top { display: grid; grid-template-columns: 3fr 1fr; gap: 24px; align-items: stretch; margin-bottom: 16px; }
.top .box { margin: 0; align-self: start; } /* box hugs the painting and caption, so the bottom padding matches the top */
.top .cat { border-left: 1px solid #3a3550; padding-left: 16px; font-size: 15px; }
.cat-h { color: #ff2ad4; font-size: 15px; margin: 16px 0 4px; text-transform: uppercase; letter-spacing: 1px; font-weight: normal; }
.cat-h:first-child { margin-top: 0; }
.cat ul { list-style: none; margin: 0; padding: 0; } .cat li { margin: 1px 0; }

/* "Now" row between the first row and Writings; the owner edits the text and date by hand */
.now { border-top: 1px solid #b6ff00; border-bottom: 1px solid #b6ff00; padding: 12px 0; margin: 0 0 16px; }
.now p { margin: 0 0 4px; }
.now .when { font-size: 14px; color: #a39a88; }

/* Writings / Projects: stacked row-cards (date | title + one-line summary), then a "see all" link */
.cards { display: grid; gap: 8px; margin: 14px 0 8px; }
.card { display: grid; grid-template-columns: 90px 1fr; column-gap: 16px; border: 1px solid #3a3550; background: #000; padding: 10px 16px; text-decoration: none; color: #eadfc8; }
.card .d { grid-row: 1 / 3; align-self: center; font-size: 14px; color: #a39a88; }
.card .t { color: #8ff7e6; font-size: 17px; }
.card .s { font-size: 14px; color: #cfc6b2; }
.card:hover { background: #000; color: #eadfc8; border-color: #b6ff00; }
.card:hover .t { text-decoration: underline; }
.all { margin: 0 0 4px; text-align: right; }

h2 { color: #8ff7e6; font-weight: normal; font-size: 22px; margin: 0 0 8px; }
h2 a, h2 a:visited { color: inherit; }
.box { display: flow-root; border: 1px solid #b6ff00; padding: 12px 16px; background: #000; }
/* painting cropped to a wide strip (the middle of the panel: horses and lances) */
.box img { display: block; width: 100%; height: 170px; object-fit: cover; object-position: 50% 62%; margin: 0 0 8px; border: 1px solid #b6ff00; }
.cap { display: block; font-size: 11px; line-height: 1.35; color: #cfc6b2; }
.cap i { color: #b6ff00; }
.ph { color: #a39a88; font-size: 14px; }

/* up to 7 per row (7*88 + 6*4 = 640px); fewer when the column is narrower */
.grid { display: grid; grid-template-columns: repeat(auto-fill, 88px); gap: 4px; justify-content: center; max-width: 640px; margin: 0 auto; }
.grid img { image-rendering: pixelated; display: block; }
.grid + .grid { margin-top: 20px; }

/* phone: stack the row, show the whole painting */
@media (max-width: 640px) {
  .top { grid-template-columns: 1fr; }
  .top .cat { border-left: 0; padding-left: 0; }
  .box img { height: auto; }
}
