/* ============================================================
   Pradyumna — fine art editions
   Palette is deliberately achromatic. The only colour anywhere
   on this site comes from the photographs on the commissions
   pages. Do not introduce an accent hue.
   ============================================================ */

:root {
  --paper:      #faf9f7;   /* museum white, barely warm, not cream */
  --paper-edge: #f2f0ec;
  --ink:        #1a1a18;
  --graphite:   #6b6b66;
  --rule:       #e2e0db;
  --black:      #000000;

  --measure: 62ch;

  --gut: clamp(1rem, 2.2vw, 2rem);
  --band: clamp(4.5rem, 11vh, 9rem);

  --f-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --f-text: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: clamp(0.9rem, 0.55vw + 0.78rem, 1rem);
  font-weight: 350;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- shell ---------- */

.shell {
  width: min(1500px, 100% - (var(--gut) * 2));
  margin-inline: auto;
}

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
}

.nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.nav a {
  text-decoration: none;
  color: var(--graphite);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

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

.landing {
  margin: 0;
  background: var(--black);
  height: 100svh;
  min-height: 30rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(3.5rem, 7vh, 6rem) var(--gut) clamp(3rem, 6vh, 5rem);
  position: relative;
}

.landing img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;          /* the frame is never cropped */
  opacity: 0;
  animation: plate-in 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}

.landing .wordmark-invert {
  position: absolute;
  top: clamp(1.4rem, 3.5vh, 2.4rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #f2f0ec;
  text-decoration: none;
  opacity: 0;
  animation: plate-in 1.2s ease 0.7s forwards;
}

.landing .enter {
  position: absolute;
  bottom: clamp(1.2rem, 3vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(242, 240, 236, 0.55);
  text-decoration: none;
  opacity: 0;
  animation: plate-in 1.2s ease 1.1s forwards;
}
.landing .enter:hover { color: #f2f0ec; }

.landing .enter.is-spent {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  animation: none;
}

@keyframes plate-in { to { opacity: 1; } }

.hero-cap {
  font-size: 0.74rem;
  color: var(--graphite);
  letter-spacing: 0.05em;
  margin: 0.85rem 0 0;
}

/* ---------- title block ---------- */

.title-block {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
  padding: var(--band) 0 calc(var(--band) * 0.7);
}

.title-block h1 {
  grid-column: 1 / 8;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
}

.title-block h1 em {
  font-style: italic;
  display: block;
}

.title-block h1 { grid-column: 1 / 7; }

.title-block .series {
  grid-column: 1 / 7;
  grid-row: 1;
  align-self: start;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--graphite);
  margin: 0 0 0.6rem;
}
.title-block:has(.series) h1 { grid-row: 1; padding-top: 2rem; }

.title-block .standfirst {
  grid-column: 8 / 13;
  align-self: end;
  max-width: 36ch;
  color: var(--graphite);
  margin: 0;
}

.title-block .spec {
  grid-column: 8 / 13;
  align-self: end;
  max-width: 34ch;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--graphite);
  margin: 0;
}

@media (max-width: 820px) {
  .title-block h1 { grid-column: 1 / -1; }
  .title-block .spec,
  .title-block .standfirst { grid-column: 1 / -1; margin-top: 1.5rem; }
}

/* ---------- plates: asymmetric grid ---------- */

.plates { padding-bottom: var(--band); }

.plate {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
  margin-bottom: clamp(4rem, 9vw, 8.5rem);
  align-items: end;
}

/* master placements — deliberately uneven */
.plate--a .master { grid-column: 1 / 8; }
.plate--a .study  { grid-column: 9 / 13; }

.plate--b .master { grid-column: 7 / 13; }
.plate--b .study  { grid-column: 1 / 6; grid-row: 1; }

/* A landscape study at four columns has almost no height and reads as a
   thumbnail. Wide studies take six or seven columns instead. */
.plate--a .study.wide { grid-column: 7 / 13; }
.plate--b .study.wide { grid-column: 1 / 7; }

.plate--wide   .master { grid-column: 2 / 12; }
/* Opening plate. Wider than the pairs that follow so the chapter opens with
   authority, but hard against the left margin the rest of the grid answers to. */
.plate--left   .master { grid-column: 1 / 9; }
.plate--right  .master { grid-column: 5 / 11; }   /* was 7/13: half the page sat dead */
.plate--inset  .master { grid-column: 2 / 12; }   /* closing plate, widened */

figure { margin: 0; }

.caption {
  padding-top: 0.8rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--graphite);
  letter-spacing: 0.02em;
}

.caption .name {
  display: block;
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink);
  letter-spacing: 0;
}

.caption .terms { display: block; }

.status {
  display: none;               /* switch on per frame once a print sells */
  margin-top: 0.15rem;
  color: var(--ink);
}
.status[data-remaining] { display: block; }

.plate figure button.zoom {
  display: block; width: 100%; padding: 0; margin: 0;
  border: 0; background: none; cursor: zoom-in;
  font: inherit; color: inherit;
}

@media (max-width: 900px) {
  .plate { display: block; margin-bottom: 3.5rem; }
  .plate .study { margin-top: 1.75rem; width: 62%; }
  .plate .study.wide { width: 100%; }
  .plate--b .study { margin-left: auto; }
  .plate--b .study.wide { margin-left: 0; }
}

/* ---------- prose sections ---------- */

