/* ?Not Form — studio site.
   Ink on warm off-white, inverse in dark mode. Serif for titles and labels,
   mono for metadata. Gecko green appears in one place only: the logo eye. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/Newsreader-400-v1.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-v1.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F5F2EA;
  --ink: #111111;
  --green: #1A8A4A;

  --bg: var(--paper);
  --text: var(--ink);
  --muted: #5F5B53;          /* 6.0:1, body-size text */
  --fade-1: #46433D;         /* hero line 2 */
  --fade-2: #8C877D;         /* hero line 3: 3.2:1, large text only */
  --line: #D6D1C5;           /* hairlines */
  --line-strong: #B9B3A6;    /* frame edges */
  --nav-bg: rgba(245, 242, 234, 0.84);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--ink);
  --text: var(--paper);
  --muted: #9C978C;          /* 6.5:1 */
  --fade-1: #BDB8AD;
  --fade-2: #6E6A62;         /* 3.5:1, large text only */
  --line: #2C2B28;
  --line-strong: #46443F;
  --nav-bg: rgba(17, 17, 17, 0.84);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: var(--ink);
    --text: var(--paper);
    --muted: #9C978C;
    --fade-1: #BDB8AD;
    --fade-2: #6E6A62;
    --line: #2C2B28;
    --line-strong: #46443F;
    --nav-bg: rgba(17, 17, 17, 0.84);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
img, svg { display: block; }
::selection { background: var(--text); color: var(--bg); }

a { color: inherit; text-decoration: none; }
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s var(--ease);
}
.link:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 1.5px solid var(--text);
  outline-offset: 4px;
  border-radius: 2px;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Bracketed eyebrow: [ WORK ] */
.eyebrow::before { content: "[\00a0"; }
.eyebrow::after { content: "\00a0]"; }

/* ---------- Logo ---------- */

