/* LightSound site. Tokens come from the LightSound design system (tokens.json). */

:root {
  --ground: #000000;
  --ink: #ffffff;
  --ink-muted: #bdbdbd;
  --rule: #5a5a5a;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --margin: clamp(24px, 3vw, 40px);
}

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

html { background: var(--ground); color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

/* Layout */

.page { min-height: 100vh; padding: 0 var(--margin); }
.wrap { width: 100%; max-width: 1360px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding: 24px 0;
}
.mark { display: flex; align-items: center; min-height: 44px; font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.nav-link { display: flex; align-items: center; min-height: 44px; }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.site-footer {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px;
  margin-top: auto; padding: 12px 0 32px; border-top: 1px solid var(--rule);
}
.site-footer .cap { padding-top: 12px; }
.site-footer p { margin: 0; font-size: 12px; line-height: 1.35; color: var(--ink-muted); }

.cap { display: flex; flex-direction: column; gap: 4px; }
.label { font-size: 10px; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.value { font-size: 13px; line-height: 1.3; }

/* Aperture */

.bar {
  position: absolute; display: block; transform-origin: center;
  animation: drift 9s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.7s);
}
@keyframes drift { from { transform: scaleY(1); } to { transform: scaleY(0.94); } }

/* Home: white aperture, spectrum on hover, focus or tap */
.ap {
  display: block; position: relative; width: min(100%, 1120px);
  height: clamp(200px, 38vw, 460px); padding: 0; border: 0; background: none;
  cursor: pointer; font: inherit; color: inherit;
}
.ap .bar { background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 35%, #fff 65%, rgba(255,255,255,0) 100%); }
.ap .bar::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--c) 35%, var(--c) 65%, transparent 100%);
  opacity: 0; transition: opacity 0.8s ease; transition-delay: calc(var(--i) * 70ms);
}
.ap:hover .bar::after, .ap:focus-visible .bar::after, .ap.on .bar::after { opacity: 1; }
.home-main { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 24px 0; }

/* Installation page: permanent spectrum */
.band { position: relative; height: clamp(96px, 12vw, 170px); }
.band .bar { background: linear-gradient(to bottom, transparent 0%, var(--c) 35%, var(--c) 65%, transparent 100%); }

@media (prefers-reduced-motion: reduce) {
  .bar { animation: none; }
  .ap .bar::after { transition: none; }
}

/* Installation page */

.dm-main { padding-bottom: 96px; }
.hero { display: flex; flex-direction: column; padding-top: 8px; }
.hero h1 { margin: 40px 0 0; font-size: clamp(40px, 5vw, 72px); line-height: 0.95; font-weight: 700; letter-spacing: -0.03em; }
.byline { margin: 16px 0 0; color: var(--ink-muted); }
.lead { margin: 24px 0 0; max-width: 720px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; }

.signup {
  margin-top: 36px; padding: 24px 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 40px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.signup-intro { flex: 1 1 260px; max-width: 360px; margin: 0; }
.signup form { flex: 2 1 420px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.signup-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px; background: var(--ground); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 0; font: inherit; font-size: 15px;
}
.field input::placeholder { color: var(--ink-muted); opacity: 1; }
.signup button {
  min-height: 48px; padding: 0 28px; background: var(--ink); color: var(--ground);
  border: 0; border-radius: 0; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.signup button:disabled { opacity: 0.6; cursor: default; }
.signup button:focus-visible { outline-offset: 3px; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 56px; }
.facts .cap { flex: 1 1 200px; }

.section { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 80px; }
.section h2 { flex: 1 1 200px; margin: 0; font-size: 26px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.prose { flex: 3 1 480px; max-width: 680px; font-size: 16px; line-height: 1.5; }
.prose p { margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose a, .facts a { text-decoration: underline; text-underline-offset: 4px; }

/* 404 */
.notfound { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px 0; }
.notfound h1 { margin: 0; font-size: 46px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.notfound p { margin: 0; }
