/* Musika — musikaradio.com
   Shared styles for a two-page static site. No build step, no dependencies. */

:root {
  /* Brand purple, matching the Android app's Material 3 theme. */
  --purple: #5B21B6;
  --purple-dark: #4A1A96;
  --purple-tint: #F4F2F8; /* the app icon's off-white background */

  --ink: #1B1621;
  --ink-soft: #4E4857;
  --ink-faint: #6E6879;
  --rule: #E6E2EC;
  --page: #FFFFFF;
  --card: #FAF9FC;
  --footer: #1B1423;

  --wrap: 62rem;
  --radius: 14px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--purple-dark);
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Let keyboard users jump past the header. */
.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--page);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgb(27 22 33 / 18%);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 4rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9875rem;
}

.site-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:not(.btn):hover {
  color: var(--purple);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--purple-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--purple);
  border-color: var(--rule);
}

.btn--ghost:hover {
  background: var(--purple-tint);
  color: var(--purple-dark);
  border-color: var(--purple);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(60rem 24rem at 50% -8rem, rgb(91 33 182 / 9%), transparent 70%),
    var(--page);
  text-align: center;
}

.hero-mark {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.5rem;
  display: block;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero p {
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.section--tint {
  background: var(--purple-tint);
  border-block: 1px solid var(--rule);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2.25rem;
  max-width: 44rem;
  color: var(--ink-soft);
}

/* ---------- Feature grid ---------- */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
}

.feature {
  padding: 1.35rem 1.4rem;
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.section--tint .feature {
  background: var(--page);
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.feature h3::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: 0.85rem;
  border-radius: 2px;
  background: var(--purple);
}

.feature p {
  margin: 0;
  font-size: 0.9875rem;
  color: var(--ink-soft);
}

/* ---------- Closing call to action ---------- */

.cta {
  text-align: center;
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
}

.cta h2 {
  margin: 0 0 0.75rem;
}

.cta p {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

/* ---------- Long-form pages (privacy) ---------- */

.prose {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  max-width: 44rem;
}

.prose h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.prose .updated {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose p > strong {
  color: var(--ink);
}

.prose .lede {
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  background: var(--footer);
  color: #CFC7DA;
  padding-block: 2.75rem;
  font-size: 0.9375rem;
}

.site-footer a {
  color: #E4DCEE;
  text-decoration-color: rgb(228 220 238 / 45%);
}

.site-footer a:hover {
  color: #fff;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}

/* Uses the monochrome mark: fill is currentColor, so it picks up the footer text colour. */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.footer-brand svg {
  width: 26px;
  height: 26px;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-fine {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: #A79DB4;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-fine p {
  margin: 0 0 0.5rem;
}

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

/* ---------- Layout scaffolding ---------- */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

@media (max-width: 30rem) {
  .site-header > .wrap {
    justify-content: center;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
