/**
 * base.css
 *
 * Trích từ design/html/styles.css (bộ V3). KHÔNG sửa file gốc trong design/.
 * Mọi @media đã được tách sang responsive.css.
 *
 * @package tntam-driving-theme
 */

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--navy-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--terra-500); }

ul, ol, dl, dd, figure { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--terra-500);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-800);
  color: var(--neutral-0);
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
}
.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* ==========================================================================
   TYPE UTILITIES
   ========================================================================== */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-600);
  margin-bottom: var(--space-4);
}
.kicker::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--terra-500);
}

.display {
  font-size: clamp(38px, 7.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--text-body);
  max-width: 56ch;
}

.mono { font-family: var(--font-mono); }
