/* ============================================================
   CHEDDERS PAY — core.css
   Global Resets · Typography · Layout Foundation
   V3 DNA Compliant
   ============================================================ */

/* ── Import Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  transition: background-color var(--transition-base),
              color var(--transition-base);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography Scale ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  transition: color var(--transition-base);
}

/* H1 — Page Title */
h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* H2 — Section Title */
h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* H3 — Sub-heading */
h3 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
}

/* H4 */
h4 {
  font-size: 18px;
  font-weight: 600;
}

/* H5 */
h5 {
  font-size: 16px;
  font-weight: 600;
}

/* H6 — Section Label */
h6 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Body Copy */
p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  transition: color var(--transition-base);
}

strong {
  font-weight: 600;
}

/* Caption / Small */
small,
.text-caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Links ───────────────────────────────────────────────── */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-light);
}

/* ── Images ──────────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Lists ───────────────────────────────────────────────── */
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Horizontal Rule ─────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  transition: border-color var(--transition-base);
}

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

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background-color: var(--accent);
  color: var(--primary);
}

/* ── Layout Container ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  overflow: hidden;
}

@media (min-width: 576px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 992px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ── Scrollbar Styling ───────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}
