/* ═══════════════════════════════════════════════════════
   Luane Brauner — site stylesheet v4
   Warm stone grey palette · Cinzel + Libre Baskerville
   ═══════════════════════════════════════════════════════ */

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

:root {
  --ground: #D8D3C4;
  --ground-deep: #CFC9B8;
  --ink: #2B2620;
  --ink-soft: #4A433A;
  --ink-whisper: #7A7265;
  --accent: #8B6B2F;
  --accent-soft: #A58140;
  --rule: #9C9487;
  --rule-soft: #B8AF9F;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--ink-soft);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ── SITE HEADER (identical on every page) ─────────── */
.site-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.site-name {
  font-family: 'Cinzel', 'Trajan Pro', serif;
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 0.7rem;
  text-decoration: none;
  display: inline-block;
}

.tagline {
  font-size: 1rem;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 2.5rem;
}

/* Nav — single horizontal row */
.site-nav {
  margin-bottom: 1.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem 2.6rem;
}

.nav-list a {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}

.nav-list a:hover { color: var(--accent-soft); }

.nav-list a.active {
  color: var(--accent);
}

.nav-list a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* ── MAIN CONTENT CONTAINER ────────────────────────── */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
  text-align: center;
}

.page-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
  text-align: center;
}

/* ── PAGE HEADINGS ─────────────────────────────────── */
.page-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0.5rem 0 1.2rem;
}

.intro-text {
  max-width: 54ch;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.intro-text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(139, 107, 47, 0.4);
  text-underline-offset: 3px;
  transition: color 0.25s;
}
.intro-text a:hover { color: var(--accent-soft); }

/* ── HOMEPAGE ──────────────────────────────────────── */
.home-featured {
  margin: 0.5rem auto 3rem;
}

.home-featured img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Slideshow — quiet crossfade */
.slideshow {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  /* Preserve aspect ratio of a typical landscape painting
     so the box doesn't jump as slides change.
     Most of Luane's landscapes are roughly 2:1 to 5:3.
     We pick 16:9 as a comfortable average. */
  aspect-ratio: 16 / 9;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: block;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Graceful no-JS fallback: if JS is off, only the first slide shows */
.no-js .slide:not(.is-active) { display: none; }

.home-quote {
  margin: 3.5rem auto 0;
  max-width: 54ch;
  font-size: 1.1rem;
  line-height: 1.95;
  color: var(--ink);
  font-style: italic;
}

.home-quote-attr {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

/* ── VERTICAL PAINTING LIST (for-sale & past-works) ─ */
.painting-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.painting-list-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.painting-list-item:hover { opacity: 0.88; }

.painting-list-item img {
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.painting-list-caption {
  margin-top: 1.2rem;
  text-align: center;
}

.painting-list-caption .title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.25rem;
  color: var(--ink);
  font-style: italic;
  display: inline;
}

.painting-list-caption .dot {
  margin: 0 0.5rem;
  color: var(--ink-whisper);
}

.painting-list-caption .price,
.painting-list-caption .status {
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: inline;
}

.painting-list-caption .status.sold,
.painting-list-caption .status.not-for-sale,
.painting-list-caption .status.commission {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ink-whisper);
}

/* ── PAINTING DETAIL PAGE ──────────────────────────── */
.painting-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
  text-align: center;
}

.painting-detail .title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0.5rem 0 0.3rem;
}

.painting-detail .location {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.painting-detail .image {
  margin: 2rem auto;
}

.painting-detail .image img {
  max-width: 100%;
  max-height: 75vh;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.painting-detail .specs {
  margin: 2.5rem auto 2rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
}

.painting-detail .specs .medium { font-style: italic; }

.painting-detail .specs .price {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.painting-detail .specs .price.sold,
.painting-detail .specs .price.not-for-sale,
.painting-detail .specs .price.commission {
  color: var(--ink-whisper);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.painting-detail .story {
  max-width: 54ch;
  margin: 2.5rem auto;
  text-align: left;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

.painting-detail .story p + p { margin-top: 1.1rem; }

.enquire-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(139, 107, 47, 0.5);
  text-underline-offset: 4px;
  transition: color 0.25s;
}
.enquire-link:hover { color: var(--accent-soft); }

/* ── ABOUT PAGE ────────────────────────────────────── */
.about-image {
  max-width: 560px;
  margin: 2rem auto 3rem;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-body {
  max-width: 56ch;
  margin: 0 auto;
  text-align: left;
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
}

.about-body p + p { margin-top: 1.3rem; }

.commission-note {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule-soft);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.95;
}

.commission-note .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── CONTACT PAGE ──────────────────────────────────── */
.contact-image {
  max-width: 340px;
  margin: 2rem auto 2.5rem;
}

.contact-image img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-details {
  margin: 2.5rem auto 0;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule-soft);
  gap: 1rem;
}

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-whisper);
}

.contact-value {
  font-size: 1rem;
  color: var(--ink);
}

.contact-value a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s;
  border-bottom: 1px solid transparent;
}
.contact-value a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.social-links {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.social-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── FOOTER ────────────────────────────────────────── */
.site-footer {
  max-width: 900px;
  margin: 4rem auto 2rem;
  padding: 1.8rem 2rem 0;
  border-top: 1px solid var(--rule-soft);
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-whisper);
  letter-spacing: 0.06em;
}

.site-footer p {
  margin: 0.25rem 0;
  line-height: 1.6;
}

.site-footer a {
  color: var(--ink-whisper);
  text-decoration: none;
  transition: color 0.25s;
}
.site-footer a:hover { color: var(--accent); }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 700px) {
  .site-header { padding: 2rem 1rem 0.5rem; }

  /* Make sure LUANE BRAUNER fits on one line on phones.
     Tighter letter-spacing and slightly smaller size. */
  .site-name {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    letter-spacing: 0.04em;
  }

  .tagline { margin-bottom: 1.5rem; font-size: 0.9rem; }

  .site-nav { margin-bottom: 1.5rem; }
  .nav-list { gap: 0.8rem 1.4rem; }
  .nav-list a { font-size: 0.92rem; }

  .page, .page-wide, .painting-detail {
    padding: 0.5rem 1.5rem 3rem;
  }

  /* On phones, the homepage slideshow should sit closer to the nav
     and use a more portrait-friendly aspect ratio so the painting
     fills more of the visible screen. */
  .home-featured { margin: 0.5rem auto 2rem; }

  .slideshow {
    /* Slightly taller than 16:9 so paintings feel present on phones */
    aspect-ratio: 3 / 2;
  }

  .home-quote { font-size: 1rem; margin-top: 2rem; }

  .painting-list { gap: 3.5rem; }
  .painting-list-item img { max-height: 70vh; }

  .painting-detail .image img { max-height: 60vh; }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
  }

  .site-footer { padding: 1.5rem 1.5rem 0; }
}

@media (max-width: 420px) {
  .site-name {
    font-size: 1.6rem;
    letter-spacing: 0.03em;
  }
  .nav-list { gap: 0.5rem 1rem; }
  .nav-list a { font-size: 0.85rem; }
  .slideshow { aspect-ratio: 4 / 3; }
}
