:root {
  --mint: #c9ebc9;
  --mint-deep: #b4dfb8;
  --cream: #fffdf7;
  --ink: #3b2f2f;
  --blush: #ff8aa0;
  --peach: #ffd7c2;
  --red: #ef5b5b;
  --green: #3d6b45;
  --muted: #6a7d68;
  --page-a: #c9ebc9;
  --page-b: #b4dfb8;
  --page-accent: #3d6b45;
  --shadow: #8fb88f;
  --spot-1: #e7ffe8;
  --spot-2: #fff7d6;
  --spot-3: #ffe4ec;
  --sidebar-width: 252px;
}

body[data-page="home"] {
  --page-a: #c9ebc9;
  --page-b: #b4dfb8;
  --page-accent: #3d6b45;
  --shadow: #8fb88f;
  --spot-1: #e7ffe8;
  --spot-2: #fff7d6;
  --spot-3: #ffe4ec;
}

body[data-page="scrapbook-calendar"] {
  --page-a: #ffe0c4;
  --page-b: #ffd0a6;
  --page-accent: #c46b2e;
  --shadow: #e2ae7e;
  --spot-1: #fff1e0;
  --spot-2: #ffe8c8;
  --spot-3: #ffd8b5;
}

body[data-page="photo-booth"] {
  --page-a: #d3ebff;
  --page-b: #bddfff;
  --page-accent: #3a6ea8;
  --shadow: #8fb6d9;
  --spot-1: #eaf6ff;
  --spot-2: #d9eeff;
  --spot-3: #c8e4ff;
}

body[data-page="recipes"] {
  --page-a: #fff3c2;
  --page-b: #ffe79a;
  --page-accent: #a18420;
  --shadow: #d9c06a;
  --spot-1: #fff9dc;
  --spot-2: #fff0b8;
  --spot-3: #ffe8a0;
}

body[data-page="food-map"] {
  --page-a: #e8d9ff;
  --page-b: #d7c4f7;
  --page-accent: #6d4ea0;
  --shadow: #b79fd6;
  --spot-1: #f4ecff;
  --spot-2: #e6d8ff;
  --spot-3: #dcc9f8;
}

body[data-page="games"] {
  --page-a: #ffd6e8;
  --page-b: #ffc2dc;
  --page-accent: #c45d7c;
  --shadow: #e39ab3;
  --spot-1: #fff0f6;
  --spot-2: #ffdce9;
  --spot-3: #ffcfe2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 16%, var(--spot-1) 0 140px, transparent 141px),
    radial-gradient(circle at 88% 12%, var(--spot-2) 0 110px, transparent 111px),
    radial-gradient(circle at 80% 86%, var(--spot-3) 0 160px, transparent 161px),
    linear-gradient(180deg, var(--page-a) 0%, var(--page-b) 100%);
}

img {
  max-width: 100%;
}

