/* tinyplanets 2026: the 2010 black page, a brass hairline, the planets as the show. */
:root { --bg: #000; --ink: #e8e2d4; --dim: #9a9488; --brass: #b8925a; --brass-hi: #e3c58c; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Georgia, "Times New Roman", serif; }
a { color: var(--brass-hi); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }

.head { max-width: 1180px; margin: 0 auto; padding: 32px 16px 8px; text-align: center; }
.head h1 { margin: 0; }
.head h1 img { display: block; width: min(800px, 100%); height: auto; margin: 0 auto; }
.intro { max-width: 640px; margin: 14px auto 4px; color: var(--dim); font-style: italic; }
.other { margin: 0 0 8px; }
.other a { display: inline-block; padding: 10px 6px; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.head::after { content: ""; display: block; height: 1px; margin: 12px auto 0; max-width: 820px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent); }

.grid { list-style: none; margin: 0 auto; padding: 24px 16px 8px; max-width: 1180px; display: grid; gap: 22px 18px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { display: block; color: var(--dim); text-align: center; }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(184, 146, 90, .35), 0 8px 24px rgba(0, 0, 0, .6); transition: transform .35s ease, box-shadow .35s ease; }
.grid.wide .tile img { aspect-ratio: 3 / 2; border-radius: 3px; }
.tile span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.3; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06) rotate(-4deg); box-shadow: 0 0 0 1px var(--brass-hi), 0 10px 30px rgba(0, 0, 0, .7); }
.tile:hover span { color: var(--ink); text-decoration: none; }
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .grid.wide { grid-template-columns: 1fr 1fr; }
  .tile span { font-size: 11.5px; }
}

.foot { max-width: 1180px; margin: 24px auto 0; padding: 18px 16px 40px; display: flex; flex-wrap: wrap; gap: 6px 22px;
  justify-content: center; color: var(--dim); font-size: 13px; border-top: 1px solid rgba(184, 146, 90, .3); }
.foot a { padding: 8px 0; }

/* the lightbox */
.lb { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .94); display: flex; align-items: center; justify-content: center;
  touch-action: pinch-zoom; overscroll-behavior: contain; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; padding: 56px 64px 64px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img { display: block; max-width: min(92vw, 1600px); max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px);
  width: auto; height: auto; box-shadow: 0 0 0 1px rgba(184, 146, 90, .4); background: #111; transition: opacity .25s ease; }
.lb-img.loading { opacity: .25; }
.lb figcaption { margin-top: 14px; text-align: center; color: var(--ink); }
.lb-count { color: var(--dim); font-size: 13px; margin-left: 10px; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--brass); background: rgba(20, 16, 10, .7);
  color: var(--brass-hi); font: 32px/1 Georgia, serif; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.lb-btn:hover { background: rgba(60, 46, 26, .9); }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 12px; font-size: 30px; }
@media (max-width: 700px) {
  .lb-fig { padding: 60px 6px 84px; }
  .lb-img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .tile img, .lb-img { transition: none; }
  .tile:hover img, .tile:focus-visible img { transform: none; }
}
