/* Second Act: Under Borrowed Skies — landing page
   Palette drawn from the cover (plum), the Artbyio mark (sand, saffron, cobalt)
   and the paintings (leaf, ochre). */

:root {
  --paper: #f6f1e7;
  --paper-2: #ece3d1;
  --ink: #221b2b;
  --ink-soft: #4d4557;
  --plum: #4a2875;
  --plum-deep: #2d1749;
  --plum-tint: #e7dff0;
  --saffron: #e8963c;
  --rust: #9c4f17;
  --leaf: #3d6b3a;
  --cobalt: #1d2ba3;
  --line: rgba(34, 27, 43, 0.16);
  --error: #a3261b;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --space: clamp(72px, 11vw, 144px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
figure { margin: 0; }
cite { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--plum); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 1px; }
.praise :focus-visible, .finale :focus-visible { outline-color: var(--saffron); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--plum); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.wordmark {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--plum); text-decoration: none;
}
.menu-toggle {
  font: 500 0.9375rem var(--sans); color: var(--ink);
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 44px; padding: 0 16px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; color: var(--ink); text-decoration: none;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--plum); text-decoration: underline; }

@media (max-width: 859px) {
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border-bottom: 0; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  html:not(.js) .site-nav a { border: 0; padding: 6px 0; }
}
@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .site-nav ul { display: flex; gap: 30px; }
  .site-nav a { padding: 8px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 28px;
  font: 600 1rem/1.2 var(--sans); letter-spacing: 0.03em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-deep); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-secondary:hover { background: var(--plum); color: #fff; }
.btn-light { background: var(--paper); color: var(--plum-deep); }
.btn-light:hover { background: #fff; color: var(--plum-deep); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn .ext { font-size: 0.9em; }
.btn[aria-disabled="true"] {
  background: transparent; color: var(--ink-soft); border: 1px dashed currentColor; cursor: default;
}
.finale .btn[aria-disabled="true"] { color: var(--paper); }

/* ---------- Shared type ---------- */
.eyebrow, .section-kicker, .avail-label {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--rust);
}
.section-kicker { margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.section-kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.section-kicker.on-dark { color: var(--saffron); }
.section-intro { color: var(--ink-soft); margin-bottom: 40px; }
.display-h {
  font-family: var(--serif); font-weight: 500; line-height: 1.1;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem); color: var(--plum); margin-bottom: 32px;
}

/* ---------- 1. Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 var(--space); position: relative; overflow: hidden; }
.hero::after {
  /* a quiet plum field the book rests on */
  content: ""; position: absolute; z-index: -1;
  right: 0; top: 0; bottom: 0; width: 38%;
  background: var(--plum-tint);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-text { max-width: 560px; }
.hero h1 { font-family: var(--serif); line-height: 0.95; margin: 18px 0 14px; color: var(--plum); }
.t-main { display: block; font-size: clamp(3.25rem, 9vw, 6.25rem); font-weight: 600; letter-spacing: -0.01em; }
.t-sub { display: block; font-size: clamp(1.75rem, 4.2vw, 2.75rem); font-style: italic; font-weight: 500; color: var(--ink); margin-top: 10px; }
.subtitle { font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 28px; }
.lede { font-family: var(--serif); font-size: clamp(1.375rem, 2.2vw, 1.625rem); line-height: 1.45; margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { margin-top: 16px; font-size: 0.875rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.hero-book { justify-self: center; width: min(78vw, 440px); }
.hero-book img {
  /* the photo already has a real spine; this adds only a soft lift off the panel */
  filter: drop-shadow(0 26px 30px rgba(45, 23, 73, .30)) drop-shadow(0 8px 10px rgba(34, 27, 43, .18));
}

@media (max-width: 859px) {
  .hero::after { width: 100%; top: auto; height: 34%; }
  .hero-text { margin: 0 auto; }
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .hero-book { justify-self: end; margin-right: 4%; }
}

/* ---------- 2. Crossover ---------- */
.crossover { padding: var(--space) 0; border-top: 1px solid var(--line); }
.crossover-intro {
  font-family: var(--serif); font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.25;
  max-width: 22ch; margin-bottom: clamp(56px, 8vw, 104px); color: var(--ink);
}
.strand { display: grid; gap: 28px; align-items: center; margin-bottom: clamp(64px, 9vw, 120px); }
.strand:last-child { margin-bottom: 0; }
.strand-art img { width: 100%; }
.strand-num { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--rust); margin-bottom: 4px; }
.strand h3 { font-family: var(--serif); font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1; color: var(--plum); margin-bottom: 20px; }
.strand-text p:not(.strand-num) { max-width: 44ch; }

@media (min-width: 800px) {
  .strand { grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 104px); }
  .strand-flip .strand-art { order: 2; }
  .strand-art { max-width: 460px; }
  .strand-flip .strand-art { justify-self: end; }
}

/* ---------- 3. About ---------- */
.about-book { padding: var(--space) 0; background: var(--paper-2); }
.synopsis-lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.7vw, 2rem); line-height: 1.45; margin-bottom: 1.2em; }
.synopsis-lead::first-letter {
  float: left; font-size: 3.4em; line-height: 0.82; font-weight: 600;
  color: var(--plum); padding: 0.06em 0.1em 0 0;
}
.synopsis { font-size: 1.125rem; color: var(--ink-soft); max-width: 58ch; }

