/* Shared foundations: tokens, reset, page frame, header, nav, footer.
   Loaded first on every page. Page-specific CSS must not redeclare these. */
:root {
  color-scheme: dark;
  --bg: #141618;
  --ink: #f1f0eb;
  --muted: #a5a8a9;
  --line: #343739;
  --red: #ed493c;
  --lime: #d8ff63;
  --team: #ff8700;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--red);
  color: #fff;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}

.wrap {
  width: min(1320px, calc(100% - 96px));
  margin: auto;
}
.micro {
  font: 10px/1.6 var(--mono);
  letter-spacing: 1.6px;
}
h1 {
  font-size: clamp(40px, 4.8vw, 69px);
  line-height: 1.04;
  letter-spacing: -3.6px;
  margin: 0;
  font-weight: 600;
}

/* Header and primary navigation */
header {
  height: 104px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand-logo {
  width: auto;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}
header nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}
header nav a[aria-current="page"] {
  color: var(--ink);
}
header nav a[aria-current="page"]::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0 2px 7px;
  background: var(--red);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0 30px;
  color: #929799;
  font-size: 11px;
  line-height: 1.7;
}
.footer-brand {
  font: 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.independent {
  max-width: 520px;
  text-align: right;
}

@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 48px);
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  h1 {
    font-size: 45px;
    letter-spacing: -2.5px;
  }
  header {
    height: auto;
    min-height: 80px;
    flex-wrap: wrap;
    gap: 16px;
    padding: 19px 0;
  }
  header nav {
    width: 100%;
    order: 2;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
  }
  header nav a {
    font-size: 10px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-logo {
    height: 24px;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
  }
  .independent {
    text-align: left;
    max-width: 360px;
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .brand {
    font-size: 18px;
  }
  .brand-logo {
    height: 22px;
  }
}
@media (max-width: 370px) {
  .brand {
    font-size: 16px;
  }
  .brand-logo {
    height: 18px;
  }
  header nav {
    gap: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
