/* ==========================================================================
   BASE STYLES - INSIDE ART PROTOTYPE
   Reset, Inter Typography, Accessibility Defaults
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

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

body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility: Focus Rings */
:focus-visible {
  outline: 2px solid var(--c-black) !important;
  outline-offset: 2px !important;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 16px;
  background: var(--c-black);
  color: var(--c-invert);
  padding: var(--sp-2) var(--sp-4);
  z-index: var(--z-toast);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  color: var(--c-ink);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
}

h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-4);
}

h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}

h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

h5, h6 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

p {
  margin-bottom: var(--sp-4);
  color: var(--c-ink-2);
}

p:last-child {
  margin-bottom: 0;
}

small {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

a {
  color: var(--c-ink);
  text-decoration: none;
  transition: opacity var(--t-fast);
}

a:hover {
  text-decoration: underline;
}

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

hr {
  border: none;
  border-top: 1px solid var(--c-line);
  margin: var(--sp-8) 0;
}

ul, ol {
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-4);
  color: var(--c-ink-2);
}

li {
  margin-bottom: var(--sp-2);
}

/* Form Basics */
input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* 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;
  }
}