.floaties img {
  position: fixed;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.sit {
  width: 170px;
  left: 4vw;
  bottom: 6vh;
  animation: bob 4.2s ease-in-out infinite;
}

.wave {
  width: 150px;
  right: 5vw;
  top: 8vh;
  animation: bob 3.6s ease-in-out infinite 0.4s;
}

.woodstock {
  width: 180px;
  left: 7vw;
  top: 9vh;
  animation: bob 5s ease-in-out infinite 0.8s;
}

.kiss {
  width: 160px;
  right: 6vw;
  bottom: 5vh;
  animation: bob 4.8s ease-in-out infinite 0.2s;
}

.site-page .woodstock,
.site-page .wave {
  top: auto;
  bottom: 4vh;
}

.site-page .woodstock {
  left: auto;
  right: 18vw;
  width: 140px;
}

.site-page .wave {
  right: 3vw;
  width: 120px;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.login-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.card {
  width: min(420px, 100%);
  background: var(--cream);
  border: 4px solid #fff;
  border-radius: 36px;
  padding: 2rem 1.6rem 1.8rem;
  box-shadow:
    0 18px 0 var(--shadow),
    0 28px 40px rgba(80, 120, 80, 0.18);
  text-align: center;
}

.heart-snoopy {
  width: 150px;
  margin: 0 auto 0.4rem;
  display: block;
}

h1,
h2 {
  margin: 0;
  font-family: "Fredoka", "Nunito", sans-serif;
  letter-spacing: -0.03em;
  color: var(--page-accent);
}

h1 {
  font-size: clamp(2rem, 8vw, 2.7rem);
}

.subtitle {
  margin: 0.25rem 0 1.3rem;
  color: var(--muted);
  font-weight: 700;
}

label {
  display: block;
  text-align: left;
  font-weight: 800;
  font-size: 0.86rem;
  margin: 0.7rem 0 0.35rem;
}

input {
  width: 100%;
  border: 3px solid #d7ecd8;
  background: #f6fff6;
  border-radius: 18px;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: #8ecf93;
  box-shadow: 0 0 0 4px rgba(142, 207, 147, 0.35);
}

button,
.button {
  appearance: none;
  width: 100%;
  margin-top: 1.15rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1rem;
  font: inherit;
  font-weight: 800;
  color: white;
  background: linear-gradient(180deg, #ff8aa0 0%, var(--blush) 100%);
  box-shadow: 0 6px 0 #d46b7e;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

button:active,
.button:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #d46b7e;
}

.status {
  min-height: 1.4rem;
  margin: 0.85rem 0 0;
  font-weight: 800;
  color: var(--red);
}

body.nav-collapsed {
  --sidebar-width: 76px;
}

.sidebar {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 1rem 0.7rem 1rem;
  background: var(--cream);
  border-right: 2px solid color-mix(in srgb, var(--page-accent) 22%, white);
  transition: width 0.22s ease;
}

.nav-toggle {
  position: absolute;
  top: 1.15rem;
  right: -13px;
  z-index: 6;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cream);
  color: var(--page-accent);
  box-shadow: none;
  border: 2px solid color-mix(in srgb, var(--page-accent) 22%, white);
}

.nav-toggle:hover,
.nav-toggle:active {
  box-shadow: none;
  background: color-mix(in srgb, var(--page-a) 70%, white);
}

.nav-toggle svg {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.2s ease;
}

body.nav-collapsed .nav-toggle svg {
  transform: rotate(180deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  margin: 0 0.35rem 0.85rem;
  padding: 0;
  color: var(--page-accent);
  text-decoration: none;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  overflow: hidden;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}

.brand-name,
.tab-label,
.logout-label {
  white-space: nowrap;
  overflow: hidden;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  overflow: auto;
}

.tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
  line-height: 1.2;
  overflow: hidden;
}

.tab:hover {
  background: color-mix(in srgb, var(--page-a) 55%, white);
}

.tab[aria-current="page"] {
  background: color-mix(in srgb, var(--page-a) 80%, white);
  color: var(--page-accent);
}

body.nav-collapsed .brand,
body.nav-collapsed .tab,
body.nav-collapsed .logout {
  justify-content: center;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

body.nav-collapsed .tab,
body.nav-collapsed .logout {
  width: 48px;
  margin-left: auto;
  margin-right: auto;
}

body.nav-collapsed .brand-name,
body.nav-collapsed .tab-label,
body.nav-collapsed .logout-label {
  width: 0;
  opacity: 0;
}

.pip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 12px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.tab[data-tab="home"] .pip {
  background: #8ecf93;
}

.tab[data-tab="scrapbook-calendar"] .pip {
  background: #ffb070;
}

.tab[data-tab="photo-booth"] .pip {
  background: #7eb6ea;
}

.tab[data-tab="recipes"] .pip {
  background: #f0d35a;
}

.tab[data-tab="food-map"] .pip {
  background: #b58ae0;
}

.tab[data-tab="games"] .pip {
  background: #f48fb1;
}

.logout {
  border: 0;
  background: transparent;
  box-shadow: none;
  width: auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.65rem 0.8rem;
  text-align: left;
  overflow: hidden;
}

.logout:hover,
.logout:active {
  transform: none;
  box-shadow: none;
  color: var(--red);
}

body.nav-collapsed .logout::before {
  content: "→";
  font-weight: 800;
}

.site-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  width: auto;
  padding: 2rem 1.6rem 3rem;
  transition: margin-left 0.22s ease;
}

.hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.4rem;
  align-items: center;
  max-width: 760px;
  background: var(--cream);
  border: 4px solid #fff;
  border-radius: 36px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 14px 0 var(--shadow);
}

.hero img {
  width: 180px;
  justify-self: center;
}

.hero p {
  margin: 0.45rem 0 0;
  max-width: 42ch;
  line-height: 1.5;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 800px) {
  :root {
    --sidebar-width: 76px;
  }

  body:not(.nav-collapsed) {
    --sidebar-width: 220px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .sit,
  .kiss,
  .site-page .woodstock {
    display: none;
  }
}
