/* ═══════════════════════════════════════════════════════════════════
   RISING EDGE — Base / Reset
═══════════════════════════════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--text-base);
  background: var(--bg-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography scale ─────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--leading-tight);
  font-weight: var(--weight-bold);
  color: var(--text-base);
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: var(--weight-black);
}
h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
}
h3 {
  font-size: 1.125rem;
}
h4 {
  font-size: 1rem;
}
p {
  color: var(--text-sub);
  line-height: var(--leading-relaxed);
}
a {
  color: var(--primary-400);
  text-decoration: none;
}
a:hover {
  color: var(--primary-300);
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}
pre {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  overflow-x: auto;
  color: var(--text-base);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  cursor: pointer;
  font-family: inherit;
}
input,
select,
textarea {
  font-family: inherit;
}
ul,
ol {
  list-style: none;
}
hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* text gradient helper */
.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* container */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}
@media (min-width: 640px) {
  .container {
    padding: 0 var(--sp-6);
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--sp-8);
  }
}

/* section */
.section {
  padding: var(--sp-12) 0;
}
.section-lg {
  padding: var(--sp-20) 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-card {
  background: var(--bg-card);
}

/* ── Focus visible ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
