/* ==========================================================================
   Pat Dice Art Gallery — global.css
   Built entirely from design.md (2026-05-05). Every value below traces to a
   design.md token. Imagery IS the brand — chrome stays neutral and quiet.
   Sprint 2 of the Wix -> Cloudflare migration.

   2026-07-13 — DARK RESTYLE. Palette inverted to a night-gallery dark mode to
   match Pat's current Wix site (which uses her `#242323` / `#4a4a4a` / black
   chrome family — verified in design-extraction/2026-05-05). Page content is
   also center-composed (see the § Centering block). The token system carries
   the whole restyle: only the :root values + a few dark-mode component
   overrides changed; every component still consumes the same custom
   properties, so no structural HTML/class changes were needed. All text/bg
   pairs re-verified against WCAG AA (lowest pair 6.17:1). See design.md §11.
   ========================================================================== */

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* === Design Tokens (design.md §1-§7) === */
:root {

  /* --- §1 Color: Brand palette (chrome only) — DARK MODE 2026-07-13 ---
     Chrome is now the near-black end of Pat's own Wix charcoal family. Header
     and footer sit at `#0D0D0D` (one notch below the page bg so they read as
     distinct chrome, not a seam). `--color-accent` stays white — it is the
     ART pill fill, the one light element the design intends to pop. */
  --color-primary:        #0D0D0D;   /* header/footer bar (was #000000) */
  --color-primary-dark:   #050505;   /* hover on chrome elements */
  --color-primary-light:  #242323;   /* Pat's bg2/n400 — hero scrim + surface family */
  --color-accent:         #FFFFFF;   /* primary CTA fill (ART pill) — deliberately light */
  --color-accent-alt:     #E3E3E3;   /* light hover on the white pill */

  /* --- §1 Color: Neutrals — DARK MODE ---
     Page bg is a deep charcoal (`#1A1919`), one step darker than the surface
     family so cards/surfaces at `#242323` visibly elevate. Text lightens to a
     near-white; secondary text is `#B0B0B0` (8.1:1 on the page bg, 7.2:1 on
     surfaces — comfortably past AA 4.5:1). `--color-text-inverse` STAYS light:
     in dark mode nearly every "inverse" context (header, footer, hero card,
     inquire/submit buttons, vote button) is light text on a dark or saturated
     fill, so inverse remains near-white. The ONE inverted case — dark text on
     the white ART pill — uses the dedicated `--color-on-accent` token. */
  --color-text-primary:   #F2F2F2;   /* body text, headings (was #000000) */
  --color-text-secondary: #B0B0B0;   /* captions, metadata — AA on dark */
  --color-text-inverse:   #F2F2F2;   /* light text on dark/saturated chrome + fills */
  --color-on-accent:      #1A1919;   /* dark text on the white ART pill only */
  --color-bg:             #1A1919;   /* page background — deep charcoal night gallery */
  --color-surface:        #242323;   /* cards, elevated surfaces, form inputs (Pat's bg2) */
  --color-surface-raised: #2E2D2D;   /* one step above surface (event/inquire panels) */
  --color-border:         #3A3939;   /* hairline dividers on dark */
  --color-frame:          #6E6C6C;   /* lighter frame on artwork tiles so art pops off the dark */
  --color-shadow:         rgba(0, 0, 0, 0.55);  /* deeper shadow reads on dark */

  /* --- §1 Color: Semantic (system messaging only) — DARK-TUNED --- */
  --color-success: #3FCF8E;   /* lightened from #0F8A5F for AA on dark surfaces */
  --color-warning: #E0954A;   /* lightened from #B7691E */
  --color-danger:  #E8695E;   /* lightened from #A1342B */
  --color-info:    #6FA0E0;   /* lightened from #2E5180 for AA on dark (text/accents) */
  --color-info-fill: #2E5180; /* original info blue — kept for solid button fills only */

  /* --- §2 Typography: Font families (collapsed from 6 Wix families to 2) --- */
  --font-display: "Cinzel", "Cormorant Garamond", "Trajan Pro", Georgia, serif;
  --font-body: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* --- §2 Typography: Scale (9-step) --- */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   17px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  49px;
  --text-3xl:  56px;
  --text-4xl:  90px;

  /* --- §3 Spacing: 4px-base scale (8-step) --- */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   32px;
  --space-xl:   48px;
  --space-2xl:  64px;
  --space-3xl:  96px;
  --space-4xl:  128px;

  /* --- §3 Spacing: Container widths --- */
  --container-sm: 600px;
  --container-md: 800px;
  --container-lg: 1200px;
  --container-xl: 1440px;

  /* --- §4 Elevation: Shadows --- */
  --shadow-sm: 0 0 5px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 0 15px 10px rgba(8, 8, 8, 0.3);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* --- §4 Elevation: Border radius --- */
  --radius-sm:   4px;
  --radius-md:   12px;
  --radius-lg:   24px;
  --radius-pill: 30px;
  --radius-full: 9999px;

  /* --- §4 Elevation: Border widths --- */
  --border-thin:   1px solid;
  --border-medium: 2px solid;
  --border-thick:  4px solid;

  /* --- §7 Motion: Timing --- */
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --motion-md:   300ms;
  --motion-slow: 400ms;

  /* --- §7 Motion: Easing --- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-enter:    cubic-bezier(0, 0, 0.2, 1);
  --ease-exit:     cubic-bezier(0.4, 0, 1, 1);
}

/* === Base elements === */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* §1 rule — every link explicitly styled. No default browser blue. */
a {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--motion-fast) var(--ease-standard);
}
a:hover { color: var(--color-primary-light); }
a:focus-visible {
  outline: 2px solid var(--color-info);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); line-height: 1.4; }
