/* ============================================================
   FRANK BUNTS — SITE STYLES
   Palette (drawn from the work itself)
     wall      #D8D5CE   plaster-gray gallery wall — mid-tone so
                         pale monochromes and deep saturated
                         works both read against it
     plaque    #FCFBF9   wall-label white
     ink       #24221F   text
     stone     #6B675F   secondary text
     hairline  #BDB9B0   rules and borders
     patina    #476457   accent — the verdigris of Yggdrasil Tree
   Type
     Marcellus    — display (artist's name, page titles)
     Public Sans  — body and labels
   ============================================================ */

:root {
  --wall: #D8D5CE;
  --plaque: #FCFBF9;
  --ink: #24221F;
  --stone: #6B675F;
  --hairline: #BDB9B0;
  --patina: #476457;
  --display: "Marcellus", serif;
  --body: "Public Sans", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--wall);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2rem 3rem 1.5rem;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  margin-left: 2.2rem;
  padding-bottom: 0.35rem;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--patina);
  border-bottom: 1px solid var(--patina);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--patina);
  outline-offset: 3px;
}

/* ---------- Series menu ---------- */

.series-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  margin-bottom: 2.25rem;
}

.series-btn {
  background: none;
  border: none;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  cursor: pointer;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.series-btn:hover { color: var(--ink); }

.series-btn.is-active {
  color: var(--patina);
  border-bottom-color: var(--patina);
}

/* ---------- Carousel / viewing room ---------- */

.viewing-room { flex: 1; }

.carousel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
}

.carousel-stage {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(60vh, 600px);
}

.carousel-frame img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 1px 3px rgba(36, 34, 31, 0.18), 0 16px 44px rgba(36, 34, 31, 0.20);
  opacity: 1;
  transition: opacity 180ms ease;
}

.carousel-frame img.is-fading { opacity: 0; }

.carousel-arrow {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  font-size: 1.1rem;
  color: var(--stone);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.carousel-arrow:hover {
  color: var(--patina);
  border-color: var(--patina);
}

/* ---------- Wall label (the museum plaque) ---------- */

.wall-label {
  width: fit-content;
  min-width: 250px;
  max-width: 440px;
  margin: 2.25rem auto 0;
  padding: 1rem 1.5rem 0.9rem;
  background: var(--plaque);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--patina);
  box-shadow: 0 2px 8px rgba(36, 34, 31, 0.08);
  text-align: center;
}

.label-title {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.label-detail {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 0.15rem;
}

.label-counter {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--stone);
  margin-top: 0.6rem;
}

/* ---------- Inner pages (About, News) ---------- */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  flex: 1;
}

.page-title {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
}

.page p + p { margin-top: 1.1rem; }

.portrait {
  float: right;
  width: 240px;
  max-width: 45%;
  margin: 0 0 1.25rem 2rem;
  box-shadow: 0 10px 30px rgba(36, 34, 31, 0.18);
}

/* News entries */

.news-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hairline);
}

.news-item:first-of-type { padding-top: 0.5rem; }

.news-date {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--patina);
}

.news-title {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-top: 0.35rem;
}

.news-item p { margin-top: 0.5rem; color: var(--stone); }

.news-item a { color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--stone);
  text-align: center;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    padding: 1.5rem 1rem 1rem;
    text-align: center;
  }
  .site-nav a { margin: 0 0.9rem; }
  .series-menu { gap: 0.3rem 1.1rem; margin-bottom: 1.5rem; }
  .carousel-stage { gap: 0.4rem; }
  .carousel-frame { height: 50vh; }
  .carousel-arrow { width: 2.4rem; height: 2.4rem; }
  .portrait { float: none; display: block; margin: 0 auto 1.5rem; max-width: 80%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-frame img { transition: none; }
}
