/* ==========================================================================
   UPVCLeads.com — Base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-ink-body);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  color: var(--c-ink);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); line-height: var(--lh-snug); }
h4 { font-size: var(--t-md); line-height: var(--lh-snug); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-glass);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }

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

ul, ol { margin: 0 0 var(--s-4); padding-left: var(--s-5); }
li { margin-bottom: var(--s-2); }

hr {
  border: 0;
  border-top: var(--mullion) solid var(--c-line);
  margin: var(--s-7) 0;
}

/* Focus — visible everywhere, no exceptions */
:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-ink);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  z-index: var(--z-toast);
}
.skip:focus { left: 0; }

@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;
  }
}

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

.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure { max-width: var(--w-text); }

.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-7); }
.section--flush { padding-block: 0; }

/* The mullion grid: hairline verticals, like a window's divisions.
   This is the signature structural device. */
.mullions {
  display: grid;
  gap: 0;
  border-left: var(--mullion) solid var(--c-line);
}
.mullions > * {
  border-right: var(--mullion) solid var(--c-line);
  padding: var(--s-5);
}
.mullions--2 { grid-template-columns: repeat(2, 1fr); }
.mullions--3 { grid-template-columns: repeat(3, 1fr); }
.mullions--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .mullions--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .mullions--2, .mullions--3, .mullions--4 { grid-template-columns: 1fr; }
  .mullions > * { border-bottom: var(--mullion) solid var(--c-line); }
}

/* ---- Type utilities ------------------------------------------------------ */

/* The drafting label. Appears above every section, like a callout on a
   technical drawing. Encodes what the section IS, not decoration. */
.label {
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-ink-muted);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.label::after {
  content: "";
  flex: 1;
  height: var(--mullion);
  background: var(--c-line);
}

.lead {
  font-size: var(--t-md);
  color: var(--c-ink-body);
  line-height: var(--lh-body);
}

.muted { color: var(--c-ink-muted); }
.small { font-size: var(--t-sm); }

/* Every number on this site is a specification. Mono, always. */
.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.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;
}
