@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400&display=swap');

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

:root {
  --bg:         #0d0d0d;
  --surface:    #1a1918;
  --surface2:   #242220;
  --border:     #332f2b;
  --text:       #e0d8cf;
  --text-muted: #9a9088;
  --gold:       #c4a862;
  --gold-light: #d4bc82;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a                { color: var(--gold); text-decoration: none; }
a:hover          { color: var(--gold-light); }
img              { display: block; max-width: 100%; height: auto; }

/* ================================================
   HEADER
   ================================================ */
.site-header {
  background: var(--bg);
}


.header-hero {
  min-height: 240px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem 1.6rem;
  background-color: #000;
}

/* background image layer — fades independently on page change */
.hero-bg {
  position: absolute;
  top: 0;
  right: 10%;
  bottom: 0;
  width: 60%;
  background-size: auto 130%;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg--zoom {
  background-size: auto 165%;
  background-position: right 30%;
}

.header-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 1;
}


/* text on light header — switch to dark colours */
.header-light .header-text h1 {
  color: var(--text);
  text-shadow: 0 1px 6px rgba(246,242,237,0.8);
}

.header-light .header-text .tagline {
  color: var(--gold);
  text-shadow: none;
}

.header-text {
  position: relative;
  z-index: 2;
  padding-left: 1.5rem;
}

.header-text h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.9);
}

.header-text .tagline {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.45rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

/* ================================================
   NAV
   ================================================ */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.site-nav ul {
  display: flex;
  list-style: none;
  flex: 1;
  padding: 0 0.5rem;
}

.site-nav ul li a {
  display: block;
  padding: 0.9rem 1.1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.site-nav ul li a:hover           { color: var(--text); }
.site-nav ul li.active a          { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.9rem 1.2rem;
  color: var(--text-muted);
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: all 0.25s;
}

/* ================================================
   MAIN WRAPPER
   ================================================ */
.site-main {
  max-width: 940px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  transition: opacity 0.22s ease;
}

.page-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.gallery-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  opacity: 0.75;
}

/* ================================================
   TWO-COLUMN LAYOUT  (home / about / contact)
   ================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  align-items: start;
}

/* ================================================
   UPDATE NOTICE  (home page)
   ================================================ */
.update-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.6rem;
}

