/* SoundRoad coming soon. Change --bg to #121319 for the charcoal ground (also update theme-color in the HTML). */
:root {
  --bg: #000b3d;
  --text: #f5f5f5;
  --accent: #ffbd59;
  color-scheme: dark;
}

@font-face {
  font-family: "Work Sans";
  src: url("fonts/work-sans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("fonts/work-sans-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 16px;
  line-height: 1.5;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 0 8px;
}

h1,
p {
  margin: 0;
}

/* Logo */
.mark {
  display: block;
  width: clamp(140px, min(52vw, 34vh), 320px);
  height: auto;
}

.mark-letters {
  fill: var(--text);
}

.arc {
  fill: var(--accent);
}


/* Copy */
.tagline {
  margin-top: clamp(20px, 4vmin, 36px);
  max-width: 22ch;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  line-height: 1.4;
  text-wrap: balance;
}

.soon {
  margin-top: clamp(12px, 2.5vmin, 20px);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lost {
  margin-top: clamp(20px, 4vmin, 36px);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 600;
}

.home {
  margin-top: 12px;
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  padding: 16px 0 max(20px, env(safe-area-inset-bottom));
  font-size: 0.875rem;
}

small {
  font-size: inherit;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Short landscape screens: shrink the logo so everything stays on one screen. */
@media (max-height: 500px) {
  .mark {
    width: clamp(88px, 26vmin, 140px);
  }
}

/* Sound waves: arcs pulse from the inside out. Off when the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .animated .arc {
    animation: ripple 3.6s ease-in-out infinite;
  }

  .animated .arc-2 {
    animation-delay: 0.35s;
  }

  .animated .arc-3 {
    animation-delay: 0.7s;
  }
}

@keyframes ripple {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
