/* Tokenized Picasso: token system.

   The room is a private view in an auction house's green room, the deep
   viridian walls museums reserve for old masters. Every color earns its place:
   - viridian scale: the wall color. It is Robinhood green's own hue family,
     darkened to velvet, so the brand accent and the room share one bloodline
     instead of clashing.
   - gilt: the frame and medallion metal from the banner painting. Frames,
     rules, plaques, ornaments; the museum gilds what it hangs.
   - bone: primed canvas and wall-label paper from the banner. All reading text.
   - green: Robinhood green, the one luminous thing in the room. Reserved for
     the act of tokenizing: acquire, the ticker, copied. Never decoration.
   - oxblood: the red of the cubist canvases in the banner; one small stamp.
   Type: Bodoni Moda is the auction-catalogue Didone (the quote, headings,
   plaque names); body is the system grotesque that reads like the Robinhood
   app; the system mono carries contracts, lot numbers, and small labels. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --wall-950: #07180f;
  --wall-900: #0c2318;
  --wall-800: #123024;
  --wall-700: #1a4030;

  --gilt: #c9a35c;
  --gilt-bright: #ecd39a;
  --gilt-dim: #7a6132;

  --bone: #f2ecdc;
  --bone-dim: #c9c0a6;
  --bone-faint: #97916f;

  --green: #00c805;
  --green-bright: #3ae153;
  --ink: #06130b;

  --oxblood-lit: #d97e52;

  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --edge: 1px solid rgba(201, 163, 92, 0.26);
  --wall-max: 1060px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--wall-950);
  background-image:
    radial-gradient(60% 100% at 50% 0%, rgba(236, 211, 154, 0.10) 0%, rgba(236, 211, 154, 0) 70%),
    linear-gradient(180deg, var(--wall-800) 0%, var(--wall-900) 55%, var(--wall-950) 100%);
  background-repeat: no-repeat;
  background-size: 100% 900px, 100% 100%;
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Plaster grain on the wall; keeps the flat gradient from reading as vinyl. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

header, main, footer { position: relative; z-index: 1; }

a { color: var(--gilt-bright); }

::selection { background: var(--green); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  z-index: 30;
}
.skip:focus { left: 0.6rem; top: 0.6rem; }

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.4rem);
  border-bottom: var(--edge);
  background: rgba(12, 35, 24, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.wordmark { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }

.seal img {
  display: block;
  border-radius: 50%;
  border: 1px solid var(--gilt);
  box-shadow: 0 0 0 3px rgba(7, 24, 15, 0.9), 0 4px 12px rgba(0, 0, 0, 0.55);
}

.wordmark-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }

.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.14rem;
  letter-spacing: 0.01em;
  color: var(--bone);
  white-space: nowrap;
}

.wordmark-ticker {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--green-bright);
  text-transform: uppercase;
}

.top-links { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--bone);
  background: transparent;
  border: var(--edge);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--gilt); color: var(--gilt-bright); }
.chip svg { width: 0.95em; height: 0.95em; display: block; }
.chip.copied { border-color: var(--green); color: var(--green-bright); }

.chip-buy {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
  font-weight: 700;
}
.chip-buy:hover {
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: var(--ink);
}

/* ---------- the lot: centered gallery wall ---------- */

main {
  max-width: var(--wall-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.4rem);
}

.lot { text-align: center; }

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: clamp(2.6rem, 6vw, 4.2rem) 0 1.4rem;
}

.lot-stamp {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood-lit);
  border: 1px solid rgba(217, 126, 82, 0.55);
  border-radius: 2px;
  padding: 0.28rem 0.6rem;
  transform: rotate(-1.6deg);
}

.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.eyebrow-text .dot { color: var(--gilt); }

.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.1rem, 5.6vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--bone);
  max-width: 21ch;
  margin: 0 auto clamp(2.2rem, 5vw, 3.4rem);
  text-wrap: balance;
}
.quote .qm { color: var(--gilt); }

/* ---------- the work: spotlit frame ---------- */

.work { position: relative; margin: 0 0 clamp(2rem, 4.5vw, 2.8rem); }

