/* The Laing Label — Base
   Reset, typography defaults, layout primitives.
   Reflects brand guide rules:
   - Display UPPERCASE / body sentence case / nav lowercase
   - Hard corners (radius 0–2px)
   - Borders + whitespace, never shadows
   - Backgrounds: paper / white / charcoal / black only
   - Red is accent, ≤10% of any composition */

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

html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: 1.72;
  font-weight: 400;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

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

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

/* --- Type --- */

.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

h1, .h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.025em; line-height: 1.0; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; }

.hero-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-hero);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.eyebrow--red { color: var(--red); }
.eyebrow--paper { color: rgba(243, 241, 236, 0.65); }

.accent {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: var(--fs-accent);
  line-height: 1.5;
  text-transform: none;
  color: var(--red);
}

.body-lg { font-size: var(--fs-body-lg); line-height: 1.65; }
.body-sm { font-size: 13px; line-height: 1.6; }

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  font-family: var(--font-mono);
  color: var(--charcoal);
  max-width: 56ch;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Layout primitives --- */

.section {
  padding: var(--section-pad-y) var(--page-pad-x);
}

.section--paper { background: var(--paper); color: var(--charcoal); }
.section--white { background: var(--white); color: var(--charcoal); }
.section--charcoal { background: var(--charcoal); color: var(--paper); }
.section--black { background: var(--black); color: var(--white); }

.section--charcoal .eyebrow,
.section--black .eyebrow { color: rgba(255, 255, 255, 0.55); }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

.reading {
  max-width: var(--reading-w);
  margin-inline: auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-7);
}

.grid-70-30 {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: var(--space-7);
}

.grid-50-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
}

@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-70-30, .grid-50-50 {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.stack > * + * { margin-top: var(--space-5); }
.stack-sm > * + * { margin-top: var(--space-3); }
.stack-lg > * + * { margin-top: var(--space-7); }

.divider {
  height: 1px;
  background: currentColor;
  opacity: 0.16;
  border: 0;
  margin: 0;
}

.rule-red {
  width: 48px;
  height: 2px;
  background: var(--red);
  border: 0;
  margin: 0;
}

/* --- Reveal on scroll --- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- Focus states (accessibility) --- */

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* --- Skip link --- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  z-index: 100;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }
