/* ==========================================================
   Alan Brash — Figurative Artist / Teal Creatives Ltd
   site.css — v1

   Design principles:
   - Gravitas and confidence
   - Paintings carry the visual weight
   - Sharp edges throughout (no rounded corners on containers)
   - White page body — gallery white
   - Painter's blue (#1e3a6e) for structural elements
   - Cadmium orange (#f97316) as single accent — used sparingly
   - Syne for all headings
   - Lato for body text
   ========================================================== */


/* ==========================================================
   1. DESIGN TOKENS
   ========================================================== */

:root {
  /* Palette */
  --ink:          #1a1a1a;
  --ink-muted:    #555555;
  --ink-subtle:   #888888;
  --bg:           #ffffff;
  --bg-warm:      #f8f7f5;   /* very subtle warm tint for alternating sections */
  --line:         #e5e5e5;
  --line-strong:  #c8c8c8;

  /* Brand */
  --blue:         #1e3a6e;   /* painter's blue — header, footer, key accents */
  --blue-dark:    #162444;   /* footer variant */
  --blue-muted:   #7da0c8;   /* muted nav links on dark background */
  --orange:       #f97316;   /* cadmium orange — single accent colour */
  --orange-dark:  #ea6c00;   /* orange hover state */
  --warm-white:   #f0ece4;   /* text on dark backgrounds */

  /* Typography */
  --font-head: "Syne",  system-ui, -apple-system, sans-serif;
  --font-body: "Lato",  system-ui, -apple-system, sans-serif;

  /* Legacy alias — exhibitions-override.css references var(--teal) with its own fallback.
     This alias maps it to painter's blue so it inherits the new palette. */
  --teal: var(--blue);

  /* Type scale */
  --fs-xs:   0.8125rem;  /* 13px */
  --fs-sm:   0.9375rem;  /* 15px */
  --fs-base: 1rem;       /* 16px */
  --fs-md:   1.125rem;   /* 18px */
  --fs-lg:   1.375rem;   /* 22px */
  --fs-xl:   1.75rem;    /* 28px */
  --fs-2xl:  2.25rem;    /* 36px */
  --fs-3xl:  3.25rem;    /* 52px */

  /* Line heights */
  --lh-tight:  1.15;
  --lh-normal: 1.6;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --container: 1200px;
  --radius:    0px;    /* sharp by default — no rounding on containers */
  --radius-btn: 2px;   /* minimal rounding on buttons only */

  /* Motion */
  --speed: 180ms;
}


/* ==========================================================
   2. RESET
   ========================================================== */

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}


/* ==========================================================
   3. TYPOGRAPHY
   ========================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, var(--fs-3xl));
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.75rem, var(--fs-2xl));
  font-weight: 700;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
}

h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
}

.lead {
  font-size: var(--fs-md);
  color: var(--ink-muted);
  max-width: none;
  line-height: 1.7;
}

.kicker {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-2);
  display: block;
}

em {
  font-style: italic;
}


/* ==========================================================
   4. LAYOUT
   ========================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Legacy layout classes — older pages use .pageinner / .page__inner instead of .container */
.pageinner,
.page__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Body text fills the container naturally — width set by .pageinner / .container above */

/* Legacy header class — workshops.php uses .pageheader instead of .page__header */
.pageheader h1 {
  font-size: clamp(1.7rem, 2.4vw, var(--fs-2xl));
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.section {
  padding-block: var(--space-12);
}

.section--tight {
  padding-block: var(--space-8);
}

.section--flush {
  padding-block: 0;
}

.section--warm {
  background: var(--bg-warm);
}


/* ==========================================================
   5. ACCESSIBILITY
   ========================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: var(--blue);
  color: var(--warm-white);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}


/* ==========================================================
   6. HEADER / NAV
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  border-bottom: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.site-header .nav {
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
  height: 70px;
}

.nav__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.1;
  text-decoration: none;
}

.nav__brand:hover,
.nav__brand:focus-visible {
  text-decoration: none;
}

.nav__brand span {
  display: block;
}

.nav__brand span:nth-child(1) {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--warm-white);
}

.nav__brand span:nth-child(2) {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

.site-header .nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  align-items: center;
}

.site-header .nav__links a {
  color: var(--blue-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--speed);
}

.site-header .nav__links a:hover {
  color: var(--warm-white);
  text-decoration: none;
}

.site-header .nav__links a[aria-current="page"] {
  color: var(--warm-white);
  font-weight: 500;
}


/* ==========================================================
   7. HERO — FULL-BLEED PAINTING CROP
   ========================================================== */

.hero-crop {
  width: 100%;
  height: 78vh;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.hero-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-crop--eye {
  object-position: 20% 35%;  /* tune to focus on the painting, avoid white wall */
}


/* ==========================================================
   8. PAGE STRUCTURE
   ========================================================== */

.page__header {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-8);
}

.page__header h1 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.7rem, 2.4vw, var(--fs-2xl));
  font-weight: 700;
}