h4 { font-size: var(--text-lg); line-height: 1.4; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* === Skip link (accessibility) === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   §5 Component: Navigation + Dropdown nav
   ========================================================================== */
.site-header {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl);
  gap: var(--space-lg);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text-inverse);
  flex-shrink: 0;
}
.nav-brand img { height: 44px; width: auto; }
.nav-brand .nav-brand-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-brand:hover { color: var(--color-accent-alt); }

.nav-toggle {
  display: none;
  background: none;
  border: var(--border-thin) var(--color-text-inverse);
  border-radius: var(--radius-sm);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent-alt);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.nav-links .nav-parent > a::after {
  content: " \25BE";
  font-size: 0.7em;
}

/* §5 Dropdown nav (parent: Art, Series) */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-surface-raised);   /* raised dark panel under the dark header */
  border: var(--border-thin) var(--color-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  list-style: none;
  padding: var(--space-sm) 0;
  margin-top: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--motion-fast) var(--ease-standard),
              transform var(--motion-fast) var(--ease-standard),
              visibility var(--motion-fast);
  z-index: 100;
}
.nav-parent:hover .nav-dropdown,
.nav-parent:focus-within .nav-dropdown,
.nav-parent.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  text-decoration: none;
  letter-spacing: 0;
}
.nav-dropdown li a:hover,
.nav-dropdown li a.active {
  /* dark hover fill (not the light accent-alt) so light item text stays legible */
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  text-decoration: none;
}

/* ==========================================================================
   §5 Component: Footer
   ========================================================================== */
.site-footer {
  /* DARK MODE 2026-07-13: the whole page is dark now, so the global
     --color-text-secondary (#B0B0B0) already has ample contrast on the footer's
     near-black chrome — the old #9C9C9C light-page override is dropped. A thin
     top border separates the footer chrome (#0D0D0D) from the page bg (#1A1919)
     so the two dark tones read as distinct surfaces, not a seam. */
  background: var(--color-primary);
  color: var(--color-text-primary);
  border-top: var(--border-thin) var(--color-border);
  margin-top: auto;
  padding: var(--space-2xl) var(--space-xl);
}
.footer-inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  list-style: none;
}
.footer-nav a {
  display: inline-block;
  padding: var(--space-sm) 0;
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--color-accent-alt);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.footer-copyright {
  max-width: var(--container-lg);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-md);
  border-top: var(--border-thin) rgba(255, 255, 255, 0.15);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   §5 Component: Section (marketing page)
   ========================================================================== */
