/* Colours come from theme.css: dark by default, light with data-theme="light". */
* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
.brand {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
}

h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: 28px;
  line-height: 1.25;
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
}

/* the logo icon: a lens (magnifier) with a music note cut out of it */
.brand::before {
  content: '';
  width: 1.35em;
  height: 1.35em;
  margin-right: 0.45rem;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill-rule='evenodd' d='M13 2a11 11 0 1 0 0 22a11 11 0 1 0 0-22zM9.5 14.4a3.2 2.6 0 1 0 0 5.2a3.2 2.6 0 1 0 0-5.2zM12.7 6h1.8v11h-1.8zM14.5 6q5 .8 4.800 5.600q-1.600-2.600-4.800-3z'/><path d='M21 21l7 7' stroke='black' stroke-width='4' stroke-linecap='round'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill-rule='evenodd' d='M13 2a11 11 0 1 0 0 22a11 11 0 1 0 0-22zM9.5 14.4a3.2 2.6 0 1 0 0 5.2a3.2 2.6 0 1 0 0-5.2zM12.7 6h1.8v11h-1.8zM14.5 6q5 .8 4.800 5.600q-1.600-2.600-4.800-3z'/><path d='M21 21l7 7' stroke='black' stroke-width='4' stroke-linecap='round'/></svg>") center / contain no-repeat;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

main {
  flex: 1;
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  margin: 0 0 0.5rem;
}

.hero h1 em {
  color: var(--accent-text);
  font-style: normal;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--on-primary);
}

.btn:hover {
  background: var(--primary-hover);
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--card);
  border-top: 1px solid var(--border);
}
