/* Reset + typography + layout primitives */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--deep-800);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--ice-100) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, var(--ice-200) 0%, transparent 55%),
    var(--frost-1);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--deep-900);
  text-wrap: balance;
}
h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-600); }

p { max-width: 68ch; }

a { color: var(--glass-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--glass-700); }

ul, ol { padding-left: 1.2rem; }

strong { font-weight: 700; }

::selection { background: var(--ice-300); color: var(--deep-900); }

:focus-visible {
  outline: 3px solid var(--glass-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Layout */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-3); }
.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }

.grid { display: grid; gap: var(--space-3); }
.grid > *, .hero-grid > *, .contact-split > * { min-width: 0; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.center { text-align: center; }
.center p { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-200);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glass-600);
  margin-bottom: var(--space-1);
}

.lede { font-size: var(--fs-500); color: var(--deep-700); }

.byline {
  margin-top: var(--space-2);
  font-size: var(--fs-300);
  color: var(--glass-600);
}
.byline a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.section-head { margin-bottom: var(--space-4); }
.section-head p { margin-top: var(--space-1); }

/* Visually hidden (a11y) */
.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 */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--deep-900); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* Tables (spec sheets) */
table { border-collapse: collapse; width: 100%; font-size: var(--fs-300); }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--ice-200); }
th { font-weight: 700; color: var(--deep-900); background: rgba(227, 241, 248, 0.5); }
