/* =========================================
   BASE STYLESHEET
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, sans-serif);
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection { background: rgba(74, 159, 212, 0.25); color: var(--color-text); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@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;
  }
}

button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

a, button, [role='button'] {
  transition: color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

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

/* Layout utility */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

/* Section spacing */
section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge--accent { background: #f5c800; color: #111; }
.badge--ice { background: #e8e8e8; color: #444; }
.badge--navy { background: #111; color: #f5c800; }
.badge--success { background: var(--color-success-highlight); color: var(--color-success); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.btn--primary {
  background: #f5c800;
  color: #111;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245,200,0,0.35);
}
.btn--primary:hover {
  background: #d9b000;
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,200,0,0.45);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn--outline:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover { background: rgba(255,255,255,0.2); }

.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* Card */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card--hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