.page__header .lead {
  margin-bottom: 0;
}

/* Page eyebrow — small label above page h1, consistent across all page structures */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 var(--space-2);
  display: block;
}

/* Consistent top spacing for page headers regardless of wrapper class */
.page__inner > .page__header,
.pageinner > .pageheader,
.container.prose > .page__header {
  padding-top: var(--space-8);
}

/* Open-calls wraps page__header in section.section--tight which already adds top padding */
section .container.prose > .page__header {
  padding-top: 0;
}

.page__section {
  padding-bottom: var(--space-8);
}

.page__section + .page__section {
  border-top: 1px solid var(--line);
}

.prose {
  max-width: 72ch;
}

.prose p + p {
  margin-top: var(--space-4);
}

/* When prose is on a container, keep the container at full site width */
.container.prose {
  max-width: var(--container);
}


/* ==========================================================
   9. FEATURE — PAINTING + TEXT LAYOUT
   ========================================================== */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.feature--reverse {
  direction: rtl;
}

.feature--reverse > * {
  direction: ltr;
}

.feature__media {
  overflow: hidden;
}

.feature__media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.feature__media:hover img {
  transform: scale(1.02);
}

.feature__body {
  padding-block: var(--space-4);
  padding-inline: var(--space-8);
}

.feature__body h2 {
  margin-bottom: var(--space-3);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
  color: var(--ink-subtle);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}


/* ==========================================================
   10. BUTTONS
   ========================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--speed), color var(--speed), border-color var(--speed);
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--warm-white);
}

.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--warm-white);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink-muted);
}

.btn--ghost:hover {
  background: var(--bg-warm);
  color: var(--ink);
  border-color: var(--ink-muted);
}

/* Legacy aliases used in existing templates */
.card__more {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--speed), color var(--speed);
}

.card__more:hover {
  background: var(--bg-warm);
  color: var(--ink);
  text-decoration: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}


/* ==========================================================
   11. BADGES
   ========================================================== */

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--ink-muted);
  white-space: nowrap;
}

.badge--available {
  border-color: rgba(30, 58, 110, 0.25);
  color: var(--blue);
}

.gi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.12rem 0.45rem;
  background: #C8941F;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 0.45rem;
  white-space: nowrap;
  font-family: var(--font-body);
}


/* ==========================================================
   12. EXHIBITIONS — core styles
   (detailed overrides live in exhibitions-override.css)
   ========================================================== */

.exhibitions-roundup h2 {
  font-family: var(--font-head);
  font-weight: 700;
}

.exhibitions-roundup h3 {
  font-family: var(--font-head);
  font-weight: 600;
}

.exh-table {
  table-layout: fixed;
}

.exh-key {
  font-size: 0.75rem;
  color: var(--ink-subtle);
  margin-bottom: var(--space-4);
}

.exh-info-btn {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  background: var(--blue);
  color: var(--warm-white);
  text-decoration: none;
  border-radius: var(--radius-btn);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--speed);
  font-family: var(--font-body);
}

.exh-info-btn:hover {
  background: var(--blue-dark);
  color: var(--warm-white);
}

.venue-directions {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f97316;
  text-decoration: none;
  white-space: nowrap;
}

.venue-directions:hover {
  color: #ea6c00;
  text-decoration: none;
}

.closing-badge {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

.postcode-group-row td {
  padding: 0.75rem 0 0.35rem;
  border-top: 1px solid var(--line);
  border-bottom: none;
}

.postcode-group-empty {
  border-top: 1px solid var(--line) !important;
}

.postcode-group-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.postcode-group-code {
  color: var(--ink-subtle);
  font-weight: 400;
  font-size: 0.7rem;
}

#edinburgh {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--blue);
  color: var(--blue);
}

