/* Sky Yellow / Sun Blue */
:root {
  --night: #12141a;
  --night-2: #1b1e27;
  --paper: #f5efe1;
  --paper-2: #ebe2cd;
  --ink: #1d1d1f;
  --ink-soft: #55525a;
  --sky: #f1bf2c;     /* yellow sky */
  --sun: #2d6fdc;     /* blue sun */
  --sun-soft: #9cc0ff;
  --on-night: #f2eee6;
  --on-night-soft: #a9a6b0;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible { outline-color: var(--sky); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sky); color: var(--ink); padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-variation-settings: "SOFT" 50, "opsz" 144; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1rem; }
.night .eyebrow { color: var(--sky); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 40em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(18, 20, 26, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--on-night); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.05rem/1 var(--serif); letter-spacing: .01em; margin-right: auto; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: inherit; border-radius: 8px; padding: 8px 12px; font: 500 .9rem var(--sans); cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .95rem; color: var(--on-night-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--on-night); background: rgba(255,255,255,.07); }
.site-nav .cta a { background: var(--sky); color: var(--ink); font-weight: 600; margin-left: 6px; }
.site-nav .cta a:hover { background: #ffd24d; color: var(--ink); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; inset: 64px 0 auto 0; background: var(--night); border-bottom: 1px solid rgba(255,255,255,.08); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 2px; }
  .site-nav a { padding: 12px; font-size: 1.05rem; }
  .site-nav .cta a { margin: 8px 0 0; text-align: center; }
  .no-js .site-nav { display: block; position: static; }
}

/* ---------- surfaces ---------- */
.night { background: var(--night); color: var(--on-night); }
.night .lede, .night p { color: #d9d5cc; }
section { padding-block: clamp(56px, 9vw, 120px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 110px); }
.hero::before { /* the blue sun */
  content: ""; position: absolute; width: min(70vw, 760px); aspect-ratio: 1; border-radius: 50%;
  right: -18vw; top: -22vw; background: radial-gradient(circle, rgba(45,111,220,.42), rgba(45,111,220,0) 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-art { margin: 0; }
.hero-art a { display: block; }
.hero-art img { width: auto; max-width: 100%; max-height: min(84vh, 900px); margin-inline: auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.hero-art figcaption { margin-top: 12px; font-size: .85rem; color: var(--on-night-soft); }
.hero h1 { margin-bottom: .25em; }
.nw { white-space: nowrap; }
.hero h1 .slash { color: var(--sky); font-weight: 400; }
.subtitle { font: italic 400 clamp(1.15rem, 2.2vw, 1.5rem)/1.35 var(--serif); color: #e8e3d8; margin-bottom: 1.4em; max-width: 26em; }
.hero .lede { color: #cfcac0; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
}

.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(45,111,220,.08); border: 1px solid rgba(45,111,220,.3); color: var(--sun); font: 600 .85rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.4rem; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(45,111,220,.35); }
.night .status { background: rgba(241,191,44,.12); border-color: rgba(241,191,44,.35); color: var(--sky); }

/* ---------- signup ---------- */
.signup { margin-top: 8px; max-width: 520px; }
.signup label.lbl { display: block; font-weight: 600; margin-bottom: 8px; }
.signup .row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; padding: 13px 16px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.2); background: #fff; color: var(--ink);
}
.night .signup input[type="email"] { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--on-night); }
.night .signup input::placeholder { color: #8f8c96; }
.btn { font: 600 1rem/1 var(--sans); padding: 14px 22px; border-radius: 10px; border: 0; cursor: pointer; background: var(--sky); color: var(--ink); text-decoration: none; display: inline-block; }
.btn:hover { background: #ffd24d; }
.btn.blue { background: var(--sun); color: #fff; }
.btn.blue:hover { background: #3a7df0; }
.btn[disabled] { opacity: .6; cursor: progress; }
.signup .fine { font-size: .85rem; margin: 10px 0 0; opacity: .75; }
.signup .msg { margin: 12px 0 0; font-weight: 500; min-height: 1.4em; }
.signup .msg.ok { color: #2e8b57; }
.night .signup .msg.ok { color: #8fe0a9; }
.signup .msg.err { color: #c0392b; }
.night .signup .msg.err { color: #ff9a8a; }
.hp { position: absolute; left: -5000px; }

.signup-band { text-align: center; }
.signup-band .signup { margin-inline: auto; text-align: left; }
.signup-band h2 { max-width: 18em; margin-inline: auto; }

/* ---------- the book ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 820px) { .book-grid { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 2rem; padding: 0; list-style: none; }
.stats li { background: var(--paper-2); border-radius: var(--radius); padding: 18px 16px; }
.stats strong { display: block; font: 600 clamp(1.8rem, 4vw, 2.6rem)/1 var(--serif); color: var(--sun); }
.stats span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ---------- featured strip (home) ---------- */
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); align-items: end; margin: 2.5rem 0; }
@media (max-width: 860px) { .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .featured { grid-template-columns: 1fr; } }
.work { margin: 0; }
.work a.zoom { display: block; position: relative; cursor: zoom-in; }
.work img { width: 100%; border-radius: 3px; transition: transform .35s ease, box-shadow .35s ease; box-shadow: 0 14px 40px rgba(0,0,0,.4); background: #2a2d36; }
.work a.zoom:hover img { transform: translateY(-4px); box-shadow: 0 22px 54px rgba(0,0,0,.55); }
@media (prefers-reduced-motion: reduce) { .work img { transition: none; } .work a.zoom:hover img { transform: none; } }
.work figcaption { margin-top: 12px; font-size: .9rem; line-height: 1.45; color: var(--on-night-soft); }
.work figcaption cite { font-style: italic; color: var(--on-night); font-family: var(--serif); font-size: 1.05rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.more { color: var(--sky); font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- exhibition (art page) ---------- */
.plates { display: grid; gap: clamp(64px, 10vw, 140px); padding-block: clamp(40px, 6vw, 80px) clamp(64px, 10vw, 120px); }
.plate { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(20px, 4vw, 56px); align-items: end; margin: 0; }
.plate:nth-child(even) { grid-template-columns: 280px minmax(0, 1fr); }
.plate:nth-child(even) .plate-img { order: 2; }
.plate-img { display: flex; justify-content: center; }
.plate-img a { display: block; cursor: zoom-in; }
.plate-img img { max-height: 86vh; width: auto; box-shadow: 0 24px 70px rgba(0,0,0,.55); border-radius: 2px; background: #2a2d36; }
.plate.wide { grid-template-columns: 1fr; }
.plate.wide .plate-img { order: 0; }
.plate.wide .plate-img img { width: 100%; max-height: none; }
.plate.pair .plate-img { gap: clamp(12px, 2vw, 28px); align-items: end; }
.plate.pair .plate-img a { flex: 1 1 0; min-width: 0; }
.plate.pair .plate-img img { width: 100%; max-height: 80vh; object-fit: contain; }
.credit { font-size: .95rem; color: var(--on-night-soft); line-height: 1.55; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
.credit cite { display: block; font: italic 500 1.5rem/1.2 var(--serif); color: var(--on-night); margin-bottom: 6px; }
.credit .artist { color: var(--on-night); font-weight: 600; }
.credit p { margin: 0; color: inherit; }
@media (max-width: 860px) {
  .plate, .plate:nth-child(even) { grid-template-columns: 1fr; }
  .plate:nth-child(even) .plate-img { order: 0; }
  .plate-img img { max-height: none; width: 100%; }
  .plate.pair .plate-img { flex-direction: column; }
}
.rights { font-size: .9rem; color: var(--on-night-soft); border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }

/* ---------- voices ---------- */
.voices { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 32px; }
.voices li { padding: 16px 0; border-top: 1px solid rgba(0,0,0,.12); }
.voices strong { display: block; font: 600 1.2rem/1.25 var(--serif); }
.voices span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.links { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.links a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid rgba(0,0,0,.18); text-decoration: none; font-weight: 500; }
.links a:hover { border-color: var(--sun); color: var(--sun); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 2rem; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 30px rgba(0,0,0,.05); }
.card h2, .card h3 { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-soft); font-size: .9rem; padding-block: 48px; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }
.latvala { font: italic 600 1rem var(--serif); color: var(--sky); letter-spacing: .04em; }

/* ---------- lightbox ---------- */
dialog.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,11,14,.96); color: var(--on-night); }
dialog.lightbox::backdrop { background: rgba(10,11,14,.9); }
.lb-inner { display: grid; grid-template-rows: 1fr auto; height: 100%; padding: 56px 16px 16px; }
.lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-cap { text-align: center; padding: 14px 56px 4px; font-size: .95rem; color: var(--on-night-soft); }
.lb-cap cite { font: italic 500 1.2rem var(--serif); color: var(--on-night); }
.lb-btn { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lb-cap { padding-inline: 60px; } }
