/* ==========================================================================
   Rendi
   Matches the Flight of Dreamers flyers: a thin high-contrast serif for titles, widely
   spaced Lato capitals for details, soft greys on white, and the gold from the paint.
   ========================================================================== */


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

:root {
  --white: #ffffff;
  --fog: #f6f6f6;
  --silver: #dcdddf;
  --graphite: #444444;
  --slate: #666666;
  --mute: #a6a6a6;
  --line: #8a8a8a;
  --gold: #b28447;
  --danger: #8e2a3d;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --caps: .2em;

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --max: 1360px;
  --head: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 1rem); }
body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--white); }
.on-silver :focus-visible { outline-color: var(--graphite); }

.skip { position: absolute; left: -999px; top: 0; background: var(--graphite); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 5rem); text-transform: uppercase; letter-spacing: .02em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.2; }
p { margin: 0 0 1.1em; max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 34em; color: var(--slate); }
.statement { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.25; font-weight: 400; max-width: 22em; margin: 0; }
.small { font-size: .9375rem; color: var(--slate); }
.on-silver .small { color: var(--graphite); }
.quiet { color: var(--slate); }
.date-line, .caps, .field label, .field .label, dl.facts dt, dl.credits dt, .toggle button, .admin th {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: var(--caps);
  font-size: .78rem;
  font-weight: 700;
}
.date-line { color: var(--slate); margin: 0 0 1.25rem; }

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--slate);
  letter-spacing: .5em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: -.5em;
  line-height: 1;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--head);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-inline: var(--gutter);
  border-bottom: 1px solid #ececec;
}
.site-header .wordmark { font-size: 1.15rem; }
.nav-main { display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); margin-left: auto; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--slate); }
.nav-main a { text-decoration: none; padding: .5rem 0; border-bottom: 1px solid transparent; }
.nav-main a:hover { color: var(--graphite); border-bottom-color: var(--graphite); }
.nav-main a[aria-current="page"] { color: var(--graphite); border-bottom-color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; font: inherit; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: inherit; padding: .75rem 0 .75rem .5rem; cursor: pointer; }

@media (max-width: 1040px) {
  .nav-main { display: none; }
  .site-header { gap: 1rem; }
  .site-header .btn { margin-left: auto; padding: .8rem .9rem; font-size: .62rem; letter-spacing: .1em; white-space: nowrap; }
  .menu-btn { display: block; }
  .nav-open .mobile-nav { display: flex; }
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--head) 0 0 0;
  z-index: 49;
  background: var(--silver);
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  padding: 2rem var(--gutter) 5rem;
}
.mobile-nav a { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 8vw, 2.6rem); text-decoration: none; line-height: 1.35; letter-spacing: .02em; text-transform: uppercase; }

/* ---- Buttons and links ---- */
.btn {
  display: inline-block;
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--caps);
  text-decoration: none;
  text-align: center;
  padding: 1.1rem 2rem;
  border: 1px solid var(--graphite);
  background: var(--graphite);
  color: var(--white);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn-quiet { background: transparent; color: var(--graphite); }
