/* Wow Buffet. Black and white, gallery style: white cards on a pale grey page, tiny uppercase labels
   and one huge headline. The only colour is --dot: the ball under the logo's lifted dome, the count
   beside each headline and a liked heart. Light/dark follows the system until the visitor picks a
   theme (data-theme on <html>, set by theme.js): light, dark, taupe or a colour of their own. */

/* Inter and Inter Tight (SIL Open Font License, see fonts/OFL-*.txt), served from this site. */
@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+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-tight-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 Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-tight-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

:root {
  --page: #f3f3f3;
  --card: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #6b6b6b;
  --ink-3: #a3a3a3;
  --line: #e2e2e2;
  --shade: rgb(0 0 0 / 0.3);
  --dot: #ff4d1c;
  --font: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gap: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --page: #0a0a0a; --card: #151515; --ink: #f2f2f2; --ink-2: #9c9c9c; --ink-3: #5e5e5e;
    --line: #272727; --shade: rgb(0 0 0 / 0.7); --dot: #ff5a2b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0a0a0a; --card: #151515; --ink: #f2f2f2; --ink-2: #9c9c9c; --ink-3: #5e5e5e;
  --line: #272727; --shade: rgb(0 0 0 / 0.7); --dot: #ff5a2b; color-scheme: dark;
}
/* Taupe: a warm, light page with white cards. */
:root[data-theme="taupe"] {
  --page: #f4f3ee; --card: #ffffff; --ink: #1b1a17; --ink-2: #6f6b63; --ink-3: #a8a49b;
  --line: #e4e1d9; --shade: rgb(60 52 36 / 0.28);
}
/* Custom: any background colour the visitor picked (--pick). theme.js also sets data-tone, so text is
   dark on a light colour and light on a dark one. Everything else is mixed from those two. */
