/* ==========================================================================
   CeDe Audio — Base Typography, Accessibility & Canvas
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-8));
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-primary);
  background-color: var(--bg-page);
  min-height: 100dvh;
  overflow-x: clip;
  position: relative;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
}

main,
header,
footer {
  position: relative;
  z-index: var(--z-base);
}

.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: fixed;
  top: -100px;
  left: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--bg-deepest);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: var(--space-4);
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

button,
a,
input,
select {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

@media (max-width: 768px) {
  .container {
    padding-inline: var(--space-5);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
