/* The report home at /report/, drawn like the player's overview (o): a charcoal page, the reports'
   title slides as thumbnails in a grid under their project's header, quiet mono labels, amber only
   where the pointer is. One look, dark, as the talks are. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-100-900-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibmplexmono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibmplexmono-500-latin.woff2") format("woff2"); }

:root {
  --ground: #151413; --tile: #232120; --line: #3a3633;
  --hi: #e6eae7; --fg: #b6c0c3; --dim: #9aa6ac; --quiet: rgba(154, 166, 172, .7); --faint: rgba(182, 192, 195, .6);
  --accent: #eba640;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--ground); color: var(--fg); font: 400 15px/1.4 var(--display);
  padding: 0 max(40px, env(safe-area-inset-right, 0px)) 64px max(40px, env(safe-area-inset-left, 0px)); }
@media (max-width: 640px) { body { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* the header, as the overview's */
.top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding: 26px 0 4px; }
.top .h { font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.top .tot, .top .keys { font: 400 12px/1.6 var(--mono); color: var(--quiet); }
.top .tot { margin-right: auto; }
kbd { font: inherit; color: var(--fg); border: 1px solid var(--line); border-radius: 2px; padding: 1px 5px; }
@media (max-width: 640px) { .top .keys { display: none; } }

/* a project: its header, then its reports newest first */
.ph { display: flex; align-items: baseline; gap: .7em; margin: 30px 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--line);
  font: 500 17px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hi); }
.ph i { align-self: center; flex: none; width: 10px; height: 10px; background: var(--pc, var(--dim)); }
.ph b { font-weight: 500; }
.ph em { margin-left: auto; font: 400 12px/1 var(--mono); font-style: normal; letter-spacing: .04em; text-transform: none; color: var(--quiet); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px 18px; }

/* a report: its title slide; moving across it shows its slides, and a click opens the slide shown */
.report { min-width: 0; }
.cover { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; background: var(--tile); outline: 1px solid var(--line);
  overflow: hidden; touch-action: pan-y; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.report:hover .cover, .cover:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.cover .at { position: absolute; left: 8px; bottom: 11px; max-width: calc(100% - 16px); padding: 2px 7px; font: 400 12px/1.5 var(--mono);
  color: var(--hi); background: rgba(13, 12, 12, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover .strip { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; display: flex; gap: 1px; opacity: 0; }
.cover .strip i { flex: 1; background: var(--c, var(--dim)); opacity: .5; }
.cover .strip i.on { background: var(--accent); opacity: 1; }
.report:hover .strip, .cover:focus-visible .strip { opacity: 1; }
.cap { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.cap .d, .cap .m { flex: none; font: 400 12px/1 var(--mono); color: var(--quiet); font-variant-numeric: tabular-nums; }
.cap b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 15px/1.3 var(--display); color: var(--fg); }
.report:hover .cap b { color: var(--hi); }
.report:hover .cap .d, .report:hover .cap .m { color: var(--accent); }
.sub { margin: 6px 0 0; font: 400 12px/1.45 var(--mono); color: var(--faint); }

/* the password box (the page before the reports): a centred frosted card, as a sealed talk's lock page,
   over a blurred ghost of the grid (nothing of a report shows before the password); Lock, which makes
   this device forget the home and the reports' passwords */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.locked .top { display: none; }
.locked::before { content: ""; position: fixed; inset: -60px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 30% 40% at 22% 30%, rgba(235,166,64,.16), transparent 70%),
    radial-gradient(ellipse 35% 45% at 78% 70%, rgba(106,154,153,.14), transparent 70%),
    conic-gradient(from 90deg at 18px 26px, #252321 25%, transparent 0) 0 0 / 318px 205px;
  filter: blur(7px); animation: drift 40s ease-in-out infinite alternate; }
.locked::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(21,20,19,.15), rgba(21,20,19,.8)); }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translate(-1.2%, -.8%); } }
@media (prefers-reduced-motion: reduce) { .locked::before { animation: none; } }
.gate, .wait { position: fixed; inset: 0; z-index: 1; margin: auto; width: min(360px, calc(100vw - 32px)); height: fit-content; }
.gate { display: grid; gap: 12px; padding: 20px 22px; border-radius: 12px; background: rgba(24,23,21,.45);
  border: 1px solid rgba(230,234,231,.14); box-shadow: 0 24px 70px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.gate[hidden] { display: none; }
.gate .h { font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.gate .row { display: flex; gap: 8px; }
.gate input[type="password"] { flex: 1; min-width: 0; font: 400 16px/1.2 var(--mono); color: var(--hi); background: rgba(13,12,12,.6);
  border: 1px solid rgba(230,234,231,.16); border-radius: 6px; padding: 10px 12px; }
.gate input[type="password"]:focus { outline: none; border-color: var(--accent); }
.gate button { font: 500 13px/1 var(--mono); letter-spacing: .06em; color: var(--ground); background: var(--accent); border: 0; border-radius: 6px; padding: 0 16px; cursor: pointer; }
.msg { margin: 0; font: 400 13px/1.4 var(--mono); color: #e5867c; }
.msg:empty { display: none; }
.wait { display: none; text-align: center; font: 400 13px/1 var(--mono); color: var(--quiet); }
.busy .wait { display: block; }
.lock { font: 400 12px/1 var(--mono); color: var(--quiet); background: none; border: 1px solid var(--line); border-radius: 2px; padding: 4px 8px; cursor: pointer; }
.lock:hover { color: var(--accent); border-color: var(--accent); }

/* a sealed report's password and its buttons */
.pw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; font: 400 12px/1 var(--mono); }
.pw code { font: 500 12.5px/1 var(--mono); color: var(--hi); background: var(--tile); border: 1px solid var(--line); padding: 4px 8px; letter-spacing: .04em; }
.pw button { font: 400 11.5px/1 var(--mono); color: var(--fg); background: none; border: 1px solid var(--line); border-radius: 2px; padding: 4px 8px; cursor: pointer; }
.pw button:hover { color: var(--accent); border-color: var(--accent); }
.pw .pub { color: var(--quiet); }
