@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Condensed'; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-condensed-latin-600-normal.woff2) format('woff2'); }

:root {
  --ground: #f6f5f2;
  --paper: #ffffff;
  --ink: #1d1c1a;
  --soft: #6b6862;
  --rule: #e2dfd8;
  --accent: #c2410c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #161514;
    --paper: #201f1d;
    --ink: #ecebe7;
    --soft: #a29f98;
    --rule: #34322f;
    --accent: #fb923c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 'IBM Plex Sans', system-ui, sans-serif; }
.page { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.credit { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: var(--soft); text-align: right; white-space: nowrap; }
.head h1 { margin: 0; font: 600 28px/1.2 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; }
.read { margin: 4px 0 0; color: var(--soft); font-size: 14px; min-height: 21px; }
h2 { margin: 32px 0 12px; font: 600 14px/1.2 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); }
.list { display: flex; flex-direction: column; gap: 12px; }
.empty { margin: 0; color: var(--soft); }

.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.card[data-cleared] { opacity: 0.6; }
.photos { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--rule); }
.photos a { flex: 0 0 100%; scroll-snap-align: start; }
.photos[data-many] a { flex-basis: 85%; }
.photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--soft); }
.place { font-weight: 600; color: var(--accent); text-decoration: none; }
.place:hover { text-decoration: underline; }
.place::after { content: ' ↗'; font-weight: 400; }
.tag { font: 600 12px/1 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 6px; border-radius: 4px; border: 1px solid currentColor; }
.note { font-weight: 600; }
.text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.list[data-earlier] .card { display: grid; grid-template-columns: 112px 1fr; }
.list[data-earlier] .photos { overflow: hidden; }
.list[data-earlier] .photos a { flex-basis: 100%; }
.list[data-earlier] .photos a + a { display: none; }
.list[data-earlier] .photos img { height: 100%; aspect-ratio: auto; min-height: 112px; }
.list[data-earlier] .body { padding: 10px 12px; }
.list[data-earlier] .text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.list[data-earlier] .card:not(:has(.photos)) { grid-template-columns: 1fr; }
.more { align-self: center; margin-top: 4px; padding: 8px 28px; font: 600 14px/1 'IBM Plex Sans', sans-serif; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; }
.more:hover { border-color: var(--soft); }
.body { position: relative; padding-right: 44px; }
.share { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: var(--soft); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.share:hover { color: var(--ink); background: var(--ground); }
.card[data-focus] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.card { transition: box-shadow 0.4s, border-color 0.4s; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 14px; font-size: 14px; color: var(--paper); background: var(--ink); border-radius: 6px; overflow-wrap: anywhere; z-index: 10; }
.toast[hidden] { display: none; }
.sheet { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; overflow-y: auto; background: rgba(0, 0, 0, 0.82); }
.sheet-hint { margin: 0; color: #fff; font-size: 14px; text-align: center; }
.sheet-picture { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 6px; -webkit-touch-callout: default; }
.sheet-close { padding: 8px 28px; font: 600 14px/1 'IBM Plex Sans', sans-serif; color: #fff; background: none; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 6px; cursor: pointer; }
.foot { margin-top: 40px; font-size: 13px; color: var(--soft); }
