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

:root {
  --sky: #a8d8f0;
  --sky-deep: #6eb5db;
  --cream: #f5edd8;
  --cream-warm: #ede0c4;
  --hat: #e8d5b7;
  --brown: #5c4033;
  --brown-dark: #3d2b22;
  --blue: #2e7dd1;
  --blue-dark: #1e5f9e;
  --gold: #e8b923;
  --gold-dark: #c99a15;
  --green: #4a8f5c;
  --white: #fffdf8;
  --text: #3d2b22;
  --text-soft: #6b5344;
  --shadow: rgba(61, 43, 34, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, var(--sky) 0%, transparent 70%),
    linear-gradient(180deg, #c5e6f7 0%, var(--cream) 45%, var(--cream-warm) 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  font-size: 1.05rem;
}

.page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  position: relative;
}

/* Hero */

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.avatar-frame {
  position: relative;
  display: inline-block;
  width: min(96vw, 40rem);
  height: min(64vw, 26.75rem);
  padding: 5px;
  background: linear-gradient(145deg, var(--blue), var(--gold), var(--blue));
  border-radius: 50%;
  box-shadow:
    0 8px 28px var(--shadow),
    0 0 0 3px var(--white);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.avatar-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--cream);
  border-radius: 50%;
  z-index: 0;
}

.avatar {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  z-index: 1;
  object-fit: contain;
  object-position: center center;
}

.hero h1 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 2px 2px 0 rgba(255, 253, 248, 0.8);
}

/* Icon links */

.links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  text-decoration: none;
  color: var(--blue-dark);
  background: var(--white);
  border: 3px solid var(--blue);
  box-shadow: 0 4px 12px var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-link:hover {
  border-color: var(--gold-dark);
  background: #fff9e8;
  color: var(--gold-dark);
  box-shadow: 0 6px 18px var(--shadow);
  transform: translateY(-3px);
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
}

.tagline {
  text-align: center;
  margin-top: 1.25rem;
  font-family: "Fredoka", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-dark);
  letter-spacing: 0.04em;
}

/* Recipe dropdown */

.recipe-dropdown {
  position: relative;
}

.recipe-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.recipe-dropdown summary::-webkit-details-marker {
  display: none;
}

.recipe-dropdown summary::marker {
  display: none;
}

.recipe-dropdown[open] summary {
  border-color: var(--gold-dark);
  background: #fff9e8;
  color: var(--gold-dark);
  box-shadow: 0 6px 18px var(--shadow);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  min-width: 12rem;
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: 0.85rem;
  box-shadow: 0 8px 24px var(--shadow);
  overflow: hidden;
  z-index: 10;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
  background: #fff6d6;
  color: var(--blue-dark);
}

.dropdown-menu li + li {
  border-top: 2px solid var(--cream-warm);
}

/* Footer */

footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 3px solid rgba(46, 125, 209, 0.25);
}

footer p {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.initials-footer {
  font-family: "Fredoka", sans-serif;
  color: var(--blue-dark);
  font-weight: 700;
}

/* Responsive */

@media (min-width: 480px) {
  .page {
    padding: 2.5rem 1.5rem 3.5rem;
  }

  .avatar-frame {
    width: 48rem;
    height: 32rem;
  }
}