/* Archive / dev */
.page--glasgow-exhibitions details {
  margin: 1.25rem 0 0;
  border: 1px solid var(--line);
  background: var(--bg);
}

.page--glasgow-exhibitions details > summary {
  cursor: pointer;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-muted);
  list-style: none;
}

.page--glasgow-exhibitions details > summary::before {
  content: "▸";
  margin-right: 0.5rem;
  color: var(--ink-subtle);
}

.page--glasgow-exhibitions details[open] > summary::before {
  content: "▾";
}

.archive-meta {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-subtle);
}

.dev { display: none; }


/* ==========================================================
   13. SUBSCRIBE FORM
   ========================================================== */

.subscribe-box {
  padding: var(--space-6);
  border-left: 3px solid var(--orange);
  background: var(--bg-warm);
  margin-bottom: var(--space-8);
}

.subscribe-title {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.subscribe-text {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.subscribe-input {
  flex: 1 1 220px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  background: var(--bg);
  color: var(--ink);
}

.subscribe-input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.subscribe-button {
  padding: 0.55rem 1.3rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--orange);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background var(--speed);
}

.subscribe-button:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.subscribe-groups {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  width: 100%;
}

.subscribe-groups legend {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.subscribe-groups label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: var(--space-4);
  font-size: var(--fs-sm);
  cursor: pointer;
  color: var(--ink-muted);
}

.subscribe-groups input[type="checkbox"] {
  accent-color: var(--blue);
  width: 1rem;
  height: 1rem;
}

.subscribe-legal {
  font-size: var(--fs-xs);
  color: var(--ink-subtle);
  margin: 0;
}

.subscribe-success {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin: var(--space-3) 0 0;
}

/* Footer variant — dark background */
.subscribe-box--footer {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--orange);
}

.subscribe-box--footer .subscribe-title  { color: var(--warm-white); }
.subscribe-box--footer .subscribe-text,
.subscribe-box--footer .subscribe-legal,
.subscribe-box--footer .subscribe-groups legend,
.subscribe-box--footer .subscribe-groups label { color: #a8bfd8; }

.subscribe-box--footer .subscribe-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--warm-white);
}

.subscribe-box--footer .subscribe-input::placeholder { color: #5a7a9a; }
.subscribe-box--footer .subscribe-button {
  background: var(--orange);
  border-color: var(--orange);
}
.subscribe-box--footer .subscribe-button:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}


/* ==========================================================
   14. FOOTER
   ========================================================== */

.site-footer {
  background: var(--blue-dark);
  border-top: none;
  padding-block: var(--space-10);
  margin-top: var(--space-10);
  color: #a8bfd8;
  font-size: var(--fs-sm);
}

.site-footer strong { color: var(--warm-white); }
.site-footer p      { color: #a8bfd8; margin-bottom: var(--space-3); }
.site-footer a      { color: var(--blue-muted); text-decoration: none; }
.site-footer a:hover { color: var(--warm-white); text-decoration: none; }
.site-footer .muted  { color: #5a7a9a; }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
}

.footernav p { margin: 0 0 0.45rem; }
.footer__grid > div:last-child p { margin: 0 0 0.45rem; }


/* ==========================================================
   15. UTILITIES
   ========================================================== */

.center  { text-align: center; }
.muted   { color: var(--ink-muted); }
.subtle  { color: var(--ink-subtle); }

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: var(--space-8);
}

.banner {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  border-radius: var(--radius-btn);
  margin-bottom: var(--space-4);
  display: none;
}

.banner:not(:empty) { display: block; }

.banner.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.loading {
  padding: var(--space-8) 0;
  color: var(--ink-subtle);
  font-size: var(--fs-sm);
}

.spacer { margin-block: var(--space-8); }

.lift {
  transition: transform 0.3s ease;
}

.lift:hover {
  transform: translateY(-2px);
}


/* ==========================================================
   16. RESPONSIVE
   ========================================================== */

/* --- Header mobile --- */
@media (max-width: 640px) {
  .site-header .nav {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 0.9rem;
  }

  .nav__brand span:nth-child(1) { font-size: 1.35rem; }
  .nav__brand span:nth-child(2) { font-size: 0.66rem; }

  .site-header .nav__links {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-header .nav__links::-webkit-scrollbar { display: none; }
  .site-header .nav__links a { flex: 0 0 auto; }
}

/* --- Hero mobile --- */
@media (max-width: 768px) {
  .hero-crop {
    height: 55vw;
    min-height: 280px;
  }
}

/* --- Feature layout mobile --- */
@media (max-width: 760px) {
  .feature {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .feature--reverse {
    direction: ltr;
  }
}

/* --- Container padding mobile --- */
@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }

  .section {
    padding-block: var(--space-8);
  }
}

