:root {
  --bg-deep: #182618;
  --bg-hero-light: #1f331f;
  --bg-panel: #1f301f;
  --bg-mystery: #251c2e;
  --border-mystery: #452f52;
  --divider: #4a5c3a;
  --gold: #c9a84c;
  --gold-dark: #7a5c22;
  --gold-darker: #a8863f;
  --cream: #f2ead0;
  --sage: #cfd6c4;
  --sage-2: #b8c2ab;
  --sage-3: #dbe3cf;
  --muted: #7a8570;
  --rod-1: #7a5c22;
  --rod-2: #5a4319;
  --rod-3: #3a2c10;
  --font-display: "Cinzel Decorative", georgia, serif;
  --font-heading: "Cinzel", georgia, serif;
  --font-body: "EB Garamond", georgia, serif;
  --page-max-width: 1280px;
  --section-padding-x: 90px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg-deep);
  font-family: system-ui, sans-serif;
}

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

a {
  color: inherit;
}

.faire-link {
  text-decoration-color: var(--divider);
}

.faire-link:hover,
.faire-link:focus-visible {
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--cream);
  color: var(--bg-deep);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.page {
  background: var(--bg-deep);
}

/* Site nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 4px 18px rgb(0 0 0 / 12%);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 20px var(--section-padding-x);
}

.site-nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--cream);
  text-decoration: none;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-nav-logo:hover {
  transform: rotate(-6deg) scale(1.08);
}

.site-nav-links {
  display: flex;
  gap: 38px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav-links::-webkit-scrollbar {
  display: none;
}

.site-nav-links a {
  font: 600 13px / 1 var(--font-heading);
  letter-spacing: 0.12em;
  color: var(--sage-3);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  color: var(--cream);
}

.site-nav-links a.site-nav-accent {
  color: var(--gold);
}

.site-nav-links a.site-nav-accent:hover,
.site-nav-links a.site-nav-accent:focus-visible {
  color: var(--gold-darker);
}

.scroll-rod {
  height: 30px;
}

.scroll-rod--top {
  background: linear-gradient(
    180deg,
    var(--rod-1) 0%,
    var(--rod-2) 45%,
    var(--rod-3) 100%
  );
  box-shadow: 0 4px 10px rgb(0 0 0 / 50%);
}

.scroll-rod--bottom {
  background: linear-gradient(
    180deg,
    var(--rod-3) 0%,
    var(--rod-2) 55%,
    var(--rod-1) 100%
  );
  box-shadow: 0 -4px 10px rgb(0 0 0 / 50%);
}

/* Hero */

.hero {
  position: relative;
  padding: 90px var(--section-padding-x) 80px;
  background: radial-gradient(
    ellipse at top,
    var(--bg-hero-light) 0%,
    var(--bg-deep) 60%
  );
  box-shadow:
    inset 0 30px 40px -30px rgb(0 0 0 / 50%),
    inset 0 -30px 40px -30px rgb(0 0 0 / 40%);
  text-align: center;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background: repeating-linear-gradient(
    97deg,
    #1c2b1c,
    #1c2b1c 30px,
    var(--bg-deep) 30px,
    var(--bg-deep) 60px
  );
}

/* Sparkles */

@keyframes sparkle-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.2) rotate(20deg);
  }
}

.sparkle {
  position: absolute;
  background: url("../images/mischief/sparkle.svg") no-repeat center / contain;
  animation: sparkle-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.sparkle-1 {
  top: 6%;
  left: 12%;
  width: 16px;
  height: 16px;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 12%;
  right: 14%;
  width: 12px;
  height: 12px;
  animation-delay: 1s;
}

.sparkle-3 {
  top: 48%;
  left: 6%;
  width: 14px;
  height: 14px;
  animation-delay: 2s;
}

/* Toadstool/frog doodle toggle */

@keyframes doodle-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }

  50% {
    transform: translateY(-4px) rotate(-2deg);
  }
}

.doodle-toggle {
  position: absolute;
  width: 40px;
  height: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  animation: doodle-bob 4s ease-in-out infinite;
  transform-origin: bottom center;
}

.doodle-toggle--hero {
  top: 20px;
  right: 20px;
}

.doodle-toggle--gallery {
  top: -8px;
  right: 16%;
}

.doodle-toggle img {
  width: 100%;
  display: block;
}

.doodle-toggle img[hidden] {
  display: none;
}

