:root {
  --earth: #0e0c0a;
  --loam: #1a1714;
  --bark: #2a2420;
  --ash: #a89b8e;
  --bone: #d4c8b8;
  --parchment: #ece3d5;
  --sprout: #7a9a62;
  --moss: #5a7d4a;
  --ember: #b07a50;
  --glow: rgba(140,100,50,0.04);
  --under1: rgba(26,23,20,0.7);
  --under2: rgba(42,36,32,0.5);
  --under3: rgba(26,23,20,0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  background-color: var(--earth);
  color: var(--bone);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 2s ease, color 2s ease;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

header {
  margin-bottom: 4rem;
  border-bottom: none;
  padding-bottom: 2rem;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

h1 {
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--parchment);
}

.subtitle {
  font-style: italic;
  color: var(--ash);
  font-size: 0.9rem;
  animation: breathe 8s ease-in-out infinite;
}

.date-line {
  color: var(--ash);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.03em;
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
}

.season {
  margin-bottom: 3rem;
  padding: 1.5rem 0;
  border-bottom: none;
  transition: opacity 0.4s ease;
}

.season-name {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--sprout);
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
  animation: sway 6s ease-in-out infinite;
  transform-origin: left center;
  transition: color 2s ease;
}

.season-note {
  color: var(--ash);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.8;
}

.haiku {
  margin-bottom: 3rem;
  padding: 0.8rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.4s ease;
}

.haiku blockquote {
  color: var(--ash);
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.haiku .haiku-line {
  display: block;
}

.haiku .haiku-line:nth-child(2) {
  padding-left: 1rem;
}

.haiku .haiku-line:nth-child(3) {
  padding-left: 2rem;
}

.haiku cite {
  display: block;
  margin-top: 0.4rem;
  color: var(--bark);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.04em;
}

.weather-mood {
  margin-bottom: 3rem;
  padding: 1.2rem 0;
  border-bottom: none;
  transition: opacity 0.4s ease;
}

.weather-mood h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ember);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
  transition: color 2s ease;
}

.weather-mood p {
  color: var(--ash);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.9;
}

.sky {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: none;
  transition: opacity 0.4s ease;
}

.sky h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ember);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
  transition: color 2s ease;
}

.sky p {
  color: var(--bone);
  font-size: 0.95rem;
  line-height: 1.9;
}

.almanac {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
  transition: opacity 0.4s ease;
}

.almanac .entry + .entry::before {
  content: '*';
  display: block;
  text-align: center;
  color: var(--bark);
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  margin-bottom: 2.8rem;
  opacity: 0;
  animation: word-in 0.3s ease-out forwards;
}

.entry h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ember);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
  transition: color 2s ease;
}

.entry p,
.entry div {
  color: var(--bone);
  font-size: 0.95rem;
  line-height: 1.9;
}

.entry ul {
  list-style: none;
  padding: 0;
}

.entry ul li {
  color: var(--bone);
  font-size: 0.95rem;
  line-height: 1.9;
  padding-left: 1.2rem;
  position: relative;
  opacity: 0;
  animation: word-in 0.3s ease-out forwards;
}

.entry ul li::before {
  content: '\00b7';
  position: absolute;
  left: 0;
  color: var(--sprout);
  font-weight: 500;
  animation: rustle 4s ease-in-out infinite;
  transition: color 2s ease;
}

.entry ul li:nth-child(2n)::before { animation-delay: -1.3s; }
.entry ul li:nth-child(3n)::before { animation-delay: -2.7s; }
.entry ul li:nth-child(5n)::before { animation-delay: -0.6s; }

.seasons-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  margin-top: 1rem;
}

.seasons-nav a {
  color: var(--bark);
  text-decoration: none;
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.02em;
  padding: 0.15rem 0;
  transition: color 0.6s ease;
  cursor: pointer;
  opacity: 0;
  animation: word-in 0.4s ease-out forwards;
}

.seasons-nav a:hover {
  color: var(--ash);
}

.seasons-nav a.active {
  color: var(--sprout);
}

.seasons-nav a.return-now {
  color: var(--ember);
}

.seasons-nav a::after {
  content: ' \00b7';
  color: var(--bark);
}

.seasons-nav a:last-child::after {
  content: '';
}

footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: none;
  transition: opacity 0.4s ease;
}

footer p {
  color: var(--ash);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.03em;
}

.word {
  opacity: 0;
  display: inline-block;
  animation: word-in 0.3s ease-out forwards;
}

/* daylight layer */

#sky-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9998;
  transition: background 4s ease;
}

#time-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 9999;
  transition: background 4s ease;
}

::selection {
  background-color: var(--moss);
  color: var(--parchment);
}

@keyframes word-in {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes sway {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(2px); }
  70% { transform: translateX(-1px); }
}

@keyframes rustle {
  0%, 100% { transform: translateX(0) scale(1); opacity: 0.8; }
  25% { transform: translateX(2px) scale(1.3); opacity: 1; }
  50% { transform: translateX(-1px) scale(0.9); opacity: 0.6; }
  75% { transform: translateX(1px) scale(1.1); opacity: 0.9; }
}

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

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  main {
    padding: 3rem 1.2rem 4rem;
  }

  h1 {
    font-size: 2rem;
  }
}
