:root {
  --zinc-50:  #FAFAFA;
  --zinc-100: #F4F4F5;
  --zinc-200: #E4E4E7;
  --zinc-500: #71717A;
  --zinc-700: #3F3F46;
  --zinc-800: #27272A;
  --zinc-900: #18181B;

  --cadmium:      #ED7014;
  --cadmium-dark: #B85408;
  --sunset:       #FA5F55;
  --sunset-deep:  #C8362A;

  --bg: var(--zinc-100);
  --bg-stage: var(--zinc-100);
  --card-bg: #FFFFFF;
  --text: var(--zinc-900);
  --text-muted: var(--zinc-500);

  --sidebar-bg: linear-gradient(180deg, #ED7014 0%, #FA5F55 100%);
  --sidebar-fg: #FFFFFF;
  --sidebar-muted: rgba(255, 255, 255, 0.78);

  --accent: var(--cadmium);
  --accent-hover: var(--sunset);
  --accent-dark: var(--cadmium-dark);

  --shadow: 0 8px 24px rgba(24, 24, 27, 0.08);
  --shadow-lg: 0 12px 32px rgba(237, 112, 20, 0.18);
  --radius: 14px;
  --sidebar-width: 260px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-fg);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header h1 {
  font-size: 1.6rem;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}

.sidebar-header .accent { color: var(--zinc-900); }

.sidebar-header .tagline {
  margin: 0 0 18px;
  color: var(--sidebar-muted);
  font-size: 0.9rem;
}

.sidebar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.goose-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  width: 100%;
  font-size: 0.98rem;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}

.goose-item:hover { background: rgba(255, 255, 255, 0.16); }
.goose-item:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.goose-item.active {
  background: #FFFFFF;
  color: var(--cadmium-dark);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.15);
}

.goose-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--zinc-200);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.goose-item.active .goose-thumb {
  border-color: var(--cadmium);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  color: var(--sidebar-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.sidebar-footer a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Stage ---------- */

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at 20% 10%, rgba(237, 112, 20, 0.10), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(250, 95, 85, 0.08), transparent 55%),
    var(--bg-stage);
  min-height: 100vh;
}

/* ---------- Goose card ---------- */

.goose-card {
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 4 / 3;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: block;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.image-wrap:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.image-wrap:active img { transform: scale(0.995); }

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.1s ease;
}

.goose-card figcaption {
  text-align: center;
  padding: 4px 8px 6px;
}

.goose-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.goose-card h2 { color: var(--zinc-900); }

.goose-card .latin {
  margin: 4px 0 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.angry-honk {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sunset-deep);
  color: #FFFFFF;
  border: 0;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(200, 54, 42, 0.35);
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.angry-honk:hover { background: var(--sunset); box-shadow: 0 8px 20px rgba(250, 95, 85, 0.45); }
.angry-honk:active { transform: scale(0.96); }
.angry-honk:focus-visible {
  outline: 3px solid var(--cadmium);
  outline-offset: 3px;
}

.angry-honk.honking {
  animation: honk-pulse 0.4s ease;
  background: var(--sunset);
}

.angry-icon { font-size: 1.1rem; line-height: 1; }

/* ---------- Honk bubble ---------- */

.honk-bubble {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--cadmium);
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(237, 112, 20, 0.45);
  transform-origin: center;
  animation: bubble-in 0.35s ease both;
  user-select: none;
  pointer-events: none;
  display: inline-block;
}

.image-wrap:hover .honk-bubble { background: var(--sunset); }
.image-wrap:hover .honk-bubble .bubble-tail { background: var(--sunset); }

.honk-bubble.hidden {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  animation: none !important;
}

.honk-bubble.honking {
  animation: honk-pulse 0.4s ease;
  background: var(--sunset);
}

.bubble-tail {
  position: absolute;
  bottom: -8px;
  left: 28px;
  width: 18px;
  height: 18px;
  background: var(--cadmium);
  transform: rotate(45deg);
  border-bottom-right-radius: 4px;
  z-index: -1;
}

.honk-bubble.honking .bubble-tail { background: var(--sunset); }

@keyframes bubble-in {
  0% { opacity: 0; transform: scale(0.6) translateY(-6px); }
  60% { transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes honk-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ---------- Hamburger ---------- */

.menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  width: 44px;
  height: 44px;
  background: var(--cadmium);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(237, 112, 20, 0.35);
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 15;
}
.scrim.show { display: block; }

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
  body { flex-direction: column; }

  .menu-toggle { display: flex; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 80%;
    max-width: 320px;
    height: 100vh;
  }
  .sidebar.open { transform: translateX(0); }

  .stage {
    padding: 70px 16px 24px;
    min-height: 100vh;
  }

  .honk-bubble {
    top: 12px;
    right: 12px;
    padding: 11px 16px;
    font-size: 0.95rem;
  }

  .goose-card h2 { font-size: 1.25rem; }
  .image-wrap { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .honk-bubble, .honk-bubble.honking, .goose-item, .angry-honk, .angry-honk.honking, .image-wrap img {
    animation: none !important;
    transition: none !important;
  }
}
