

/* Six rooms for the Archive: the 55 pictures in space, drawn with WebGL 2 and no library, on Tau's own tokens. */
:root, :root[data-theme] {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --page: #fcfcfb; --ground: #f1f0ed; --raised: #ffffff; --ink: #0b0b0b; --ink2: #52514e; --ink3: #6c6b69; --faded: #97958d;
  --line: rgb(11 11 11 / 10%); --line-strong: rgb(11 11 11 / 20%);
  --glass: rgb(255 255 255 / 78%); --accent: #6250d6;
  --e1: 0 3px 6px -2px rgb(0 0 0 / .02), 0 1px 1px rgb(0 0 0 / .04);
  --e2: 0 0 0 .5px rgb(0 0 0 / .06), 0 6px 18px rgb(0 0 0 / .05), 0 3px 9px rgb(0 0 0 / .06), 0 1px 1px rgb(0 0 0 / .04);
  --e3: 0 0 0 .5px rgb(0 0 0 / .06), 0 24px 64px rgb(0 0 0 / .16), 0 8px 24px rgb(0 0 0 / .10), 0 1px 1px rgb(0 0 0 / .04);
  --m: clamp(16px, 2.8vw, 40px);
  --statement: clamp(38px, 6.4vw, 96px);
  --tau-ease: linear(0, 0.0234 0.39%, 0.0740 1.28%, 0.1420 2.54%, 0.2210 4.15%, 0.3058 6.06%, 0.3921 8.27%, 0.4764 10.75%, 0.5561 13.48%, 0.6294 16.47%, 0.6951 19.70%, 0.7528 23.17%, 0.8025 26.86%, 0.8443 30.78%, 0.8791 34.91%, 0.9074 39.26%, 0.9301 43.81%, 0.9481 48.56%, 0.9621 53.52%, 0.9728 58.67%, 0.9810 64.02%, 0.9870 69.55%, 0.9915 75.28%, 0.9948 81.19%, 0.9972 87.28%, 0.9988 93.55%, 1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark; --page: #0d0d0d; --ground: #161615; --raised: #1f1f1e; --ink: #f0efec; --ink2: #c3c2b7; --ink3: #8f8e89; --faded: #5f5e5a;
  --line: rgb(255 255 255 / 10%); --line-strong: rgb(255 255 255 / 20%); --glass: rgb(40 40 40 / 75%);
  --e2: 0 0 0 .5px rgb(255 255 255 / 8%), 0 6px 18px rgb(0 0 0 / .4), 0 1px 1px rgb(0 0 0 / .3);
  --e3: 0 0 0 .5px rgb(255 255 255 / 9%), 0 24px 64px rgb(0 0 0 / .6), 0 8px 24px rgb(0 0 0 / .4); } }
