:root {
  color-scheme: light;
  --parchment: #f7f4ed;
  --linen: #fbfaf5;
  --sage: #e4eddc;
  --fern: #9bb984;
  --moss: #4f5d3f;
  --bark: #2f241d;
  --stone: #877868;
  --white: #ffffff;
}

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

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--parchment);
  color: var(--bark);
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.eyebrow {
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--fern);
  font-weight: 600;
}

.lead {
  font-size: 1.1rem;
  max-width: 720px;
  margin-inline: auto;
  color: var(--moss);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem clamp(1.25rem, 4vw, 4rem);
  background: rgba(251, 250, 245, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(79, 93, 63, 0.15);
}

.brand-names {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  color: var(--moss);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-date {
  display: block;
  font-size: 0.9rem;
  color: var(--stone);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 500;
  letter-spacing: 0.08em;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  color: var(--bark);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  border-color: var(--fern);
  color: var(--moss);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0.25rem;
}

.nav-toggle span {
  width: 1.75rem;
  height: 2px;
  background: var(--bark);
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  min-height: min(95vh, 960px);
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.35));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--sage);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  text-align: left;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  margin: 0;
  color: var(--bark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-date {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms,
    color 200ms;
}

.btn.primary {
  background: var(--fern);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(140, 164, 118, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(140, 164, 118, 0.5);
}

.btn.ghost {
  background: transparent;
  border-color: var(--fern);
  color: var(--moss);
}

.btn.ghost:hover {
  background: rgba(140, 164, 118, 0.12);
}

.btn.link {
  border: 1px solid var(--fern);
  color: var(--moss);
  background: transparent;
}

main {
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem) 4rem;
}

.section {
  margin-bottom: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.05em;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  color: var(--moss);
  text-transform: uppercase;
}

.section-cards .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: 2rem;
  text-align: left;
}

.card {
  background: var(--linen);
  padding: 1.75rem;
  border-radius: 1rem;
  box-shadow: 0 18px 30px rgba(47, 36, 29, 0.08);
  border: 1px solid rgba(47, 36, 29, 0.08);
}

.card h3 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
  color: var(--bark);
}

.card ul {
  padding-left: 1.25rem;
  margin: 0;
}

.card .meta {
  color: var(--stone);
  font-size: 0.95rem;
}

.travel-grid .card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.text-link {
  color: var(--moss);
  font-weight: 600;
}

.site-footer {
  background: var(--moss);
  color: var(--linen);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .site-header {
    padding-inline: clamp(1rem, 5vw, 2rem);
  }
}