/* ---------- 4. Glimpse ---------- */
.glimpse { padding: var(--space) 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 28px; }
.g-item {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  position: relative;
}
.g-item img { width: 100%; transition: opacity .25s; }
.g-item:hover img { opacity: 0.9; }
.g-cap { font-family: var(--serif); font-style: italic; font-size: 1.1875rem; line-height: 1.4; margin-top: 14px; color: var(--ink-soft); max-width: 52ch; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 56px 36px; }
  .g-wide { grid-column: 1 / -1; }
}

/* ---------- Praise ---------- */
.praise { background: var(--plum-deep); color: var(--paper); padding: var(--space) 0; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--serif); font-style: italic; line-height: 1.45; }
.quote p::before { content: "\201C"; }
.quote p::after { content: "\201D"; }
.quote figcaption { margin-top: 18px; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.04em; color: var(--saffron); }
.quote figcaption::before { content: "— "; }
.quote figcaption span { font-weight: 400; color: rgba(246, 241, 231, 0.82); }
.quote-feature { max-width: 900px; margin-bottom: clamp(56px, 8vw, 96px); }
.quote-feature p { font-size: clamp(1.625rem, 3vw, 2.375rem); line-height: 1.35; }
.quote-grid { display: grid; gap: 48px; }
.quote-grid .quote { border-top: 1px solid rgba(246, 241, 231, 0.25); padding-top: 28px; }
.quote-grid .quote p { font-size: 1.3125rem; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: repeat(3, 1fr); gap: 44px; } }

/* ---------- 5. Readers ---------- */
.readers { padding: var(--space) 0; }
.readers-lines { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.45; margin-bottom: 1.2em; }
.readers p:last-child { color: var(--ink-soft); max-width: 60ch; }

/* ---------- 6. Details ---------- */
.details { padding: var(--space) 0; background: var(--paper-2); }
.details-grid { display: grid; gap: 24px; }
.details-note { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--ink-soft); max-width: 16ch; }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.25em; }
.spec dd { margin: 0; }
@media (min-width: 860px) { .details-grid { grid-template-columns: 4fr 7fr; gap: 64px; } }

