/* ThePotatinator Music landing page */
@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700;800&display=swap");

:root {
  --comic-font: "Comic Sans MS", "Comic Sans", "Comic Neue", system-ui, sans-serif;
  --ink: #25162f;
  --paper: #fff8d6;
  --hot-pink: #ff4fd8;
  --banana: #ffe45c;
  --acid: #9cff3b;
  --sky: #60e7ff;
  --purple: #8c5cff;
  --danger: #ff5a5f;
  --shadow: 0 18px 45px rgba(37, 22, 47, 0.22);
  --border: 4px solid #25162f;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Comic Sans MS", "Comic Sans", "Comic Neue", system-ui, sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 79, 216, 0.35),
      transparent 30rem
    ),
    radial-gradient(
      circle at top right,
      rgba(96, 231, 255, 0.35),
      transparent 28rem
    ),
    url("assets/cloudbackground.gif");
  background-size: auto, auto, cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "🥔 🐈 💥 🎸";
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 0;
  font-size: clamp(1.8rem, 4vw, 4rem);
  opacity: 0.18;
  pointer-events: none;
  animation: floaty 4s ease-in-out infinite alternate;
}

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

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 99;
  padding: 0.75rem 1rem;
  background: var(--banana);
  border: var(--border);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.nav-shell {
  width: min(1180px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 248, 214, 0.86);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 7px 7px 0 rgba(37, 22, 47, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-potato {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--banana);
  border: 3px solid var(--ink);
  font-size: 1.5rem;
  animation: wiggle 1.8s ease-in-out infinite;
}

.brand strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1;
}

.brand small {
  display: block;
  max-width: 32ch;
  font-size: 0.8rem;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links > a,
.dropdown-button {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-links > a:hover,
.dropdown:hover .dropdown-button,
.dropdown-button:focus {
  background: var(--hot-pink);
  border-color: var(--ink);
  transform: rotate(-1deg);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  background: var(--paper);
  border: var(--border);
  border-radius: 20px;
  box-shadow: 7px 7px 0 rgba(37, 22, 47, 0.35);
  opacity: 0;
  transform: translateY(-0.5rem) scale(0.96);
  pointer-events: none;
  transition: 0.18s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-menu a {
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  font-weight: 800;
}

.dropdown-menu a:hover {
  background: var(--sky);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-card,
.album-feature,
.section-block {
  border: var(--border);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow),
    9px 9px 0 rgba(37, 22, 47, 0.24);
}

.hero-card {
  position: relative;
  min-height: 520px;
  padding: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  background:
    linear-gradient(135deg, rgba(255, 228, 92, 0.96), rgba(255, 79, 216, 0.9)),
    url("assets/buttonbackground.gif");
  background-size: cover;
  overflow: hidden;
}

.hero-card::after {
  content: "Hello! :3";
  position: absolute;
  right: -2rem;
  bottom: 1rem;
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.25);
  -webkit-text-stroke: 2px rgba(37, 22, 47, 0.22);
  transform: rotate(-8deg);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.4rem 0.75rem;
  background: var(--acid);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  max-width: 9ch;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.09em;
  text-shadow:
    4px 4px 0 var(--sky),
    8px 8px 0 var(--purple);
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 800;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.35);
  transition: 0.15s ease;
}

.button:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 8px 8px 0 rgba(37, 22, 47, 0.35);
}

.button-primary {
  background: var(--sky);
}

.button-secondary {
  background: var(--paper);
}

.album-feature {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
    url("assets/pinkclouds.jpg");
  background-size: cover;
}

.album-feature img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: var(--border);
  border-radius: 22px;
  box-shadow: 0 10px 0 rgba(37, 22, 47, 0.25);
}

.album-caption {
  padding: 1rem;
  border: 3px dashed var(--ink);
  border-radius: 20px;
  background: rgba(255, 248, 214, 0.9);
}

.album-caption h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 0.95;
}

.album-caption p {
  margin-bottom: 0;
  font-weight: 800;
}

.sticker {
  position: absolute;
  z-index: 3;
  padding: 0.55rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--danger);
  color: white;
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.3);
}

.sticker-top {
  top: 0.6rem;
  left: 0.4rem;
  transform: rotate(-9deg);
}

.marquee-strip {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: var(--border);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 7px 7px 0 rgba(37, 22, 47, 0.22);
}

.marquee-strip div {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  animation: scroll 18s linear infinite;
}

.marquee-strip span {
  font-weight: 900;
}

.section-block {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: rgba(255, 248, 214, 0.92);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1rem;
}

.news-card,
.portal-card,
.link-box {
  padding: 1rem;
  background: white;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.16);
}

.news-card time {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.55rem;
  background: var(--banana);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
}

.news-card h3,
.portal-card h3,
.link-box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.news-card p,
.portal-card p {
  margin-bottom: 0;
  line-height: 1.45;
  font-weight: 700;
}

