* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --ink: #241713;
  --ink-soft: rgba(36, 23, 19, 0.42);
}

body.is-dark {
  --ink: #f7ecd6;
  --ink-soft: rgba(247, 236, 214, 0.4);
}

body {
  margin: 0;
  background: #f0c869;
  color: #f7ecd6;
  font-family: "IBM Plex Mono", monospace;
  overflow-x: hidden;
  transition: color 0.4s ease;
}

.gauge {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 50;
  text-align: right;
  padding: 10px 16px;
  border: 1px solid rgba(247, 236, 214, 0.35);
  background: rgba(36, 23, 19, 0.35);
  backdrop-filter: blur(6px);
}
.gauge__layer {
  display: block;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(247, 236, 214, 0.75);
  margin-bottom: 2px;
}
.gauge__fall {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #ffb37a;
}

.hero-leaf {
  position: fixed;
  top: 12vh;
  left: 50%;
  width: 34px;
  height: 34px;
  color: #ffb37a;
  z-index: 40;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero__title {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(52px, 10vw, 116px);
  margin: 0;
  color: #241713;
}
.hero__sub {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(36, 23, 19, 0.75);
  margin-top: 14px;
}
.hero__cue {
  position: absolute;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(36, 23, 19, 0.65);
}
.hero__cue-line {
  width: 1px;
  height: 34px;
  background: rgba(36, 23, 19, 0.5);
  animation: cue-drop 1.8s ease-in-out infinite;
}

@keyframes cue-drop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0.3;
  }
}
.forest {
  position: relative;
}

.parallax-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.depth-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.obj {
  position: absolute;
  color: var(--ink-soft);
}

.depth-layer--far .obj {
  opacity: 0.6;
}

.depth-layer--mid .obj {
  opacity: 0.8;
}

.depth-layer--near .obj {
  color: var(--ink);
  opacity: 0.85;
}

.obj-shaft {
  width: 160px;
  color: rgba(255, 241, 200, 0.3);
}

.obj-branch {
  width: 260px;
}

.obj-root {
  width: 200px;
}

.obj-bird {
  width: 46px;
}
.obj-bird.small {
  width: 30px;
}

.obj-squirrel {
  width: 56px;
}

.obj-deer {
  width: 90px;
}

.obj-leaf-drift, .obj-leaf-near {
  width: 30px;
}
.obj-leaf-drift.small, .obj-leaf-near.small {
  width: 20px;
}

.obj-mushroom {
  width: 30px;
  color: rgba(255, 179, 122, 0.65);
}
.obj-mushroom.small {
  width: 20px;
}

.obj-firefly {
  width: 8px;
  color: #ffb37a;
}
.obj-firefly.small {
  width: 6px;
}

.glow {
  filter: drop-shadow(0 0 6px rgba(255, 179, 122, 0.8));
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
.layer {
  position: relative;
  z-index: 3;
  min-height: 110vh;
  padding: 12vh 8vw;
  display: flex;
  align-items: center;
}

.layer__content {
  max-width: 480px;
}
.layer__content--right {
  margin-left: auto;
  text-align: right;
}

.layer__range {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.65;
  margin: 0 0 10px;
  transition: color 0.4s ease;
}

.layer__title {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 52px);
  margin: 0 0 16px;
  color: var(--ink);
  transition: color 0.4s ease;
}

.layer__text {
  font-family: "Newsreader", serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.9;
  margin: 0;
  max-width: 62ch;
  transition: color 0.4s ease;
}

.layer__end {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 21px;
  margin-top: 22px;
  color: #a8492c;
}

.foot {
  position: relative;
  z-index: 3;
  background: #241713;
  color: rgba(247, 236, 214, 0.6);
  text-align: center;
  font-size: 11px;
  padding: 30px 20px 40px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .glow, .hero__cue-line {
    animation: none !important;
  }
  .hero-leaf, .depth-layer {
    transition: none !important;
  }
}
@media (max-width: 720px) {
  .layer {
    padding: 8vh 7vw;
  }
  .layer__content--right {
    margin-left: 0;
    text-align: left;
  }
  .hero-leaf {
    width: 24px;
    height: 24px;
  }
}
