:root {
  --bg: #f6efe3;
  --bg-soft: #fffaf1;
  --text: #2f241d;
  --muted: #6e5c4d;
  --brand: #a5672d;
  --brand-dark: #7a4b20;
  --accent: #f0bf72;
  --card: rgba(255, 255, 255, 0.85);
  --shadow: 0 12px 32px rgba(80, 49, 22, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 20%, #fff8ea 0%, var(--bg) 45%, #f1e2c9 100%);
  color: var(--text);
  min-height: 100%;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(246, 239, 227, 0.86);
  border-bottom: 1px solid rgba(122, 75, 32, 0.15);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.25s ease;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(165, 103, 45, 0.12);
  color: var(--brand-dark);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.hero-card {
  background: linear-gradient(135deg, rgba(165, 103, 45, 0.95), rgba(240, 191, 114, 0.9));
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0;
}

.hero p {
  font-size: 1.05rem;
  color: #fff4de;
}

.mascot {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mascot img {
  width: min(420px, 100%);
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.section {
  padding: 2.5rem 0;
}

.section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid rgba(122, 75, 32, 0.15);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px rgba(80, 49, 22, 0.16);
}

.card h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
}

.widget {
  border-radius: var(--radius);
  padding: 1.4rem;
  background: linear-gradient(160deg, #fffefb, #f2e1c2);
  border: 1px solid rgba(165, 103, 45, 0.25);
}

.widget img {
  width: 100%;
  border-radius: 14px;
  margin-top: 1rem;
}

.quote {
  font-style: italic;
  color: var(--muted);
  font-size: 1.08rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(122, 75, 32, 0.16);
  box-shadow: var(--shadow);
}

.gallery-grid figcaption {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.btn {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:hover {
  background: var(--brand-dark);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(122, 75, 32, 0.2);
  padding: 2rem 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hidden-potato {
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.3s ease;
}

.hidden-potato.visible {
  opacity: 1;
  transform: scale(1);
}

.potato-rain {
  position: fixed;
  top: -4rem;
  font-size: 2rem;
  animation: fall 3.5s linear forwards;
  pointer-events: none;
  z-index: 999;
}

@keyframes fall {
  to {
    transform: translateY(120vh) rotate(360deg);
    opacity: 0.9;
  }
}

@media (max-width: 920px) {
  .hero,
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 0.25rem;
  }
}
