:root {
  --forest-950: #0b140e;
  --forest-900: #122018;
  --forest-800: #1c3326;
  --forest-700: #2c4d38;
  --moss: #4f7a45;
  --leaf: #7da35c;
  --paper: #f4f0e6;
  --cream: #fbf8f1;
  --ink: #1b211b;
  --muted: #5a6458;
  --display: "Freckle Face", cursive;
  --body: "Life Savers", cursive;
  --header-green: 12, 22, 16;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: 1.25rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  max-width: 100%;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
.logo,
.eyebrow,
.kicker,
.book-kicker {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.1;
  background-image: url("../assets/svg/grain.svg");
  background-size: 180px 180px;
}

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 1.4rem;
  color: #fff;
  background: transparent;
  transition: background 0.25s ease;
}

.site-header.is-solid {
  background: rgba(12, 22, 16, 0.94);
  backdrop-filter: blur(8px);
}

.logo {
  font-size: 1.7rem;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  font-size: 1.05rem;
}

.nav a {
  text-decoration: none;
  opacity: 0.88;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #fff;
}

.hero {
  position: relative;
  min-height: calc(100vh - 200px);
  background: var(--forest-950);
}

.hero-stage {
  position: relative;
  min-height: calc(100vh - 200px);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(var(--header-green), 0.68) 0%,
      rgba(var(--header-green), 0.34) 42%,
      rgba(var(--header-green), 0.12) 72%
    ),
    linear-gradient(
      to bottom,
      rgba(var(--header-green), 0.58) 0%,
      rgba(var(--header-green), 0.4) 40%,
      rgba(var(--header-green), 0.18) 100%
    ),
    url("../assets/IMG_8437.jpg") 30% center / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(36rem, calc(100% - 3rem));
  padding: 150px 0 5.5rem calc(7vw + 40px);
  color: #f6f3ea;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  margin: 0.15em 0 1.1em;
  font-size: 1.15rem;
  opacity: 0.92;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.95;
  margin: 0;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.lede {
  max-width: 22em;
  font-size: 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 1.1rem;
}

.btn-light {
  background: #fff;
  color: var(--forest-900);
}

.btn-ghost {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: #fff;
}

.btn-forest {
  background: var(--forest-800);
  color: #fff;
}

.btn[aria-disabled="true"] {
  opacity: 0.72;
  cursor: default;
}

.panel {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) - 0.5rem);
}

.panel-paper {
  background: var(--cream);
  overflow: visible;
  z-index: 2;
}

.panel-paper::before,
.panel-paper::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: max(40px, calc(100vw * 96 / 1980));
  max-height: 96px;
  pointer-events: none;
  z-index: 3;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.panel-paper::before {
  top: 0;
  transform: translateY(-50%);
  background-image: url("../assets/teteje.png");
}

.panel-paper::after {
  bottom: 0;
  transform: translateY(50%);
  background-image: url("../assets/alja.png");
}

.panel-paper + .panel-paper::before,
.panel-paper:has(+ .panel-paper)::after {
  content: none;
}

.contact::after {
  content: none;
}

.panel-forest {
  background: var(--forest-900);
  color: #f3eee4;
}

.tour {
  padding-top: 20px;
  overflow: visible;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.section-head.light .eyebrow,
.section-head.light h2 {
  color: #fff;
}

.section-head h2,
.intro h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.deco {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.72;
}

.deco-pine {
  left: -2.5rem;
  bottom: 3rem;
  width: min(220px, 28vw);
}

.deco-tree {
  right: -3rem;
  top: 2rem;
  width: min(280px, 34vw);
}

.deco-sm {
  width: min(160px, 22vw);
  top: 1rem;
  left: 0;
  bottom: auto;
}

.deco-right {
  top: auto;
  bottom: 0;
}

.intro-grid {
  display: grid;
  gap: 1.2rem 2.5rem;
  grid-template-columns: 0.8fr 1.2fr;
}

.kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--moss);
}

.kicker p,
.eyebrow {
  text-transform: lowercase;
}

.sparkle {
  width: 14px;
  height: 14px;
  background: url("../assets/svg/sparkle.svg") center / contain no-repeat;
  color: var(--moss);
}

.intro h2 {
  max-width: 12ch;
}

.intro-body {
  font-size: 1.28rem;
}

.facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.facts li {
  border-top: 1px solid rgba(28, 51, 38, 0.18);
  padding-top: 0.85rem;
}

.facts strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.polaroids {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem 0.8rem;
  padding: 1.2rem 0.4rem 2.4rem;
  align-items: start;
}

.polaroid {
  position: relative;
  width: 50%;
  margin: 0;
  justify-self: center;
  aspect-ratio: 715 / 864;
  background: transparent;
  filter: drop-shadow(2px 5px 7px rgba(0, 0, 0, 0.38));
  transition: transform 0.35s ease;
}

.polaroid-shot {
  position: absolute;
  left: 7.41%;
  top: 8.33%;
  width: 84.76%;
  height: 70.72%;
  overflow: hidden;
  z-index: 0;
}

