/* ==========================================================================
   base.css — reset, document defaults, typography primitives
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Lenis drives scrolling; disable native smooth when it is active */
html.lenis { scroll-behavior: auto; }
html.lenis body { min-height: 200vh; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-white);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--ff-head);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img { height: auto; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--c-accent-bright);
  outline-offset: 3px;
}

/* --- Utilities ----------------------------------------------------------- */

.u-accent { color: var(--c-accent); }
.u-accent-bright { color: var(--c-accent-bright); }
.u-semibold { font-weight: var(--fw-sem); }

.u-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;
}

.u-container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

/* --- Not-yet-exported brand images --------------------------------------
   A brand photo/logo with no source yet resolves to an empty src. Hide it so
   no broken-image marker shows; the header and footer fall back to a text
   wordmark, and section badges reappear the moment their file is uploaded.
   UI glyphs are unaffected — they always have a real generated src. */

img[src=""] { display: none; }

/* Text wordmark, shown in the header until logo.png is provided. */
.brand__text {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 26px;
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-white);
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__text::first-letter { color: var(--c-accent-bright); }

/* Text wordmark, shown in the footer until logo.png is provided. */
.site-footer__text {
  display: inline-block;
  margin-bottom: var(--s-5);
  font-family: var(--ff-head);
  font-size: 24px;
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-white);
  text-transform: uppercase;
  white-space: nowrap;
}
