/* ═══════════════════════════════════════
   BASE — Reset, Variables, Typography
   ═══════════════════════════════════════ */

:root {
  /* Surface */
  --bg-left: #f5f5f3;
  --bg-right: #eaeae8;
  --bg-card: #ffffff;

  /* Text */
  --text: #3a3a3a;
  --text-sec: #6e6e6c;
  --text-ter: #767674;

  /* Accent */
  --accent: #276284;
  --accent-l: #2f7a9e;
  --accent-sub: #dfedf3;

  /* Status */
  --green: #3a7750;
  --green-sub: #e3efe7;

  /* Borders & shadows */
  --border: #d5d5d2;
  --border-l: #e2e2df;
  --shadow: 0 1px 6px rgba(58, 58, 58, 0.04);
  --shadow-lg: 0 4px 16px rgba(58, 58, 58, 0.06);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 16px;

  /* Fonts */
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-d: 'DM Serif Display', Georgia, serif;

  /* Easing */
  --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-med: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: 0.65s cubic-bezier(0.4, 0, 0.2, 1);

  /* Dark variants (custom plan card) */
  --dark: #2a2a28;
  --dark-card: #323230;
  --dark-bor: #434341;
  --dark-t: #e5e5e2;
  --dark-ts: #a5a5a2;
  --dark-tt: #a09f9d;
  --dark-acc: #4da3cc;
}


/* ── Reset ── */

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

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

body {
  font-family: var(--font);
  background: var(--bg-right);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}


/* ── Focus styles (accessibility) ── */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
  outline: none;
}


/* ── Skip link ── */

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  z-index: 9999;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 0.5rem;
}


/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