/* --- Footer grid mobile --- */
@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* --- Subscribe form mobile --- */
@media (max-width: 480px) {
  .subscribe-form {
    flex-direction: column;
  }
  .subscribe-input,
  .subscribe-button {
    width: 100%;
  }
}


/* ==========================================================
   17. HOME MOSAIC
   ========================================================== */

.home-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(4, minmax(170px, 22vw)) minmax(120px, 13vw);
  gap: 0;
}

/* Anchor tile: Unforeseen Consequences */
.mosaic__anchor {
  grid-column: 1;
  grid-row: 1 / 4;
}

/* Statement panel */
.mosaic__statement {
  grid-column: 1;
  grid-row: 4;
  background: var(--bg-warm);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mosaic__statement blockquote {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 300;
  margin: 0;
}

.mosaic__statement cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* Commission tiles */
.mosaic__commission {
  grid-column: 1;
  grid-row: 5;
}

.mosaic__commission-wide {
  grid-column: 2 / 4;
  grid-row: 5;
}

/* All tiles */
.mosaic__tile {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: var(--ink);
}

.mosaic__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.mosaic__tile:hover img {
  transform: scale(1.03);
}

.mosaic__tile-title {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(240, 236, 228, 0.9);
  letter-spacing: 0.06em;
  line-height: 1.3;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.mosaic__commission-tag {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Declaration quote — homepage statement */
.declaration-quote {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.declaration-quote cite {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}


/* Featured painting hero */
.painting-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.painting-hero img {
  width: 100%;
  height: auto;
  display: block;
  animation: hero-zoom 14s ease-out forwards;
  transform-origin: center center;
  will-change: transform;
}

@keyframes hero-zoom {
  from { transform: scale(1.06) translateX(-2.5%); }
  to   { transform: scale(1.14) translateX(2.5%); }
}

.painting-hero__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
}

.painting-hero__title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(240, 236, 228, 0.92);
  text-transform: uppercase;
}

.painting-hero__link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 236, 228, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.painting-hero__link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

.painting-hero__promo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.32) 0%, transparent 70%);
}

.painting-hero__promo-headline {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.5rem;
}

.painting-hero__promo-btn {
  display: inline-block;
  padding: 0.6rem 2.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.painting-hero__promo-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

@media (max-width: 540px) {
  .painting-hero__footer {
    padding: 1.25rem 1rem 1rem;
  }
  .painting-hero__title {
    font-size: 0.6rem;
    letter-spacing: 0.07em;
  }
  .painting-hero__link {
    font-size: 0.6rem;
    letter-spacing: 0.07em;
  }
}

/* ArtMag typographic panel */
.artmag-panel {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--line);
}

.artmag-panel blockquote {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
  max-width: 780px;
  font-weight: 300;
  margin: 0;
  padding-left: var(--space-6);
  border-left: 3px solid var(--orange);
}

.artmag-panel cite {
  display: block;
  margin-top: var(--space-4);
  margin-left: calc(var(--space-6) + 3px);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.artmag-panel cite a {
  color: var(--blue);
  text-decoration: none;
}

.artmag-panel cite a:hover {
  text-decoration: underline;
}

/* Mosaic mobile */
@media (max-width: 700px) {
  .home-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .mosaic__anchor {
    grid-column: 1 / 3;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .mosaic__statement {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .mosaic__commission,
  .mosaic__commission-wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1;
  }
}


/* ==========================================================
   18. GRID + PAINTING CARDS
   ========================================================== */

.grid {
  --min: 260px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  gap: var(--space-8);
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);   /* 0 = sharp */
  overflow: hidden;
  transition: transform var(--speed) ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
}

.card__media {
  display: block;
  background: var(--bg-warm);
  clip-path: inset(0);            /* avoids Safari compositing bug */
}

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

.card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body .card__more {
  margin-top: auto;
  padding-top: var(--space-3);
}

.card__badge-row {
  margin: 0.4rem 0 0.6rem;
}

.card__dims {
  margin: 0.15rem 0 0.6rem;
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--ink-subtle);
  line-height: 1.4;
}

