:root {
  color-scheme: light;
  --ink: #2f261d;
  --muted: #6f5d4d;
  --cream: #fff7df;
  --paper: #fffdf3;
  --leaf: #3f7a4a;
  --leaf-dark: #28573b;
  --gold: #e8aa32;
  --berry: #b54e62;
  --sky: #98d3e8;
  --water: #356b8f;
  --shadow: 0 18px 48px rgba(47, 38, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 247, 223, 0.9);
  border-bottom: 1px solid rgba(63, 122, 74, 0.2);
  backdrop-filter: blur(14px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--leaf), var(--water));
  border: 3px solid #fff1bc;
  border-radius: 0.45rem;
  box-shadow: 0 5px 0 rgba(47, 38, 29, 0.18);
}

.nav a {
  padding: 0.45rem 0.65rem;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover {
  color: var(--leaf-dark);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 4.1rem);
  align-items: end;
  overflow: hidden;
  background: linear-gradient(#8bd2ed 0%, #dff3c8 52%, #bfe082 100%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  content: "";
  background:
    repeating-linear-gradient(
      90deg,
      rgba(63, 122, 74, 0.55) 0 1rem,
      rgba(232, 170, 50, 0.35) 1rem 2rem
    ),
    linear-gradient(#9bc65a, #6da544);
}

.hero-art {
  position: absolute;
  inset: 0;
}

.sun {
  position: absolute;
  top: 11%;
  right: 14%;
  width: clamp(5rem, 12vw, 9rem);
  aspect-ratio: 1;
  background: #ffd45c;
  border: 0.45rem solid rgba(255, 247, 223, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 4rem rgba(255, 212, 92, 0.8);
}

.mountain {
  position: absolute;
  bottom: 22%;
  width: 46vw;
  height: 36vh;
  background: linear-gradient(145deg, #7aa4a3, #477274);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.mountain-left {
  left: -7vw;
}

.mountain-right {
  right: -2vw;
  transform: scaleX(-1);
}

.cloud {
  position: absolute;
  width: 10rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 0.6rem;
  content: "";
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  left: 1rem;
  width: 3.4rem;
  height: 3.4rem;
}

.cloud::after {
  right: 1.2rem;
  width: 4.2rem;
  height: 4.2rem;
}

.cloud-one {
  top: 20%;
  left: 8%;
}

.cloud-two {
  top: 34%;
  right: 28%;
  transform: scale(0.78);
}

.field {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
}

.crop {
  position: absolute;
  bottom: 18%;
  width: 1.2rem;
  height: 3rem;
  background: var(--leaf-dark);
  border-radius: 1rem 1rem 0 0;
}

.crop::before {
  position: absolute;
  top: -0.5rem;
  left: -0.45rem;
  width: 2.1rem;
  height: 1.3rem;
  content: "";
  background: var(--berry);
  border-radius: 50%;
}

.crop-a { left: 16%; }
.crop-b { left: 29%; transform: scale(1.25); }
.crop-c { right: 22%; transform: scale(0.9); }
.crop-d { right: 9%; transform: scale(1.15); }

.cabin {
  position: absolute;
  right: 13%;
  bottom: 21%;
  width: clamp(8rem, 18vw, 14rem);
  height: clamp(6rem, 12vw, 9rem);
  background: #b8693e;
  border: 0.35rem solid #6b3b29;
  box-shadow: var(--shadow);
}

.roof {
  position: absolute;
  left: -14%;
  top: -44%;
  width: 128%;
  height: 55%;
  background: #7f342c;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.door {
  position: absolute;
  bottom: 0;
  left: 16%;
  width: 24%;
  height: 58%;
  background: #5b3026;
}

.window {
  position: absolute;
  top: 25%;
  right: 18%;
  width: 25%;
  aspect-ratio: 1;
  background: #ffe28a;
  border: 0.25rem solid #6b3b29;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(3rem, 8vw, 6rem);
  color: #fffdf3;
  text-shadow: 0 3px 18px rgba(47, 38, 29, 0.55);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--berry);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe28a;
}

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

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.85;
}

h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 36rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions,
.season-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button,
.season-button,
.heart-button {
  border: 0;
  border-radius: 0.45rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1.05rem;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(47, 38, 29, 0.2);
}

.primary {
  color: #fff;
  background: var(--leaf);
}

.secondary {
  color: var(--ink);
  background: #fff7df;
}

.season-panel,
.villagers,
.planner {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.season-panel {
  display: grid;
  gap: 1.4rem;
  background: var(--paper);
}

.season-button {
  padding: 0.65rem 0.9rem;
  color: var(--leaf-dark);
  background: #e5f2d2;
}

.season-button.is-active {
  color: #fff;
  background: var(--leaf-dark);
}

.season-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  max-width: 58rem;
  padding: 1.2rem;
  background: #fff;
  border: 2px solid rgba(63, 122, 74, 0.18);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.season-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  font-size: 2rem;
  background: #e5f2d2;
  border-radius: 0.5rem;
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 1.4rem;
}

.villager-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.villager-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  background: #fffdf3;
  border: 2px solid rgba(47, 38, 29, 0.09);
  border-radius: 0.5rem;
  box-shadow: 0 10px 28px rgba(47, 38, 29, 0.08);
}

.portrait {
  display: grid;
  width: 4.5rem;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  border: 4px solid #fff;
  border-radius: 0.5rem;
  box-shadow: 0 5px 0 rgba(47, 38, 29, 0.12);
}

.purple { background: #7955a0; }
.green { background: #4e8f62; }
.blue { background: #416d9d; }
.coral { background: #d07163; }

.heart-button {
  justify-self: start;
  padding: 0.55rem 0.75rem;
  color: var(--berry);
  background: #ffe6e6;
}

.heart-button[aria-pressed="true"] {
  color: #fff;
  background: var(--berry);
}

.planner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.6fr);
  gap: 2rem;
  align-items: start;
  background: linear-gradient(135deg, #fff7df, #e3f5df);
}

.planner-copy {
  max-width: 42rem;
}

.planner-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff;
  border: 2px solid rgba(63, 122, 74, 0.18);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

label {
  font-weight: 900;
}

select {
  width: 100%;
  padding: 0.8rem;
  color: var(--ink);
  background: #fffdf3;
  border: 2px solid rgba(63, 122, 74, 0.25);
  border-radius: 0.45rem;
  font: inherit;
}

.route-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.7rem;
  max-width: 62rem;
  margin: 0;
  padding-left: 1.2rem;
}

.route-list li {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border-left: 0.35rem solid var(--gold);
  border-radius: 0.35rem;
  font-weight: 800;
}

.footer {
  padding: 1.4rem clamp(1rem, 5vw, 5rem);
  color: #fffdf3;
  background: var(--leaf-dark);
}

.footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header,
  .planner {
    align-items: stretch;
  }

  .site-header {
    flex-direction: column;
  }

  .nav {
    justify-content: center;
    width: 100%;
  }

  .hero {
    min-height: 44rem;
  }

  .cabin {
    right: 5%;
  }

  .villager-grid,
  .planner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .nav {
    gap: 0.25rem;
  }

  .nav a {
    padding-inline: 0.35rem;
    font-size: 0.95rem;
  }

  .season-card {
    grid-template-columns: 1fr;
  }

  .mountain {
    width: 70vw;
  }
}
