@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: rgb(1, 2, 21);
  --sheet: rgb(10, 12, 34);
  --row: rgb(18, 21, 48);
  --amber: rgb(252, 172, 66);
  --cream: rgb(246, 228, 196);
  --muted: rgba(246, 228, 196, 0.66);
  --hair: rgba(246, 228, 196, 0.16);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--night); color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Wordmark: tracked capitals, as in the banner and the opening. */
.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Home ---------- */

.home { min-height: 100vh; }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 24px;
}

.hero .earth {
  width: min(76vw, 40vh, 420px);
  height: auto;
  aspect-ratio: 1;
  display: block;
  margin: 0 auto;
}

.hero h1 {
  margin: 8px 0 0;
  font-size: clamp(18px, 4.8vw, 40px);
  padding-left: 0.32em; /* balance the trailing letter-spacing */
}

@media (max-width: 480px) {
  .hero h1 { letter-spacing: 0.22em; padding-left: 0.22em; }
}

.hero .line {
  font-family: var(--serif);
  font-size: clamp(20px, 4.6vw, 27px);
  line-height: 1.35;
  font-weight: 400;
  max-width: 30ch;
  margin: 18px auto 0;
  text-wrap: balance;
}

.hero .about {
  margin: 14px auto 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 16px;
  text-wrap: pretty;
}

.listen-label {
  margin: 30px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.listen {
  list-style: none;
  padding: 0;
  margin: 12px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 640px;
}

.listen a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 180px;
  padding: 10px 22px;
  border: 1px solid var(--hair);
  border-radius: 24px;
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.listen a:hover { border-color: var(--amber); background: var(--sheet); }
.listen svg { width: 20px; height: 20px; margin-right: 10px; fill: currentColor; flex: none; }

/* ---------- The sounds ---------- */

.sounds {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  border-top: 1px solid var(--hair);
}

.sounds h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 6vw, 40px);
  text-align: center;
  margin: 32px 0 28px;
}

.sound {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
}

.sound img { width: 132px; height: 132px; border-radius: 22px; display: block; }

.sound h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.sound p { margin: 0; color: var(--muted); }

@media (max-width: 520px) {
  .sound { grid-template-columns: 88px 1fr; gap: 16px; align-items: start; }
  .sound img { width: 88px; height: 88px; border-radius: 16px; }
  .sound h3 { font-size: 23px; }
}

@media (max-width: 600px) {
  .listen { flex-direction: column; align-items: stretch; max-width: 320px; }
}

/* ---------- Footer, shared ---------- */

.foot {
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 24px;
  font-size: 14px;
  color: var(--muted);
}

.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover, .foot a[aria-current] { color: var(--cream); }

/* ---------- Reading pages (privacy, support) ---------- */

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  padding: 22px 24px;
  border-bottom: 1px solid var(--hair);
}

.top img { width: 32px; height: 32px; border-radius: 50%; display: block; }
.top .wordmark { font-size: 15px; letter-spacing: 0.26em; }

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 24px 48px;
}

.page h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1.1;
  margin: 0;
}

.page .meta { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.page h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.25;
  margin: 40px 0 8px;
}

.page p, .page li { color: var(--cream); }
.page p { margin: 0 0 14px; }
.page ul { margin: 0 0 14px; padding-left: 22px; }
.page li { margin: 4px 0; }

.short {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: var(--sheet);
}

.short p:last-child { margin-bottom: 0; }

/* ---------- Support form ---------- */

.form { margin-top: 12px; }

.form label { display: block; font-size: 15px; color: var(--muted); margin: 14px 0 6px; }

.form textarea, .form input[type="email"] {
  width: 100%;
  display: block;
  background: var(--sheet);
  color: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 14px;
  font: inherit;
  font-size: 16px;
}

.form textarea { min-height: 140px; resize: vertical; }
.form textarea::placeholder, .form input::placeholder { color: rgba(246, 228, 196, 0.4); }

.form button {
  margin-top: 16px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 25px;
  background: var(--amber);
  color: var(--night);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.form button:hover { filter: brightness(1.06); }

.form .small { font-size: 14px; color: var(--muted); margin-top: 12px; }

.thanks { display: none; margin-top: 16px; }

.faq h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 6px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