.card__summary {
  margin: 0 0 0.75rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Full-width "more info" button on cards */
.card__more {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.45rem 0;
  background: none;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-btn);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--speed), color var(--speed);
}

.card__more:hover {
  background: var(--blue);
  color: var(--warm-white);
  text-decoration: none;
}

.card__more:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Badge variants */
.badge--available {
  border: none;
  padding: 0;
  color: var(--blue);
}

.badge--unavailable {
  border: none;
  padding: 0;
  color: var(--ink-subtle);
}

.badge--sold {
  border: 1px solid #9b1c1c;
  color: #9b1c1c;
}

/* Meta row — horizontal on feature sections */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-subtle);
}

/* Open calls deadline colours */
.deadline--green { color: #15803d; }
.deadline--amber { color: #b45309; }
.deadline--red   { color: #b91c1c; }
.deadline--past  { color: var(--ink-subtle); }


/* ==========================================================
   18. HOME SECTION TREATMENTS
   ========================================================== */

/* Feature painting sections — clean, no panel card */
.section.home-featured-painting,
.section.home-feature {
  padding-block: var(--space-8);
}

.home-featured-painting .container,
.home-feature .container {
  background: none;
  border: none;
  border-radius: 0;
  padding-inline: 0;
  box-shadow: none;
}

/* Feature grid override — no panel card, no inner padding */
.home-featured-painting .feature,
.home-feature .feature {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.home-featured-painting .feature__media,
.home-feature .feature__media {
  border-radius: 0;
  overflow: hidden;
}

/* Kicker in painting sections — orange, consistent with new palette */
.home-featured-painting .kicker {
  color: var(--orange);
  font-weight: 600;
}


/* ==========================================================
   19. PRESS / PULLQUOTE
   ========================================================== */

.section.pgds-press {
  padding-block: var(--space-8);
}

.pgds-press .container {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-8);
}

.pgds-press__layout {
  display: grid;
  gap: 1.75rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .pgds-press__layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  }
}

.pgds-press__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pullquote {
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--orange);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
}

.pullquote__source {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}


/* ==========================================================
   20. ART POPUP WINDOW
   ========================================================== */

.art-popup {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
}

.art-popup__wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.art-popup__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto var(--space-6);
}

.art-popup__title {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

.art-popup__meta {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}

.art-popup__price {
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.art-popup__status {
  margin-bottom: var(--space-4);
}

.art-popup__summary {
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: var(--space-6);
}

.art-popup__narrative {
  margin-bottom: var(--space-6);
  line-height: var(--lh-normal);
}

.art-popup__narrative p {
  margin-bottom: var(--space-4);
}

.art-popup__enquire {
  margin: var(--space-6) 0 var(--space-3);
}

.art-popup__enquire-link {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: var(--blue);
  color: var(--warm-white);
  text-decoration: none;
  border-radius: var(--radius-btn);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--speed);
}

.art-popup__enquire-link:hover {
  background: var(--blue-dark);
  color: var(--warm-white);
}

.art-popup__studio-images {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin: var(--space-6) 0;
}

.art-popup__studio-thumb {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.art-popup__close-btn {
  margin-top: var(--space-6);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  border-radius: var(--radius-btn);
  border: 1px solid var(--line-strong);
  background: var(--bg-warm);
  cursor: pointer;
  transition: background var(--speed);
}

.art-popup__close-btn:hover {
  background: var(--line);
}


/* ==========================================================
   21. PGDS 2025 PAGE
   ========================================================== */

.pgds-hero {
  margin: 0 0 var(--space-10);
}

.pgds-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.pgds-install,
.pgds-details {
  margin: var(--space-10) 0;
}

.pgds-details__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.pgds-details__grid img {
  display: block;
  width: 100%;
  height: auto;
}

.pgds-details__grid img:nth-child(3) {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .pgds-details__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.section.pgds-video {
  padding-block: var(--space-6);
}

.pgds-video .container {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-6);
}

.video-block {
  max-width: 960px;
  margin: 0 auto;
}

.video-block video {
  display: block;
  width: 100%;
  height: auto;
}

.video-caption {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--ink-subtle);
}

.gallery-group__intro {
  color: var(--ink-muted);
  column-count: 2;
  column-gap: 2.5rem;
  column-fill: balance;
}

@media (max-width: 768px) {
  .gallery-group__intro {
    column-count: 1;
    column-gap: 0;
  }
}