.section {
  padding: var(--space-2xl) var(--space-xl);
  max-width: var(--container-lg);
  margin: 0 auto;
  width: 100%;
}
.section-narrow { max-width: var(--container-md); }
.section-title {
  font-family: var(--font-display);
  margin-bottom: var(--space-lg);
}
.section-intro {
  font-size: var(--text-md);
  margin-bottom: var(--space-lg);
}
.page-lead {
  color: var(--color-text-secondary);
  font-size: var(--text-md);
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   §5 Component: Hero card (homepage)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-primary-light);
  overflow: hidden;
}
/* Hero background is a real <img> (see build-pages.py build_home) rather than a
   CSS background-image — this removed the page's last inline style= and let the
   CSP drop 'unsafe-inline' from style-src. object-fit/position reproduce the
   former background-size:cover / background-position:center 30%. */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.hero-video {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.playing {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero-card {
  position: relative;
  z-index: 1;
  background: rgba(36, 35, 35, 0.85); /* --color-primary-light @ 85% alpha */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-2xl);
  text-align: center;
  max-width: var(--container-md);
  color: var(--color-text-inverse);
}
.hero-wordmark {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--color-accent-alt);
  margin-bottom: var(--space-xl);
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* §5 Component: Primary button (hero pill, white) */
.pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  transition: background var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard);
}
.pill-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border: var(--border-thin) transparent;
}
.pill-primary:hover {
  background: var(--color-accent-alt);
  color: var(--color-on-accent);
}
/* §5 Component: Outlined button (hero pill, charcoal background) */
.pill-outline {
  background: transparent;
  color: var(--color-text-inverse);
  border: var(--border-thin) var(--color-text-inverse);
}
.pill-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse);
}

/* ==========================================================================
   §5 Component: Inquire-to-Purchase button (V1) / Stripe Buy (V2)
   ========================================================================== */
.btn-inquire {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-base);
  text-align: center;
  text-decoration: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-standard);
}
.btn-inquire:hover {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

/* Click-to-expand inquiry: <summary> styled as the button, native disclosure
   triangle removed. No JS — the <details> element handles open/close, so the
   strict script-src CSP (no 'unsafe-inline') is untouched. */
.artwork-inquire-wrap {
  margin: var(--space-lg) 0 var(--space-sm);
}
.artwork-inquire-wrap > summary.btn-inquire {
  list-style: none;
  margin: 0;
}
.artwork-inquire-wrap > summary.btn-inquire::-webkit-details-marker {
  display: none;
}
.artwork-inquire-wrap[open] > summary.btn-inquire {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.form.artwork-inquire {
  max-width: none;
  padding: var(--space-lg);
  border: var(--border-thin) var(--color-border);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  background: var(--color-surface);
}
.label-optional {
  font-weight: 400;
  color: var(--color-text-secondary);
}
.btn-inline {
  display: inline-block;
  width: auto;
}

/* ==========================================================================
   §5 Component: Artwork tile + Gallery grid
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}
.artwork-tile {
  display: block;
  text-decoration: none;
  color: var(--color-text-primary);
}
.artwork-tile-frame {
  overflow: hidden;
  /* Night-gallery framing: a subtle light hairline frame so each canvas pops
     off the dark page like a matted piece under gallery lights. */
  border: var(--border-thin) var(--color-frame);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.artwork-tile-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--motion-md) var(--ease-standard);
}
.artwork-tile:hover .artwork-tile-frame {
  box-shadow: 0 4px 12px var(--color-shadow);
}
.artwork-tile:hover .artwork-tile-frame img {
  transform: scale(1.02);
}
.artwork-tile-title {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-base);
  margin-top: var(--space-sm);
  text-decoration: none;
}
.artwork-tile:hover .artwork-tile-title {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  color: var(--color-text-primary);
}

/* ==========================================================================
   §5 Component: Breadcrumb
   ========================================================================== */
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}
.breadcrumb a {
  display: inline-block;
  padding: var(--space-sm) 0;
  color: var(--color-text-secondary);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.breadcrumb .sep { padding: 0 var(--space-sm); }
.breadcrumb .current { color: var(--color-text-primary); }

/* ==========================================================================
   §5 Component: Callout / blockquote (artist statement)
   ========================================================================== */
.callout {
  /* --color-primary is now near-black and would vanish on the dark bg; use the
     light frame tone so the artist-statement rule is visible. */
  border-left: var(--border-thick) var(--color-frame);
  padding-left: var(--space-md);
  font-size: var(--text-md);
  font-style: italic;
  color: var(--color-text-secondary);
  margin: var(--space-lg) 0;
}

/* ==========================================================================
   §5 Component: Subscribe form
   ========================================================================== */
.form {
  max-width: var(--container-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form label {
  font-size: var(--text-sm);
  font-weight: 500;
  display: block;
  margin-bottom: var(--space-xs);
}
.form input,
.form textarea,
.form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-md);
  border: var(--border-thin) var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text-primary);
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid var(--color-info);
  outline-offset: 1px;
  border-color: var(--color-frame);
}
/* Dark-mode placeholder: browser-default placeholders render too dim on a dark
   field. Pin to --color-text-secondary (AA on the input surface). */