:root[data-theme="custom"] {
  --page: var(--pick, #f3f3f3);
  --card: color-mix(in srgb, var(--page), #fff 55%);
  --ink-2: color-mix(in srgb, var(--ink) 64%, var(--page));
  --ink-3: color-mix(in srgb, var(--ink) 40%, var(--page));
  --line: color-mix(in srgb, var(--ink) 13%, var(--page));
}
:root[data-theme="custom"][data-tone="pale"] { --card: color-mix(in srgb, var(--page), #000 5%); }  /* nearly white */
:root[data-theme="custom"][data-tone="dark"] {
  --ink: #f2f2f2; --card: color-mix(in srgb, var(--page), #fff 9%); --shade: rgb(0 0 0 / 0.7); color-scheme: dark;
}
/* Changing theme: the new colours spread out from the theme symbol (app.js). Browsers that can't do
   that fade the colours instead. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, fill 0.4s, stroke 0.4s !important;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--page); color: var(--ink); font: 400 13px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video, iframe, audio { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--card); }
h1, h2, h3 { text-wrap: balance; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; padding: 8px 12px; background: var(--card); }
.link, .switch a, .hint a, .notice a, .desc a, .prose a, .errors a { text-decoration: underline; text-underline-offset: 3px; }

/* The small uppercase voice used for every label, link row and button. */
.top, .bar, .filter, .crumbs, .stage-tools, .owner-tools, .pager, .card-top, .foot h2, .field > label,
.specs dt, .table th, .prompt-head, .btn, .ad, .foot-base {
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- masthead: navigation, the logo in the middle, account links ---------- */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; padding: 18px 24px; }
.brand { grid-column: 2; grid-row: 1; display: block; }
.top-left { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 22px; min-width: 0; }
.top-right { grid-column: 3; grid-row: 1; justify-content: flex-end; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a:hover, .menu summary:hover { opacity: 0.55; }
.show-sm, .menu-panel .show-sm { display: none; }

/* ---------- logo: a dome lifting off a plate to reveal the orange ball, plus the wordmark ---------- */
.logo { display: block; width: auto; height: 36px; overflow: visible; }
.mark-plate, .mark-lid, .logo-word { fill: var(--ink); }
.mark-dot { fill: var(--dot); transform-box: fill-box; transform-origin: 50% 100%; }
.mark-lid { transform-box: fill-box; transform-origin: 100% 100%; transform: rotate(22deg); }
.mark-lid, .mark-dot { transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand:hover .mark-lid { transform: rotate(34deg); }
.brand:hover .mark-dot { transform: scale(1.12); }
.mark-intro .mark-lid { animation: lid-lift 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s backwards; }
.mark-intro .mark-dot { animation: dot-pop 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s backwards; }
@keyframes lid-lift {
  0%, 18% { transform: rotate(0deg); }
  26% { transform: rotate(-3deg); }
  55% { transform: rotate(33deg); }
  76% { transform: rotate(19deg); }
  100% { transform: rotate(22deg); }
}
@keyframes dot-pop {
  0%, 40% { transform: scale(0); }
  60% { transform: scale(1.22); }
  78% { transform: scale(0.94); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .mark-lid, .mark-dot { animation: none !important; transition: none; }
}
.top-search { flex: 0 1 190px; min-width: 90px; }
.top-search input {
  width: 100%; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; font-size: 11px; letter-spacing: 0.04em; outline: none; transition: border-color 0.25s;
  -webkit-appearance: none; appearance: none;
}
.top-search input::placeholder { color: var(--ink-3); text-transform: uppercase; }
.top-search input:focus { border-color: var(--ink); }
.top-search input::-webkit-search-cancel-button { display: none; }
/* ---------- theme picker: the symbol doubles in size and splits into four choices ---------- */
.theme { position: relative; z-index: 30; flex: none; width: 22px; height: 22px; }
.theme-toggle {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: none; transition: opacity 0.2s, transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.theme-toggle path { fill: var(--ink); stroke: none; }
.theme-wheel {
  position: absolute; inset: 0; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 0;
  opacity: 0; visibility: hidden; transform: scale(0.68) rotate(-90deg);
  transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.2s, gap 0.45s, visibility 0s 0.45s;
}
.theme.open .theme-toggle { opacity: 0; transform: scale(2) rotate(90deg); pointer-events: none; }
.theme.open .theme-wheel { opacity: 1; visibility: visible; transform: scale(2); gap: 1px; transition-delay: 0s; }
.theme-wheel button {
  position: relative; padding: 0; border: 0; transition: transform 0.2s;
  box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--ink) 32%, transparent);
}
.theme-wheel [data-theme-set="custom"] {  /* a slice of the colour wheel */
  grid-area: 1 / 1; border-top-left-radius: 100%; transform-origin: 100% 100%;
  background: conic-gradient(from 270deg at 100% 100%, #ff3b30, #ffcc00 22deg, #34c759 45deg, #0a84ff 68deg, #bf5af2 90deg);
}
.theme-wheel [data-theme-set="light"] { grid-area: 1 / 2; border-top-right-radius: 100%; transform-origin: 0 100%; background: #fff; }
.theme-wheel [data-theme-set="dark"] { grid-area: 2 / 2; border-bottom-right-radius: 100%; transform-origin: 0 0; background: #0b0b0b; }
.theme-wheel [data-theme-set="taupe"] { grid-area: 2 / 1; border-bottom-left-radius: 100%; transform-origin: 100% 0; background: #d6d0c2; }
.theme-wheel button:hover, .theme-wheel button:focus-visible { transform: scale(1.12); }
.theme-wheel button[aria-pressed="true"]::after {  /* a dot on the theme in use */
  content: ""; position: absolute; inset: 0; margin: auto; width: 3px; height: 3px; border-radius: 50%; background: #0b0b0b;
}
.theme-wheel [data-theme-set="dark"][aria-pressed="true"]::after { background: #fff; }
.theme-wheel [data-theme-set="custom"][aria-pressed="true"]::after { background: #fff; box-shadow: 0 0 0 0.5px #0b0b0b; }
.theme input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; pointer-events: none; }
@media (pointer: coarse) {  /* bigger targets for fingers */
  .theme.open .theme-wheel { transform: scale(2.7); transform-origin: 85% 25%; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle, .theme-wheel, .theme-wheel button { transition: none; }
}
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 20; min-width: 190px; padding: 6px 0;
  display: grid; background: var(--card); border: 1px solid var(--line);
}
.menu-panel a, .menu-panel button {
  display: block; width: 100%; padding: 9px 16px; border: 0; background: none; text-align: left;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--page); opacity: 1; }

/* ---------- page frame ---------- */
.page { flex: 1; width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 24px 96px; }
.flashes { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 24px; }
.flash { margin: 0 0 8px; padding: 11px 16px; background: var(--ink); color: var(--card); font-size: 12.5px; }

.hero { padding: 28px 0 4px; text-align: center; }
.display {
  margin: 0; padding-bottom: 0.1em; /* room for descenders under the tight line height */
  font: 600 clamp(44px, 12.5vw, 184px)/0.9 var(--font-display); letter-spacing: -0.045em;
}
.display-fit { font-size: clamp(40px, 9vw, 136px); overflow-wrap: anywhere; }
.display sup {
  position: relative; top: 0.18em; margin-left: 0.06em; vertical-align: top;
  font-size: clamp(12px, 0.16em, 30px); font-weight: 500; letter-spacing: 0; color: var(--dot);
}
.intro { max-width: 54ch; margin: 10px auto 0; color: var(--ink-2); font-size: 13px; text-wrap: balance; }
.intro + .intro { margin-top: 8px; }
.bio { color: var(--ink); white-space: pre-wrap; }

.bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 48px 0 12px; }
.bar h2 { margin: 0; font: inherit; }
.bar a { color: var(--ink-2); }
.bar a:hover { color: var(--ink); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card { min-width: 0; background: var(--card); }
.card-link { display: flex; flex-direction: column; aspect-ratio: 1 / 0.92; padding: 14px 16px 15px; }
.card-top, .card-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-top { font-size: 9.5px; letter-spacing: 0.06em; }
.card-top span + span { color: var(--ink-2); text-align: right; }
.card-media { position: relative; flex: 1; min-height: 0; }
.card-media img, .card-media .ph {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  max-width: 88%; max-height: 80%; box-shadow: 0 24px 34px -24px var(--shade);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card-link:hover .card-media img, .card-link:hover .card-media .ph { transform: translateY(-4px); }
/* No cover: a typographic one, the title set in the display face on a plain tile. */
.ph {
  display: flex; flex-direction: column; justify-content: space-between; width: 76%; aspect-ratio: 16 / 10;
  padding: 7% 8%; background: var(--page); color: var(--ink); container-type: inline-size;
}
.ph .icon { width: 18px; height: 18px; stroke-width: 1.3; }
.ph-title {
  font: 600 clamp(14px, 11cqi, 40px)/0.95 var(--font-display); letter-spacing: -0.04em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.card-by { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: 11px; }
.card-link:hover .card-title { text-decoration: underline; text-underline-offset: 3px; }

.empty { margin-top: 24px; padding: 80px 24px; background: var(--card); text-align: center; color: var(--ink-2); }
.empty p { margin: 0 0 22px; font-size: 14px; }
.ad { display: grid; place-items: center; gap: 8px; min-height: 96px; margin-top: var(--gap); background: var(--card); color: var(--ink-3); font-size: 9.5px; }
.ad:has(ins) { padding: 10px 0 12px; }
.ad ins { display: block; width: 100%; }
.pager + .ad, .grid + .ad:last-child { margin-top: 28px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 28px; color: var(--ink-2); }
.pager span:last-child { text-align: right; }
.pager a { color: var(--ink); }

/* ---------- explore filters ---------- */
.filters { margin: 40px 0 28px; border-top: 1px solid var(--line); }
.filter {
  display: flex; align-items: baseline; gap: 20px; padding: 12px 2px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.filter::-webkit-scrollbar { display: none; }
.filter-name { flex: none; width: 56px; color: var(--ink-3); }
.filter a { flex: none; color: var(--ink-2); white-space: nowrap; }
.filter a:hover { color: var(--ink); }
.filter a.on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.filter sup { margin-left: 2px; color: var(--ink-3); font-size: 8.5px; }

/* ---------- project page ---------- */
.crumbs { display: flex; justify-content: space-between; gap: 16px; margin: 4px 0 12px; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.stage { background: var(--card); }
.stage-app iframe { width: 100%; height: min(72vh, 860px); min-height: 420px; border: 0; background: #fff; }
.stage-image { display: grid; place-items: center; padding: clamp(20px, 5vw, 72px); }
.stage-image img { max-height: 76vh; box-shadow: 0 30px 50px -30px var(--shade); }
.stage-video video { width: 100%; max-height: 80vh; background: #000; }
.stage-audio { display: grid; justify-items: center; gap: 28px; padding: clamp(28px, 6vw, 80px) 24px; }
.stage-object { display: grid; justify-items: center; width: min(560px, 100%); }
.stage-object img, .stage-object .ph { width: 100%; box-shadow: 0 30px 50px -30px var(--shade); }
.stage-audio audio { width: min(560px, 100%); }
.stage-link { gap: 22px; margin: 0 auto; padding: clamp(28px, 6vw, 80px) 0; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.stage-link span { text-decoration: underline; text-underline-offset: 4px; }
.text-body {
  max-height: 78vh; margin: 0; overflow: auto; padding: clamp(24px, 5vw, 72px);
  font: 400 13.5px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.stage-tools { display: flex; justify-content: flex-end; gap: 22px; margin-top: 12px; color: var(--ink-2); }
.stage-tools button { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.stage-tools a:hover, .stage-tools button:hover { color: var(--ink); }

.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; margin-top: 44px; }
.title { margin: 0; font: 600 clamp(34px, 4.8vw, 68px)/0.95 var(--font-display); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.byline { margin: 16px 0 0; font-size: 13px; }
.byline a { text-decoration: underline; text-underline-offset: 3px; }
.byline span { margin-left: 6px; color: var(--ink-3); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.actions form { display: contents; }
.desc { max-width: 70ch; margin-top: 32px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 16px 0 0; color: var(--ink-2); }
.tags a:hover { color: var(--ink); text-decoration: underline; }
.prompt { margin-top: 40px; }
.prompt-head { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.prompt-head h2 { margin: 0; font: inherit; }
.prompt-head button { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.prompt-head button:hover { color: var(--ink); }
.prompt pre {
  max-height: 480px; margin: 0; overflow: auto; padding: 18px 0;
  font: 400 12.5px/1.7 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere;
}
.owner-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px; margin-top: 36px; color: var(--ink-2); }
.owner-tools a:hover, .owner-tools button:hover, .owner-tools summary:hover { color: var(--ink); }
.owner-tools button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.owner-tools form { margin: 0; }
.report { position: relative; }
.report summary { list-style: none; cursor: pointer; }
.report summary::-webkit-details-marker { display: none; }
.report-form {
  position: absolute; z-index: 5; top: calc(100% + 10px); left: 0; width: min(340px, 86vw); display: grid; gap: 10px;
  padding: 18px; background: var(--card); border: 1px solid var(--line); text-transform: none; letter-spacing: 0;
}
.report-form label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.specs dl { margin: 0; border-top: 1px solid var(--ink); }
.specs dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-3); flex: none; }
.specs dd { margin: 0; text-align: right; font-size: 12.5px; overflow-wrap: anywhere; }
.specs dd a { text-decoration: underline; text-underline-offset: 3px; }
.specs .ad { min-height: 250px; margin-top: 24px; }

/* ---------- buttons and forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--ink); color: var(--card); }
.btn-solid { background: var(--ink); color: var(--card); }
.btn-solid:hover { opacity: 0.82; }
.btn-block { width: 100%; height: 44px; }
.btn-wide { min-width: 180px; height: 44px; }
.btn[aria-pressed="true"] .icon { fill: var(--dot); stroke: var(--dot); }
.btn:disabled { opacity: 0.5; cursor: progress; }

.form-wrap { max-width: 680px; margin: 40px auto 0; }
.form-wrap.narrow { max-width: 420px; }
.form + .form { margin-top: 24px; }
.form .bar:first-of-type { margin-top: 32px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.opt { margin-left: 6px; color: var(--ink-3); }
.field input:not([type=checkbox]), .field select, .field textarea, .report-form select, .report-form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 0; background: var(--card);
  font-size: 14px; line-height: 1.4; outline: none; -webkit-appearance: none; appearance: none;
}
.field select, .report-form select {
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea, .report-form textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input[type=file] { padding: 10px; font-size: 12.5px; }
.field input[type=file]::file-selector-button {
  margin-right: 12px; padding: 7px 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 500 11px var(--font); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
}
.hint { color: var(--ink-3); font-size: 11.5px; }
.time-taken { display: flex; align-items: center; gap: 8px; }
.time-taken input { flex: 1; min-width: 0; }
.time-taken span { color: var(--ink-2); font-size: 13px; }
.tag-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-picks button {
  padding: 4px 9px; border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}
.tag-picks button:hover { border-color: var(--ink); color: var(--ink); }
.tag-picks button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--card); }
p.hint { margin: 16px 0 0; }
.help { font-size: 11.5px; color: var(--ink-3); }
.help summary { list-style: none; cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: 3px; }
.help summary::-webkit-details-marker { display: none; }
.help summary:hover { color: var(--ink); }
.help ol { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; color: var(--ink-2); }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.errors { margin-bottom: 24px; padding: 14px 16px; border: 1px solid var(--ink); background: var(--card); font-size: 13px; }
.errors ul { margin: 0; padding-left: 18px; }
.notice { margin: 0 0 24px; padding: 14px 16px; background: var(--card); font-size: 13px; }
.switch { margin: 22px 0 0; font-size: 13px; color: var(--ink-2); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- admin, rules ---------- */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 40px 0 0; }
.glance div { padding: 16px; background: var(--card); }
.glance dt { color: var(--ink-3); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.glance dd { margin: 6px 0 2px; font: 600 40px/1 var(--font-display); letter-spacing: -0.04em; }
.glance small { color: var(--ink-2); font-size: 11.5px; }
.table-wrap { overflow-x: auto; background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--ink-3); }
.table td a { text-decoration: underline; text-underline-offset: 3px; }
.table small { color: var(--ink-2); }
.table-actions { display: flex; gap: 8px; justify-content: flex-end; }
.table-actions form { margin: 0; }
.prose { max-width: 62ch; margin: 44px auto 0; font-size: 15px; line-height: 1.65; }
.prose li { margin-bottom: 10px; }
.prose .lede { margin-top: 0; font-size: 19px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.prose ul, .prose ol { padding-left: 20px; }
.prose h2 { margin: 40px 0 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.steps li::marker { font-weight: 600; }
.placeholder { padding: 0 4px; border: 1px dashed var(--ink-3); color: var(--ink-2); font-size: 0.9em; }

/* ---------- timeline ---------- */
.month { margin-top: 44px; }
.month-name { margin: 0 0 8px; font: 600 clamp(28px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -0.035em; }
.month-name sup { margin-left: 4px; color: var(--ink-3); font: 500 11px var(--font); letter-spacing: 0; vertical-align: top; }
.entries { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.entry {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px 90px 180px; gap: 16px; align-items: baseline;
  padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.entry:hover { background: var(--card); }
.entry-date, .entry-model, .entry-kind { color: var(--ink-2); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.entry-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry:hover .entry-title { text-decoration: underline; text-underline-offset: 3px; }
.entry-by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); text-align: right; }

/* ---------- upload progress ---------- */
.progress { height: 2px; margin-top: 18px; background: var(--line); }
.progress span { display: block; width: 0; height: 100%; background: var(--ink); transition: width 0.2s; }
.form-note { margin: 0 0 18px; color: var(--ink-2); font-size: 13px; }

/* ---------- footer ---------- */
.foot { margin-top: auto; padding: 44px 24px 20px; background: var(--card); font-size: 11.5px; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: 1632px; margin: 0 auto; }
.foot h2 { margin: 0 0 14px; font-size: 10px; }
.foot p { max-width: 42ch; margin: 0; color: var(--ink-2); line-height: 1.6; }
.foot-cols a { display: block; width: fit-content; color: var(--ink-2); line-height: 2; }
.foot a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; max-width: 1632px; margin: 72px auto 0; color: var(--ink-3); font-size: 9.5px; }
.foot-cols .foot-brand { margin-bottom: 16px; }
.foot-brand .logo { height: 24px; }
.foot-legal { display: flex; gap: 18px; }

/* ---------- smaller screens ---------- */
@media (min-width: 1600px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  /* Too narrow for three columns: logo and account on the first row, navigation and search below. */
  .top { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; justify-self: start; }
  .top-right { grid-column: 2; }
  .top-left { grid-column: 1 / -1; grid-row: 2; }
  .top-search { flex: 1 1 auto; }
  .logo { height: 30px; }
}
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .entry { grid-template-columns: 56px minmax(0, 1fr) 130px 140px; }
  .entry-kind { display: none; }
}
@media (max-width: 640px) {
  :root { --gap: 6px; }
  .top { gap: 14px 16px; padding: 14px 16px; }
  .top-nav, .top-left { gap: 16px; }
  .logo { height: 24px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .menu-panel .show-sm { display: block; }
  .page { padding: 0 16px 72px; }
  .flashes { padding: 0 16px; }
  .card-link { aspect-ratio: 1 / 1.1; padding: 10px 11px 11px; }
  .card-top { font-size: 8.5px; }
  .card-title { font-size: 12px; }
  .card-by { display: none; }
  .row { grid-template-columns: 1fr; }
  .stage-app iframe { height: 70vh; min-height: 380px; }
  .watch { margin-top: 32px; }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }
  .entry-kind, .entry-by { display: none; }
  .foot { padding: 32px 16px 18px; }
  .foot-base { flex-direction: column; margin-top: 44px; }
}