.update-notice .label {
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.update-notice ul {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.update-notice li { padding: 0.15rem 0; }
.update-notice li::before { content: '— '; color: var(--gold); }

.featured-image img {
  width: 100%;
  border: 1px solid var(--border);
}

/* ================================================
   ARTIST STATEMENT  (home page)
   ================================================ */
.artist-statement {
  text-align: center;
  padding: 1rem 0.5rem 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.artist-statement p {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.artist-statement .statement-closer {
  font-style: normal;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-top: 1.2rem;
  margin-bottom: 0;
  line-height: 1.7;
}

.lit-panel .artist-statement {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ================================================
   BIOGRAPHY  (about page)
   ================================================ */
.bio-figure {
  margin: 2rem auto;
  text-align: center;
}

.bio-figure img {
  display: inline-block;
  max-width: 520px;
  width: 100%;
  height: auto;
  box-shadow:
    0 0 0 6px #f6f2ed,
    0 0 0 9px #c4a862,
    0 0 0 15px #f6f2ed,
    0 8px 32px rgba(0, 0, 0, 0.45);
}

.bio-figure figcaption {
  margin-top: 0.9rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.bio-text {
  margin-top: 1.5rem;
}

.bio-text p {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.bio-quote {
  border-left: 3px solid var(--gold);
  margin: 0.5rem 0 1.5rem 0;
  padding: 1rem 1.25rem 1rem 1.5rem;
  background: rgba(184, 149, 106, 0.04);
}

.bio-quote p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
}

.bio-quote p:last-child {
  margin-bottom: 0;
}

/* ================================================
   MISTY PANEL  (artist statement + bio)
   Wispy dissolving edges via SVG displacement filter.
   ::before carries the cream fill + shadows so the
   filter distorts only the background, not the text.
   ================================================ */
.lit-panel {
  position: relative;
  isolation: isolate;
  padding: 1.2rem 1.8rem 1.5rem;
  margin: 2rem 0;
  --text:       #2a2520;
  --text-muted: #6a6058;
  --gold:       #8a5c1a;
  --gold-light: #a86f22;
  --border:     #c8c0b8;
}

.lit-panel::before {
  content: '';
  position: absolute;
  inset: -14px -10px;
  background: #f6f2ed;
  border-radius: 12px;
  filter: url(#misty-edges)
          drop-shadow(0 4px 18px rgba(0, 0, 0, 0.65))
          drop-shadow(0 0 38px rgba(255, 220, 180, 0.18));
  z-index: -1;
}

/* ================================================
   SIDEBAR
   ================================================ */
.sidebar-block { margin-bottom: 2rem; }

.sidebar-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.8rem;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  border-bottom: 1px solid var(--border);
}

.sidebar-links li a {
  display: block;
  padding: 0.45rem 0;
  color: var(--text-muted);
  font-size: 0.83rem;
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-links li a:hover     { color: var(--text); padding-left: 0.3rem; }
.sidebar-links li.active a    { color: var(--gold); }

.sidebar-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.sidebar-info a { color: var(--text-muted); }
.sidebar-info a:hover { color: var(--gold); }

/* ================================================
   GALLERY NAV TABS
   ================================================ */
.gallery-tabs {
  display: flex;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow: hidden;
}

.gallery-tabs a {
  flex: 1;
  text-align: center;
  padding: 0.7rem 0.4rem;
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border-right: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.gallery-tabs a:last-child   { border-right: none; }
.gallery-tabs a:hover        { background: var(--surface2); color: var(--text); }
.gallery-tabs a.active       { background: var(--surface2); color: var(--gold); border-bottom: 2px solid var(--gold); }

/* ================================================
   GALLERY GRID
   ================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.gallery-item {
  overflow: visible;
}

.gallery-item a {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(196, 168, 98, 0.3);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.35s ease;
}

.gallery-item:hover a {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7), 0 0 14px rgba(196, 168, 98, 0.14);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  transition: transform 0.45s ease, opacity 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.gallery-item figcaption {
  padding: 0.55rem 0 0;
  text-align: center;
}

.gallery-item .painting-title {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.gallery-item .painting-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  overflow: hidden;
}

.lightbox.open { display: flex; }

.lb-inner {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.lb-inner img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--border);
  box-shadow: 0 8px 60px rgba(0,0,0,0.85);
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.lb-caption {
  margin-top: 1rem;
  text-align: center;
}

.lb-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--text);
  display: block;
}

.lb-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.2rem;
  display: block;
}

.lb-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.lb-close:hover { color: #fff; }

/* ================================================
   PURCHASE NOTICE  (gallery pages)
   ================================================ */
.purchase-notice {
  text-align: center;
  padding: 1.8rem 2rem;
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  background: var(--surface);
  margin-bottom: 1rem;
}

.purchase-notice p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.purchase-notice a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.purchase-notice a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* ================================================
   CONTACT FORM
   ================================================ */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #f0ece8;
  border: 1px solid var(--border);
  color: #2a2520;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.6rem 0.75rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237c6b8a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
  padding-bottom: 0.85rem;
  line-height: 1.5;
}

.form-group select option {
  background: var(--surface);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.3rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  -webkit-appearance: radio;
  appearance: auto;
  accent-color: var(--gold);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-submit {
  background: var(--gold);
  color: #0d0d0d;
  border: none;
  padding: 0.7rem 2rem;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover   { background: var(--gold-light); }
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  color: var(--text);
}

.form-status.error {
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid #c0392b;
  color: #e07070;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.site-footer a          { color: var(--text-muted); }
.site-footer a:hover    { color: var(--gold); }

/* ================================================
   RESPONSIVE — WIDE TABLET  ≤ 900 px
   ================================================ */
@media (max-width: 900px) {
  .header-text .tagline {
    max-width: 8rem;
  }
}

/* ================================================
   RESPONSIVE — TABLET  ≤ 720 px
   ================================================ */
@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .gallery-tabs a {
    flex: 1 0 45%;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

}

/* ================================================
   RESPONSIVE — MOBILE  ≤ 520 px
   ================================================ */
@media (max-width: 520px) {
  .header-hero {
    min-height: 170px;
    padding: 0 1rem 1.2rem;
  }

  .header-text h1 { font-size: 2rem; }

  .header-text {
    max-width: 55%;
  }

  .site-main { padding: 1.5rem 1rem 2.5rem; }

  /* show hamburger, hide inline list */
  .nav-toggle          { display: flex; }
  .site-nav ul         { display: none; flex-direction: column; padding: 0; }
  .site-nav ul.open    { display: flex; }
  .site-nav ul li a    {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--border);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-tabs {
    flex-wrap: wrap;
  }
}
