/* Shared look for ajay.engineer pages (mono-ansi): tokens, base type, header
   bar and brand, links. Link it before the page's own stylesheet, and load
   IBM Plex Mono (400/500) from Google Fonts in the page head. */

:root {
  --bg: #000;
  --hover-bg: #121212;
  --line: #1e1e1e;
  --line-strong: #333;
  --text: #e8e8e8;
  --text-muted: #8c8c8c;
  --text-dim: #777;
  --yellow: #dbbc7f;
  --aqua: #78c0b4;
  --orange: #e69875;
  --red: #e67e80;
  --purple: #d699b6;
  --accent: var(--aqua);
  --accent-dim: #3b5a55;
  --mono:
    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --header-h: 59px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
html {
  background: var(--bg);
}
body {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font-family: inherit;
}
::selection {
  background: var(--text);
  color: var(--bg);
}
button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 0.15s,
    text-decoration-color 0.15s;
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Header bar with the "ajay.engineer/…" brand */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 24px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
  gap: 16px;
}
.logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-host {
  color: var(--accent);
  font-weight: 400;
}
.logo-host a {
  color: inherit;
  text-decoration: none;
}
.logo-host a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  header {
    padding: env(safe-area-inset-top) 16px 0;
  }
  .logo {
    font-size: 13px;
  }
}
@media (max-width: 359px) {
  header {
    padding: env(safe-area-inset-top) 12px 0;
  }
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}
