/* ═══════════════════════════════════════════════════════════════
   CALNCASH — Base / Reset / Global
   ═══════════════════════════════════════════════════════════════ */

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

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

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

ul, ol {
  list-style: none;
}

svg {
  display: block;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);           /* 560px on mobile    */
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

@media (min-width: 768px) {
  .container {
    max-width: 780px;
    padding-inline: var(--sp-10);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1120px;
    padding-inline: var(--sp-16);
  }
}

.container--wide {
  max-width: var(--max-w-wide);
}

/* ── Section base ─────────────────────────────────────────── */
section {
  padding-block: var(--section-y);
  position: relative;
  overflow: hidden;
}

/* ── Typography utilities ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  font-weight: var(--weight-semibold);
}

/* ── Section header block ─────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-muted);
  margin-bottom: var(--sp-4);
}

.section-label--light {
  color: var(--forest-pale);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.section-header {
  margin-bottom: var(--sp-12);
}

.section-title {
  font-size: var(--text-3xl);
  color: var(--text);
  line-height: var(--leading-snug);
}

.section-title--light {
  color: var(--text-on-dark);
}

.section-body {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--sp-4);
}

.section-body--light {
  color: var(--text-dim-dark);
}

/* ── Visually hidden (accessibility) ─────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Selection color ──────────────────────────────────────── */
::selection {
  background: var(--forest);
  color: var(--cream);
}
