/* Wipeout AI - THE DEVLOG (site/devlog/index.html, drawn by js/devlog.js from site/devlog/entries.json). Tokens only
   (tokens.css); the homepage's teaser of it is in home.css. */

.dl-hero { padding: 34px 0 8px; max-width: 860px; }
.dl-hero h1 { font-size: var(--fs-3xl); margin: 10px 0 10px; }
.dl-hero .lead { color: var(--muted); font-size: var(--fs-lg); max-width: 62ch; }
.dl-hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
/* the tabs (All / New / Improved / Coming soon): the site's .tabs underline, each 44 px tall with its count */
.dl-tabs { margin-top: 26px; overflow: visible; }
.dl-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: var(--fs-md); }
.dl-tabs button:hover { color: var(--text); }
.dl-tabs button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 8px 8px 0 0; }
.dl-tabs button[aria-selected="false"] .dl-count { background: var(--surface-2); color: var(--muted); }
.dl-count:empty { display: none; }
.dl-short { display: none; }
.dl-empty { padding: 40px 0; }
.dl-days { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; min-height: 44px; }
.dl-days .chip { min-height: 44px; }
.dl-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--gold-soft); color: var(--gold-text); font-size: var(--fs-xs); font-weight: 800; }

/* the log fills the window before its entries arrive, so the footer is never on screen to be pushed down (CLS) */
.dl-log { margin-top: 18px; min-height: 100vh; min-height: 100dvh; }
.dl-loading { padding: 40px 0; }
.dl-day { margin-top: 44px; scroll-margin-top: calc(var(--head) + 12px); }
.dl-day-head { position: sticky; top: var(--head); z-index: 5; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; margin-bottom: 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.dl-day-head h2 { font-size: var(--fs-2xl); }
.dl-day-n { color: var(--dim); font-size: var(--fs-sm); font-weight: 700; }

.dl-entries { display: grid; gap: 16px; }
.dl-entry { padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--head) + 70px); }
.dl-entry:target, .dl-entry.is-target { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.dl-entry-head { display: flex; gap: 8px; margin-bottom: 8px; }
.dl-entry h3 { font-size: var(--fs-xl); margin-bottom: 6px; }
.dl-entry > p { color: var(--muted); max-width: 78ch; }
.dl-points { margin: 10px 0 0; padding-left: 20px; color: var(--muted); max-width: 78ch; display: grid; gap: 4px; }
.dl-points li::marker { color: var(--gold-text); }

.dl-shots { display: grid; gap: 12px; margin-top: 16px; }
.dl-shots.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.dl-shots.n1 { max-width: 860px; }
/* a picture is never drawn larger than it was made (a small close-up stays sharp) */
.dl-shot { position: relative; display: block; justify-self: start; width: fit-content; max-width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
/* no CSS width: the width attribute sizes the picture before it loads (width: auto here moved the page as each arrived) */
.dl-shot img { display: block; max-width: 100%; height: auto; transition: transform .35s ease; }
.dl-shot:hover img { transform: scale(1.015); }
.dl-shot:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.dl-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(10, 11, 16, 0.66); color: #f2f3f5; opacity: 0; transition: opacity .15s; }
.dl-zoom .ic { width: 18px; height: 18px; }
.dl-shot:hover .dl-zoom, .dl-shot:focus-visible .dl-zoom { opacity: 1; }

.dl-soon .dl-entry { background: var(--surface-2); border-style: dashed; }

/* the picture viewer */
.dl-viewer { padding: 12px; }
.dl-viewer-box { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; width: min(1400px, 100%); }
.dl-viewer figure { margin: 0; display: grid; gap: 8px; justify-items: center; }
.dl-viewer img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); border-radius: var(--r); box-shadow: var(--shadow); background: var(--surface-2); }
.dl-viewer figcaption { color: #f2f3f5; font-size: var(--fs-sm); text-align: center; max-width: 80ch; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.dl-viewer .icon-btn { width: 44px; height: 44px; background: rgba(10, 11, 16, 0.6); color: #f2f3f5; }
.dl-viewer .icon-btn:hover { background: rgba(10, 11, 16, 0.85); color: #fff; }
.dl-viewer-x { position: absolute; top: -6px; right: 0; z-index: 2; }

@media (max-width: 860px) {
  .dl-hero { padding-top: 22px; }
  .dl-shots.n2 { grid-template-columns: 1fr; }
  .dl-entry { padding: 18px 16px; }
}
@media (max-width: 640px) {
  /* four tabs across a phone (360 px and up) with no sideways scroll: "Coming soon" says "Soon" (its aria-label is whole) */
  .dl-tabs { justify-content: space-between; gap: 0; overflow: visible; }
  .dl-tabs button { justify-content: center; padding: 10px 6px; gap: 5px; font-size: var(--fs-sm); }
  .dl-tabs .dl-count { min-width: 20px; padding: 0 5px; }
  .dl-tabs .dl-long { display: none; }
  .dl-tabs .dl-short { display: inline; }
  .dl-day-head h2 { font-size: var(--fs-xl); }
  .dl-viewer-box { grid-template-columns: minmax(0, 1fr); }
  .dl-viewer-prev, .dl-viewer-next { position: absolute; bottom: -54px; }
  .dl-viewer-prev { left: calc(50% - 52px); }
  .dl-viewer-next { right: calc(50% - 52px); }
  .dl-viewer img { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); }
  .dl-viewer-x { top: -50px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-shot img, .dl-zoom { transition: none; }
  .dl-shot:hover img { transform: none; }
}