@media (max-width: 800px) {
  .site-nav ul {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    background: var(--linen);
    padding: 1rem clamp(1.5rem, 5vw, 4rem);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .site-nav.open ul {
    transform: scaleY(1);
    opacity: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav ul li {
    padding: 0.5rem 0;
  }
}

@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-cta {
    justify-content: center;
  }

  main {
    padding-inline: clamp(1rem, 6vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Luna & Pointer Shimeji -------------------------------------------------------- */
.luna-shimeji, .pointer-shimeji {
  position: fixed;
  bottom: 0;
  left: 100px;
  width: 80px;
  height: 96px;
  z-index: 1000;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: left, transform;
}

/* Larger on bigger screens */
@media (min-width: 600px) {
  .luna-shimeji, .pointer-shimeji {
    width: 100px;
    height: 120px;
  }
}

.luna-shimeji svg, .pointer-shimeji svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Shared Body Colors & Strokes */
.luna-shimeji .body-main, .pointer-shimeji .body-main { fill: #f5f0e6; stroke: #1f130f; stroke-width: 2.5; }
.luna-shimeji .body-chest, .pointer-shimeji .body-chest { fill: #f5f0e6; }
.luna-shimeji .face, .pointer-shimeji .face { fill: #f5f0e6; stroke: #1f130f; stroke-width: 2.5; }
.luna-shimeji .ear-outer, .pointer-shimeji .ear-outer { fill: #f5f0e6; stroke: #1f130f; stroke-width: 2.5; }
.luna-shimeji .leg, .pointer-shimeji .leg { fill: #f5f0e6; stroke: #1f130f; stroke-width: 2; }
.luna-shimeji .paw, .pointer-shimeji .paw { fill: #f5f0e6; stroke: #1f130f; stroke-width: 2; }

/* Pointer Specific Colors (Spots) */
.pointer-shimeji .body-main { fill: #fff; } /* White base for pointer */
.pointer-shimeji .face { fill: #fff; }
.pointer-shimeji .ear-outer { fill: #1f130f; } /* Dark ears */
.pointer-shimeji .leg { fill: #fff; }
.pointer-shimeji .paw { fill: #fff; }
.pointer-shimeji .spot { fill: #1f130f; } /* Black spots */

.luna-shimeji .patch-dark { fill: #6b5b50; }
.luna-shimeji .patch-light { fill: #d4c4b0; }
.luna-shimeji .ear-inner { fill: #f0c4c4; }

.luna-shimeji .eye, .pointer-shimeji .eye { fill: #1f130f; }
.luna-shimeji .eye-shine, .pointer-shimeji .eye-shine { fill: #fff; }
.luna-shimeji .nose, .pointer-shimeji .nose { fill: #1f130f; }
.luna-shimeji .mouth, .pointer-shimeji .mouth { fill: none; stroke: #1f130f; stroke-width: 2; stroke-linecap: round; }
.luna-shimeji .collar, .pointer-shimeji .collar { fill: #1f130f; }
.luna-shimeji .tag, .pointer-shimeji .tag { fill: #f5b642; stroke: #c9922e; stroke-width: 1; }
.luna-shimeji .tag-text, .pointer-shimeji .tag-text { fill: #1f130f; font-family: sans-serif; font-size: 6px; font-weight: bold; }
.luna-shimeji .brow, .pointer-shimeji .brow { fill: none; stroke: #1f130f; stroke-width: 1.5; stroke-linecap: round; }

/* Idle breathing animation */
.luna-shimeji.idle .luna-body, .pointer-shimeji.idle .luna-body {
  animation: luna-breathe 2s ease-in-out infinite;
}

@keyframes luna-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Walking animation */
.luna-shimeji.walking .leg-front-left, .pointer-shimeji.walking .leg-front-left,
.luna-shimeji.walking .leg-back-left, .pointer-shimeji.walking .leg-back-left {
  animation: leg-walk-left 0.3s ease-in-out infinite;
}

.luna-shimeji.walking .leg-front-right, .pointer-shimeji.walking .leg-front-right,
.luna-shimeji.walking .leg-back-right, .pointer-shimeji.walking .leg-back-right {
  animation: leg-walk-right 0.3s ease-in-out infinite;
}

@keyframes leg-walk-left {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

@keyframes leg-walk-right {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(-10deg); }
}

.luna-shimeji.walking .luna-body, .pointer-shimeji.walking .luna-body {
  animation: luna-walk-bob 0.15s ease-in-out infinite;
}

@keyframes luna-walk-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

/* Winking animation */
.luna-shimeji .eye-left-wink, .pointer-shimeji .eye-left-wink {
  opacity: 0;
}

.luna-shimeji.winking .eye-left, .pointer-shimeji.winking .eye-left {
  opacity: 0;
}

.luna-shimeji.winking .eye-left-wink, .pointer-shimeji.winking .eye-left-wink {
  opacity: 1;
  animation: wink-squint 0.15s ease-out;
}

@keyframes wink-squint {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
  100% { transform: scaleY(1); }
}

/* Sitting animation */
.luna-shimeji.sitting .luna-body, .pointer-shimeji.sitting .luna-body {
  transform: translateY(8px);
}

.luna-shimeji.sitting .leg-back-left, .pointer-shimeji.sitting .leg-back-left,
.luna-shimeji.sitting .leg-back-right, .pointer-shimeji.sitting .leg-back-right {
  transform: rotate(45deg) translateY(5px);
}

/* Looking around */
.luna-shimeji.looking-left .luna-head, .pointer-shimeji.looking-left .luna-head {
  transform: rotate(-8deg);
}

.luna-shimeji.looking-right .luna-head, .pointer-shimeji.looking-right .luna-head {
  transform: rotate(8deg);
}

/* Ear wiggle */
.luna-shimeji .ear-left, .pointer-shimeji .ear-left,
.luna-shimeji .ear-right, .pointer-shimeji .ear-right {
  transform-origin: bottom center;
}

.luna-shimeji.ear-wiggle .ear-left, .pointer-shimeji.ear-wiggle .ear-left {
  animation: ear-wiggle-l 0.4s ease-in-out;
}

.luna-shimeji.ear-wiggle .ear-right, .pointer-shimeji.ear-wiggle .ear-right {
  animation: ear-wiggle-r 0.4s ease-in-out 0.1s;
}

@keyframes ear-wiggle-l {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-12deg); }
}

@keyframes ear-wiggle-r {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(12deg); }
}

/* Tail wag */
.luna-shimeji .tail, .pointer-shimeji .tail {
  transform-origin: bottom center;
  animation: tail-wag 0.5s ease-in-out infinite;
}

@keyframes tail-wag {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

/* Shadow */
.luna-shimeji .luna-shadow, .pointer-shimeji .luna-shadow {
  fill: rgba(0,0,0,0.2);
  filter: blur(3px);
}

/* Hidden state - off screen */
.luna-shimeji.hidden, .pointer-shimeji.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Mobile-specific adjustments */
@media (max-width: 599px) {
  .luna-shimeji .luna-shadow, .pointer-shimeji .luna-shadow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .luna-shimeji, .pointer-shimeji { display: none; }
}
