/* 缪斯创想 MUSEAGENT —— Base / Reset / Primitives */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--gray-900);
  background: var(--gray-0);
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
  margin: 0;
}

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

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

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

img { height: auto; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

input, textarea {
  border: 0;
  outline: none;
}

:focus-visible { outline: none; }

/* ── Selection ────────────────────────────────────────────────── */
::selection {
  background: var(--brand-200);
  color: var(--brand-900);
}

/* ── Layout primitives ────────────────────────────────────────── */
.wrap {
  width: min(100% - var(--pad) * 2, var(--max));
  margin-inline: auto;
}
.wrap--narrow { --max: var(--max-narrow); }
.wrap--wide   { --max: var(--max-wide); }

.section {
  padding-block: var(--sec-y);
}
.section--soft { background: var(--gray-50); }
.section--dark { background: var(--d-bg); color: var(--d-ink-2); }

.section__head {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--head-gap);
  max-width: var(--max-narrow);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}

/* ── Typography primitives ────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}
.eyebrow--center::before { display: none; }

.h-display {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
  color: var(--gray-950);
}

.h-section {
  font-size: var(--fs-4xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-title);
  color: var(--gray-950);
}

.h-card {
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--gray-900);
}

.lede {
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  color: var(--gray-600);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: var(--tr-mono);
  font-size: 0.92em;
}

/* ── Dark section overrides ───────────────────────────────────── */
.section--dark .h-display,
.section--dark .h-section,
.section--dark .h-card { color: var(--d-ink); }
.section--dark .lede { color: var(--d-ink-3); }
.section--dark .eyebrow { color: var(--brand-300); }

/* ── Utility ──────────────────────────────────────────────────── */
.u-text-center { text-align: center; }
.u-flex { display: flex; }
.u-flex-col { display: flex; flex-direction: column; }
.u-grid { display: grid; }
.u-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;
}
