/* ============================================
   PETER POLAINE — DESIGN SYSTEM
   ============================================ */

/* --------------------------------------------
   DESIGN TOKENS
   -------------------------------------------- */
:root {
  /* Colour — OKLCH for perceptual uniformity */
  --c-bg:            oklch(98.5% 0.005 243);
  --c-bg-sidebar:    oklch(96.5% 0.012 243);
  --c-bg-subtle:     oklch(95.5% 0.008 243);  /* panel backgrounds, quickview image well */
  --c-surface:       oklch(99.8% 0.003 243);  /* forms, dialog — faint hue tint, not pure white */
  --c-text:          oklch(21% 0.018 255);
  --c-text-muted:    oklch(48% 0.018 250);    /* was 52% — nudged for WCAG AA at small sizes */
  --c-text-faint:    oklch(55% 0.010 248);    /* was 72% (failed ~2.6:1) — now ~4.5:1 */
  --c-accent:        oklch(75% 0.104 243);   /* cornflower blue — Delphiniums #71b7ec */
  --c-accent-deep:   oklch(64% 0.147 251);   /* vivid blue — Delphiniums #3a8ee0 */
  --c-accent-subtle: oklch(93% 0.020 246);   /* pale wash — Delphiniums #dce8f3 */
  --c-border:        oklch(88% 0.016 245);
  --c-border-strong: oklch(78% 0.028 248);

  /* Typography */
  --f-display: 'Cormorant Garant', Georgia, serif;
  --f-body:    'Instrument Sans', 'Helvetica Neue', system-ui, sans-serif;

  /* Fluid type scale */
  --t-xs:   clamp(0.68rem, 0.63rem + 0.25vw, 0.75rem);
  --t-sm:   clamp(0.80rem, 0.75rem + 0.25vw, 0.875rem);
  --t-base: clamp(0.90rem, 0.85rem + 0.25vw, 1rem);
  --t-lg:   clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
  --t-xl:   clamp(1.2rem,  1.0rem + 1.0vw, 1.5rem);
  --t-2xl:  clamp(1.5rem,  1.2rem + 1.5vw, 2rem);
  --t-3xl:  clamp(2rem,    1.5rem + 2.5vw, 3rem);
  --t-4xl:  clamp(2.5rem,  1.8rem + 3.5vw, 4.2rem);

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

  /* Layout */
  --sidebar-w: 240px;

  /* Motion */
  --ease-out: cubic-bezier(0.25, 0, 0, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 380ms;

  /* Shadows (blue-tinted, hue 243 to match system) */
  --shadow-sm: 0 1px 3px oklch(20% 0.02 243 / 0.07);
  --shadow-md: 0 4px 16px oklch(20% 0.02 243 / 0.09), 0 1px 4px oklch(20% 0.02 243 / 0.05);
  --shadow-lg: 0 16px 48px oklch(20% 0.02 243 / 0.13), 0 4px 12px oklch(20% 0.02 243 / 0.07);
  --shadow-xl: 0 32px 80px oklch(20% 0.02 243 / 0.18), 0 8px 24px oklch(20% 0.02 243 / 0.09);
}

/* --------------------------------------------
   RESET & BASE
   -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Global focus-visible — single consistent keyboard indicator throughout the site */
:focus-visible {
  outline: 2px solid var(--c-accent-deep);
  outline-offset: 3px;
  border-radius: 1px;
}
/* Form inputs use border-color for focus — suppress the outline duplicate */
.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: none;
}

/* Prose links — applies inside content areas only, not nav/UI */
.about-body a,
.artwork-single__description a,
.site-footer a:not([style]) {
  color: var(--c-accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}
.about-body a:hover,
.artwork-single__description a:hover,
.site-footer a:not([style]):hover {
  color: var(--c-text);
}
button { cursor: pointer; font-family: inherit; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; }

/* --------------------------------------------
   SITE LAYOUT
   -------------------------------------------- */
.site-wrapper {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* --------------------------------------------
   SIDEBAR
   -------------------------------------------- */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--c-bg-sidebar);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  padding: var(--sp-8) var(--sp-6);
}

