/* ==========================================================================
   ANI'S TERMINAL — base.css
   Design tokens, reset, and components shared by every page
   (header, nav, footer, socials, prompt lines, cursor).
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --cream: #FFEEDB;
  --ink: #141210;
  --ink-soft: #4a423a;
  --accent: #c4550a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  background: var(--cream);
  color: var(--ink);
}

/* ---- blinking terminal cursor ---- */
.cursor {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  margin-left: .18em;
  vertical-align: text-bottom;
  background: var(--cream);
  animation: blink .8s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---- terminal prompt line ---- */
.prompt-line {
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.prompt-line b {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   HEADER — always visible
   ========================================================================== */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 5vw, 56px);
  border-bottom: 2px solid var(--ink);
}

.brand {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .22em;
  color: var(--ink);
  text-decoration: none;
}

.brand::before {
  content: '> ';
  color: var(--accent);
}

nav.menu {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 34px);
}

nav.menu a {
  font-size: 13px;
  letter-spacing: .14em;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

nav.menu a::before { content: '['; opacity: .45; }
nav.menu a::after  { content: ']'; opacity: .45; }

nav.menu a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* ==========================================================================
   FOOTER — status bar with socials in the middle
   ========================================================================== */
footer.statusbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(20px, 5vw, 56px);
  border-top: 2px solid var(--ink);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

footer.statusbar .version {
  text-align: right;
}

.socials {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 26px);
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.socials a:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-3px);
}

.socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   SMALL SCREENS
   ========================================================================== */
@media (max-width: 560px) {
  header.topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  footer.statusbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  footer.statusbar .version {
    text-align: center;
  }
}
