/*
  BASE STYLES — OrchestraInstruments.com mockups
  Resets, base typography, layout primitives, and accessibility defaults.
  Depends on tokens.css being loaded first.
*/

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  color: var(--color-ink);
  font-weight: 600;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }

p { max-width: 68ch; }
p.no-measure { max-width: none; }

a { color: var(--color-brass-deep); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--color-walnut); }

ul, ol { padding-left: 1.25em; }
ul.unstyled, ol.unstyled { list-style: none; padding-left: 0; }

button { font-family: inherit; }

/* ---- Accessible focus (Section 12.6 / 23) ---- */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ---- Skip link (Section 12.6) ---- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  z-index: 1000;
  background: var(--color-ink);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top var(--duration-base) var(--ease-standard);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ---- Layout primitives ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-8);
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--walnut {
  background: var(--color-walnut-deep);
  color: var(--color-bg);
}
.section--walnut h1, .section--walnut h2, .section--walnut h3 { color: var(--color-white); }

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-6);
}
.section-head__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brass-deep);
  margin-bottom: var(--space-2);
}
.section-head p { color: var(--color-ink-soft); margin-top: var(--space-2); }

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

hr.rule {
  border: none;
  border-top: 1px solid var(--color-line);
  margin-block: var(--space-6);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.7em 1.3em;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--color-walnut);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-walnut-deep); color: var(--color-white); }
.btn--primary:active { background: #1E140E; }

.btn--secondary {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn--secondary:hover { background: var(--color-ink); color: var(--color-white); }

.btn--brass {
  background: var(--color-brass);
  color: var(--color-walnut-deep);
}
.btn--brass:hover { background: var(--color-brass-deep); color: var(--color-white); }

.btn--sm { font-size: var(--text-xs); padding: 0.5em 1em; }

/* ---- High-emphasis CTA: reserved for the single most important action per
   section (hero, mid-page CTA banner). Gradient stays inside the brass/walnut
   family — richer than .btn--primary, but not the banned "aggressive red". ---- */
.btn--cta {
  background: var(--gradient-cta);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  font-size: var(--text-base);
  padding: 0.85em 1.6em;
}
.btn--cta:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); color: var(--color-white); }
.btn--cta:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn--cta svg { width: 18px; height: 18px; }

/* ---- Responsive breakpoints used across all mockups ----
   Mobile:  0–639px   (default, no media query)
   Tablet:  640–1023px
   Desktop: 1024px+
*/
