/* ONE / ALL – web gallery.
   One shell for all pages: hairline header, content, hairline footer. Black, white and one grey;
   colour exists only inside the tiles. One typeface, Inter: labels, counters and buttons in capitals
   with letter-spacing, running text set normally. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* √ and ≤ of the formula in the manifesto: cut from the complete Inter (see README); the usual subsets leave them out */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-math.woff2") format("woff2");
  unicode-range: U+221A, U+2264;
}

:root {
  --bg: #FFFFFF;
  --fg: #000000;
  --muted: #5E5E5E;
  --gutter: 24px;
  --left: max(var(--gutter), env(safe-area-inset-left, 0px));
  --right: max(var(--gutter), env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

/* Figures of equal width wherever numbers are read as data: counter, reading line, countdown, the
   unit numbers. Not for words: with tabular figures Inter also widens the hyphen ("PRE - ORDER"). */
.counter, .status, .zoom, .countdown, .first-place .label, #start-moment, .find, .first25 {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* the grid page is one screen: the canvas takes what header and footer leave */
body.one-screen { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }

a { color: var(--fg); }
a:hover { color: var(--muted); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible, input:focus-visible, canvas:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.unseen {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--left); top: -60px; z-index: 10;
  background: var(--fg); color: var(--bg); padding: 10px 14px;
  font-size: 12px; letter-spacing: 0.06em; text-decoration: none;
}
.skip:focus { top: 8px; color: var(--bg); }

/* ---------- header and footer ---------- */

.bar {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-left: var(--left);
  padding-right: var(--right);
}
.bar.top { gap: 6px 24px; align-items: baseline; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--fg); }
.bar.bottom {
  gap: 0 28px; align-items: center; padding-top: 6px; border-top: 1px solid var(--fg);
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  font-size: 12px; letter-spacing: 0.06em;
}

.title { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-decoration: none; white-space: nowrap; }
.title:hover { color: var(--fg); }
.title span { font-weight: 400; font-size: 10px; letter-spacing: 0.14em; color: var(--muted); margin-left: 10px; }
.counter { font-size: 11px; letter-spacing: 0.04em; white-space: nowrap; }

.bar.bottom nav, .apps { display: flex; flex-wrap: wrap; gap: 0 28px; align-items: center; }
.bar.bottom a, .bar.bottom span { line-height: 44px; text-decoration: none; white-space: nowrap; }
.bar.bottom a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.muted { color: var(--muted); }
/* after the end nobody can contribute any more */
html[data-mode="closed"] .apps, html[data-mode="withdrawn"] .apps { display: none; }

/* ---------- the grid ---------- */

main.screen { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.grid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.stage { position: relative; flex: 1 1 auto; min-height: 0; }
.view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.view.dragging { cursor: grabbing; }
.view:focus-visible { outline-offset: -4px; }

.float { position: absolute; background: var(--bg); border: 1px solid var(--fg); font-size: 11px; letter-spacing: 0.04em; }
.status { left: var(--left); bottom: 16px; max-width: calc(100% - var(--left) - var(--right) - 170px); padding: 5px 9px; }
.zoom { right: var(--right); bottom: 16px; display: flex; }
.report-open { left: var(--left); bottom: 52px; min-height: 30px; padding: 0 9px; cursor: pointer; color: var(--fg); font: inherit; font-size: 11px; letter-spacing: 0.04em; }
.report-open:hover { background: var(--fg); color: var(--bg); }
.report-form { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 6px; }
.report-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.report-form legend { padding: 0 0 6px; }
.report-form label { display: flex; gap: 10px; align-items: center; min-height: 36px; font-size: 12px; letter-spacing: 0.06em; cursor: pointer; }
.report-form input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--fg); }
.report-check { min-height: 65px; }
.report-actions button { min-height: 36px; padding: 0 8px; background: none; border: 0; cursor: pointer; font-size: 12px; letter-spacing: 0.06em; }
.report-actions button:disabled { color: var(--muted); cursor: default; }
.report p { margin: 0; }
.report #report-message { padding: 8px 0; }
.report #report-message.received { color: var(--fg); font-size: 14px; font-weight: 600; letter-spacing: 0.1em; padding: 18px 0 14px; }
.zoom button { min-width: 44px; height: 32px; padding: 0 6px; background: none; border: 0; border-right: 1px solid var(--fg); cursor: pointer; letter-spacing: 0.04em; }
.zoom button:last-child { min-width: 54px; border-right: 0; }
.zoom button:hover, .find button:hover { background: var(--fg); color: var(--bg); }

