/* =========================================================
   Nile Savannah — Base + Reset
   ========================================================= */

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

html {
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-body);
  background: var(--c-bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

::selection { background: var(--c-carved-black); color: var(--c-off-white); }

/* Headings default to serif */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-serif);
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--c-carved-black);
  letter-spacing: var(--ls-display);
}

p { font-family: var(--f-sans); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
@media (max-width: 768px) {
  .container { padding-inline: var(--gutter-mob); }
}

/* Visually hidden (a11y) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--c-carved-black);
  outline-offset: 3px;
}
.dark :focus-visible {
  outline-color: var(--c-off-white);
}
