/* ============================================================
   BASEBLOOM · Concept 05 — The Generative Engine
   Gallery black · mono seed tags · UI accent inked BY the artwork
   ============================================================ */

:root {
  --void:     #101014;
  --void-2:   #17171d;
  --chalk:    #f2ede2;
  --chalk-dim:#a7a29a;
  --chalk-fnt:#66625c;
  --accent:   #35e0a1;            /* replaced at runtime by the edition's ink */
  --hairline: rgba(242,237,226,0.14);
  --sans:     "Sora", system-ui, sans-serif;
  --mono:     "IBM Plex Mono", ui-monospace, monospace;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--void);
  color: var(--chalk-dim);
  font-family: var(--sans); font-weight: 300; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--void); }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #0a0a0d; }
::-webkit-scrollbar-thumb { background: #2c2c34; border-radius: 9px; border: 2px solid #0a0a0d; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 1.6rem;
  padding: clamp(0.9rem, 2vw, 1.4rem) clamp(1.2rem, 3.5vw, 2.6rem);
  background: linear-gradient(rgba(16,16,20,0.85), transparent);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar-brand {
  font-weight: 700; letter-spacing: 0.34em; font-size: 0.82rem; color: var(--chalk);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.bar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: background 0.8s var(--ease), box-shadow 0.8s var(--ease); }
.bar-note {
  margin-left: auto; font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--chalk-fnt);
}
.bar-cta {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--chalk); padding: 0.5rem 1.05rem;
  border: 1px solid var(--hairline); border-radius: 999px;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.bar-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- press: plate + desk ---------- */
.press {
  min-height: 100vh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(5rem, 12vh, 7rem) clamp(1.3rem, 4.5vw, 3.5rem) clamp(3rem, 8vh, 5rem);
  max-width: 96rem; margin: 0 auto;
}

.plate { position: relative; }
#art {
  display: block; width: 100%; aspect-ratio: 4 / 5;
  border-radius: 4px;
  box-shadow:
    0 40px 90px -30px rgba(0,0,0,0.85),
    0 0 0 1px var(--hairline);
  cursor: pointer;                 /* click the painting to reroll too */
}
.plate-meta {
  display: flex; align-items: baseline; gap: 0.8rem; margin-top: 0.9rem;
  font-family: var(--mono);
}
.ed-label { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--chalk-fnt); }
.ed-seed  { font-size: 0.85rem; color: var(--accent); letter-spacing: 0.08em;
  transition: color 0.8s var(--ease); }
.ed-note  { font-size: 0.68rem; font-style: italic; color: var(--chalk-fnt); margin-left: auto; }

.kicker {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.3rem;
  transition: color 0.8s var(--ease);
}
.headline {
  color: var(--chalk); font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 1.4rem;
}
.headline em { font-style: normal; color: var(--accent); transition: color 0.8s var(--ease); }
.lede { font-size: clamp(0.95rem, 1.35vw, 1.08rem); max-width: 33rem; margin-bottom: 1.8rem; }

.controls { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.8s var(--ease), color 0.4s var(--ease), border-color 0.8s var(--ease);
}
.btn-solid { background: var(--accent); color: var(--void); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn-line { background: transparent; color: var(--chalk); border: 1px solid var(--hairline); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.key {
  font-family: var(--mono); font-size: 0.62rem; padding: 0.1rem 0.4rem;
  border: 1px solid rgba(16,16,20,0.4); border-radius: 4px;
}

.swatch-row { display: flex; align-items: center; gap: 0.9rem; }
.sw-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--chalk-fnt); }
.swatches { display: flex; gap: 6px; }
.swatches span {
  width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  transition: background 0.8s var(--ease);
}

/* ---------- method ---------- */
.method {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.6rem, 4vw, 3.5rem);
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1.3rem, 4.5vw, 3.5rem);
  max-width: 96rem; margin: 0 auto;
  border-top: 1px solid var(--hairline);
}
.m-head { color: var(--chalk); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.8rem; }
.m-text { font-size: 0.92rem; max-width: 30rem; }
.m-stats { display: flex; flex-direction: column; gap: 1.3rem; }
.m-stats div { border-left: 2px solid var(--accent); padding-left: 1rem;
  transition: border-color 0.8s var(--ease); }
.stat-n { display: block; font-family: var(--mono); font-size: 1.6rem; color: var(--chalk); }
.stat-l { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--chalk-fnt); }

/* ---------- closer ---------- */
.closer {
  text-align: center;
  padding: clamp(4rem, 11vh, 7rem) clamp(1.3rem, 4.5vw, 3.5rem) clamp(4.5rem, 11vh, 7rem);
  border-top: 1px solid var(--hairline);
}
.c-head { color: var(--chalk); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em;
  margin-bottom: 1.1rem; }
.c-head em { font-style: normal; color: var(--accent); transition: color 0.8s var(--ease); }
.c-text { max-width: 32rem; margin: 0 auto 2rem; }
.c-cta { text-transform: none; letter-spacing: 0.02em; font-size: 0.95rem; }

/* ---------- foot ---------- */
.foot {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem;
  padding: 1.6rem clamp(1.3rem, 4.5vw, 3.5rem) 2.2rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--chalk-fnt);
  border-top: 1px solid var(--hairline);
}
.foot-right { margin-left: auto; color: var(--accent); transition: color 0.8s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .press { grid-template-columns: 1fr; padding-top: 5.5rem; }
  .bar-note { display: none; }
}
