:root {
  --cheese: #ffd966;
  --cheese-dark: #e8b830;
  --cream: #fff8e7;
  --brown: #5c4033;
  --brown-soft: #8b6914;
  --text: #3d2e1f;
  --text-muted: #6b5a48;
  --surface: #ffffff;
  --header: #4a3728;
  --pink-nose: #e8a0a8;
  --font: "Fredoka", system-ui, sans-serif;
  --radius: 18px;
  --header-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 217, 102, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 217, 102, 0.2) 0%, transparent 40%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 28px, rgba(232, 184, 48, 0.06) 28px, rgba(232, 184, 48, 0.06) 32px),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(100% - 2rem, 900px);
  margin-inline: auto;
}

a {
  color: var(--brown-soft);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brown);
}

/* Scurrying mice layer */

.mouse-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.scurrying-mouse {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 36px;
  will-change: transform;
  filter: drop-shadow(0 3px 6px rgba(61, 46, 31, 0.2));
}

.mouse-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scurrying-mouse.is-paused .mouse-foot {
  animation: none;
}

.scurrying-mouse:not(.is-paused) .foot-1 {
  animation: scurry-foot 0.18s ease-in-out infinite alternate;
}

.scurrying-mouse:not(.is-paused) .foot-2 {
  animation: scurry-foot 0.18s ease-in-out infinite alternate-reverse;
}

.scurrying-mouse:not(.is-paused) .mouse-tail {
  animation: tail-wag 0.25s ease-in-out infinite alternate;
  transform-origin: 18px 24px;
}

@keyframes scurry-foot {
  from { transform: translateY(0); }
  to { transform: translateY(-2px); }
}

@keyframes tail-wag {
  from { transform: rotate(-6deg); }
  to { transform: rotate(8deg); }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  box-shadow: 0 4px 20px rgba(74, 55, 40, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding-block: 0.65rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo:hover {
  color: var(--cheese);
}

.logo-mouse {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 217, 102, 0.15);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 248, 231, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: rgba(255, 217, 102, 0.2);
  color: var(--cheese);
}

/* Content sits below mice visually but mice don't block clicks */

.content {
  position: relative;
  z-index: 1;
}

/* Hero */

.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.cheese-badge {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: cheese-bob 2s ease-in-out infinite;
}

@keyframes cheese-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-6px) rotate(5deg); }
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.15;
}

.hero-welcome {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.hero-note {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Policy */

.policy {
  padding-bottom: 4rem;
}

.policy-section {
  margin-bottom: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--surface);
  border: 2px solid rgba(255, 217, 102, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(92, 64, 51, 0.08);
  position: relative;
}

.policy-section::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cheese);
  box-shadow:
    -22px 4px 0 -2px var(--cheese-dark),
    -44px -2px 0 -3px var(--cheese),
    22px 6px 0 -2px var(--cheese-dark);
  opacity: 0.5;
}

.policy-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown);
}

.policy-section h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown-soft);
}

.policy-section p {
  margin: 0;
  color: var(--text-muted);
}

.policy-section p + p {
  margin-top: 1rem;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  background: var(--header);
  color: rgba(255, 248, 231, 0.7);
}

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

.footer-brand,
.footer-contact {
  margin: 0;
}

.footer-contact a {
  color: var(--cheese);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .mouse-layer {
    display: none;
  }

  .cheese-badge {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Responsive */

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    position: static;
  }

  html {
    scroll-padding-top: 0;
  }

  .policy-section {
    padding: 1.25rem 1.25rem;
  }

  .policy-section::before {
    display: none;
  }
}