.btn-quiet:hover { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: var(--caps); text-decoration: none; border-bottom: 1px solid var(--mute); padding-bottom: .3em; }
.link:hover { border-bottom-color: var(--gold); color: var(--graphite); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ---- Sections ---- */
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.on-silver { background: var(--silver); }
.on-fog { background: var(--fog); }
.stack > * + * { margin-top: 1.4rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split.top { align-items: start; }
.split.wide-l { grid-template-columns: 7fr 5fr; }
.split.wide-r { grid-template-columns: 5fr 7fr; }
@media (max-width: 880px) { .split, .split.wide-l, .split.wide-r { grid-template-columns: 1fr; } }

.shadowed { box-shadow: 0 30px 50px -34px rgba(0, 0, 0, .3); }

.page-top { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.page-top h1 { max-width: 14ch; }
.page-top .lead { margin-top: 1.75rem; }

/* ---- Hero: the flyer layout. The painting runs off the left edge, the details sit on white. ---- */
.hero {
  background: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: calc(100svh - var(--head));
  overflow: hidden;
}
.hero-art { order: -1; position: relative; background: var(--silver); min-height: 26rem; --mx: 50%; --my: 35%; }
.hero-art .frame { position: absolute; inset: 0; overflow: hidden; }
.hero-art picture { display: block; height: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero-art .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 38% at var(--mx) var(--my), rgba(255, 244, 214, .8), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-art.lit .frame::after { opacity: 1; }
.hero-copy { align-self: center; max-width: 36rem; width: 100%; padding: clamp(2.5rem, 5vw, 5rem) var(--gutter); }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2.25rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art .frame { animation: open 1.5s cubic-bezier(.2, .7, .1, 1) both; }
}
@keyframes open { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { min-height: 0; aspect-ratio: 4 / 4.6; }
  .hero-art img { transform: scale(1.12); }
  .hero-copy { max-width: 40rem; margin-inline: auto; padding-inline: var(--gutter); }
}

/* ---- Waitlist form ---- */
.wl-form { max-width: 34rem; }
.wl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: end; }
@media (max-width: 560px) { .wl-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label, .field .label { display: block; color: var(--slate); margin-bottom: .55rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .85rem 1rem;
  appearance: none;
  -webkit-appearance: none;
}
.on-fog .field input, .on-fog .field select, .on-fog .field textarea, .panel .field input, .panel .field select, .panel .field textarea { background: var(--fog); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(178, 132, 71, .28); }
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.choices { display: flex; gap: .75rem; flex-wrap: wrap; }
.choices label { position: relative; margin: 0; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--graphite); }
.choices input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.choices span { display: block; padding: .72rem 1.2rem; border: 1px solid var(--line); background: transparent; transition: border-color .2s ease; }
.choices label:hover span { border-color: var(--graphite); }
.choices input:checked + span { background: var(--graphite); color: var(--white); }
.choices input:focus-visible + span { outline: 3px solid var(--graphite); outline-offset: 3px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9375rem; margin: 1.25rem 0 1.5rem; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--gold); }
.hp { position: absolute; left: -9999px; }
.form-error { color: var(--danger); font-weight: 600; margin: 0 0 1rem; }
.on-silver .form-error { color: #6e1426; }
.wl-form .btn { width: 100%; }
.wl-note { font-size: .9375rem; margin: .9rem 0 0; }
.wl-done h2, .wl-done h3 { margin-bottom: 1rem; }
.wl-done:focus { outline: none; }
.panel { background: var(--white); padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid #ececec; }

/* ---- Story, artist, works ---- */
.band img { width: 100%; height: clamp(300px, 46vw, 640px); object-fit: cover; }
.band .small { padding: .9rem var(--gutter) 0; max-width: none; }

.portrait img, .portrait .placeholder { width: 100%; }
.placeholder { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 1rem; background: var(--silver); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.pair > :nth-child(2) { margin-top: clamp(2rem, 8vw, 7rem); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } .pair > :nth-child(2) { margin-top: 0; } }
.pair figure { margin: 0; }
.pair figcaption { margin-top: 1.1rem; }
.pair figcaption h3 { margin-bottom: .35rem; }

.work { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.work.flip { grid-template-columns: 4fr 7fr; }
.work.flip .work-art { order: 2; }
.work-info { position: sticky; top: calc(var(--head) + 2rem); }
.work-info h2 { margin-bottom: 1.5rem; }
@media (max-width: 880px) { .work, .work.flip { grid-template-columns: 1fr; } .work.flip .work-art { order: 0; } .work-info { position: static; } }
.work-art img { width: 100%; }

dl.facts { margin: 0 0 2rem; display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr; gap: .9rem 1.5rem; }
dl.facts dt { color: var(--slate); padding-top: .3em; }
dl.facts dd { margin: 0; }
.on-silver dl.facts dt { color: var(--graphite); }

ul.perks { list-style: none; padding: 0; margin: 0; }
ul.perks li { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.25; padding: 1rem 0; }
ul.perks li + li { border-top: 1px solid var(--silver); }

/* ---- Collector card ---- */
.card-stage { max-width: 760px; margin-inline: auto; }
.card-view { position: relative; aspect-ratio: 85.6 / 54; background: var(--fog); }
.card-view picture { position: absolute; inset: 0; }
.card-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; }
.card-view img[data-side="back"] { opacity: 0; }
.card-view.show-back img[data-side="back"] { opacity: 1; }
.card-view.show-back img[data-side="front"] { opacity: 0; }
.toggle { display: flex; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
.toggle button { padding: .85rem 1.5rem; border: 1px solid var(--graphite); background: transparent; color: var(--graphite); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--graphite); color: var(--white); }

.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: end; }
.triptych figure { margin: 0; }
.triptych img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--fog); }
.triptych img.contain { object-fit: contain; background: #d6d8dc; }
.triptych figcaption { margin-top: .9rem; }
.triptych strong { display: block; font-weight: 600; }
@media (max-width: 760px) { .triptych { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* ---- Artwork story page ---- */
.story-page { max-width: 640px; margin-inline: auto; padding: 3rem var(--gutter) 6rem; }
.story-page .art { margin: 2rem 0 2.5rem; }
.story-page h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.story-page h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 3rem 0 1rem; }

/* ---- Lightbox ---- */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
.lightbox[open] { display: grid; place-items: center; width: 100vw; height: 100vh; height: 100dvh; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(40, 40, 40, .96); }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; object-fit: contain; }
.lightbox-close { position: fixed; top: 1rem; right: var(--gutter); background: none; border: 0; color: var(--white); font: inherit; font-weight: 600; padding: .75rem; cursor: pointer; }
.lightbox :focus-visible { outline-color: var(--white); }

/* ---- Prose, notices ---- */
.prose { max-width: 62ch; }
.prose h2 { font-size: 1.7rem; margin: 2.5rem 0 .9rem; }
mark.todo { background: #ffe58a; color: var(--graphite); padding: 0 .25em; outline: 2px dashed #b88a00; outline-offset: 1px; }
.notice { color: var(--danger); font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: var(--white); color: var(--graphite); border-top: 1px solid var(--silver); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.site-footer .wordmark { font-size: clamp(1.6rem, 3.6vw, 2.4rem); display: inline-block; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; align-items: start; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { text-decoration: none; color: var(--slate); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
.site-footer a.wordmark { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: .5em; }
.site-footer a:hover { color: var(--graphite); border-bottom: 1px solid var(--gold); }
.site-footer .tag { color: var(--slate); margin-top: 1.1rem; }
.site-footer .legal { margin: 3.5rem 0 0; font-size: .875rem; color: var(--slate); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---- Admin ---- */
.admin { padding-block: 2.5rem 6rem; }
.admin h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.admin .bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0; }
.admin .bar .btn { padding: .65rem 1.1rem; font-size: .9375rem; }
.admin .tabs button { font: inherit; font-size: .78rem; font-weight: 700; padding: .6rem 1.1rem; border: 1px solid var(--graphite); background: transparent; cursor: pointer; }
.admin .tabs button[aria-pressed="true"] { background: var(--graphite); color: var(--white); }
.admin .totals { display: flex; gap: 2rem; flex-wrap: wrap; margin: 1rem 0 0; }
.admin .totals strong { font-family: var(--display); font-size: 2rem; display: block; line-height: 1.1; }
.table-wrap { overflow-x: auto; }
.admin table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.admin th, .admin td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--silver); vertical-align: top; }
.admin th { background: var(--fog); white-space: nowrap; }
.admin .pill { display: inline-block; padding: .1rem .6rem; font-weight: 600; font-size: .8125rem; background: var(--fog); }
.admin .pill.approved { background: var(--graphite); color: var(--white); }
.admin .pill.declined { background: #f1d4da; }
.admin .msg { white-space: pre-wrap; max-width: 36rem; }
.admin-login { max-width: 26rem; }
@media print {
  .site-header, .site-footer, .admin .bar, .admin .tabs, .admin-login, .no-print { display: none !important; }
  .admin { padding: 0; }
  body { font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* door list: only visible when printing it */
#door { display: none; }
@media print {
  body.door-print #list-view { display: none !important; }
  body.door-print #door { display: block; }
  #door table { font-size: 12pt; }
  #door td.box { width: 2.5rem; }
}

/* ---- Additions: tagline, credits, closing band ---- */
.tagline { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; margin: 0 0 .9rem; }
dl.credits { margin: 0; display: grid; grid-template-columns: minmax(10rem, 1fr) 1.4fr; gap: .9rem 2rem; }
dl.credits dt { padding-top: .3em; }
dl.credits dd { margin: 0; color: var(--slate); }
@media (max-width: 640px) { dl.credits { grid-template-columns: 1fr; gap: 0; } dl.credits dd { margin-bottom: .9rem; } }

.cta { position: relative; overflow: hidden; }
.cta-copy { position: relative; z-index: 1; }
.cta-art { position: absolute; right: -3%; bottom: -8%; width: min(52%, 700px); pointer-events: none; }
.cta-art img { width: 100%; }
@media (max-width: 880px) { .cta-art { width: 78%; opacity: .45; right: -12%; } }

/* ---- Video, blended card render, metal strip ---- */
.video-frame video { display: block; width: 100%; aspect-ratio: 960 / 412; object-fit: cover; background: var(--fog); }
img.blend { mix-blend-mode: multiply; }
.strip img { width: 100%; height: clamp(120px, 20vw, 260px); object-fit: cover; }

@media (max-width: 420px) {
  .site-header { gap: .6rem; }
  .site-header .wordmark { font-size: 1rem; letter-spacing: .32em; margin-right: -.32em; }
  .site-header .btn { padding: .8rem .7rem; font-size: .58rem; letter-spacing: .08em; }
  .menu-btn { padding-left: 0; font-size: .66rem; letter-spacing: .12em; }
}
