:root {
  --bg: #f5ecd9;
  --bg-alt: #ebe1c8;
  --text: #2a2624;
  --muted: #7a716b;
  --rule: #d9cdb0;
  --accent: #3d4a35;

  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--text); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text); }

.muted { color: var(--muted); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border: 1px solid var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--text); color: var(--bg); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.is-solid {
  position: sticky;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.nav a.is-active { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
}
.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav a { color: var(--text); font-size: 1rem; }
  .nav.is-open { transform: translateX(0); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Feature (homepage) ---------- */
.feature {
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.feature-name {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin: 0 0 0.25em;
  letter-spacing: 0.02em;
}
.feature-tag {
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(2rem, 5vw, 3.25rem);
}
.feature-painting {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-painting img {
  display: block;
  max-height: 65vh;
  max-width: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 18px 48px rgba(42, 38, 36, 0.16),
              0 5px 12px  rgba(42, 38, 36, 0.06);
}
.feature-painting figcaption {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------- Homepage intro ---------- */
.intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.intro p { font-size: 1.125rem; color: var(--muted); margin-bottom: 2rem; }

/* ---------- Profile (about) ---------- */
.bio {
  max-width: 720px;
  margin: 0 auto;
}

.profile-meta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.profile-meta h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.profile-meta ul { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.profile-meta li { padding: 0.35rem 0; color: var(--text); }

/* ---------- Gallery ---------- */
.page-heading {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.page-heading h1 { margin-bottom: 0.5rem; }
.page-heading p { color: var(--muted); max-width: 540px; margin: 0 auto; }

.gallery-grid {
  column-count: 1;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 640px)  { .gallery-grid { column-count: 2; } }
@media (min-width: 1024px) { .gallery-grid { column-count: 3; } }

.tile {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  cursor: zoom-in;
}
.tile img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(42, 38, 36, 0.10),
              0 2px 6px  rgba(42, 38, 36, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.tile:hover img {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(42, 38, 36, 0.16),
              0 4px 10px  rgba(42, 38, 36, 0.06);
}

.tile-caption {
  padding: 1rem 0 0;
  text-align: center;
}
.tile-caption .title {
  font-family: var(--serif);
  font-size: 1.2rem;
  display: block;
  color: var(--text);
}
.tile-caption .meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.tile--solo {
  column-span: all;
  width: auto;
  max-width: 320px;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0 0;
  display: block;
}
.tile--solo .tile-caption {
  text-align: left;
}

.availability {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}
.availability a {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}
.lightbox-caption .title { font-family: var(--serif); font-size: 1.25rem; display: block; margin-bottom: 0.25rem; color: #fff; }
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

/* ---------- Contact ---------- */
.contact-block {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.contact-block p { color: var(--muted); margin-bottom: 2rem; }
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
}
.contact-links a { font-size: 0.95rem; letter-spacing: 0.05em; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer a { color: var(--muted); margin: 0 0.5rem; }
.site-footer a:hover { color: var(--text); }
.site-footer .footer-links { margin-top: 0.5rem; }