.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #d9b45c,
    var(--gold-darker) 70%
  );
  margin: 0 auto 26px;
  box-shadow: 0 3px 8px rgb(0 0 0 / 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--bg-deep);
  font-size: 22px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.seal:hover {
  transform: rotate(18deg) scale(1.12);
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero .eyebrow {
  font-size: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 104px;
  line-height: 1;
  margin: 0 0 24px;
  color: var(--cream);
  text-shadow: 0 0 40px rgb(201 168 76 / 30%);
}

.hero-subhead {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 21px;
  line-height: 1.7;
  color: var(--sage);
  margin: 0 auto 40px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */

.btn {
  font: 600 15px / 1 var(--font-heading);
  letter-spacing: 0.08em;
  padding: 16px 32px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s,
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.btn:hover,
.btn:focus-visible {
  transform: rotate(-1.5deg) scale(1.05);
  box-shadow: 0 8px 18px rgb(0 0 0 / 35%);
}

.btn-primary {
  color: var(--bg-deep);
  background: var(--gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-darker);
}

.btn-outline {
  color: #e9e2c9;
  border: 1px solid rgb(233 226 201 / 40%);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  transform: rotate(1.5deg) scale(1.05);
  border-color: #e9e2c9;
  color: #fff;
}

/* Divider */

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--section-padding-x);
}

.divider span {
  flex: 1;
  height: 1px;
  background: var(--divider);
}

.divider i {
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.divider--stacked-only {
  display: none;
  padding: 0;
}

/* Sections */

.section {
  padding: 80px var(--section-padding-x);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  margin: 0 0 26px;
  color: var(--cream);
}

.section-header {
  position: relative;
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin: 0;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 60px;
  align-items: center;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.about-image img {
  border: 6px double var(--gold-dark);
}

/* Potion menu */

.potion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.potion-card {
  display: block;
  width: 100%;
  border: 1px solid var(--divider);
  padding: 28px 22px;
  background: var(--bg-panel);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s,
    border-color 0.25s;
}

.potion-card[role="button"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.potion-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: var(--focal, center);
  margin-bottom: 18px;
}

.potion-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: var(--cream);
  margin: 0 0 8px;
}

.potion-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--sage-2);
  margin: 0;
}

.potion-hint {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.potion-card:nth-child(odd):hover,
.potion-card:nth-child(odd):focus-visible {
  transform: rotate(-1.5deg) translateY(-8px);
  box-shadow: 0 14px 24px rgb(0 0 0 / 35%);
  border-color: var(--gold);
}

.potion-card:nth-child(even):hover,
.potion-card:nth-child(even):focus-visible {
  transform: rotate(1.5deg) translateY(-8px);
  box-shadow: 0 14px 24px rgb(0 0 0 / 35%);
  border-color: var(--gold);
}

.potion-card--mischief {
  border-color: var(--border-mystery);
  background: var(--bg-mystery);
}

.potion-card--mischief p {
  color: #d3bce6;
}

.potion-grid .potion-card--mischief:hover,
.potion-grid .potion-card--mischief:focus-visible {
  transform: rotate(2deg) translateY(-8px) scale(1.03);
  border-color: #cfa9e6;
}

.disclaimer {
  text-align: center;
  margin: 40px auto 0;
  max-width: 700px;
}

.disclaimer p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.gallery-grid figure {
  margin: 0;
  aspect-ratio: 1;
  border: 1px solid var(--gallery-border, var(--divider));
  overflow: hidden;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-grid figure:hover,
.gallery-grid figure:focus-within {
  border-color: var(--gallery-hover-border, var(--gold));
  box-shadow: 0 10px 22px rgb(0 0 0 / 35%);
  transform: translateY(-6px);
}

.gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.gallery-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, center);
  transition: transform 0.35s ease;
}

.gallery-grid figure:nth-child(odd):hover img,
.gallery-grid figure:nth-child(odd):focus-within img {
  transform: scale(1.08) rotate(-2deg);
}

.gallery-grid figure:nth-child(even):hover img,
.gallery-grid figure:nth-child(even):focus-within img {
  transform: scale(1.08) rotate(2deg);
}

.gallery-accent {
  --gallery-border: var(--border-mystery);
  --gallery-hover-border: #cfa9e6;
}

/* Lightbox */

html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 85%);
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 4px 30px rgb(0 0 0 / 50%);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  border: 1px solid rgb(233 226 201 / 40%);
  background: rgb(24 38 24 / 80%);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 18px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  background: var(--gold);
  color: var(--bg-deep);
}

/* Find Teak */

.find-teak-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.faire-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faire-list li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #2f4030;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--sage-3);
}

.faire-list li:last-child {
  border-bottom: none;
}

/* Footer */

.footer-band {
  padding: 26px var(--section-padding-x);
  text-align: center;
  background: #131f16;
}

.footer-band p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  transition: color 0.25s;
}

.section p {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.85;
  color: var(--sage);
  margin: 0 0 20px;
}

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

.footer-band p:hover {
  color: #cfa9e6;
}

/* Responsive fallback — the handoff was a fixed 1280px desktop mock */

@media (width <= 900px) {
  :root {
    --section-padding-x: 24px;
  }

  .site-nav-inner {
    gap: 16px;
  }

  .site-nav-links {
    display: none;
  }

  .hero {
    padding: 56px 24px 48px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-subhead {
    font-size: 18px;
  }

  .section h2 {
    font-size: 32px;
  }

  .about-grid,
  .find-teak-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .divider--stacked-only {
    display: flex;
  }

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

@media (width <= 520px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .potion-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle,
  .doodle-toggle {
    animation: none;
  }

  .btn,
  .btn-outline,
  .potion-card,
  .seal,
  .site-nav-logo,
  .footer-band p {
    transition: none;
  }
}
