/* UPLINK // base.css — Fonts, color tokens, shared pieces (buttons, labels, glitch text). */

@font-face {
  font-family: 'Big Shoulders Display';
  font-weight: 600;
  src: url(../fonts/big-shoulders-display-latin-600-normal.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-weight: 800;
  src: url(../fonts/big-shoulders-display-latin-800-normal.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-weight: 900;
  src: url(../fonts/big-shoulders-display-latin-900-normal.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  font-weight: 400;
  src: url(../fonts/chakra-petch-latin-400-normal.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  font-weight: 500;
  src: url(../fonts/chakra-petch-latin-500-normal.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  font-weight: 600;
  src: url(../fonts/chakra-petch-latin-600-normal.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 400;
  src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 600;
  src: url(../fonts/jetbrains-mono-latin-600-normal.woff2) format('woff2');
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel-2: #1c1c1f;
  --line: #2c2c30;
  --mute: #8a8a90;
  --fg: #ececea;
  --accent: #ff6a13;
  --accent-dim: #ff6a1322;
  --ok: #c8ff3d;
  --bad: #ff2a3d;
  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --body: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --bar: 56px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 19v10M19 24h10' stroke='%2336363c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  background-attachment: fixed;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button {
  font: inherit;
  color: inherit;
}
.cut {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.label b {
  color: var(--accent);
  font-weight: 600;
}
.label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.cur {
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
}

/* glitch text */
.t {
  position: relative;
  display: inline-block;
}
.t::before,
.t::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.t::before {
  color: var(--accent);
}
.t::after {
  color: #00e5ff;
}
.brand:hover .t::before,
.logo:hover .t::before,
.glitch .t::before {
  animation: slice 0.35s steps(1);
}
.brand:hover .t::after,
.logo:hover .t::after,
.glitch .t::after {
  animation: slice2 0.35s steps(1);
}
@keyframes slice {
  0% {
    opacity: 1;
    clip-path: inset(0 0 65% 0);
    transform: translateX(-5px);
  }
  25% {
    opacity: 1;
    clip-path: inset(45% 0 25% 0);
    transform: translateX(4px);
  }
  50% {
    opacity: 1;
    clip-path: inset(75% 0 0 0);
    transform: translateX(-3px);
  }
  75% {
    opacity: 1;
    clip-path: inset(15% 0 70% 0);
    transform: translateX(2px);
  }
  100% {
    opacity: 0;
  }
}
@keyframes slice2 {
  0% {
    opacity: 1;
    clip-path: inset(60% 0 10% 0);
    transform: translateX(4px);
  }
  33% {
    opacity: 1;
    clip-path: inset(5% 0 80% 0);
    transform: translateX(-4px);
  }
  66% {
    opacity: 1;
    clip-path: inset(35% 0 40% 0);
    transform: translateX(3px);
  }
  100% {
    opacity: 0;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: #0b0b0c;
  padding: 5px 9px;
  font-weight: 600;
}
.status i {
  width: 7px;
  height: 7px;
  background: #0b0b0c;
  animation: blink 1.2s steps(2) infinite;
}
.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 20px;
  border: 1px solid var(--fg);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0c;
  font-weight: 600;
}
.btn.primary:hover {
  background: var(--fg);
  border-color: var(--fg);
}
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.icon-btn {
  background: none;
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--mute);
  flex: none;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}