.notice { margin: 24px var(--right) 24px var(--left); font-size: 11px; letter-spacing: 0.06em; }
/* the build before the opening: one line under the header of the pages that describe the open work */
.opening-note { margin: 0; padding: 10px var(--right) 10px var(--left); border-bottom: 1px solid var(--fg); font-size: 11px; line-height: 1.6; letter-spacing: 0.06em; }

/* before the start and after the work was withdrawn there is no canvas: the page is an ordinary page that may scroll */
html[data-mode="prelaunch"] body.one-screen, html[data-mode="withdrawn"] body.one-screen { height: auto; min-height: 100%; overflow: visible; }

/* before the start */
.prelaunch {
  flex: 1 1 auto;
  display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; justify-content: center;
  padding: 56px var(--right) 56px var(--left);
}
.first-place { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.empty-unit { width: 100%; max-width: 380px; aspect-ratio: 1; border: 1px solid var(--fg); }
.opening { flex: 1 1 420px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.countdown { font-size: 44px; font-weight: 400; letter-spacing: 0.02em; line-height: 1.1; }
.lead-small { margin: 0; font-size: 20px; line-height: 1.5; }
.text-small { margin: 0; font-size: 16px; line-height: 1.6; }

/* after the work was ended by the studio */
.withdrawn {
  flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-content: center;
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 56px var(--right) 56px var(--left);
}

/* find a unit by its number */
.find {
  width: min(440px, calc(100vw - 32px)); margin: auto; padding: 18px 20px 20px;
  border: 1px solid var(--fg); border-radius: 0; background: var(--bg); color: var(--fg);
}
.find::backdrop { background: rgba(255, 255, 255, 0.86); }
.find-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--fg); }
.find-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 18px 0 12px; }
.find label { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.find input {
  width: 13ch; padding: 8px 10px; border: 1px solid var(--fg); border-radius: 0; background: var(--bg); color: var(--fg);
  font: inherit; font-size: 16px; letter-spacing: 0.06em;
}
.find button { min-height: 36px; padding: 0 8px; background: none; border: 0; cursor: pointer; font-size: 12px; letter-spacing: 0.06em; }
.find p { margin: 0; min-height: 1.6em; }

/* ---------- pages of text ---------- */

main.page { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--right) 0 var(--left); }

.block { display: flex; flex-wrap: wrap; gap: 20px 72px; padding: 44px 0; border-top: 1px solid var(--fg); }
.block:first-child { padding-top: 56px; border-top: 0; }
.block:last-child { padding-bottom: 56px; }

.side { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.body { flex: 999 1 520px; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 20px; }
.body.tight { gap: 10px; }

h1, h2 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; }
.note { font-size: 11px; letter-spacing: 0.04em; line-height: 1.7; color: var(--muted); }
.label { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.lead { margin: 0; font-size: 24px; line-height: 1.4; }
.text { margin: 0; font-size: 17px; line-height: 1.6; }
.address { font-size: 18px; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.action { align-self: flex-start; font-size: 12px; letter-spacing: 0.06em; text-decoration: none; line-height: 44px; }

.table { flex: 999 1 520px; min-width: 0; max-width: 680px; margin: 0; display: grid; grid-template-columns: minmax(120px, 30%) 1fr; border-top: 1px solid var(--fg); }
.table dt { margin: 0; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--fg); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.table dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--fg); font-size: 15px; line-height: 1.55; min-width: 0; overflow-wrap: break-word; }
.table dd.figure { padding: 16px 0; }