/* ---------- 7. Availability ---------- */
.availability { padding: var(--space) 0; }
.avail-grid { display: grid; gap: 56px; margin-bottom: 56px; }
.avail-grid h3 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; color: var(--plum); margin: 10px 0 18px; }
.avail-label { margin: 0; }
.avail-intl .btn { margin-top: 12px; }
.lulu-pending { margin-top: 16px; font-size: 0.9375rem; color: var(--ink-soft); }
.avail-ph { border-top: 1px solid var(--line); padding-top: 48px; }
.reassure { background: var(--paper-2); border-left: 3px solid var(--leaf); padding: 18px 20px; font-size: 1rem; }
.ph-store { margin-top: 24px; }
@media (min-width: 900px) {
  .avail-grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .avail-ph { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 80px; }
}

/* ---------- Form ---------- */
.form-shell {
  background: #fffdf8; border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 56px); max-width: 880px; margin-left: auto;
}
.form-intro { font-size: 1rem; color: var(--ink-soft); }
.req-key { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 28px; }
.req { color: var(--error); font-weight: 600; }
.opt { font-weight: 400; font-size: 0.875rem; color: var(--ink-soft); margin-left: 4px; }
.field { margin: 0 0 28px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 28px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, legend { font-weight: 500; font-size: 1rem; line-height: 1.45; }
legend { padding: 0; margin-bottom: 12px; }
.field > label { display: block; margin-bottom: 8px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1.0625rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #8f8799; border-radius: var(--radius);
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
.choices { display: grid; gap: 6px; }
.choices label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.choices label:has(input:checked) { border-color: var(--plum); background: var(--plum-tint); }
.choices-inline { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
input[type="radio"], input[type="checkbox"] {
  width: 20px; height: 20px; margin: 0.15em 0 0; flex: none; accent-color: var(--plum);
}
.err { color: var(--error); font-size: 0.9375rem; font-weight: 500; margin: 8px 0 0; }
.hint { font-size: 0.875rem; color: var(--ink-soft); margin-top: 6px; }
.form-error-summary {
  border: 2px solid var(--error); padding: 14px 18px; margin-bottom: 28px; color: var(--error); font-weight: 500;
}
.form-error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.form-error-summary a { color: var(--error); }

.optional { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 32px; }
.optional summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 10px; min-height: 44px;
}
.optional summary::-webkit-details-marker { display: none; }
.optional summary::before { content: "+"; font-size: 1.25rem; width: 1ch; color: var(--plum); }
.optional[open] summary::before { content: "−"; }
.optional summary span { font-weight: 400; color: var(--ink-soft); font-size: 0.9375rem; }
.optional-body { padding: 8px 0 4px; }

.consent { background: var(--paper); padding: 20px; border: 1px solid var(--line); }
.consent-label { display: flex; gap: 14px; align-items: flex-start; font-weight: 400; font-size: 0.9688rem; line-height: 1.6; cursor: pointer; }
.consent-link { margin: 12px 0 0 34px; font-size: 0.9375rem; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.submit-note { font-size: 0.9375rem; color: var(--ink-soft); max-width: 46ch; margin: 0; }
.form-success, .form-handoff { outline: none; }
.form-success h3, .form-handoff h3 { font-family: var(--serif); font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.2; color: var(--plum); margin-bottom: 18px; }
.form-handoff .btn { margin-top: 12px; }

/* ---------- 8. Author ---------- */
.author { padding: var(--space) 0; background: var(--paper-2); }
.author-grid { display: grid; gap: 36px; align-items: center; }
.author-photo { width: min(62vw, 300px); }
.author-photo img { filter: saturate(0.95); }
.author-name { font-family: var(--serif); font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1.1; color: var(--plum); margin-bottom: 20px; }
.author-grid p:not(.author-name):not(.author-links) { max-width: 58ch; }
.author-links { display: flex; gap: 28px; margin-top: 24px; font-weight: 500; }
@media (min-width: 760px) { .author-grid { grid-template-columns: 300px 1fr; gap: 72px; } }

/* ---------- 9. Finale ---------- */
.finale {
  position: relative; overflow: hidden; background: var(--plum-deep);
  min-height: min(92vh, 860px); display: flex; align-items: flex-end; justify-content: center;
  padding: 120px var(--gutter) clamp(32px, 8vh, 88px);
}
.finale-art { position: absolute; inset: 0; }
.finale-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.finale-panel {
  position: relative; z-index: 1; text-align: center; width: 100%; max-width: 760px;
  background: rgba(45, 23, 73, 0.9); color: var(--paper);
  padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 56px);
}
.finale h2 { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.12; margin-bottom: 32px; }
.finale-credit { margin-top: 24px; font-size: 0.8125rem; letter-spacing: 0.06em; color: rgba(246, 241, 231, 0.8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246, 241, 231, 0.88); padding: 56px 0 40px; font-size: 0.9375rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--saffron); }
.site-footer :focus-visible { outline-color: var(--saffron); }
.footer-inner { display: grid; gap: 28px; }
.footer-title { font-family: var(--serif); font-size: 1.375rem; color: var(--paper); margin-bottom: 4px; }
.footer-small { font-size: 0.875rem; color: rgba(246, 241, 231, 0.78); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { display: inline-block; padding: 6px 0; }
.copyright { border-top: 1px solid rgba(246, 241, 231, 0.18); padding-top: 24px; }
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .copyright { grid-column: 1 / -1; }
}

/* ---------- Dialogs (shared) ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 12, 30, 0.72); }

/* Lightbox */
.lightbox { width: 100%; height: 100%; background: transparent; color: var(--paper); }
.lb-inner { height: 100%; display: flex; flex-direction: column; padding: 12px var(--gutter) 16px; }
.lb-close {
  align-self: flex-end; min-height: 44px; padding: 0 16px; cursor: pointer;
  font: 600 1rem var(--sans); color: var(--paper); background: rgba(0,0,0,.35);
  border: 1px solid rgba(246,241,231,.5); border-radius: var(--radius);
}
.lb-close span { font-size: 1.4em; line-height: 1; margin-left: 6px; }
.lightbox figure { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 12px 0; }
.lightbox img { max-width: 100%; max-height: calc(100% - 4.5em); object-fit: contain; }
.lightbox figcaption { font-family: var(--serif); font-style: italic; font-size: 1.1875rem; text-align: center; max-width: 60ch; }
.lb-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-nav button {
  min-height: 44px; padding: 0 16px; cursor: pointer; font: 500 1rem var(--sans);
  color: var(--paper); background: rgba(0,0,0,.35); border: 1px solid rgba(246,241,231,.5); border-radius: var(--radius);
}
.lb-count { font-size: 0.875rem; letter-spacing: 0.08em; }
.lightbox :focus-visible { outline-color: var(--saffron); }

/* Privacy pop-up: page stays put; the notice scrolls inside its own panel */
.privacy-dialog {
  width: min(760px, calc(100% - 24px)); max-height: min(88vh, 900px);
  background: var(--paper); color: var(--ink); border-radius: 4px;
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
.privacy-dialog[open] { display: flex; }
.pd-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px 14px clamp(20px, 4vw, 40px); border-bottom: 1px solid var(--line); flex: none;
}
.pd-title { font-family: var(--serif); font-size: 1.625rem; font-weight: 600; color: var(--plum); margin: 0; }
.pd-x {
  width: 44px; height: 44px; font-size: 1.75rem; line-height: 1; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.pd-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding: 8px clamp(20px, 4vw, 40px) 28px; font-size: 1rem;
}
.pd-foot {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 16px clamp(20px, 4vw, 40px); border-top: 1px solid var(--line); background: var(--paper-2);
}
.pd-foot p { margin: 0; font-size: 0.875rem; color: var(--ink-soft); flex: 1 1 240px; }
@media (max-width: 599px) {
  .privacy-dialog { width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 12px 12px 0 0; }
  .pd-foot .btn { width: 100%; }
}

/* ---------- Privacy notice text (modal + privacy.html) ---------- */
.notice h1 { font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 3rem); color: var(--plum); line-height: 1.1; margin-bottom: 12px; }
.notice h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--plum); margin: 2em 0 0.5em; line-height: 1.2; }
.notice h3 { font-size: 1rem; font-weight: 600; margin: 1.4em 0 0.4em; }
.notice ul { padding-left: 1.2em; margin: 0 0 1em; }
.notice li { margin-bottom: 0.4em; }
.notice .dates { font-size: 0.9375rem; color: var(--ink-soft); }
.notice .callout { background: var(--paper-2); border-left: 3px solid var(--leaf); padding: 14px 18px; }
.privacy-dialog .notice h1 { font-size: 1.75rem; margin-top: 16px; }
.privacy-dialog .notice > .back-link { display: none; }