.form input::placeholder,
.form textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 1;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .btn-submit {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-self: flex-start;
  transition: background var(--motion-fast) var(--ease-standard);
}
.form .btn-submit:hover { background: var(--color-primary-dark); }
.form-note {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
/* Spam honeypot. Hidden via CSS, not an inline style= attribute, so the CSP
   needs no 'unsafe-inline' on style-src (production-audit 2026-05-22). A real
   user never sees or fills this; a bot that fills it is rejected by Formspree. */
input[name="_gotcha"] {
  display: none;
}
/* Staged for the post-submit success state. Not yet rendered by any page:
   the form success state is coupled to the real Formspree form ID (Formspree
   owns the post-submit response). Wired when the real Formspree ID lands —
   see build-pages.py build_contact(). Kept deliberately, not dead by accident. */
.form-success {
  color: var(--color-success);
  font-size: var(--text-md);
}

/* ==========================================================================
   §5 Component: People's Artist 2026 module (time-bound)
   ========================================================================== */
.peoples-artist {
  /* Dark mode: a deeper info-blue tint that actually reads on the dark page,
     with the lightened --color-info as the border + heading accent. */
  background: rgba(111, 160, 224, 0.12); /* --color-info tint, dark-tuned */
  border: var(--border-thin) var(--color-info);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: var(--container-md);
  margin: 0 auto;
  text-align: center;
}
.peoples-artist h2 {
  font-size: var(--text-xl);
  color: var(--color-info);
  margin-bottom: var(--space-md);
}
.peoples-artist p { margin-bottom: var(--space-md); }
.peoples-artist .btn-vote {
  display: inline-block;
  background: var(--color-info-fill);   /* solid deep blue so light button text stays AA */
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-base);
  text-decoration: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  transition: opacity var(--motion-fast) var(--ease-standard);
}
.peoples-artist .btn-vote:hover { opacity: 0.88; color: var(--color-text-inverse); }
.peoples-artist .module-meta {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

/* ==========================================================================
   Artwork detail page
   ========================================================================== */
.artwork-detail {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
  width: 100%;
}
.artwork-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.artwork-figure { margin: 0; }
.artwork-figure img {
  width: 100%;
  height: auto;
  /* light frame to match the gallery tiles — the hero piece on a detail page */
  border: var(--border-thin) var(--color-frame);
  border-radius: var(--radius-sm);
  cursor: zoom-in;
}
.artwork-figure figcaption {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}
.artwork-info h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}
.artwork-meta {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}
/* Original-spec line (artwork detail) — a gray medium · dimensions · ships at
   weight line lifted from Pat's own `- ## ` note, rendered above the Inquire
   button. The " · " separators are literal text in the HTML; normal letter
   spacing gives them enough breathing room (no pseudo-element separators). */
.artwork-meta-spec {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}
.artwork-statement {
  font-size: var(--text-base);
  margin-bottom: var(--space-xl);
}
.artwork-edition {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
}

/* --- Related-series strip (artwork detail) ---
   "More from <series>" — a horizontally-scrollable row of sibling tiles below
   the artwork detail block. Tiles reuse .artwork-tile (no new tile rules); the
   strip fixes their basis so the row scrolls rather than wraps. Tokens only. */
.related-series {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-2xl);
  width: 100%;
  border-top: var(--border-thin) var(--color-border);
}
.related-series h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: var(--space-2xl) 0 var(--space-lg);
}
.related-strip {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: var(--space-sm);
}
.related-strip .artwork-tile {
  flex: 0 0 200px;
  scroll-snap-align: start;
}

/* Click-to-zoom lightbox (CSS :target, no JS dependency) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  z-index: 900;
}
.lightbox:target { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-xl);
  color: var(--color-text-inverse);
  font-size: var(--text-xl);
  text-decoration: none;
  font-family: var(--font-body);
}
.lightbox-close:hover { color: var(--color-accent-alt); }

/* ==========================================================================
   Content blocks (bio, series, events, generic pages)
   ========================================================================== */
.content-block { margin-bottom: var(--space-xl); }
.content-block h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}
.content-block h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}
.content-block ul {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}
.content-block li { margin-bottom: var(--space-xs); }

