/* ==========================================================================
   Lizhisec v2 — Base & Reset
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--charcoal);
  background: var(--warm-white);
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection {
  background: var(--orange);
  color: var(--warm-white);
}

/* —— Layout containers ——————————————————————— */
.container {
  width: min(100%, calc(var(--content-max) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-tight {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 9vw, 140px);
}

.section-sm {
  padding-block: clamp(48px, 6vw, 88px);
}

/* —— Section header (eyebrow + title pattern from bflabs) ——————— */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.4;
  margin-bottom: 22px;
}

.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: 500;
  margin-block: 18px;
  letter-spacing: -0.025em;
}

.section-lede {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--steel);
  max-width: 64ch;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

@media (min-width: 860px) {
  .section-head {
    grid-template-columns: 1.25fr 0.9fr;
    align-items: end;
    gap: 48px;
  }
  .section-lede { justify-self: end; }
}

/* —— Utility text ——————————————————————— */
.text-muted { color: var(--steel); }
.text-silver { color: var(--silver); }
.text-orange { color: var(--orange); }
.text-display { font-family: var(--font-display); }
.text-mono { font-family: var(--font-mono); }
.text-balance { text-wrap: balance; }

.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-md { font-size: var(--fs-md); }
.text-lg { font-size: var(--fs-lg); }

/* —— Section surfaces (middle-page rhythm) ——————— */
.section--soft { background: var(--warm-white-soft); }
.section--sand { background: var(--sand); }

/* —— Inverse (dark) block ————————————————— */
.inverse {
  background: var(--charcoal);
  color: var(--warm-white);
}
.inverse h1,
.inverse h2,
.inverse h3,
.inverse h4 { color: var(--warm-white); }
.inverse .section-lede,
.inverse .section-eyebrow { color: #faf8f594; }

/* —— Hairline rule ————————————————————— */
.hairline {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