.sidebar__portrait-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: var(--sp-5);
}

.sidebar__portrait {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(15%);
  transition: filter var(--dur-slow) var(--ease-out);
}
.sidebar__portrait-wrap:hover .sidebar__portrait { filter: grayscale(0%); }

.sidebar__name-main {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.1;
}

.sidebar__dates {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  color: var(--c-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: var(--sp-1);
  margin-bottom: var(--sp-6);
}

.sidebar__nav { margin-bottom: var(--sp-6); }

.sidebar__nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.sidebar__link {
  display: block;
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 2px;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.sidebar__link:hover { color: var(--c-text); background: var(--c-accent-subtle); }
.sidebar__link[aria-current="page"] {
  color: var(--c-accent-deep);
  background: var(--c-accent-subtle);
}

/* Separator rule between Home and gallery section links */
.sidebar__nav ul li:nth-child(2) {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
}

.sidebar__link--enquire {
  color: var(--c-accent-deep);
  border: 1px solid var(--c-accent);
  text-align: center;
  margin-top: var(--sp-5);
}
.sidebar__link--enquire:hover {
  background: var(--c-accent);
  color: var(--c-surface);
  border-color: var(--c-accent);
}

.sidebar__bio {
  font-size: var(--t-xs);
  color: var(--c-text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-5);
  margin-top: auto;
}

/* --------------------------------------------
   MAIN CONTENT
   -------------------------------------------- */
.main-content {
  grid-column: 2;
  min-height: 100vh;
  padding: var(--sp-12) clamp(var(--sp-8), 5vw, var(--sp-16)) var(--sp-20);
}

/* --------------------------------------------
   SECTION HEADER
   -------------------------------------------- */
.section-header {
  margin-bottom: var(--sp-12);
  max-width: 640px;
}

.section-header__eyebrow {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  margin-bottom: var(--sp-2);
}

.section-header__title {
  font-size: var(--t-4xl);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}

.section-header__description {
  font-size: var(--t-lg);
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------
   GALLERY GRID
   -------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}

/* --------------------------------------------
   ARTWORK CARD
   -------------------------------------------- */
.artwork-card { cursor: pointer; }

.artwork-card__image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--c-border);
  aspect-ratio: 3/4;
  cursor: pointer;
  touch-action: manipulation;
}
.section--paintings .artwork-card__image-wrap { aspect-ratio: 4/3; }

.artwork-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out),
              filter  var(--dur-slow) var(--ease-out);
}
.artwork-card:hover .artwork-card__image {
  transform: scale(1.03);
  filter: brightness(0.91);
}

.artwork-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
  background: linear-gradient(to top, oklch(20% 0.02 230 / 0.38) 0%, transparent 55%);
}
.artwork-card:hover .artwork-card__overlay { opacity: 1; }
.artwork-card__quickview-btn { pointer-events: auto; }