.spotlight {
  position: absolute;
  left: 50%;
  top: -12%;
  transform: translateX(-50%);
  width: 105%;
  height: 128%;
  background: radial-gradient(48% 34% at 50% 34%,
    rgba(255, 226, 166, 0.13) 0%,
    rgba(255, 226, 166, 0.05) 45%,
    rgba(255, 226, 166, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 20px);
  border-radius: 4px;
  background:
    linear-gradient(150deg, #ecd39a 0%, #a4803e 26%, #dcb76c 48%, #7a5f2c 74%, #caa25a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 214, 0.55),
    inset 0 0 0 4px rgba(66, 49, 18, 0.30),
    0 44px 90px -32px rgba(0, 0, 0, 0.8),
    0 18px 36px -18px rgba(0, 0, 0, 0.65);
}

/* The brass picture light resting on the frame, source of the spotlight. */
.lamp {
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
  width: 118px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0dca6 0%, #b8934a 55%, #6e5327 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 220, 0.8),
    0 2px 5px rgba(0, 0, 0, 0.5),
    0 26px 46px -6px rgba(255, 226, 166, 0.28);
}

.mat {
  padding: clamp(10px, 2.4vw, 26px);
  background: linear-gradient(180deg, #f3ecda 0%, #e9e0c8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(122, 97, 50, 0.35),
    inset 0 3px 9px rgba(60, 44, 18, 0.24);
}

.sight { position: relative; line-height: 0; }

.sight::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(50, 38, 16, 0.6),
    inset 0 2px 10px rgba(0, 0, 0, 0.45);
}

.clip { display: block; width: 100%; height: auto; }

.sound {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--bone);
  background: rgba(7, 24, 15, 0.72);
  border: 1px solid rgba(242, 236, 220, 0.35);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: border-color 0.15s, color 0.15s;
}
.sound:hover { border-color: var(--green-bright); color: var(--green-bright); }
.sound .sound-off { display: none; }
.sound[aria-pressed="true"] { border-color: var(--green); color: var(--green-bright); }
.sound[aria-pressed="true"] .sound-on { display: none; }
.sound[aria-pressed="true"] .sound-off { display: inline; }

/* engraved brass plaque beneath the frame */
.under { margin-top: 1.7rem; }

.plaque {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  width: fit-content;
  margin: 0 auto;
  padding: 0.75rem 1.9rem;
  border-radius: 3px;
  background: linear-gradient(180deg, #d7b269 0%, #a37f3d 62%, #8a6a33 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 214, 0.65),
    inset 0 -2px 4px rgba(60, 44, 18, 0.4),
    0 8px 18px -8px rgba(0, 0, 0, 0.6);
  color: #241a08;
  text-shadow: 0 1px 0 rgba(255, 246, 214, 0.4);
}

/* the two mounting screws */
.plaque::before,
.plaque::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 30%, #f3e3b4, #7a5f2c 70%);
  box-shadow: inset 0 0 1px rgba(40, 30, 10, 0.8), 0 1px 1px rgba(255, 246, 214, 0.4);
}
.plaque::before { left: 0.6rem; }
.plaque::after { right: 0.6rem; }

.plaque-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plaque-role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3a2c12;
}

.watch {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--bone-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--gilt-dim);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.watch:hover { color: var(--gilt-bright); border-color: var(--gilt); }

/* ---------- buttons ---------- */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.btn {
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.78rem 1.7rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 30px -12px rgba(0, 200, 5, 0.55);
}
.btn-primary:hover {
  background: var(--green-bright);
  border-color: var(--green-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 16px 34px -12px rgba(58, 225, 83, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--gilt-dim);
}
.btn-ghost:hover { border-color: var(--gilt); color: var(--gilt-bright); }

.ca-mono { font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.02em; }
.ca-action { font-family: var(--font-mono); font-size: 0.7rem; color: var(--bone-faint); }
.btn-ghost.copied { border-color: var(--green); color: var(--green-bright); }
.btn-ghost.copied .ca-action { color: var(--green-bright); }

/* ---------- provenance ---------- */

.provenance { margin-top: clamp(4rem, 9vw, 6.5rem); }

.section-h {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gilt-bright);
}
.section-h::before,
.section-h::after {
  content: "";
  flex: 1;
  border-top: var(--edge);
}

.prov-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}

.prov-text p {
  margin: 0 0 1.15rem;
  color: var(--bone-dim);
  font-size: 1.04rem;
  max-width: 46ch;
}
.prov-text p:last-child { margin-bottom: 0; }
.prov-text p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.8;
  float: left;
  padding: 0.12rem 0.55rem 0 0;
  color: var(--gilt-bright);
}

.plate {
  margin: 0;
  padding: clamp(8px, 1.4vw, 14px);
  border-radius: 3px;
  background: linear-gradient(150deg, #ecd39a, #7a5f2c 38%, #dcb76c 64%, #6e5327);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 214, 0.4),
    0 30px 60px -30px rgba(0, 0, 0, 0.85);
}
.plate img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(40, 30, 12, 0.65);
}
.plate figcaption {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #241a08;
  text-align: center;
  padding-top: 0.55rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 246, 214, 0.35);
}

/* ---------- the sale ---------- */

.sale {
  margin-top: clamp(4rem, 9vw, 6.5rem);
  text-align: center;
}

.orn {
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 auto 1.8rem;
  background: var(--gilt);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(201, 163, 92, 0.18);
}

.authenticity {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  line-height: 1.35;
  color: var(--bone);
  max-width: 34ch;
  margin: 0 auto 2rem;
  text-wrap: balance;
}

.sale-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.ca-full {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(7, 24, 15, 0.55);
  border: var(--edge);
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  cursor: pointer;
  color: var(--bone);
  transition: border-color 0.15s;
}
.ca-full:hover { border-color: var(--gilt); }
.ca-full code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gilt-bright);
  word-break: break-all;
}
.ca-full-action {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.ca-full.copied { border-color: var(--green); }
.ca-full.copied .ca-full-action { color: var(--green-bright); }

.sale-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin: 1.4rem 0 0;
}

/* ---------- footer ---------- */

.footer {
  max-width: var(--wall-max);
  margin: clamp(4rem, 9vw, 6rem) auto 0;
  padding: 2rem clamp(1rem, 5vw, 2.4rem) 3rem;
  border-top: var(--edge);
}
.footer p {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  line-height: 1.7;
  color: var(--bone-faint);
  margin: 0 0 0.9rem;
  max-width: 80ch;
}
.footer .disclaimer { color: var(--bone-dim); }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .prov-grid { grid-template-columns: 1fr; }
  .plate { order: -1; }
  .wordmark-name { font-size: 1rem; }
  .lamp { width: 88px; }
}

@media (max-width: 640px) {
  .top { flex-wrap: wrap; row-gap: 0.55rem; }
  .top-links { margin-left: auto; }
}

@media (max-width: 460px) {
  .hero-actions, .sale-actions { flex-direction: column; align-items: stretch; }
  .btn, .ca-full { justify-content: center; }
}

/* The room is still. Only the picture moves. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