.band { padding: var(--band) 0; border-top: 1px solid var(--rule); }

.band-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
}

.band h2 {
  grid-column: 1 / 4;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.1;
  margin: 0;
}

.band .body { grid-column: 5 / 11; max-width: var(--measure); }
.band .body > p:first-child { margin-top: 0; }
.band .body p { margin: 0 0 1.1rem; }

.band .aside { grid-column: 11 / 13; font-size: 0.8rem; color: var(--graphite); }

@media (max-width: 900px) {
  .band h2, .band .body, .band .aside { grid-column: 1 / -1; }
  .band h2 { margin-bottom: 1.25rem; }
  .band .aside { margin-top: 2rem; }
}

/* editions note — plain prose, deliberately not an FAQ accordion */
.terms-list { margin: 0; }
.terms-list div { display: flex; gap: 1.5rem; padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.terms-list div:last-child { border-bottom: 1px solid var(--rule); }
.terms-list dt { flex: 0 0 11rem; color: var(--graphite); font-size: 0.82rem; }
.terms-list dd { margin: 0; flex: 1; }
@media (max-width: 620px) {
  .terms-list div { flex-direction: column; gap: 0.2rem; }
  .terms-list dt { flex: none; }
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
  align-items: start;
}
.about-grid figure { grid-column: 1 / 5; }
.about-grid .body { grid-column: 6 / 12; max-width: var(--measure); }
.about-grid .body p:first-child { margin-top: 0; }
.about-grid .body p { margin: 0 0 1.15rem; }
.about-grid .body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .about-grid figure, .about-grid .body { grid-column: 1 / -1; }
  .about-grid .body { margin-top: 2rem; }
}

/* ---------- enquiry form ---------- */

.enquiry { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); }
.enquiry .intro { grid-column: 1 / 5; }
.enquiry form { grid-column: 6 / 12; }

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--graphite);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.55rem 0;
  border-radius: 0;
  transition: border-color 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field textarea { min-height: 6.5rem; resize: vertical; }

button.send {
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.9rem 2.4rem;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
button.send:hover { background: transparent; color: var(--ink); }
button.send[disabled] { opacity: 0.5; cursor: default; }

.form-note { margin-top: 1rem; font-size: 0.85rem; min-height: 1.4rem; }
.form-note[data-state="error"] { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .enquiry .intro, .enquiry form { grid-column: 1 / -1; }
  .enquiry form { margin-top: 2rem; }
}

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

.foot {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 4rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
  font-size: 0.8rem;
  color: var(--graphite);
}
.foot .mark { grid-column: 1 / 4; font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); }
.foot .links { grid-column: 5 / 9; display: flex; flex-direction: column; gap: 0.45rem; }
.foot .links a { text-decoration: none; }
.foot .links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .colophon { grid-column: 10 / 13; }
.foot p { margin: 0 0 0.45rem; }
@media (max-width: 820px) {
  .foot > * { grid-column: 1 / -1 !important; }
  .foot .links { margin: 1.5rem 0; }
}

/* ---------- commissions strands ---------- */

.strand { padding: var(--band) 0; border-top: 1px solid var(--rule); }

.strand-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.strand-head h2 {
  grid-column: 1 / 6;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.05;
  margin: 0;
}
.strand-head .venues { grid-column: 1 / 6; color: var(--graphite); font-size: 0.85rem; margin: 0.5rem 0 0; }
.strand-head .body { grid-column: 7 / 12; max-width: var(--measure); }
.strand-head .body p { margin: 0 0 1rem; }
@media (max-width: 900px) {
  .strand-head h2, .strand-head .venues, .strand-head .body { grid-column: 1 / -1; }
  .strand-head .body { margin-top: 1.5rem; }
}

.seq { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); }
.seq figure { grid-column: span 6; }
.seq figure.tall { grid-column: 1 / 7; }
.seq figure.full { grid-column: 2 / 12; }
.seq figure.offset-r { grid-column: 7 / 13; }
.seq figure.narrow { grid-column: 3 / 8; }
.seq figure.narrow-r { grid-column: 8 / 13; }

/* A landscape frame beside a portrait one sits short and top-aligned, leaving a
   gap beneath it. Match the neighbour's width and centre it on their shared axis. */
.seq figure.mid { grid-column: 7 / 13; align-self: center; }
@media (max-width: 820px) {
  .seq figure, .seq figure.tall, .seq figure.full, .seq figure.mid,
  .seq figure.offset-r, .seq figure.narrow, .seq figure.narrow-r { grid-column: 1 / -1; }
  .seq figure.mid { align-self: auto; margin-top: 1.5rem; }
}

.readon {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 8, 8, 0.96);
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3.5rem);
}
.lightbox[open] { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; object-fit: contain; }
.lightbox figcaption {
  color: #d8d6d1; font-size: 0.8rem; padding-top: 1rem; text-align: center;
}
.lightbox figcaption .name { font-family: var(--f-display); font-style: italic; font-size: 1.05rem; color: #fff; display: block; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff;
  font-family: var(--f-text); font-size: 1.6rem; line-height: 1;
  padding: 1rem; cursor: pointer;
}
.lb-close { top: 0.5rem; right: 0.75rem; }
.lb-prev  { left: 0.25rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 0.25rem; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .landing img, .landing .wordmark-invert, .landing .enter { opacity: 1; }
}