.privacy-page main { padding: 48px 0 96px; }
.privacy-page .back-link { display: inline-block; margin-bottom: 32px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .finale, .lightbox, .privacy-dialog, .form-shell { display: none !important; }
  body { background: #fff; }
}

/* Unreplaced placeholders stand out during review. Remove none of this: once replaced, nothing matches. */
[data-placeholder] { background: #fff1b8; outline: 1px dashed var(--rust); padding: 0 4px; font-family: ui-monospace, Menlo, monospace; font-size: 0.85em; }
.pd-body:focus { outline: none; }
.privacy-dialog .notice h1 { display: none; }
.privacy-dialog .notice .dates { margin-top: 16px; }
/* the two square images in the gallery share one size and top edge */
.gallery li:not(.g-wide) .g-item img { aspect-ratio: 1 / 1; object-fit: cover; }
.gallery li { align-self: start; }

/* the address is shown in full, so it still works for visitors without an email app */
.footer-email { display: inline-flex; align-items: center; gap: 10px; }
.copy-email {
  font: 500 0.8125rem var(--sans); color: var(--paper); background: transparent; cursor: pointer;
  border: 1px solid rgba(246, 241, 231, 0.45); border-radius: var(--radius); min-height: 32px; padding: 0 10px;
}
.copy-email:hover { border-color: var(--saffron); color: var(--saffron); }

/* ---------- Philippine section: two forms ---------- */
.avail-note { margin-top: 18px; font-size: 0.9375rem; color: var(--ink-soft); }
.avail-secondary { margin-top: 18px; font-size: 1rem; color: var(--ink-soft); }
.avail-secondary a { font-weight: 600; }
.form-title { font-family: var(--serif); font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.2; color: var(--plum); margin-bottom: 14px; text-wrap: balance; }
.form-shell + .form-shell { margin-top: 40px; }
.form-shell-secondary { background: var(--paper); }
.form-shell-secondary .form-title { font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
select {
  width: 100%; min-height: 50px; padding: 12px 40px 12px 14px;
  font: 400 1.0625rem/1.4 var(--sans); color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234d4557' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid #8f8799; border-radius: var(--radius); appearance: none; -webkit-appearance: none;
}
select:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.consent-optional { background: transparent; border-style: dashed; }

/* launch-date note at the top of Availability */
.launch-note {
  max-width: 62ch; margin: -8px 0 48px; padding: 18px 22px;
  font-size: 1.0625rem; line-height: 1.6; color: var(--ink);
  background: var(--plum-tint); border-left: 3px solid var(--plum);
}

/* artwork: no drag-to-save, no long-press "Save image" on phones */
img { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }

/* hero note: keep each phrase together; wrap between phrases */
.cta-note span { white-space: nowrap; }
.cta-note a { color: var(--plum); font-weight: 600; }
@media (max-width: 480px) { .cta-note span[aria-hidden] { display: none; } .cta-note span:not([aria-hidden]) { display: block; } }

/* gallery viewer: dark enough that the page behind can't show through the caption */
.lightbox::backdrop { background: rgba(20, 12, 30, 0.95); }
