/* ═══════════════════════════════════════════════
   base.css — Reset & Typography (vh/vw-based)
   Minimal reset + body defaults + typography
   cascade + utility classes.
   ═══════════════════════════════════════════════ */

/* ═══ RESET ═══ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 5vh;
}

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

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

::selection {
  background: var(--color-accent);
  color: #fff;
}

/* ═══ BODY ═══ */
body {
  font-family: var(--ff-sans);
  color: var(--color-text);
  background: var(--color-bg);
  font-weight: var(--fw-light);
  font-size: var(--fs-base);
  line-height: var(--lh-tight);
  padding: 0 var(--side-pad);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══ TYPOGRAPHY CASCADE ═══ */
h1,
h2,
h3,
h4 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-light);
}

h1 { font-size: var(--fs-lg); }
h2 { font-size: var(--fs-md); }
h3 { font-size: var(--fs-base); font-weight: 400; }

p,
li {
  line-height: clamp(1.3, var(--lh-body), var(--lh-body));
}

label,
button,
input,
select,
textarea {
  line-height: var(--lh-tight);
  font-family: inherit;
}

/* ═══ SECTION RHYTHM ═══ */
.sec {
  padding: var(--pad-sec-y) 0;
  position: relative;
  z-index: 1;
  background: var(--color-bg);
}

.sec .inner {
  max-width: 100%;
  padding: 0;
}

.sec-label {
  position: relative;
  font-size: var(--fs-sm);
  color: var(--color-accent);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  padding-bottom: var(--space-05);
  margin-bottom: 0;
}

.sec-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(-1 * var(--side-pad));
  width: 100vw;
  height: var(--border-width);
  background: var(--color-accent);
}

.sec-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-normal);
  color: var(--color-text);
  line-height: var(--lh-tight);
  margin: 0;
}

.sec-subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-body);
  margin-bottom: var(--space-2);
}

/* Flush-left headers (template canonical) */
.sec-label,
.sec-title {
  margin-left: calc(-1 * var(--pad-x));
}

/* ═══ HELPERS ═══ */
.sr-only {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  width: var(--border-width);
  height: var(--border-width);
  margin: calc(-1 * var(--border-width));
}

.no-scroll {
  overflow: hidden;
}
