/* The frame every page of Cloud Town's website shares - the start page, the status page, the legal pages and the web
   shop (server/shop loads it from here): the dark navy bar that stays at the top with the golden logo, its menu on a
   phone, and the blue-black footer. The look is the owner's choice "Nachtblau und Gold" (art/orders/look-website-3 c).
   Its words are the pages' (site.*: every page's script fills them); frame.js opens and closes the menu. Phone first:
   the rules below are a phone's, a desktop's (1000 px and wider) are at the foot. Its classes begin with "topnav" and
   "foot", so they meet nothing of a page's own. */

@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/site/fonts/Nunito-Bold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/site/fonts/Nunito-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("/site/fonts/Nunito-Black.ttf") format("truetype"); }

:root { --bar: 60px; }

/* ---- the bar ---- */

.topnav {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 8px;
  height: var(--bar); padding: 0 6px 0 max(14px, env(safe-area-inset-left));
  background: #0a1d3d; box-shadow: 0 1px 0 rgba(242, 196, 90, 0.18);
  font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif; transition: box-shadow 0.2s ease;
}
.topnav.scrolled { box-shadow: 0 1px 0 rgba(242, 196, 90, 0.22), 0 8px 20px rgba(2, 8, 20, 0.45); }
.topnav-logo { display: flex; align-items: center; height: 48px; margin-right: auto; border-radius: 10px; }
.topnav-logo img { display: block; width: 140px; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.topnav-join {
  --h: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; height: var(--h); min-width: 48px; padding: 0 16px;
  border: 0 solid transparent; background: none; border-image: url("/site/pictures/kit/welcome-button.webp") 171 fill / calc(var(--h) / 2 + 3px) / 3px stretch;
  color: #fff; font-size: 17px; font-weight: 900; text-decoration: none; white-space: nowrap;
  text-shadow: 0 2px 0 #1f6e16, 1px 0 0 #22781a, -1px 0 0 #22781a, 0 -1px 0 #22781a;
  transition: transform 0.25s cubic-bezier(0.34, 1.6, 0.64, 1), filter 0.12s ease;
}
.topnav-join:hover { filter: brightness(1.07); }
.topnav-join:active { transform: translateY(2px) scale(0.96); filter: brightness(0.94); transition-duration: 0.06s; }
.topnav-menu { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.topnav-menu:hover { background: rgba(255, 255, 255, 0.06); }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 24px; height: 3px; border-radius: 2px; background: #f4cb5c; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -8px; }
.menu-bars::after { top: 8px; }
.topnav.open .menu-bars { background: transparent; }
.topnav.open .menu-bars::before { transform: translateY(8px) rotate(45deg); }
.topnav.open .menu-bars::after { transform: translateY(-8px) rotate(-45deg); }

/* the links: on a phone a panel under the bar that the menu button opens */
.topnav-links {
  position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; padding: 6px 14px 16px;
  background: #0a1d3d; box-shadow: 0 16px 28px rgba(2, 8, 20, 0.5); border-top: 1px solid rgba(242, 196, 90, 0.2);
}
.topnav.open .topnav-links { display: flex; animation: menu-in 0.18s ease-out; }
.topnav-link {
  display: flex; align-items: center; min-height: 54px; padding: 0 8px; border-radius: 12px;
  color: #f3f5f9; font-size: 19px; font-weight: 800; text-decoration: none;
}
.topnav-link + .topnav-link { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.topnav-link:hover, .topnav-link[aria-current] { color: #f7d67b; }
/* the way into the web shop's login (shown by the page's script while the shop takes logins) */
.topnav-login { gap: 12px; }
.topnav-login[hidden] { display: none; }
.topnav-login-icon { width: 30px; height: 30px; }
.topnav-languages { display: flex; align-items: center; gap: 2px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.topnav .language {
  min-width: 52px; height: 48px; padding: 0 10px; border: 0; border-radius: 24px; background: none; cursor: pointer;
  color: #93a4bd; font: inherit; font-size: 18px; font-weight: 900; letter-spacing: 0.5px;
}
.topnav .language:hover { color: #fff; }
.topnav .language[aria-pressed="true"] { color: #f7d67b; }
.topnav .language-bar { color: #4a5d7a; font-size: 18px; }
.topnav-veil { position: fixed; inset: var(--bar) 0 0 0; z-index: 55; background: rgba(2, 8, 20, 0.5); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- the footer: blue-black, the golden logo in its middle, the small links and the copyright ---- */

.foot {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 34px max(16px, env(safe-area-inset-left)) calc(26px + env(safe-area-inset-bottom));
  background: #061430; color: #c9d3e0; font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif; font-weight: 800; text-align: center;
}
.foot-logo { display: block; width: 168px; height: auto; margin-bottom: 4px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.foot-nav, .foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.foot-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; color: #e4eaf2; font-size: 16px; font-weight: 800; text-decoration: none; }
.foot-nav .foot-link { color: #9fb0c6; font-size: 15px; }
.foot-link:hover { color: #f7d67b; }
.foot-bar { color: #3c4f6d; font-size: 16px; }
.foot-copy { margin: 6px 0 0; color: #6f819b; font-size: 14px; font-weight: 700; }

@media (min-width: 1000px) {
  :root { --bar: 72px; }
  .topnav { gap: 6px; padding: 0 max(28px, calc(50% - 600px)); }
  .topnav-logo { margin-right: 0; }
  .topnav-logo img { width: 190px; }
  .topnav-menu, .topnav-join { display: none; }
  .topnav-links { position: static; display: flex; flex-direction: row; align-items: center; gap: 2px; margin-left: auto; padding: 0; background: none; box-shadow: none; border: 0; }
  .topnav.open .topnav-links { animation: none; }
  .topnav-link { min-height: 44px; padding: 0 14px; font-size: 18px; border-radius: 22px; }
  .topnav-link + .topnav-link { border-top: 0; }
  .topnav-link:hover { background: rgba(255, 255, 255, 0.06); }
  /* the beta - the page's first thing - as the kit's green button */
  .topnav-link-beta {
    --h: 44px; height: var(--h); margin: 0 4px; padding: 0 22px; border-radius: 0; color: #fff;
    border: 0 solid transparent; border-image: url("/site/pictures/kit/welcome-button.webp") 171 fill / calc(var(--h) / 2 + 3px) / 3px stretch;
    text-shadow: 0 2px 0 #1f6e16, 1px 0 0 #22781a, -1px 0 0 #22781a, 0 -1px 0 #22781a; transition: transform 0.25s cubic-bezier(0.34, 1.6, 0.64, 1), filter 0.12s ease;
  }
  .topnav-link-beta:hover, .topnav-link-beta[aria-current] { color: #fff; background: none; filter: brightness(1.07); }
  .topnav-link-beta:active { transform: translateY(2px) scale(0.96); filter: brightness(0.94); transition-duration: 0.06s; }
  .topnav-login { gap: 8px; margin-left: 4px; padding: 0 16px 0 8px; box-shadow: inset 0 0 0 1.5px rgba(242, 196, 90, 0.5); }
  .topnav-login-icon { width: 28px; height: 28px; }
  .topnav-languages { margin: 0 0 0 10px; padding: 0 0 0 10px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .topnav-veil { display: none; }

  .foot { padding: 44px 32px 30px; }
  .foot-logo { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .topnav, .topnav-join, .topnav-link-beta, .menu-bars, .menu-bars::before, .menu-bars::after { transition: none; }
  .topnav.open .topnav-links { animation: none; }
}
