/* ============================================================
   SQ INTERACTIVE — BASE STYLES
   Reset, typography, global elements, accessibility
   ============================================================ */

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

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

body {
  font-family: var(--sq-font-sans);
  background-color: var(--sq-bg);
  color: var(--sq-text);
  line-height: var(--sq-leading-base);
  font-size: var(--sq-text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Images & Media ── */
img, video, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
}

/* ── Lists ── */
ul, ol {
  list-style: none;
}

/* ── Buttons ── */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Inputs ── */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Typography Scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sq-font-serif);
  color: var(--sq-text-strong);
  line-height: var(--sq-leading-tight);
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 5vw, var(--sq-text-6xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--sq-text-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--sq-text-2xl)); }
h4 { font-size: var(--sq-text-xl); }
h5 { font-size: var(--sq-text-lg); }
h6 { font-size: var(--sq-text-base); }

p {
  color: var(--sq-text-secondary);
  line-height: var(--sq-leading-loose);
  max-width: 68ch;
}

/* ── Layout Utilities ── */
.sq-container {
  width: 100%;
  max-width: var(--sq-max-width);
  margin-inline: auto;
  padding-inline: var(--sq-space-6);
}

@media (min-width: 768px) {
  .sq-container {
    padding-inline: var(--sq-space-8);
  }
}

@media (min-width: 1280px) {
  .sq-container {
    padding-inline: var(--sq-space-12);
  }
}

/* ── Section Spacing ── */
.sq-section {
  padding-block: var(--sq-space-20);
}

@media (min-width: 768px) {
  .sq-section {
    padding-block: var(--sq-space-24);
  }
}

/* ── Accessibility ── */
.sr-only {
  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: -100%;
  left: var(--sq-space-4);
  background: var(--sq-gold);
  color: var(--sq-bg);
  padding: var(--sq-space-2) var(--sq-space-4);
  border-radius: var(--sq-radius-md);
  font-weight: 600;
  font-size: var(--sq-text-sm);
  z-index: 9999;
  transition: top var(--sq-duration-fast);
}

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

/* ── Focus States ── */
:focus-visible {
  outline: 2px solid var(--sq-gold);
  outline-offset: 3px;
  border-radius: var(--sq-radius-sm);
}

/* ── Selection ── */
::selection {
  background: var(--sq-gold-subtle);
  color: var(--sq-text-strong);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--sq-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--sq-surface-raised);
  border-radius: var(--sq-radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sq-gold-dark);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Divider ── */
.sq-divider {
  border: none;
  border-top: 1px solid var(--sq-border);
  margin-block: var(--sq-space-16);
}

/* ── Label / Eyebrow ── */
.sq-label {
  display: inline-block;
  font-family: var(--sq-font-sans);
  font-size: var(--sq-text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sq-gold);
}

/* ── Gold accent line ── */
.sq-accent-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--sq-gold);
  margin-block: var(--sq-space-4);
}
