/* ==========================================================================
   ZedHome — Base / Reset
   ========================================================================== */

*, *::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);
  color: var(--color-text);
  background: var(--color-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden) so body never becomes a scroll container / breaks sticky */
  overflow-x: hidden;
  overflow-x: clip;
}

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

input, button, textarea, select { font: inherit; color: inherit; }
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: inherit;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Heading scale: h1 page title, h2 section, h3 card/panel, h4 group label. */
h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); }
h4 { font-size: var(--fs-lead); }

p { color: var(--color-text); }

.numeral { font-variant-numeric: tabular-nums; }

/* Focus ring — accessibility floor. --color-focus is 5.7:1 on light surfaces;
   dark surfaces re-point it to white (see .topbar / .site-footer / .hero). */
:focus-visible {
  outline: 2.5px solid var(--color-focus);
  outline-offset: 2px;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-pad-y); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
}

.section-head__copy { max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-dark);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--color-brand);
  border-radius: 2px;
}

.section-head h2 { margin-bottom: 10px; }
.section-head p { font-size: var(--fs-lead); color: var(--color-text-soft); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--color-brand-dark);
  white-space: nowrap;
  transition: gap var(--dur-fast) var(--ease-standard);
}
.link-more:hover { gap: 10px; }
.link-more svg { width: 16px; height: 16px; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--color-ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-standard);
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