.artwork-card__quickview-btn {
  background: var(--c-surface);
  color: var(--c-text);
  padding: var(--sp-2) var(--sp-4);
  min-height: 44px;   /* touch target */
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.artwork-card__quickview-btn:hover {
  background: var(--c-accent);
  color: var(--c-surface);
}

.artwork-card__sold-badge {
  position: absolute;
  top: var(--sp-3); right: var(--sp-3);
  background: oklch(97% 0 0 / 0.88);
  color: var(--c-text-muted);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* Amber badge for draft/untitled works */
.artwork-card--draft .artwork-card__image-wrap::after {
  content: 'Untitled';
  position: absolute;
  bottom: var(--sp-3); left: var(--sp-3);
  background: oklch(85% 0.10 80 / 0.88);
  color: oklch(30% 0.06 80);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  backdrop-filter: blur(4px);
}

.artwork-card__meta { padding: var(--sp-4) 0 var(--sp-4); }

.artwork-card__title {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artwork-card__detail {
  font-size: var(--t-xs);
  color: var(--c-text-muted);
}

.artwork-card__price {
  font-size: var(--t-sm);
  margin-top: var(--sp-1);
}

/* --------------------------------------------
   PAGINATION
   -------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--c-border);
}

.pagination__btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  padding: var(--sp-2) 0;
  transition: color var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.pagination__btn:hover { color: var(--c-text); }
.pagination__btn[aria-disabled="true"] { opacity: 0.3; pointer-events: none; }
.pagination__btn svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.pagination__count {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  color: var(--c-text-faint);
}
.pagination__count strong { color: var(--c-text); font-weight: 400; }

/* --------------------------------------------
   SINGLE ARTWORK PAGE
   -------------------------------------------- */
.artwork-single {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(var(--sp-8), 6vw, var(--sp-20));
  align-items: start;
}

.artwork-single__image-wrap {
  position: sticky;
  top: var(--sp-8);
}

.artwork-single__image {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-lg);
}

.artwork-single__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}

.artwork-single__nav-link {
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;   /* touch target height */
  min-height: 44px;
  transition: color var(--dur-fast) var(--ease-out);
}
.artwork-single__nav-link:hover { color: var(--c-text); }
/* "All Prints" centre link — muted without inline style */
.artwork-single__nav-section { color: var(--c-text-muted); }
.artwork-single__nav-link svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Info panel */
.artwork-info { padding-top: var(--sp-2); }

.artwork-info__section-link {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  display: inline-block;
  margin-bottom: var(--sp-2);
}

.artwork-info__title {
  font-size: var(--t-3xl);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--sp-1);
}

.artwork-info__year {
  font-size: var(--t-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-12);
}

/* Metadata key/value */
.artwork-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-3) var(--sp-6);
  align-items: baseline;
  margin-bottom: var(--sp-10);
}
.artwork-meta dt {
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  white-space: nowrap;
  padding-top: 0.1em;
}
.artwork-meta dd { font-size: var(--t-sm); }

/* Edition panel */
.artwork-edition {
  background: var(--c-accent-subtle);
  border-left: 2px solid var(--c-accent);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
}
.artwork-edition__line { font-size: var(--t-sm); }
.artwork-edition__remaining {
  font-size: var(--t-xs);
  color: var(--c-text-muted);
  margin-top: var(--sp-1);
}

/* Price */
.artwork-price { margin-bottom: var(--sp-10); }
.artwork-price__label {
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-1);
}
.artwork-price__amount {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.artwork-price__poa {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  color: var(--c-text-muted);
  font-style: italic;
}

/* Enquire button */
.btn-enquire {
  display: block;
  width: 100%;
  text-align: center;
  padding: var(--sp-4) var(--sp-6);
  background: var(--c-text);
  color: var(--c-bg);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease-out);
  margin-bottom: var(--sp-3);
}
.btn-enquire:hover { background: var(--c-accent-deep); }

/* Description prose */
.artwork-description {
  font-size: var(--t-base);
  color: var(--c-text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-6);
  margin-top: var(--sp-6);
}

/* --------------------------------------------
   QUICKVIEW DIALOG
   -------------------------------------------- */
.quickview {
  border: none;
  padding: 0;
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: min(92vw, 960px);
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--c-surface);
}

.quickview::backdrop {
  background: oklch(20% 0.02 230 / 0.55);
  backdrop-filter: blur(3px);
}

.quickview[open] {
  animation: dialog-in var(--dur-base) var(--ease-out);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.quickview__close {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 44px; height: 44px;   /* was 36×36 — touch target minimum */
  display: flex; align-items: center; justify-content: center;
  background: oklch(from var(--c-surface) l c h / 0.9);
  color: var(--c-text);
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: background var(--dur-fast) var(--ease-out);
}
.quickview__close:hover { background: var(--c-accent-subtle); }
.quickview__close svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round;
}

.quickview__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  height: 90vh;
  max-height: 90vh;
}

.quickview__image-wrap {
  background: var(--c-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-10);
  overflow: hidden;
}