:root[data-theme="dark"] {
  color-scheme: dark; --page: #0d0d0d; --ground: #161615; --raised: #1f1f1e; --ink: #f0efec; --ink2: #c3c2b7; --ink3: #8f8e89; --faded: #5f5e5a;
  --line: rgb(255 255 255 / 10%); --line-strong: rgb(255 255 255 / 20%); --glass: rgb(40 40 40 / 75%);
  --e2: 0 0 0 .5px rgb(255 255 255 / 8%), 0 6px 18px rgb(0 0 0 / .4), 0 1px 1px rgb(0 0 0 / .3);
  --e3: 0 0 0 .5px rgb(255 255 255 / 9%), 0 24px 64px rgb(0 0 0 / .6), 0 8px 24px rgb(0 0 0 / .4); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body { font: 400 15px/24px var(--font); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv01", "cv11"; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.small { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink3); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; }
.kick { font: 500 11px/16px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 .5px var(--line), var(--e2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: 9999px; background: var(--ink); color: var(--page); font: 500 13px/1 var(--font); cursor: pointer; white-space: nowrap; }
.btn.is-quiet { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }

/* the bar, as on the site */
.bar { position: fixed; z-index: 50; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 4px 0 14px;
  border-radius: 9999px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 .5px var(--line), var(--e2); font-size: 13px; white-space: nowrap; }
.bar b { font-weight: 550; font-size: 14px; margin-right: 12px; }
.bar span { height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 9999px; color: var(--ink2); }
.bar span.on { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.bar i { font-style: normal; margin-left: 8px; height: 36px; padding: 0 16px; display: flex; align-items: center; border-radius: 9999px; background: var(--ink); color: var(--page); }
@media (max-width: 720px) { .bar span:not(.on) { display: none; } }

/* the room: one canvas over the whole window */
#room { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: 0; }
#room.is-drag { cursor: grabbing; }
#room.is-over { cursor: zoom-in; }
.head { position: fixed; z-index: 20; left: var(--m); top: calc(84px + env(safe-area-inset-top, 0px)); pointer-events: none; }
.head h1 { display: flex; align-items: flex-start; margin: 0; font: 450 clamp(40px, 5vw, 76px)/.92 var(--font); letter-spacing: -0.045em; }
.head h1 sup { position: relative; top: .3em; margin-left: .12em; font-size: .24em; font-weight: 450; letter-spacing: -0.01em; color: var(--ink3); }
.head p { max-width: 24em; margin: 14px 0 0; font-size: 14px; line-height: 21px; color: var(--ink2); }
.foot { position: fixed; z-index: 20; left: var(--m); right: calc(var(--m) + 40px); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; pointer-events: none; }
.foot > * { pointer-events: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chips { display: flex; gap: 2px; padding: 4px; border-radius: 9999px; }
.chips button { height: 32px; padding: 0 12px; border: 0; border-radius: 9999px; background: none; color: var(--ink3); font: 500 13px/1 var(--font); cursor: pointer; white-space: nowrap; }
.chips button sup { margin-left: 3px; font-size: 9px; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.chips button:is(:hover, [data-hover]):not([aria-pressed="true"]) { color: var(--ink); }
.hint { margin: 0; padding: 8px 14px; border-radius: 9999px; font-size: 13px; line-height: 18px; color: var(--ink2); pointer-events: none; }
.now { position: fixed; z-index: 20; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: min(560px, calc(100vw - 2 * var(--m))); transform: translateX(-50%); text-align: center; pointer-events: none; }
.now-in { display: inline-block; padding: 10px 18px 11px; border-radius: 14px; background: color-mix(in srgb, var(--page) 82%, transparent); }
.now b { display: block; font: 450 clamp(22px, 2.2vw, 32px)/1.1 var(--font); letter-spacing: -0.025em; }
.now span { display: block; margin-top: 6px; font-size: 13px; line-height: 19px; color: var(--ink3); }
.label { position: fixed; z-index: 30; left: 0; top: 0; padding: 6px 10px; border-radius: 8px; font-size: 12px; line-height: 16px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s linear; }
.label b { font-weight: 550; }
.label span { color: var(--ink3); }
.label.is-on { opacity: 1; }
.nogl { position: fixed; inset: 0; display: grid; place-items: center; padding: 120px var(--m) 40px; text-align: center; }

/* the lightbox: the picture leaves the room and lies flat */
.lb { position: fixed; z-index: 70; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; background: color-mix(in srgb, var(--page) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.lb-pic { position: relative; display: grid; place-items: center; padding: 96px 32px 40px calc(var(--m) + 8px); min-height: 0; }
.lb-pic img { display: block; max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 0 0 .5px var(--line), var(--e3); background: var(--raised); }
.lb-side { display: flex; flex-direction: column; gap: 12px; padding: 96px calc(var(--m) + 36px) 32px 0; min-height: 0; overflow-y: auto; }
.lb-side h2 { margin: 0; font: 450 32px/1.06 var(--font); letter-spacing: -0.03em; }
.lb-side p { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink2); }
.lb-facts { margin: 6px 0 0; padding: 0; list-style: none; }
.lb-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: .5px solid var(--line-strong); font-size: 13px; line-height: 19px; }
.lb-facts li span:first-child { color: var(--ink3); }
.lb-nav { display: flex; gap: 6px; margin-top: auto; padding-top: 12px; }

/* the switcher, a rail on the right edge */
.pick { position: fixed; z-index: 90; right: 10px; top: 50%; transform: translateY(-50%); -webkit-user-select: none; user-select: none; }
.pick-rail { display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 9999px; }
.pick-rail button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; font: 500 12px/1 var(--font); color: var(--ink3); cursor: pointer; }
.pick-rail button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.pick-note { position: absolute; right: calc(100% + 10px); top: 50%; width: min(300px, calc(100vw - 72px)); margin: 0; padding: 12px 14px; border-radius: 12px; transform: translateY(-50%); font-size: 13px; line-height: 19px; color: var(--ink2);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--tau-ease); background: color-mix(in srgb, var(--page) 94%, transparent); }
.pick-note b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.pick.is-note .pick-note { opacity: 1; }

@media (max-width: 720px) {
  .head { top: calc(76px + env(safe-area-inset-top, 0px)); }
  .head p { display: none; }
  .foot { right: var(--m); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--m)); padding: 0 var(--m); scrollbar-width: none; }
  .chips { flex: none; }
  .chips button { padding: 0 10px; }
  .hint { display: none; }
  .now { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .pick { top: calc(84px + env(safe-area-inset-top, 0px)); transform: none; right: 6px; }
  .pick-rail button { width: 26px; height: 26px; font-size: 11px; }
  .pick-note { top: 0; transform: none; }
  .lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb-pic { padding: 80px 12px 12px; }
  .lb-side { padding: 0 var(--m) calc(16px + env(safe-area-inset-bottom, 0px)); max-height: 46svh; }
  .lb-side h2 { font-size: 26px; }
}