.news-card a {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 900;
  color: #7a28ff;
}

.featured-news {
  background:
    linear-gradient(135deg, rgba(96, 231, 255, 0.9), rgba(255, 255, 255, 0.95)),
    url("assets/sillymlem.gif");
  background-size: cover;
}

.potato-core {
  background:
    linear-gradient(
      135deg,
      rgba(255, 248, 214, 0.92),
      rgba(255, 79, 216, 0.18)
    ),
    url("assets/buttonbackground.gif");
  background-size: cover;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.portal-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.16s ease;
}

.portal-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 9px 9px 0 rgba(37, 22, 47, 0.22);
}

.portal-icon {
  font-size: 3rem;
  line-height: 1;
}

.lyrics-portal {
  background: #fff3a3;
}

.videos-portal {
  background: #baffef;
}

.bangboo-portal {
  background: #e1d3ff;
}

.hidden-portal {
  background: #ffd1ec;
}

.link-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.link-box {
  display: grid;
  gap: 0.55rem;
}

.link-box a {
  padding: 0.65rem 0.75rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  font-weight: 900;
}

.link-box a:hover {
  background: var(--acid);
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 2rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(37, 22, 47, 0.92);
  color: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 rgba(37, 22, 47, 0.22);
}

.site-footer p {
  margin: 0.25rem 0;
  font-weight: 800;
}

.site-footer a {
  color: var(--sky);
  font-weight: 900;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(7deg) scale(1.06);
  }
}

