/* ===========================
   Base CSS
   - Resets, variables, typography, utilities
   - Keep this file brand-agnostic.
   =========================== */

/* Box sizing + smoother fonts */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headline helper (set the family in theme file if needed) */
.hl {
  font-family: "Oswald", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: .2px;
}

/* ---------- CSS Variables (Neutral Defaults) ----------
   Theme files overwrite these in :root.
------------------------------------------------------- */
:root{
  --teal:#00B4D8;       /* accent 1 */
  --charcoal:#2B2D42;   /* dark text / lines */
  --neon:#9EF01A;       /* accent 2 */
  --white:#FFFFFF;      /* background */
  --ink:#0F141B;        /* body text */
  --muted:#cfd2d8;      /* light borders */
}

/* Links */
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Containers */
.wrap { max-width: 1180px; margin-inline: auto; padding: 0 24px; }

/* Grid helpers */
.grid { display: grid; gap: 26px; }
.grid-2 { display: grid; gap: 26px; }
@media (min-width: 900px){
  .grid-2 { grid-template-columns: 1.2fr .8fr; }
}

/* Buttons (structure only — coloring in theme) */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  transform: skewX(-8deg);
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .15s ease, filter .25s ease;
}
.btn > span { display: inline-block; transform: skewX(8deg); }

/* Assign colors in theme */
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.btn-primary:hover { filter: brightness(.95); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-ghost:hover { background: rgba(43,45,66,.06); }

/* Optional glow API (theme can enable) */
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 12px rgba(158,240,26,.25); }
  50%     { box-shadow: 0 0 24px rgba(158,240,26,.45); }
}
.btn--glow { animation: pulseGlow 2.2s infinite alternate; }

/* Sections */
section { padding: 68px 0; }

/* Cards & framed blocks (neutral) */
.card {
  border: 2px solid var(--muted);
  border-radius: 14px;
  padding: 22px;
  background: var(--white);
}
.frame {
  border: 3px solid var(--charcoal);
  border-radius: 14px;
  padding: 28px;
  background: var(--white);
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px; top: 12px;
  background: #fff; color: #000;
  padding: 10px 14px;
  border: 2px solid var(--charcoal);
  border-radius: 8px;
  z-index: 1000;
}
:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }

/* Media basics */
img, svg, video { max-width: 100%; height: auto; }

/* Headings baseline (theme will style) */
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.1; }
