
  :root {
    --ground: #ffffff; --ink: #111111; --muted: #6b6b69;
    --line: rgba(17, 17, 17, 0.12); --pill: #111111; --pill-ink: #ffffff;
    --nav: rgba(255, 255, 255, 0.78); --card: rgba(255, 255, 255, 0.94); --tile: #f0f0ef; --overlay-ink: #111111; --shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ground: #090909; --ink: #ededed; --muted: #8b8b89;
      --line: rgba(237, 237, 237, 0.14); --pill: #ededed; --pill-ink: #090909;
      --nav: rgba(9, 9, 9, 0.72); --card: rgba(14, 14, 14, 0.96); --tile: #111111; --overlay-ink: #ffffff; --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    }
  }
  :root[data-theme="dark"] {
    --ground: #090909; --ink: #ededed; --muted: #8b8b89;
    --line: rgba(237, 237, 237, 0.14); --pill: #ededed; --pill-ink: #090909;
    --nav: rgba(9, 9, 9, 0.72); --card: rgba(14, 14, 14, 0.96); --tile: #111111; --overlay-ink: #ffffff; --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; padding: 0 16px 60px; }
  button, input, select { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  a { color: inherit; }

  nav { position: sticky; top: 18px; z-index: 5; width: min(880px, 100%); margin: 18px auto 0;
    display: flex; align-items: center; gap: 22px; padding: 8px 8px 8px 20px; border-radius: 999px;
    background: var(--nav); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line); }
  nav .brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; margin-right: auto; text-decoration: none; }
  nav .brand svg { width: 22px; height: 22px; }
  nav .links { display: flex; gap: 22px; }
  nav .links a, nav .links button { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: none; }
  nav .links a[aria-current], nav .links a:hover, nav .links button:hover { color: var(--ink); }
  .icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; }
  .icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .pill { border: 0; background: var(--pill); color: var(--pill-ink); border-radius: 999px; padding: 11px 20px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; }
  .pill:hover { opacity: 0.88; }
  .chip { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
  .chip:hover { color: var(--ink); border-color: var(--ink); }
  .chip[aria-pressed="true"] { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
  .chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  select.chip { appearance: none; -webkit-appearance: none; padding-right: 30px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }

  .controls { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 26px auto 0; }
  .wrap { max-width: 1180px; margin: 0 auto; }
  .head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin: 56px 0 22px; }
  .head h1 { margin: 0; font-weight: 500; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; }
  .head p { margin: 0; color: var(--muted); font-size: 13px; text-align: right; }

  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
  .card { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--tile); border: 1px solid var(--line); display: block; color: inherit; text-decoration: none; }
  .card canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .card .h { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px 18px 34px; font-weight: 500; font-size: calc(clamp(20px, 2.2vw, 28px) * var(--fit, 1)); line-height: 1.1; letter-spacing: -0.015em; color: var(--overlay-ink); pointer-events: none; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.25); overflow-wrap: anywhere; text-wrap: balance; }
  .card .ft { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; justify-content: space-between; font-size: 12px; color: var(--overlay-ink); opacity: 0.75; pointer-events: none; }
  .card .ft b { font-weight: 500; }

  .immersive { display: grid; justify-items: center; gap: 18px; }
  .immersive .big { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--tile); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .immersive .big canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .immersive .big .h { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px 6%; font-weight: 500; font-size: calc(clamp(30px, 5vw, 56px) * var(--fit, 1)); line-height: 1.1; letter-spacing: -0.02em; color: var(--overlay-ink); pointer-events: none; overflow-wrap: anywhere; text-wrap: balance; }
  .card { cursor: pointer; }
  .immersive .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
  .immersive .row .tag { color: var(--muted); font-size: 13px; padding: 0 8px; }
  .empty { color: var(--muted); text-align: center; padding: 60px 0; }
  #more { padding: 30px 0; font-size: 13px; }
  .menu { position: relative; }
  .menu ul { position: absolute; top: calc(100% + 8px); left: 0; margin: 0; padding: 6px; list-style: none; min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 4; }
  .menu ul button { width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 9px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
  .menu ul button:hover { background: var(--line); }
  .menu ul button span { color: var(--muted); font-size: 12px; }
  [hidden] { display: none !important; }
  @media (max-width: 720px) { nav { gap: 12px; padding-left: 16px; } nav .links { display: none; } nav .pill { padding: 10px 14px; font-size: 14px; } .head p { text-align: left; } }

body[data-page=explore]{padding:0 16px 60px}.head{margin-top:36px}.head p{max-width:44ch}.card .h{background:none;text-shadow:0 2px 12px #000}.card .ft{opacity:1;background:var(--card);color:var(--ink);padding:5px 8px;border-radius:8px;bottom:8px;left:8px;right:8px}.card .h span{background:var(--nav);color:var(--ink);padding:7px 12px;border-radius:12px;text-shadow:none}.immersive .big .h span{background:var(--nav);color:var(--ink);padding:10px 18px;border-radius:16px}.view-back{justify-self:start}.gallery-help{max-width:1180px;margin:12px auto;color:var(--muted);font-size:13px}.gallery-help summary{cursor:pointer}.finish-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:12px}.finish-list p{margin:0}.head .copy-note{text-align:left}.empty button{margin-top:16px}.gallery-pause{position:static}.row .tag{width:100%;text-align:center}.nav-note{font-size:12px;color:var(--muted)}
body[data-page=explore] nav{left:auto;transform:none}

.card .h span,.immersive .big .h span,.card .ft{background:transparent;backdrop-filter:none;border:0;box-shadow:none}
.filter-menu{position:relative}.filter-menu summary{list-style:none;user-select:none}.filter-menu summary::-webkit-details-marker{display:none}.filter-menu summary::after{content:'';display:block;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);margin-left:5px;margin-right:2px;flex:none}.filter-menu summary{align-items:center}.filter-menu[open] summary::after{transform:translateY(2px) rotate(225deg)}.filter-menu[open]{z-index:20}.filter-menu .filter-options{position:absolute;top:calc(100% + 8px);right:0;min-width:210px;max-height:330px;overflow:auto;background:var(--ground);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:6px;display:grid;gap:2px}.filter-options button{font:inherit;color:var(--ink);border:0;background:transparent;text-align:left;border-radius:12px;padding:10px 14px;cursor:pointer}.filter-options button:hover,.filter-options button:focus-visible{background:var(--line);outline:1px solid var(--muted)}.filter-options button[aria-selected=true]{background:var(--pill);color:var(--pill-ink)}

.controls{margin:18px auto 20px;scroll-margin-top:96px}
/* More breathing room through the Explore header and controls. */
.head{margin-bottom:30px}
.gallery-help{margin-top:18px;margin-bottom:18px}
#count{margin-top:18px;margin-bottom:0}
.controls{gap:10px;margin-top:24px;margin-bottom:32px}
.immersive{gap:22px}
@media(max-width:720px){.controls{gap:10px;margin-top:22px;margin-bottom:28px}}

/* Align immersive artwork and its controls with the collection header. */
.immersive{width:100%;gap:26px}.immersive .big{width:100%;max-width:none}
.controls{justify-content:flex-start;align-items:center;margin-top:26px;margin-bottom:36px;gap:10px}
.controls .view-back{margin-right:auto;white-space:nowrap}
@media(max-width:900px){.controls .view-back{margin-right:0}}