/* the first twenty-five units in their places */
.first25 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; max-width: 221px; border-top: 1px solid var(--fg); border-left: 1px solid var(--fg); font-size: 11px; }
.first25 div { aspect-ratio: 1; border-right: 1px solid var(--fg); border-bottom: 1px solid var(--fg); display: flex; align-items: center; justify-content: center; }
.first25 .first { background: var(--fg); color: var(--bg); }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .title span { display: block; margin: 2px 0 0; }
  /* the reading line sits above the zoom buttons and may use the full width */
  .status { bottom: 60px; max-width: calc(100% - var(--left) - var(--right)); }
  .report-open { bottom: 96px; }
  .bar.bottom { gap: 0 20px; }
  .bar.bottom nav, .apps { gap: 0 20px; }
  .bar.bottom a, .bar.bottom span { line-height: 40px; }
  .lead { font-size: 21px; }
  .countdown { font-size: 32px; }
  .prelaunch { padding-top: 32px; padding-bottom: 32px; gap: 32px; }
  .prelaunch { justify-content: flex-start; }
  .first-place { flex-basis: 100%; }
  .empty-unit { max-width: 220px; }
  .table { grid-template-columns: minmax(96px, 30%) 1fr; }
  /* the imprint on a phone: label above its text, so long labels do not stand in a narrow column */
  .imprint-main .table { grid-template-columns: minmax(0, 1fr); }
  .imprint-main .table dt { padding: 12px 0 0; border-bottom: 0; }
  .imprint-main .table dd { padding: 4px 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .bar.bottom, .skip, .float { display: none; }
}

/* the page "Notice & data": three plain forms */
.request-form { flex: 999 1 520px; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 8px; }
.request-form fieldset { border: 0; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.request-form fieldset label, .request-form .check { display: flex; gap: 10px; align-items: center; min-height: 36px; font-size: 12px; letter-spacing: 0.06em; cursor: pointer; }
.request-form .check { align-items: flex-start; font-size: 14px; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.request-form input[type="radio"], .request-form input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--fg); }
.request-form input:not([type]), .request-form input[type="email"], .request-form textarea { font: inherit; font-size: 15px; padding: 9px 10px; border: 1px solid var(--fg); border-radius: 0; background: var(--bg); color: var(--fg); width: 100%; box-sizing: border-box; }
.request-form .text { margin: 0 0 6px; }
.bar.bottom .contact { font-size: 11px; letter-spacing: 0.04em; }
.bar.bottom .contact a { color: var(--fg); }
.bar.bottom .version { font-size: 11px; letter-spacing: 0.04em; line-height: 44px; }
/* an open value of the imprint: only in a draft build, so it cannot be overlooked */
.draft { display: inline-block; padding: 0 6px; border: 1px dashed var(--fg); background: var(--fg); color: var(--bg); font-size: 12px; letter-spacing: 0.06em; }

/* the wordmark of the atelier on the imprint page (variant A, 20.11.2026): PARS / TOTO, "Art Collective" below */
.wordmark { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 40px; }
.wordmark-main { font-weight: 800; font-size: clamp(32px, 6vw, 48px); line-height: 1; letter-spacing: 0.02em; white-space: nowrap; }
.wordmark-main i { font-style: normal; font-weight: 400; padding: 0 0.12em; }
.wordmark-sub { font-weight: 400; font-size: 14px; letter-spacing: 0.18em; padding-left: 2px; }

/* the one line about the work in the footer (23.11.2026) */
.work-line { margin: 0; font-size: 11px; letter-spacing: 0.04em; line-height: 1.6; max-width: 62ch; }

/* imprint (23.11.2026): the work first; the legal details of the provider small and compact below it */
.imprint-main { flex: 999 1 520px; min-width: 0; max-width: 680px; }
.imprint-main .table { max-width: none; }
.legal-small { margin: 72px 0 0; padding-top: 12px; border-top: 1px solid var(--muted); font-size: 11px; line-height: 1.7; letter-spacing: 0.02em; color: var(--muted); }
.legal-item { display: inline; }
.legal-item + .legal-item::before { content: " · "; }
.legal-label { font-size: 9.5px; letter-spacing: 0.08em; }
.legal-small a { color: var(--muted); }
