/* Cafe Leningrad archive — single stylesheet, no frameworks. */
:root {
  --paper: #fbf8f1;
  --ink: #2b2621;
  --muted: #7a6f60;
  --red: #851d1c;
  --gold: #b9a05a;
  --blue: #1f5bb5;
  --line: #e6dfd0;
  --card: #fff;
  --max: 980px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1c1916; --ink: #ece4d6; --muted: #a89d8c; --red: #e0716f; --gold: #d4bd7a; --line: #3a342d; --card: #26221e; }
  .footer .wave { filter: invert(1); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 Georgia, "Times New Roman", serif; }
h1, h2, h3, h4, .nav, .archive-note, .stats, .button, .meta, .crumbs, .day, .pager, .years, .month .label {
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; margin: 1.4em 0 .5em; }
h1 { font-size: 2rem; margin-top: .3em; }
h2 { font-size: 1.45rem; }
h2 span, h2 small { color: var(--muted); font-weight: 400; font-size: .8em; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }

/* Header */
/* Header: endless reel of 2008–2009 party photos behind a solid logo card */
.masthead { position: relative; height: 280px; overflow: hidden; background: #2b2621; border-top: 6px solid var(--red);
  display: flex; align-items: center; justify-content: center; }
.reel { position: absolute; inset: 0; }
.track { display: flex; gap: 6px; height: 100%; width: max-content; animation: reel 140s linear infinite; }
.track img { height: 100%; width: auto; display: block; max-width: none; filter: saturate(.85) contrast(1.05); }
.masthead::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(43,38,33,.15) 0, rgba(43,38,33,.55) 100%); }
@keyframes reel { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 3px)); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }
.logo { position: relative; z-index: 1; display: block; width: 210px; padding: 16px 20px 14px; background: #fbf8f1;
  border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 4px rgba(251,248,241,.35); }
.logo img { display: block; width: 100%; height: auto; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 4px 0; }
.nav a:hover { color: var(--red); }
.archive-note { text-align: center; margin: 0; padding: 8px 16px; font-size: .85rem; color: var(--muted); background: var(--paper); border-bottom: 1px dashed var(--line); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 24px 16px 40px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.wave { height: 1px; margin: 36px 0; border-bottom: 2px dotted var(--gold); }
.footer .wave { height: 40px; margin: 0; border: 0; background: url("media/site/wave.png") 0 100% repeat-x; }

/* Articles */
.post .meta, .crumbs { color: var(--muted); font-size: .9rem; margin: 0; }
.crumbs a { color: var(--muted); }
.body { overflow-wrap: anywhere; }
.body img { display: block; margin: 1em 0; border-radius: 3px; }
.body table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.body td, .body th { border: 1px solid var(--line); padding: 4px 8px; vertical-align: top; }
.body blockquote { margin: 1em 0; padding: .2em 1em; border-left: 3px solid var(--gold); color: var(--muted); }
.old { padding: 8px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
figure { margin: 0 0 1.5em; }
figcaption { font-size: .88rem; color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.comments { margin-top: 2.5em; padding-top: 1em; border-top: 2px dotted var(--gold); }
.comment { padding: 10px 14px; margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.comment p { margin: .3em 0; }
.comment .who { font-family: "Trebuchet MS", system-ui, sans-serif; font-size: .9rem; }
.comment .who time { color: var(--muted); margin-left: 6px; }

/* Click-to-play video: no third-party requests until clicked */
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.2em 0; background: #222 linear-gradient(135deg, #2b2621, #851d1c); border-radius: 4px; overflow: hidden; }
.video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.video > a { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 45%); }
.video .play { width: 72px; height: 72px; border-radius: 50%; background: rgba(133,29,28,.92); box-shadow: 0 4px 18px rgba(0,0,0,.4); transition: transform .15s; }
.video .play::after { content: ""; display: block; margin: 22px 0 0 29px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.video > a:hover .play { transform: scale(1.08); background: var(--red); }
.video .vtitle { position: absolute; left: 16px; right: 16px; bottom: 12px; font: 600 1rem/1.3 "Trebuchet MS", system-ui, sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.video.gone { aspect-ratio: auto; padding: 18px 20px; background: var(--card); border: 1px dashed var(--line); color: var(--muted); font: italic .95rem "Trebuchet MS", system-ui, sans-serif; }
@media (max-width: 720px) { .video .play { width: 56px; height: 56px; } .video .play::after { margin: 17px 0 0 22px; border-width: 11px 0 11px 17px; } .video .vtitle { font-size: .88rem; } }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-link { font-family: "Trebuchet MS", system-ui, sans-serif; }

/* Lists */
.years { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.years a { font-weight: 600; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.post-list time { display: inline-block; min-width: 7.2em; color: var(--muted); font-size: .9rem; font-family: "Trebuchet MS", system-ui, sans-serif; }
.home-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 760px) { .home-lists { grid-template-columns: 1fr; } }
.ev-month { margin: 1.2em 0 .2em; font-size: 1rem; color: var(--red); }
.ev-day { color: var(--muted); font-size: .85rem; font-family: "Trebuchet MS", system-ui, sans-serif; display: inline-block; min-width: 5.2em; }
.ev-post { font-size: .85rem; white-space: nowrap; }
.cc { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--line); font-size: .95rem; }
.pager .next { text-align: right; }

/* Lunch */
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.month { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.month img, .month .noimg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.month .label { display: block; padding: 6px 10px; font-weight: 600; }
.month .label small { color: var(--muted); font-weight: 400; float: right; }
.month:hover { border-color: var(--red); }
.lunch { display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lunch > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--line); }
.lunch .day { color: var(--red); font-weight: 700; margin: 0 0 .3em; }
.lunch .day small { color: var(--muted); font-weight: 400; }
.lunch p { margin: 0 0 .4em; }
.lunch:not(:has(img)) { grid-template-columns: 1fr; }

/* Galleries */
.gallery { margin: 1.5em 0; }
.gallery img { display: block; width: auto; max-width: 100%; max-height: 90vh; height: auto; margin: 0 auto 18px; border-radius: 3px; background: var(--line); }
.albums .label em { display: block; font-style: normal; font-weight: 400; font-size: .8rem; color: var(--muted); }
.small-note { font-size: .85rem; color: var(--muted); }
.lost { color: var(--muted); }
.lost small { font-size: .8em; font-style: italic; }

/* Pages */
.page { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.aside { font-size: .95rem; }
.souvenir { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.souvenir img, .souvenir .noimg { width: 140px; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--line); display: block; }
.souvenir h3 { margin-top: 0; }
.button { display: inline-block; padding: 8px 16px; margin: 4px 6px 4px 0; background: var(--red); color: #fff; text-decoration: none; border-radius: 3px; font-weight: 600; }
.button:hover { background: var(--ink); color: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 1.5em; }
.stats a { text-align: center; padding: 14px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--muted); font-size: .9rem; }
.stats strong { display: block; font-size: 1.8rem; color: var(--red); }

/* Footer */
.footer { text-align: center; color: var(--muted); font-size: .85rem; }
.panorama { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.footer p { padding: 12px 16px 28px; margin: 0; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .masthead { height: 190px; }
  .logo { width: 140px; padding: 10px 12px 8px; }
  .track { animation-duration: 100s; }
  .page, .pair { grid-template-columns: 1fr; gap: 8px; }
  .lunch { grid-template-columns: 1fr; gap: 10px; }
  .souvenir { grid-template-columns: 90px 1fr; gap: 12px; }
  .souvenir img, .souvenir .noimg { width: 90px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats strong { font-size: 1.4rem; }
  .post-list time { display: block; min-width: 0; }
}
