:root {
  --bg: #fbf7ef;
  --surface: #ffffff;
  --text: #1f2a22;
  --muted: #5e665f;
  --border: rgba(35, 64, 47, 0.14);
  --green: #23402f;
  --green-2: #3d6b4f;
  --gold: #f3c969;
  --rust: #b8562b;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a15;
    --surface: #1a251e;
    --text: #edf0ea;
    --muted: #a8b2a9;
    --border: rgba(243, 201, 105, 0.14);
    --rust: #e08a5c;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--rust); }

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(88vh, 740px);
  display: flex;
  align-items: center;
  padding: 72px 0 190px;
  text-align: center;
  color: #fff;
  /* Golden-hour sky */
  background: linear-gradient(180deg, #274a63 0%, #6d7f8c 38%, #e0a867 72%, #f3c969 100%);
}

.hero-inner { position: relative; display: grid; justify-items: center; }

/* Green street sign */
.sign {
  margin: 0 0 22px;
}
.sign span {
  display: inline-block;
  padding: 6px 18px;
  border: 2px solid #fff;
  border-radius: 6px;
  background: #1f6b3a;
  box-shadow: 0 0 0 3px #1f6b3a, 0 8px 20px rgba(0, 0, 0, 0.25);
  font: 700 0.95rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.8rem, 10vw, 6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(20, 35, 50, 0.45);
}

.place {
  margin: 10px 0 24px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: #fff6de;
}

.lede {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(20, 35, 50, 0.4);
}

.street {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 170px;
}

/* Drifting leaves (created by main.js) */
.leaves {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.leaf {
  position: absolute;
  top: -40px;
  width: 16px;
  height: 16px;
  border-radius: 0 60% 0 60%;
  opacity: 0.85;
  animation: fall linear infinite;
}

@keyframes fall {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(40px, 25vh) rotate(90deg); }
  50%  { transform: translate(-20px, 50vh) rotate(180deg); }
  75%  { transform: translate(30px, 75vh) rotate(270deg); }
  100% { transform: translate(-10px, 105vh) rotate(360deg); }
}

/* ---------- Plans ---------- */

main { padding: 72px 16px 56px; }

main h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--green-2);
}
@media (prefers-color-scheme: dark) {
  main h2 { color: var(--gold); }
}

.section-lede { margin: 0 0 28px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(35, 64, 47, 0.15);
}
.card .icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-size: 1.35rem;
  background: rgba(243, 201, 105, 0.3);
}
.card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

footer {
  padding: 24px 16px 40px;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

/* ---------- Entrance animation ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 404 page ---------- */

.hero.compact { min-height: 100vh; }
.cta {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 22px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  background: var(--green);
  box-shadow: 0 6px 18px rgba(20, 35, 50, 0.3);
}
.cta:hover, .cta:focus-visible { background: var(--green-2); outline: none; }

/* ---------- Respect reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .leaves { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