@keyframes floaty {
  from {
    transform: translateY(0) rotate(-4deg);
  }
  to {
    transform: translateY(-1rem) rotate(5deg);
  }
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .nav-shell {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .dropdown-menu {
    left: 0;
    right: auto;
  }

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

  .hero-card {
    min-height: 430px;
  }

  .news-grid,
  .portal-grid,
  .link-columns {
    grid-template-columns: 1fr 1fr;
  }

  .featured-news {
    grid-column: 1 / -1;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  .brand small {
    white-space: normal;
  }

  .nav-links > a,
  .dropdown-button {
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .news-grid,
  .portal-grid,
  .link-columns {
    grid-template-columns: 1fr;
  }

  .marquee-strip div {
    animation-duration: 12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ===== organization/pass 3 polish ===== */
.nav-links > a,
.dropdown-button,
.dropdown-menu a,
.button,
.portal-card,
.link-box a,
.news-card a {
  line-height: 1.2;
  min-width: 0;
}

.dropdown-menu a,
.link-box a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  overflow: visible;
}

.link-columns,
.portal-grid,
.news-grid {
  overflow: visible;
  padding-bottom: 0.8rem;
  padding-right: 0.8rem;
}

.link-box,
.portal-card,
.news-card {
  min-width: 0;
  overflow: visible;
}

.secret-hidden-button {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 3px solid transparent;
  border-radius: 50%;
  opacity: 0.18;
  filter: grayscale(1);
  transition: 0.18s ease;
}

.secret-hidden-button:hover,
.secret-hidden-button:focus-visible {
  opacity: 1;
  filter: none;
  background: var(--acid);
  border-color: var(--ink);
  transform: rotate(12deg) scale(1.15);
  outline: none;
}

@media (max-width: 900px) {
  .portal-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

/* ===== Compact color-coded redirect bunker ===== */
.link-vault {
  padding: clamp(1rem, 2vw, 1.45rem);
}

.link-vault .compact-heading,
.link-vault .section-heading {
  align-items: center;
  margin-bottom: 0.85rem;
}

.redirect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.7rem;
  overflow: visible;
}

.redirect-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0.72rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(37, 22, 47, 0.22);
  line-height: 1.15;
  font-weight: 900;
  overflow: visible;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.redirect-card:hover,
.redirect-card:focus {
  transform: translate(-2px, -2px) rotate(-0.75deg);
  box-shadow: 5px 5px 0 rgba(37, 22, 47, 0.24);
  filter: saturate(1.12);
}

.redirect-card span {
  font-size: 1.02rem;
}

.redirect-card small {
  margin-top: 0.22rem;
  font-size: 0.78rem;
  opacity: 0.88;
}

.redirect-card.spotify {
  background: #1db954;
  color: #111;
}
.redirect-card.youtube {
  background: #ff0033;
  color: #fff;
}
.redirect-card.steam {
  background: #1b2838;
  color: #fff;
}
.redirect-card.reddit {
  background: #ff5700;
  color: #fff;
}
.redirect-card.wikipedia {
  background: #f8f9fa;
  color: #202122;
}
.redirect-card.chess {
  background: #81b64c;
  color: #111;
}
.redirect-card.timeguessr {
  background: #7c6cff;
  color: #fff;
}
.redirect-card.lycaon {
  background: #e1d3ff;
  color: #25162f;
}

@media (max-width: 560px) {
  .redirect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .redirect-card {
    min-height: 3.9rem;
    padding: 0.65rem 0.75rem;
  }
}

/* ===== Extra funky redirect buttons ===== */
.redirect-card {
  appearance: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.redirect-card.ana {
  background: #005bac;
  color: #fff;
}

.redirect-card.killerfish {
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(255, 255, 255, 0.5),
      transparent 1.2rem
    ),
    linear-gradient(135deg, #00d4ff, #006d77);
  color: #fff;
}

.redirect-card.lootcart {
  background: linear-gradient(135deg, #ffd166, #b56b20);
  color: #25162f;
}

.redirect-card.do-not-click {
  background: repeating-linear-gradient(
    135deg,
    #ff2f4f 0 12px,
    #ffe45c 12px 24px
  );
  color: #25162f;
}

.redirect-card.do-not-click.is-playing {
  animation: jetpack-panic 0.18s linear infinite;
  filter: saturate(1.4) contrast(1.05);
}

@keyframes jetpack-panic {
  0% {
    transform: translate(-2px, -2px) rotate(-1deg);
  }
  50% {
    transform: translate(2px, -3px) rotate(1.5deg);
  }
  100% {
    transform: translate(-2px, -2px) rotate(-1deg);
  }
}

/* ===== Hero title fit/pass 4 =====
   The big title was gloriously obese. This keeps the vibe but stops it
   from trying to escape the card. */
.hero-card {
  padding-left: clamp(1.25rem, 3vw, 2.65rem);
  padding-right: clamp(1.25rem, 3.6vw, 3rem);
}

.hero-card h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7.6vw, 6.65rem);
  letter-spacing: -0.075em;
}

@media (max-width: 560px) {
  .hero-card h1 {
    font-size: clamp(2.8rem, 15vw, 4.75rem);
  }
}

/* ===== Nav pass 4: no dropdown, simple direct links ===== */
.nav-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
}

/* ===== Pass 5: hero title + sticky anchor offset ===== */
html {
  scroll-padding-top: 7.75rem;
}

#news,
#links,
.potato-core {
  scroll-margin-top: 7.75rem;
}

.hero-card {
  padding-left: clamp(1rem, 2.2vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2.4rem);
}

.hero-card h1 {
  max-width: 100%;
  font-size: clamp(2.7rem, 5.95vw, 5.25rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
  text-shadow:
    3px 3px 0 var(--sky),
    6px 6px 0 var(--purple);
}

.album-caption h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.65rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 1rem;
  }

  #news,
  #links,
  .potato-core {
    scroll-margin-top: 1rem;
  }

  .hero-card h1 {
    font-size: clamp(2.7rem, 14vw, 4.9rem);
  }
}

/* ===== Launch V1 nav dropdown ===== */

.nav-menu {
  position: relative;
  padding-bottom: 0.35rem;
  margin-bottom: -0.35rem;
}

.nav-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.55rem;
}

.nav-menu-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.nav-menu-button:hover,
.nav-menu-button:focus,
.nav-menu:hover .nav-menu-button,
.nav-menu:focus-within .nav-menu-button {
  background: var(--hot-pink);
  border-color: var(--ink);
  transform: rotate(-1deg);
}

.nav-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 60;
  min-width: 240px;
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem;
  background: rgba(255, 248, 214, 0.96);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 7px 7px 0 rgba(37, 22, 47, 0.28);
  opacity: 0;
  transform: translateY(-0.35rem) scale(0.98);
  pointer-events: none;
  transition: 0.16s ease;
}

.nav-menu:hover .nav-menu-list,
.nav-menu:focus-within .nav-menu-list {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-menu-list a {
  display: flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 14px;
  font-weight: 900;
}

.nav-menu-list a:hover,
.nav-menu-list a:focus,
.nav-menu-list a.active {
  background: var(--sky);
  border-color: var(--ink);
}

@media (max-width: 560px) {
  .nav-menu-list {
    left: 0;
    right: auto;
  }

  .nav-menu-button {
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
  }
}

/* ===== Launch V1 portal tiles ===== */

.memory-portal {
  background: #ffd1ec;
}

.battle-portal {
  background: #ffd166;
}

/* Move the hero eyebrow closer to the top of the card */
.hero-card {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* ===== Mobile dropdown stacking fix ===== */

.site-header {
  position: relative;
  z-index: 9999;
}

.nav-shell {
  position: relative;
  z-index: 10000;
  overflow: visible;
}

.nav-links,
.nav-menu {
  position: relative;
  z-index: 10001;
}

.nav-menu-list {
  z-index: 10002;
}

main {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    z-index: 9999;
  }

  .nav-shell {
    overflow: visible;
  }
}

/* ===== Horizontal overflow guard ===== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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