.gecko { overflow: visible; }
.gecko-body { fill: currentColor; }
.gecko-eye { fill: var(--green); }
.gecko-line .gecko-body {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand .gecko { width: 30px; height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.nav-links a, .theme-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .theme-toggle:hover { color: var(--text); }
.theme-toggle {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
:root:not([data-theme]) .theme-toggle { display: none; }   /* no JS, follow the system */
.t-light { display: none; }
:root[data-theme="dark"] .t-light { display: inline; }
:root[data-theme="dark"] .t-dark { display: none; }

/* ---------- Manifesto hero ---------- */

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(88px, 18vh, 200px) clamp(96px, 18vh, 200px);
}
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.hero h1 {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: clamp(64px, 9.5vw, 136px);
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { color: var(--fade-1); }
.hero h1 span:nth-child(3) { color: var(--fade-2); }
.hero-text {
  max-width: 30em;
  margin-top: clamp(36px, 5vw, 56px);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.section-head h2 { font: inherit; }

/* ---------- Gallery wall ---------- */

/* Every column gets the same inner padding, and the wall is pulled out by
   that padding so the outer frames still line up with the page gutter.
   Hairline rules sit between columns, never on the outer edges. */
.wall {
  --col-pad: clamp(16px, 2vw, 28px);
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
#work .section-head { border-bottom: 1px solid var(--line); }
.piece { padding: 28px 0 48px; }
.piece + .piece { border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .wall { grid-template-columns: repeat(2, 1fr); margin-inline: calc(-1 * var(--col-pad)); }
  .piece { padding: 28px var(--col-pad) 56px; }
  .piece + .piece { border-top: 0; }
  .piece:nth-child(n+3) { border-top: 1px solid var(--line); }
  .piece:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (min-width: 1120px) {
  .wall { grid-template-columns: repeat(3, 1fr); }
  .piece:nth-child(n+3) { border-top: 0; }
  .piece:nth-child(n+2) { border-left: 1px solid var(--line); }
}

.piece-no { color: var(--muted); margin-bottom: 20px; }

/* The artwork frame: tall portrait, off-white with an ink hairline. */
.frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: border-color 0.3s var(--ease);
}
.frame .art {
  width: 46%;
  height: auto;
  transition: transform 0.6s var(--ease);
}
.frame .art * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
a.frame:hover { border-color: var(--text); }
a.frame:hover .art { transform: scale(1.04); }

/* Museum label: title / platform · year · status / two-line excerpt. */
.label { padding-top: 22px; }
.label-title { font-size: clamp(24px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.01em; }
.label-one { margin-top: 8px; font-size: 18px; line-height: 1.4; }
.label-meta { margin-top: 14px; color: var(--muted); }
.label-text {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  min-height: 3em;            /* two lines, so rows align */
  text-wrap: pretty;
}

/* The one primary CTA per piece: a small ink pill. Green stays on the
   gecko's eye only. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-top: 22px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.cta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.cta .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
a.cta:hover { background: var(--text); color: var(--bg); }
a.cta:hover .arrow, .piece:has(a.frame:hover) .cta .arrow { transform: translateX(3px); }
@media (pointer: coarse) { .cta { min-height: 44px; } }

/* ---------- About ---------- */

.about { padding-block: clamp(96px, 16vh, 180px) 0; }
.about .section-head { border-bottom: 1px solid var(--line); }
.about-text {
  max-width: 24em;
  padding-top: clamp(28px, 4vw, 48px);
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.about .signature { margin-top: clamp(24px, 3vw, 36px); }

.box-title { font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; color: var(--text); }

/* ---------- Room (one piece) ---------- */

.room { padding-block: clamp(32px, 7vh, 80px) 0; }
.room-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .room-grid { grid-template-columns: repeat(12, 1fr); column-gap: 48px; align-items: start; }
  .room-intro { grid-column: 1 / span 6; position: sticky; top: 112px; }
  .room-work { grid-column: 8 / span 5; }
}
.crumb { color: var(--muted); }
.crumb a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.room h1 {
  margin-top: clamp(32px, 7vh, 64px);
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.room-lede { margin-top: 24px; max-width: 26em; font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); text-wrap: pretty; }
.room-sig { margin-top: 24px; font-size: 17px; }

/* Waitlist form. Posts to /api/waitlist; works without JS (messages show via :target). */
.waitlist {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: 22em;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.waitlist .box-title { font-size: 24px; }
.waitlist .cta { justify-self: start; margin-top: 8px; }
.wl-label { margin-top: 10px; color: var(--muted); }
.waitlist input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
}
.waitlist input::placeholder { color: var(--muted); opacity: 1; }
.waitlist button {
  justify-self: start;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.waitlist button:disabled { opacity: 0.55; cursor: progress; }
.wl-privacy { font-size: 16px; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-msg { display: none; color: var(--text); font-size: 18px; }
.wl-msg:target { display: block; }
.wl-live:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wl-live { color: var(--text); font-size: 18px; }
.wl-fine { color: var(--text); font-size: 16px; margin-bottom: 2px; }

.plaque { margin-top: 20px; border-top: 1px solid var(--line); }
.plaque div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.plaque dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }

.more { padding-top: clamp(120px, 16vh, 180px); }
.more ul { margin: 0; padding: 0; list-style: none; }
.more li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.015em;
}
.more li a .mono { color: var(--muted); flex-shrink: 0; }
.more li a .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.more li a:hover .arrow { transform: translateX(-4px); }

/* ---------- 404 ---------- */

.lost { min-height: 64vh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 28px; padding-block: 64px; }
.lost .gecko { width: 88px; height: auto; }
.lost .cta { margin-top: 0; }
.lost h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.025em; }

/* ---------- Footer: centred statement, giant wordmark, corners ---------- */

.site-footer { padding-top: clamp(140px, 20vh, 220px); overflow: hidden; }
.statement {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding-block: 28px clamp(64px, 10vw, 120px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.statement .gecko { width: 80px; height: auto; }
.statement p {
  max-width: 22em;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.corners {
  display: flex;
  justify-content: space-between;
  gap: 0 24px;
  color: var(--muted);
}
.corners .col { display: flex; flex-direction: column; }
.corners .col-end { align-items: flex-end; text-align: right; }
.corners a { display: inline-flex; align-items: center; min-height: 44px; }
.corners a:hover { color: var(--text); }
.corners span { display: inline-flex; align-items: center; min-height: 32px; }
.wordmark {
  display: block;
  font-size: 16.6vw;
  line-height: 0.8;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-align: center;
  padding-block: 0.04em 0.14em;
}
@media (min-width: 1446px) { .wordmark { font-size: 240px; } }

/* ---------- Motion (only when welcome) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: 0.4s; animation-timing-function: var(--ease); }

  .hero h1 span, .hero .status, .hero-text { animation: rise 1s var(--ease) both; }
  .hero h1 span:nth-child(1) { animation-delay: 0.05s; }
  .hero h1 span:nth-child(2) { animation-delay: 0.15s; }
  .hero h1 span:nth-child(3) { animation-delay: 0.25s; }
  .hero-text { animation-delay: 0.4s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }

  .reveal { opacity: 0; transform: translateY(20px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.signature { display: inline-flex; align-items: center; gap: 8px; }
.signature .gecko { width: 18px; height: auto; }
