@font-face {
  font-family: "Isadumaroc Sans";
  src: url("./assets/manrope-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --deep: #073a55;
  --paper: #faf9f5;
  --ivory: #efebe2;
  --accent: #c58963;
  font-family: "Isadumaroc Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { min-width: 320px; margin: 0; background: var(--deep); color: var(--paper); }

.waiting-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 36px clamp(24px, 5vw, 80px);
  background: var(--deep);
  isolation: isolate;
}

.message {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 20px 0 82px;
  text-align: center;
}

.logo {
  grid-area: 1 / 1;
  display: block;
  width: clamp(210px, 25vw, 325px);
  max-width: 78vw;
  height: auto;
}

.logo-stage { display: grid; place-items: center; }
.message-copy { margin-top: clamp(10px, 2vh, 24px); }
.small-rule { display: block; width: 44px; height: 1px; margin: 0 auto 30px; background: var(--accent); }
.language-stage, .footer-stage { display: grid; }
.locale-item { grid-area: 1 / 1; opacity: 0; transition: opacity .7s ease; }
.locale-item.is-visible { opacity: 1; }
html.intro-pending .logo-stage, html.intro-pending .small-rule,
html.intro-pending [data-intro-title], html.intro-pending [data-intro-description],
html.intro-pending .page-bottom { visibility: hidden; }
h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 380; letter-spacing: -.025em; line-height: 1.15; }
.message-copy p { max-width: 35ch; margin: 17px auto 0; color: var(--ivory); font-size: clamp(.88rem, 1.4vw, 1rem); font-weight: 320; line-height: 1.6; }

.page-bottom {
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  align-self: end;
  width: 100%;
}
.page-bottom p { margin: 0; color: var(--ivory); font-size: .73rem; font-weight: 350; letter-spacing: .025em; line-height: 1.5; }
.sound-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .045em;
  white-space: nowrap;
  cursor: pointer;
}
.sound-button:hover { color: var(--ivory); }
.sound-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.sound-button svg { flex: 0 0 auto; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
.sound-button .icon-sound, .sound-button[aria-pressed="true"] .icon-mute { display: none; }
.sound-button[aria-pressed="true"] .icon-sound { display: initial; }
.sound-notes { position: absolute; top: -2px; left: 13px; width: 20px; height: 1px; pointer-events: none; }
.sound-note { position: absolute; left: 0; color: var(--ivory); font-family: Georgia, serif; font-size: .8rem; line-height: 1; opacity: 0; transform-origin: center; animation: sound-drift 4.8s ease-out infinite; }
.sound-note:nth-child(1) { --drift-x: -10px; animation-delay: 0s; }
.sound-note:nth-child(2) { --drift-x: 7px; animation-delay: .8s; }
.sound-note:nth-child(3) { --drift-x: -6px; animation-delay: 1.6s; }
.sound-note:nth-child(4) { --drift-x: 11px; animation-delay: 2.4s; }
.sound-note:nth-child(5) { --drift-x: -12px; animation-delay: 3.2s; }
.sound-note:nth-child(6) { --drift-x: 5px; animation-delay: 4s; }

@keyframes sound-drift {
  0%, 10% { opacity: 0; transform: translate3d(0, 0, 0) scale(.65); }
  30% { opacity: .65; }
  70% { opacity: .52; }
  100% { opacity: 0; transform: translate3d(var(--drift-x), -36px, 0) scale(1.35); }
}

@media (max-width: 600px) {
  .waiting-page { min-height: 100svh; padding: 24px; }
  .message { padding-bottom: 60px; }
  .logo { width: min(250px, 70vw); }
  .page-bottom { align-items: center; flex-direction: column; gap: 18px; text-align: center; }
}

