:root {
  --bg: #fcf0e6;
  --footer: #a5a58d;
  --text: #000000;
  --link: #188bf6;
  --cream: #f5f1e8;
  --cream-deep: #ebe5d9;
  --sage: #a5a594;
  --charcoal: #3a3a3a;
  --accent: #8b7355;
  --cookie: #fef0c7;
  --rust: #bf4342;
  --headline: "Josefin Sans", sans-serif;
  --content: "Cardo", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--content);
  font-weight: 500;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

body.has-cookie-banner {
  padding-bottom: 130px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  width: 70%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 5px 0;
}

.logo {
  display: inline-block;
}

.logo img {
  display: block;
  width: 250px;
  height: auto;
}

.menu-toggle {
  position: fixed;
  top: 30px;
  right: 22%;
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle span {
  width: 30px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 58, 58, 0);
  backdrop-filter: blur(0);
  z-index: 999;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay.active {
  background: rgba(58, 58, 58, 0.4);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -550px;
  width: 550px;
  height: 100vh;
  background: linear-gradient(135deg, #f5f1e8 0%, #ebe5d9 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 80px 40px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.side-menu.active {
  right: 0;
}

.side-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
  opacity: 0.3;
}

.menu-logo {
  position: absolute;
  top: 40px;
  left: 80px;
  width: 140px;
  height: 70px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu.active .menu-logo {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.menu-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.menu-nav-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.menu-nav > li {
  position: relative;
}

.menu-nav li {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu.active .menu-nav li {
  opacity: 1;
  transform: translateX(0);
}

.side-menu.active .menu-nav > li:nth-child(1) { transition-delay: 0.1s; }
.side-menu.active .menu-nav > li:nth-child(2) { transition-delay: 0.15s; }
.side-menu.active .menu-nav > li:nth-child(3) { transition-delay: 0.2s; }
.side-menu.active .menu-nav > li:nth-child(4) { transition-delay: 0.25s; }
.side-menu.active .menu-nav > li:nth-child(5) { transition-delay: 0.3s; }

.menu-nav a,
.menu-nav button {
  display: block;
  font-family: var(--headline);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding: 20px 0;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.menu-nav a::before,
.menu-nav button::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.menu-nav a:hover,
.menu-nav button:hover,
.menu-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

.menu-nav a:hover::before,
.menu-nav button:hover::before {
  width: 20px;
}

.menu-nav a::after,
.menu-nav button::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-nav a:hover::after,
.menu-nav button:hover::after {
  width: 100%;
}

.has-submenu.open > button::after {
  content: "×";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  background: none;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
}

.submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  padding-left: 30px;
  margin: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-submenu.open .submenu {
  max-height: 400px;
}

.submenu li {
  opacity: 0;
  transform: translateX(20px);
}

.has-submenu.open .submenu li {
  opacity: 1;
  transform: translateX(0);
}

.has-submenu.open .submenu li:nth-child(1) { transition-delay: 0.1s; }
.has-submenu.open .submenu li:nth-child(2) { transition-delay: 0.15s; }
.has-submenu.open .submenu li:nth-child(3) { transition-delay: 0.2s; }

.submenu a {
  font-size: 1.5rem;
  padding: 12px 0;
  color: var(--sage);
  font-weight: 300;
}

.submenu a::after {
  bottom: 8px;
}

.submenu a:hover::before {
  width: 15px;
}

.menu-footer {
  flex-shrink: 0;
  padding-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu.active .menu-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.menu-footer-title {
  font-family: var(--headline);
  font-size: 0.85rem;
  color: var(--charcoal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 12px;
}

.menu-footer p {
  font-family: var(--headline);
  font-size: 0.7rem;
  color: var(--sage);
  letter-spacing: 0.5px;
  font-weight: 300;
  margin: 0 0 4px;
  line-height: 1.6;
}

.menu-footer a {
  color: inherit;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  display: flex;
  align-items: center;
}

main > * {
  width: 100%;
}

main.page-top {
  align-items: flex-start;
}

.split {
  display: flex;
  align-items: center;
  gap: 20px;
}

.split > * {
  flex: 1;
  min-width: 0;
}

.prose {
  font-family: var(--content);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3em;
  color: var(--text);
}

.prose p {
  margin: 0 0 1em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 700;
}

.hero-art {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.hero-art img {
  width: min(600px, 100%);
}

.portrait {
  text-align: center;
}

.portrait img {
  width: min(420px, 100%);
  height: auto;
}

.photo-credit {
  margin: 8px 0 0;
  font-family: var(--headline);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: left;
}

.about {
  width: 100%;
}

.about-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.about-row > * {
  flex: 1;
  min-width: 0;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 10px 5px;
}

.about-lead {
  font-family: var(--headline);
  font-size: 20px;
  font-weight: 500;
  color: var(--rust);
  margin: 0 14px 0 36px;
}

.about-lead strong {
  font-weight: 500;
  color: inherit;
}

.about-bio {
  font-family: var(--content);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3em;
  text-align: justify;
  margin: 0 14px 0 36px;
}

.about-bio p {
  margin: 0 0 1em;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-bio strong {
  font-weight: 500;
}

.about-portrait {
  padding: 10px 5px;
  margin-top: 20px;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  margin-left: 26px;
  max-width: calc(100% - 26px);
}

.about-portrait .photo-credit {
  font-family: var(--content);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0;
  margin: 8px 0 0 25px;
}

.contact-block {
  max-width: 520px;
}

.contact-copy {
  font-family: var(--headline);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3em;
  margin-left: 36px;
}

.contact-copy p {
  margin: 0 0 1.15em;
}

.contact-copy p:last-child {
  margin-bottom: 0;
}

.contact-copy .lead {
  color: var(--rust);
}

.contact-copy .value,
.contact-copy .value a {
  color: var(--text);
  text-decoration: none;
}

.contact-copy .value a:hover {
  text-decoration: underline;
}

.contact-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-art img {
  width: min(500px, 100%);
  height: auto;
}

.site-footer {
  background: var(--footer);
  padding: 20px 20px 24px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.footer-col {
  flex: 1;
  padding: 10px 20px;
  font-family: var(--headline);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.3em;
}

.footer-col p {
  margin: 0;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  background: var(--cookie);
  font-family: Inter, sans-serif;
  font-size: 16px;
  color: #000;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.cookie-banner button {
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 1px 2px #1018280d;
}

.cookie-banner .btn-all {
  color: #fff;
  background: #000;
}

.cookie-banner .btn-essential {
  color: #000;
  background: #fff;
}

.slider {
  position: relative;
  margin: 24px auto 8px;
  max-width: 820px;
}

.slider-frame {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-frame img {
  display: none;
  max-height: 520px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  cursor: zoom-in;
}

.slider-frame img.is-active {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--charcoal);
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #3a3a3a;
  padding: 0;
  cursor: pointer;
  opacity: 0.35;
}

.slider-dots button.is-active {
  opacity: 1;
  background: #fff;
  box-shadow: 0 0 0 1px #3a3a3a;
}

.caption {
  text-align: center;
  font-size: 16px;
  margin-top: 16px;
}

.ceramics {
  width: 100%;
}

.ceramics-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.ceramics-row > * {
  flex: 1;
  min-width: 0;
}

.ceramics-copy {
  padding: 10px 5px;
}

.ceramics-still {
  padding: 10px;
  text-align: center;
}

.ceramics-still img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-gallery {
  max-width: none;
  margin: 0;
  height: 500px;
}

.slider-gallery .slider-frame {
  height: 500px;
  min-height: 0;
  overflow: hidden;
}

.slider-gallery .slider-frame img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.slider-gallery .slider-btn {
  color: #fff;
  font-size: 40px;
  width: 48px;
  height: 48px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.slider-gallery .slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  margin-top: 0;
  z-index: 10;
}

.slider-gallery .slider-dots button {
  background: #000;
  opacity: 1;
}

.slider-gallery .slider-dots button.is-active {
  background: #fff;
  box-shadow: none;
}

.illustrations {
  width: 100%;
}

.illustrations-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.illustrations-row > * {
  flex: 1;
  min-width: 0;
}

.illustrations-copy {
  margin: 11px 14px 0 36px;
  padding: 10px 0;
}

.illustrations-gallery {
  padding: 10px 5px;
}

.illustrations-gallery .photo-credit {
  font-family: var(--content);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0;
  padding-left: 10px;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-header {
    width: 100%;
    text-align: center;
    padding-top: 12px;
  }

  .logo img {
    width: 120px;
  }

  .menu-toggle {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .menu-toggle span {
    width: 25px;
  }

  .side-menu {
    width: 100%;
    right: -100%;
    padding: 100px 40px 30px;
  }

  .menu-logo {
    top: 25px;
    left: 40px;
    width: 120px;
    height: 60px;
  }

  .menu-nav a,
  .menu-nav button {
    font-size: 2rem;
    padding: 15px 0;
  }

  .submenu a {
    font-size: 1.3rem;
  }

  .split {
    flex-direction: column;
    align-items: stretch;
  }

  .ceramics-row,
  .illustrations-row,
  .about-row {
    flex-direction: column;
    align-items: stretch;
  }

  .about-lead,
  .about-bio {
    margin-left: 11px;
    margin-right: 0;
  }

  .about-copy {
    justify-content: flex-start;
    gap: 1em;
  }

  .about-lead {
    margin-bottom: 0;
  }

  .about-bio {
    margin-bottom: 27px;
  }

  .about-portrait {
    margin-top: 0;
  }

  .about-portrait img {
    margin-left: 7px;
    margin-right: 15px;
    max-width: calc(100% - 22px);
  }

  .about-portrait .photo-credit {
    margin-left: 10px;
  }

  .illustrations-copy {
    margin: 0 0 10px;
    padding: 10px 5px;
  }

  .illustrations-gallery .photo-credit {
    padding-left: 0;
  }

  .ceramics-row .is-empty {
    display: none;
  }

  .slider-gallery,
  .slider-gallery .slider-frame {
    height: 320px;
  }

  .prose {
    text-align: left;
  }

  .contact-copy {
    margin-left: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0;
  }

  .footer-col {
    padding: 5px 0;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 4%;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .side-menu {
    padding: 85px 30px 25px;
  }

  .menu-nav a,
  .menu-nav button {
    font-size: 1.8rem;
    padding: 12px 0;
  }

  .submenu a {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