.quickview__image {
  max-width: 100%;
  max-height: calc(90vh - var(--sp-20));
  object-fit: contain;
  box-shadow: var(--shadow-md);
}

.quickview__details {
  padding: var(--sp-12) var(--sp-8);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--c-border);
}

.quickview__section-link {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  margin-bottom: var(--sp-3);
  display: block;
}

.quickview__title {
  font-size: var(--t-2xl);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}

.quickview__meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-3) var(--sp-5);
  align-items: baseline;
  margin-bottom: var(--sp-6);
}
.quickview__meta dt {
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.quickview__meta dd { font-size: var(--t-sm); }

.quickview__price {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: 300;
  margin-top: auto;
  margin-bottom: var(--sp-6);
}

.quickview__full-link {
  display: block;
  text-align: center;
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid var(--c-border-strong);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.quickview__full-link:hover {
  background: var(--c-accent-subtle);
  border-color: var(--c-accent);
}

/* --------------------------------------------
   HOMEPAGE
   -------------------------------------------- */
.home-statement {
  max-width: 680px;
  margin-bottom: var(--sp-16);
}

.home-statement__text {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
}

.home-sections {
  padding-top: var(--sp-20);
  margin-top: var(--sp-4);
}

.home-section { margin-bottom: var(--sp-24); }

.home-section-title {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.home-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.home-section-link {
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent-deep);
  margin-top: var(--sp-6);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color var(--dur-fast) var(--ease-out);
}
.home-section-link svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--dur-fast) var(--ease-out);
}
.home-section-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------
   ABOUT PAGE
   -------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-20);
  align-items: start;
  max-width: 1060px;
}

.about-body {
  font-size: var(--t-lg);
  line-height: 1.8;
}
.about-body p + p { margin-top: var(--sp-6); }

.about-body h2 {
  font-size: var(--t-2xl);
  font-weight: 300;
  margin: var(--sp-12) 0 var(--sp-4);
}

.about-body blockquote {
  border-left: 2px solid var(--c-accent);
  margin: var(--sp-8) 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-6);
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-style: italic;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.about-aside__image {
  width: 100%;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-6);
}
.about-aside__caption {
  font-size: var(--t-xs);
  color: var(--c-text-muted);
}

/* --------------------------------------------
   ENQUIRE FORM
   -------------------------------------------- */
.enquire-layout { max-width: 600px; }

.enquire-context {
  background: var(--c-accent-subtle);
  border-left: 2px solid var(--c-accent);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-8);
  font-size: var(--t-sm);
  color: var(--c-text-muted);
}
.enquire-context strong { color: var(--c-text); font-weight: 500; }

.form-group { margin-bottom: var(--sp-6); }

.form-label {
  display: block;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--f-body);
  font-size: var(--t-base);
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}
/* Focus: border-color change is the visual signal; outline suppressed by :focus-visible rule above */
.form-input:focus,
.form-textarea:focus { border-color: var(--c-accent-deep); }
.form-textarea { min-height: 140px; resize: vertical; }

.form-submit {
  display: block;
  width: 100%;
  padding: var(--sp-4) var(--sp-8);
  background: var(--c-text);
  color: var(--c-bg);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.form-submit:hover { background: var(--c-accent-deep); }

/* --------------------------------------------
   MOBILE NAV TOGGLE
   -------------------------------------------- */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: var(--sp-4); left: var(--sp-4);
  z-index: 200;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  width: 40px; height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.mobile-nav-toggle span {
  display: block;
  width: 18px; height: 1px;
  background: var(--c-text);
  transition: transform var(--dur-base) var(--ease-out),
              opacity   var(--dur-base) var(--ease-out);
}
.mobile-nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(20% 0.02 230 / 0.3);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.sidebar-scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------
   FOOTER
   -------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: var(--sp-8) 0;
  margin-top: var(--sp-20);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--t-xs);
  color: var(--c-text-faint);
  letter-spacing: 0.04em;
}

/* --------------------------------------------
   RESPONSIVE
   -------------------------------------------- */
