/* ============================================
   DETROIT TECHNO PARK — BASE STYLES
   Modern reset, light-mode typography, link defaults.

   Voice: clean, futuristic, low-emphasis decoration.
   Em words pick up the cyan accent (deep enough to read on light bg).
   ============================================ */

/* ---------- MODERN RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: 400;
  min-height: 100vh;
}

/* Block-level defaults */
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, blockquote, figure {
  margin: 0;
}

ul, ol { padding-left: 1.25em; }

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-link-hover); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--park-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- TYPOGRAPHY ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tightest);
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tightest);
}

h3 {
  font-size: var(--text-xl);
  font-weight: 500;
}

h4 {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: var(--leading-snug);
}

h5 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: var(--leading-snug);
}

h6 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: var(--leading-snug);
}

p {
  line-height: var(--leading-relaxed);
  color: var(--park-text);
}

p + p {
  margin-top: var(--space-4);
}

/* Lead paragraph helper */
.lead {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--park-text-mid);
}
@media (min-width: 768px) {
  .lead { font-size: var(--text-lg); line-height: 1.5; }
}

/* Em — cyan accent, no italic. Sparingly. */
em {
  font-style: normal;
  color: var(--park-cyan);
}

/* ---------- UTILITY CLASSES ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }
.container--xwide  { max-width: var(--container-xwide); }

/* Mono eyebrow — tracked caps over headlines */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--park-cyan);
  margin-bottom: var(--space-4);
}

.eyebrow--mid  { color: var(--park-text-mid); }
.eyebrow--dim  { color: var(--park-text-dim); }

/* Numbered section marker */
.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--park-text-dim);
}

.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: -40px;
  left: 0;
  background: var(--park-cyan);
  color: var(--park-chrome-light);
  padding: var(--space-2) var(--space-4);
  z-index: 100;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
}
.skip-link:focus { top: 0; }

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

/* Selection */
::selection {
  background: var(--park-cyan);
  color: var(--park-chrome-light);
}

/* Scrollbar (futuristic chrome) */
@supports (scrollbar-color: auto) {
  html {
    scrollbar-color: var(--park-chrome-dark) var(--park-bg);
    scrollbar-width: thin;
  }
}
