:root {
  color-scheme: dark;
  --ink: #f7f1d4;
  --muted: #c7d8c5;
  --deep: #092b2a;
  --deep-soft: rgba(8, 39, 37, 0.78);
  --line: rgba(237, 228, 177, 0.24);
  --gold: #f4c958;
  --gold-pale: #fff0a4;
  --leaf: #95c987;
  --shadow: rgba(3, 18, 17, 0.56);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--deep);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(5, 28, 27, 0.14), rgba(5, 28, 27, 0.93) 86%),
    url("/assets/mosslight-meadow-background.svg") center top / cover fixed,
    var(--deep);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  box-shadow: 0 10px 28px var(--shadow);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand small,
.eyebrow,
.release-label,
.countdown small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  letter-spacing: 0.035em;
}

.hero {
  display: grid;
  min-height: calc(100svh - 112px);
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.58fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding: 64px 0 88px;
}

.hero-copy {
  max-width: 740px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-pale);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 10vw, 8.4rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.76;
  text-wrap: balance;
  text-shadow: 0 8px 28px var(--shadow);
}

h1 span {
  display: block;
  color: var(--gold-pale);
  font-size: 0.62em;
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 1;
}

.intro {
  max-width: 620px;
  margin-bottom: 32px;
  color: #e6ead3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.72;
}

.release-panel {
  width: min(100%, 620px);
  margin-bottom: 30px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(11, 51, 47, 0.9), rgba(11, 45, 44, 0.68));
  box-shadow: 0 18px 60px rgba(2, 18, 17, 0.25);
  backdrop-filter: blur(12px);
}

.release-label {
  margin-bottom: 7px;
  color: var(--gold);
}

.release-message {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.13rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.countdown[hidden] {
  display: none;
}

.countdown span {
  display: grid;
  gap: 3px;
  padding: 12px 8px;
  border: 1px solid rgba(246, 208, 102, 0.19);
  border-radius: 12px;
  background: rgba(4, 30, 28, 0.38);
  text-align: center;
}

.countdown strong {
  color: var(--gold-pale);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.countdown small {
  font-size: 0.59rem;
  letter-spacing: 0.11em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 26px;
}

.steam-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(255, 240, 164, 0.56);
  border-radius: 999px;
  color: #18332d;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold));
  box-shadow: 0 12px 34px rgba(2, 18, 17, 0.3);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.steam-link:hover,
.steam-link:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(2, 18, 17, 0.42);
}

.steam-link--small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.75rem;
}

.text-link {
  padding: 7px 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration-color: rgba(247, 241, 212, 0.44);
  text-underline-offset: 5px;
}

.hero-game-art {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  justify-self: center;
  isolation: isolate;
}

.hero-game-art img {
  position: absolute;
  height: auto;
  pointer-events: none;
  transform-origin: center;
  user-select: none;
}

.hero-game-tree {
  z-index: 1;
  top: -2%;
  right: 1%;
  width: 66%;
  filter: drop-shadow(0 24px 32px rgba(1, 17, 16, 0.42)) saturate(1.04);
  animation: tree-float 7.2s ease-in-out infinite;
}

.hero-game-fox {
  z-index: 2;
  bottom: 11%;
  left: 0;
  width: 45%;
  filter: drop-shadow(0 18px 22px rgba(1, 17, 16, 0.46));
  animation: fox-float 5.6s ease-in-out -1.1s infinite;
}

.hero-game-sunseed {
  z-index: 3;
  top: 5%;
  right: 4%;
  width: 19%;
  filter: drop-shadow(0 0 14px rgba(255, 226, 106, 0.56));
  animation: sunseed-float 4.4s ease-in-out -0.6s infinite;
}

.glow {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 92, 0.32), rgba(255, 220, 92, 0.06) 42%, transparent 72%);
  filter: blur(5px);
  animation: glow 5.4s ease-in-out infinite;
}

.meadow-notes {
  padding: clamp(70px, 10vw, 132px) 0;
  border-top: 1px solid var(--line);
}

.meadow-notes h2 {
  max-width: 720px;
  margin-bottom: 44px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid article {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--deep-soft);
  box-shadow: 0 22px 52px rgba(3, 18, 17, 0.23);
  backdrop-filter: blur(12px);
}

.feature-grid article > span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-pale);
  font-size: 0.72rem;
  font-weight: 800;
}

.feature-grid h3 {
  margin-bottom: 11px;
  color: var(--gold-pale);
  font-size: 1.62rem;
  font-weight: 500;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

footer {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

:focus-visible {
  outline: 3px solid var(--gold-pale);
  outline-offset: 4px;
}

@keyframes tree-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.7deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.7deg);
  }
}

@keyframes fox-float {
  0%,
  100% {
    transform: translateY(0) rotate(0.8deg);
  }
  50% {
    transform: translateY(-12px) rotate(-1.1deg);
  }
}

@keyframes sunseed-float {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg) scale(0.98);
  }
  50% {
    transform: translateY(-15px) rotate(12deg) scale(1.05);
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (max-width: 800px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    width: min(100% - 32px, 680px);
  }

  .site-header {
    min-height: 92px;
  }

  .brand img {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.96rem;
  }

  .steam-link--small {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 54px 0 78px;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 6.6rem);
  }

  .hero-game-art {
    grid-row: 1;
    width: min(220px, 100%);
    justify-self: start;
  }

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

  .feature-grid article {
    min-height: 0;
  }

  .feature-grid article > span {
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 24px, 440px);
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 40px;
  }

  h1 {
    font-size: clamp(3.3rem, 19vw, 5.2rem);
  }

  .release-panel {
    padding: 18px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown span {
    padding: 10px 4px;
  }

  .countdown small {
    font-size: 0.5rem;
    letter-spacing: 0.07em;
  }

  .hero-actions,
  .steam-link {
    width: 100%;
  }

  .text-link {
    text-align: center;
  }

  footer {
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