@media (max-width: 1100px) {
  .artwork-single {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .artwork-single__image-wrap { position: static; }
}

@media (max-width: 860px) {
  .site-wrapper { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    left: calc(-1 * var(--sidebar-w));
    transition: left var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out);
    z-index: 150;
  }
  .sidebar.is-open {
    left: 0;
    box-shadow: var(--shadow-xl);
  }

  .sidebar-scrim { display: block; }
  .mobile-nav-toggle { display: flex; }

  .main-content {
    grid-column: 1;
    padding: var(--sp-16) var(--sp-5) var(--sp-12);
  }

  .about-layout { grid-template-columns: 1fr; }

  .quickview {
    max-height: 82vh;
  }
  .quickview__inner {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: 82vh;
    max-height: 82vh;
  }
  .quickview__image-wrap {
    height: auto;
    min-height: 0;
    padding: var(--sp-4);
  }
  .quickview__image {
    max-height: 100%;
  }
  .quickview__details {
    border-left: none;
    border-top: 1px solid var(--c-border);
    max-height: 44vh;
    padding: var(--sp-4) var(--sp-5);
    overflow-y: auto;
  }
  .quickview__title {
    font-size: var(--t-xl);
    margin-bottom: var(--sp-3);
  }
  .quickview__price {
    font-size: var(--t-xl);
    margin-top: var(--sp-3);   /* override margin-top: auto — stops price being pushed to bottom of scroll area */
    margin-bottom: var(--sp-3);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .section-header__title { font-size: var(--t-3xl); }
  .main-content { padding-top: var(--sp-12); }
}

/* Touch devices: always show the quickview overlay button */
@media (hover: none) {
  .artwork-card__overlay {
    opacity: 1;
    background: linear-gradient(to top, oklch(20% 0.02 230 / 0.42) 0%, transparent 52%);
  }
  /* No hover zoom/dim on touch */
  .artwork-card:hover .artwork-card__image { transform: none; filter: none; }
  .artwork-card:hover .artwork-card__overlay { opacity: 1; }
}

/* --------------------------------------------
   SECTION QUOTE (between description & grid)
   -------------------------------------------- */
.section-quote {
  border-left: 2px solid var(--c-accent);
  margin: 0 0 var(--sp-12);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-6);
  max-width: 680px;
}

.section-quote p {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-3);
}

.section-quote cite {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-faint);
}

/* --------------------------------------------
   HOMEPAGE ABOUT TEXT
   -------------------------------------------- */
.home-about {
  max-width: 640px;
  margin-bottom: var(--sp-16);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--c-border);
}

.home-about p {
  font-size: var(--t-lg);
  line-height: 1.8;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-5);
}

.home-about h2 {
  font-size: var(--t-2xl);
  font-weight: 300;
  margin: var(--sp-10) 0 var(--sp-4);
  color: var(--c-text);
}

.home-about blockquote {
  border-left: 2px solid var(--c-accent);
  margin: var(--sp-6) 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-6);
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-style: italic;
  font-weight: 300;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------
   FORM STATUS MESSAGE
   -------------------------------------------- */
.form-status {
  margin-top: var(--sp-4);
  font-size: var(--t-sm);
  min-height: 1.4em;
}

.form-status--success {
  color: oklch(45% 0.12 155);  /* muted green */
}

.form-status--error {
  color: oklch(45% 0.15 25);   /* muted red */
}

/* Enquire page — section header spacing without inline style */
.enquire-layout .section-header { margin-bottom: var(--sp-8); }

/* Artwork card price-on-application — replaces inline style */
.artwork-card__price--poa { color: var(--c-text-muted); }

/* Footer enquire link — replaces inline style */
.site-footer__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------
   REDUCED MOTION
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Prevent layout/composite transforms from running */
  .artwork-card:hover .artwork-card__image {
    transform: none;
    filter: none;
  }
  .home-section-link:hover svg { transform: none; }
  .sidebar__portrait-wrap:hover .sidebar__portrait { filter: grayscale(15%); }
}
