/* Reset & design tokens */

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

html {
  color-scheme: light;
}

body, h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  padding: 0;
  list-style: none;
}

@font-face {
  font-family: 'Rock Salt';
  src: url('../fonts/rock-salt.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — matches the Bandcamp page's theme settings exactly */
  --color-body: #BAAB30;
  --color-text: #363636;
  --color-text-secondary: #121212;
  --color-link: #013865;
  --color-background: #8A7D5C;
  --color-nav: #A1A1A1;
  --color-rule: rgba(0, 0, 0, 0.2); /* decorative dividers only, never text */

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Rock Salt", "Segoe Print", "Comic Sans MS", cursive;

  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 4.5rem;

  --content-max-width: 1080px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
}

/* Same size on purpose: each page's own title is its h1 (the homepage's h1
   is visually hidden), and those titles look like the section h2s. */
h1, h2 {
  font-size: clamp(1.4rem, 2.5vw + 1rem, 2rem);
}

a {
  color: var(--color-link);
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-link);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space-sm);
  z-index: 100;
  background: var(--color-body);
  color: var(--color-text);
  padding: 0.6em 1.2em;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

main [tabindex="-1"]:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