.event-card {
  border: var(--border-thin) var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  background: var(--color-surface);
}
.event-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}
.event-card .event-where {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Empty state (Jewelry, Virtual Galleries, Earth and Issues) */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  max-width: var(--container-md);
  margin: 0 auto;
}
.empty-state h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}
.empty-state p {
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

/* 404 page */
.error-page {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  max-width: var(--container-md);
  margin: 0 auto;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}
.error-page p {
  color: var(--color-text-secondary);
  font-size: var(--text-md);
  margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Centering (2026-07-13) — centered "night gallery" composition.
   Per Pat's direction: center page content, headings, and text blocks for an
   elegant centered gallery feel. Judgment call per block: headings, leads,
   intros, single-line meta, cards, and the bio/detail info column are centered.
   Multi-paragraph body copy and bulleted lists keep LEFT-aligned text inside a
   centered container (centering long prose / ragged bullet lists hurts
   readability), and form fields stay left-aligned inside a centered form.
   ========================================================================== */

/* Marketing + gallery + bio section chrome */
.section-title,
.section-intro,
.page-lead {
  text-align: center;
}

/* Section content blocks: center the block and its headings. Body <p> prose is
   centered when short; the bio's long lists get their own left-aligned rule
   below so bullets don't go ragged. */
.section .content-block {
  text-align: center;
}
.section .content-block h2,
.section .content-block h3 {
  text-align: center;
}

/* Bulleted lists (bio experience/awards, events "more exhibitions"): keep the
   list text LEFT-aligned for scanability, but center the list as a block on the
   page by shrinking it to content width and auto-margining it. */
.content-block ul {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

/* Event cards: centered card text (short, title + where lines). */
.event-card {
  text-align: center;
}

/* Artwork detail info column: center the title, spec line, statement, and the
   reassurance line under the inquire button. The image sits in its own column;
   the inquire form keeps left-aligned fields (see below). */
.artwork-info {
  text-align: center;
}
.artwork-info .form.artwork-inquire {
  text-align: left;   /* form fields read left-aligned even in a centered column */
}

/* Breadcrumbs read centered above centered content. */
.breadcrumb {
  text-align: center;
}

/* Thank-you utility page: center the "Return to the gallery" inline button
   (it sits in a bare <p> that the section-title/intro rules don't cover). */
.form-success-page {
  text-align: center;
}

/* Callout (artist statement) centered as a block: the left rule + centered text
   reads as a pull-quote in the centered composition. */
.callout {
  max-width: var(--container-md);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border-left: none;
  border-top: var(--border-thin) var(--color-frame);
  border-bottom: var(--border-thin) var(--color-frame);
  padding: var(--space-md) var(--space-lg);
}

/* Forms: center the form on the page (its max-width container is auto-margined)
   while the fields themselves stay left-aligned and full-width for usability.
   The section title/intro above the form are already centered by the rules
   above. */
.form {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  text-align: left;
}
.form .btn-submit {
  align-self: center;   /* center the submit button under the centered form */
}

/* ==========================================================================
   §3 Responsive — breakpoint at 768px
   ========================================================================== */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    padding: var(--space-md) var(--space-md);
  }
  .nav-toggle {
    display: block;
    padding: var(--space-sm) var(--space-md);
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    width: 100%;
    padding-top: var(--space-md);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 0;
    padding-left: var(--space-md);
    background: transparent;
  }
  .nav-dropdown li a { color: var(--color-text-inverse); }
  .nav-dropdown li a:hover { background: transparent; color: var(--color-accent-alt); }

  .section { padding: var(--space-xl) var(--space-md); }
  .hero { padding: var(--space-xl) var(--space-md); min-height: 60vh; }
  .hero-card { padding: var(--space-xl); }
  .hero-wordmark { font-size: var(--text-2xl); }

  .artwork-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
  .artwork-detail { padding: var(--space-xl) var(--space-md); }
  .artwork-info h1 { font-size: var(--text-xl); }

  .related-series { padding: 0 var(--space-md) var(--space-xl); }
  .related-strip { gap: var(--space-md); }
  .related-strip .artwork-tile { flex-basis: 150px; }

  .form-row { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-md);
  }

  .footer-inner { flex-direction: column; gap: var(--space-lg); }
  .peoples-artist { padding: var(--space-xl); }

  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
}

/* §7 Motion — respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
