/* ==========================================================================
   Reset + base typography
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: var(--t-body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

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

::selection { background: var(--c-accent); color: #fff; }

/* --- Skip link ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  padding: 12px 22px;
  background: #fff;
  color: #000;
  font-family: var(--f-display);
  font-weight: 800;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --- Layout primitives ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { position: relative; }
.section--pad    { padding-block: var(--sp-section); }
.section--pad-sm { padding-block: var(--sp-section-sm); }

/* Ambient violet field used behind several sections, in place of the
   reference's bitmap glow art. Pure CSS — no external assets. */
.glow-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.glow-field::before,
.glow-field::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.glow-field::before {
  width: 720px; height: 520px;
  left: -180px; top: 8%;
  background: radial-gradient(circle, rgba(140, 82, 255, 0.5), transparent 68%);
}
.glow-field::after {
  width: 640px; height: 560px;
  right: -160px; bottom: 4%;
  background: radial-gradient(circle, rgba(92, 10, 255, 0.42), transparent 68%);
}
.glow-field--center::before {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 1100px; height: 700px;
}
.glow-field--center::after { display: none; }

.section > .container { position: relative; z-index: 1; }

/* --- Utility -------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.text-center { text-align: center; }
