/* Artie's — Base reset, typography, layout utilities */

*, *::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; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--oyster-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
}

/* ---------- Focus states — always visible, never suppressed ---------- */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.on-dark :focus-visible,
[data-theme="dark"] :focus-visible {
  outline-color: var(--coral);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--navy);
  color: var(--cream-text);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

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

.section {
  padding-block: var(--space-24);
}
@media (max-width: 720px) {
  .section { padding-block: var(--space-16); }
}

.section--tight { padding-block: var(--space-16); }

.on-dark { background: var(--navy); color: var(--cream-text); }
.on-navy-deep { background: var(--navy-deep); color: var(--cream-text); }
.on-sand { background: var(--sand); color: var(--ink); }
.on-cream { background: var(--oyster-white); color: var(--ink); }

.grid { display: grid; gap: var(--space-6); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--coral);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.section-head h2 {
  font-size: var(--text-3xl);
  max-width: 18ch;
}

.section-head p {
  max-width: 42ch;
  font-size: var(--text-lg);
  color: var(--sea-glass-deep);
}
.on-dark .section-head p { color: var(--aqua-mist); }

.measure { max-width: 62ch; }

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

hr.rule {
  border: none;
  border-top: 1px solid var(--ice);
  margin-block: var(--space-8);
}
.on-dark hr.rule { border-top-color: rgba(250,246,238,0.15); }
