@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/anton-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/courier-prime-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/courier-prime-700-latin.woff2") format("woff2");
}

:root {
  --atonal-paper: #f4f7fb;
  --atonal-white: #ffffff;
  --atonal-blue: #0018f0;
  --atonal-navy: #0c1738;
  --atonal-ink: #18223a;
  --atonal-muted: #5d687e;
  --atonal-line: #d7deea;
  --atonal-soft: #edf2f8;
  --atonal-green: #16a56f;
  --atonal-display: "Anton", Impact, sans-serif;
  --atonal-mono: "Courier Prime", "SFMono-Regular", Consolas, monospace;
}

.atlas-topbar {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 60px;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  padding: 0 clamp(20px, 3vw, 44px);
  border-bottom: 1px solid var(--atonal-line);
  color: var(--atonal-ink);
  background: rgba(244, 247, 251, .94);
  backdrop-filter: blur(14px);
}

.atlas-brand {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  color: var(--atonal-navy);
  font-family: var(--atonal-display);
  font-size: 23px;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
}

.atlas-brand-glyph {
  color: var(--atonal-blue);
  font-family: var(--atonal-mono);
  font-size: 22px;
}

.atlas-brand small {
  padding-left: 10px;
  border-left: 1px solid var(--atonal-line);
  color: var(--atonal-muted);
  font-family: var(--atonal-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.atlas-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(11px, 1.6vw, 22px);
}

.atlas-nav a {
  position: relative;
  padding: 22px 0 19px;
  color: var(--atonal-muted);
  font-family: var(--atonal-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
}

.atlas-nav a:hover,
.atlas-nav a[aria-current="page"] {
  color: var(--atonal-blue);
}

.atlas-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--atonal-blue);
}

.atlas-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-family: var(--atonal-mono);
}

.atlas-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--atonal-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

.atlas-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--atonal-green);
  box-shadow: 0 0 0 4px rgba(22, 165, 111, .12);
}

.atlas-link-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--atonal-blue);
  color: var(--atonal-blue);
  background: transparent;
  font-family: var(--atonal-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}

.atlas-link-button.primary {
  color: var(--atonal-white);
  background: var(--atonal-blue);
}

.atlas-link-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0, 24, 240, .16);
}

.atlas-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4vw;
  border-top: 1px solid var(--atonal-line);
  color: var(--atonal-muted);
  font-family: var(--atonal-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.atlas-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.atlas-footer a {
  color: inherit;
  text-decoration: none;
}

.atlas-footer a:hover { color: var(--atonal-blue); }

@media (max-width: 1180px) {
  .atlas-actions .atlas-status,
  .atlas-actions .credit-readout { display: none; }
}

@media (max-width: 900px) {
  .atlas-topbar { grid-template-columns: auto 1fr; padding-block: 12px; }
  .atlas-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .atlas-nav a { padding: 7px 0 10px; }
}

@media (max-width: 680px) {
  .atlas-topbar { padding-inline: 18px; }
  .atlas-brand small { display: none; }
  .atlas-actions .atlas-status { display: none; }
  .atlas-link-button { padding-inline: 10px; }
  .atlas-nav { gap: 18px; scrollbar-width: none; }
  .atlas-nav::-webkit-scrollbar { display: none; }
  .atlas-footer { align-items: flex-start; flex-direction: column; }
}