.polaroid-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: zoom-in;
  filter: saturate(1.04) contrast(1.04);
}

.polaroid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("../assets/illustrations/polaroid-frame.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.polaroid figcaption {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 80.5%;
  z-index: 3;
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 0.7rem;
  color: #2c2a26;
}

.polaroid:nth-child(1) { transform: rotate(-3.8deg); }
.polaroid:nth-child(2) { transform: rotate(2.7deg); }
.polaroid:nth-child(3) { transform: rotate(-1.6deg); }
.polaroid:nth-child(4) { transform: rotate(4.1deg); }
.polaroid:nth-child(5) { transform: rotate(2.2deg); }
.polaroid:nth-child(6) { transform: rotate(-4.4deg); }
.polaroid:nth-child(7) { transform: rotate(1.3deg); }
.polaroid:nth-child(8) { transform: rotate(-2.6deg); }
.polaroid:nth-child(9) { transform: rotate(3.4deg); }
.polaroid:nth-child(10) { transform: rotate(-2.1deg); }
.polaroid:nth-child(11) { transform: rotate(1.8deg); }
.polaroid:nth-child(12) { transform: rotate(-3.2deg); }

.polaroid:hover {
  z-index: 3;
  transform: rotate(0deg) scale(1.05);
}

.gallery {
  overflow: visible;
}

.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/DJI_20260901110535_0205_D.jpg") center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.gallery > .wrap {
  position: relative;
  z-index: 1;
}

.contact {
  padding-bottom: 0;
}

.vcard {
  font-style: normal;
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.vcard a {
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 51, 38, 0.25);
}

.hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
  opacity: 0.75;
}

.map-frame {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: #0e1a12;
  overflow: visible;
  border: 0;
  margin: 0;
}

.map-frame::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  height: max(40px, calc(100vw * 96 / 1980));
  max-height: 96px;
  transform: translateY(-50%);
  background: url("../assets/alja.png") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}

.tour-box {
  position: relative;
  z-index: 2;
  isolation: isolate;
  transform: translateZ(0);
  max-width: 760px;
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0e1a12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  -webkit-transform: translateZ(0);
}

.tour-box iframe {
  width: 100%;
  height: min(62vh, 420px);
  min-height: 280px;
  border: 0;
  display: block;
  background: #0e1a12;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

.tour-fs {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: calc(100% - 24px);
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 22, 16, 0.88);
  color: #f3eee4;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.tour-fs:hover,
.tour-fs:focus-visible {
  background: #1c3326;
  color: #f3eee4;
}

.tour-box:fullscreen,
.tour-box:-webkit-full-screen,
.tour-box.is-expanded {
  max-width: none;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
}

.tour-box.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.tour-box:fullscreen iframe,
.tour-box:-webkit-full-screen iframe,
.tour-box.is-expanded iframe {
  height: 100%;
  min-height: 100%;
}

.tour-box:fullscreen .tour-fs,
.tour-box:-webkit-full-screen .tour-fs,
.tour-box.is-expanded .tour-fs {
  display: none;
}

body.tour-expanded {
  overflow: hidden;
}

.map-frame iframe {
  width: 100%;
  border: 0;
  display: block;
  height: 480px;
}

.book-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.book-card {
  background: #fff;
  padding: 1.8rem 1.6rem 1.5rem;
  border: 1px solid rgba(28, 51, 38, 0.12);
  box-shadow: 0 10px 30px rgba(18, 32, 24, 0.05);
}

.book-kicker {
  margin: 0 0 0.4rem;
  color: var(--moss);
}

.site-footer {
  background: var(--forest-950);
  color: #e8e2d4;
  padding: 2rem 0 1.4rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 14, 10, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-frame {
  margin: 0;
  background: #fff;
  padding: 30px 30px 0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  max-width: min(1100px, calc(100% - 6.5rem));
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.lightbox-frame img {
  max-width: 100%;
  max-height: calc(88vh - 90px);
  width: auto;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

.lightbox-caption {
  height: 60px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.15rem;
  color: #2c2a26;
  text-align: center;
}

.lightbox-nav {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .facts,
  .book-cards,
  .intro-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro h2,
  .intro-body {
    grid-column: 1 / -1;
  }

  .polaroids {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy {
    padding-left: calc(1.4rem + 40px);
    padding-top: 150px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1.15rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    right: 0.8rem;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.1rem;
    background: rgba(12, 22, 16, 0.94);
    border-radius: 0.75rem;
  }

  .nav.is-open {
    display: flex;
  }

  .facts,
  .book-cards,
  .intro-grid,
  .polaroids {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: min(34rem, calc(100% - 1.6rem));
    padding-top: 150px;
    padding-left: calc(1.4rem + 40px);
  }

  .deco-tree {
    opacity: 0.35;
  }

  .tour-box iframe {
    height: min(70vw, 360px);
    min-height: 260px;
  }
}
