/* ============================================================
   01 · FONT FACES
   General Sans — 400, 500, 600, 700
   Jay drops woff2 files into assets/fonts/general-sans/
============================================================ */

@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans/GeneralSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans/GeneralSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   02 · RESET
============================================================ */

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
  line-height: var(--type-body-lh);
  color: var(--color-charcoal-body);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  color: var(--color-charcoal);
  line-height: 1.1;
}


/* ============================================================
   03 · TYPOGRAPHY DEFAULTS
============================================================ */

h1 {
  font-size: var(--type-h1);
  line-height: var(--type-h1-lh);
  letter-spacing: var(--type-h1-ls);
}

h2 {
  font-size: var(--type-h2);
  line-height: var(--type-h2-lh);
  letter-spacing: var(--type-h2-ls);
}

h3 {
  font-size: var(--type-h3);
  line-height: var(--type-h3-lh);
  letter-spacing: var(--type-h3-ls);
}

p {
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
  color: var(--color-charcoal-body);
}


/* ============================================================
   04 · ACCESSIBILITY — Skip Link & Focus
============================================================ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--type-small);
  font-weight: var(--weight-semibold);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-wood);
  outline-offset: 2px;
}
