/**
 * ============================================================================
 * BASE
 * ============================================================================
 * Reset + foundational typography + generic utility classes that don't
 * belong to any one section (container, cut-corner, sr-only, etc).
 * ============================================================================
 */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.intro-lock,
html.intro-lock body {
  overflow: hidden;
  height: 100%;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--c-void);
  color: var(--c-fog);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

svg {
  display: block;
}

/* ---------- Focus visibility ------------------------------------------ */
:focus {
  outline: none;
}

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

/* ---------- Selection --------------------------------------------------- */
::selection {
  background: var(--c-bone);
  color: var(--c-void);
}

/* ---------- Layout utilities -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.visually-hidden {
  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: fixed;
  top: -100%;
  left: var(--space-sm);
  z-index: 10000;
  background: var(--c-bone);
  color: var(--c-void);
  padding: var(--space-2xs) var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  transition: top var(--dur-fast) var(--ease-standard);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ---------- Cut-corner utility -----------------------------------------
   The recurring "sharp edge" look: two opposite corners are clipped at
   an angle instead of rounded, like a cut shard of metal. Used on
   buttons, cards, pills and nav elements throughout the site.
------------------------------------------------------------------------- */
.cut-corner {
  clip-path: polygon(
    var(--corner-cut) 0,
    100% 0,
    100% calc(100% - var(--corner-cut)),
    calc(100% - var(--corner-cut)) 100%,
    0 100%,
    0 var(--corner-cut)
  );
}

.cut-corner-sm {
  clip-path: polygon(
    var(--corner-cut-sm) 0,
    100% 0,
    100% calc(100% - var(--corner-cut-sm)),
    calc(100% - var(--corner-cut-sm)) 100%,
    0 100%,
    0 var(--corner-cut-sm)
  );
}

/* ---------- Eyebrow / chapter label -------------------------------------
   Mirrors a video chapter marker (e.g. "00:01 — ABOUT"). Used at the top
   of every section as a structural device tying content back to the
   channel's own medium.
------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--c-ash);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--c-steel-soft);
}
