/*
  Orinoct: the same "Workstation" look as ericiscool.net.
  Window chrome, pane-style panels, vim status bar. Press Start 2P for identity, Fira Code for the rest.
  Fonts are served from fonts/ (SIL OFL 1.1, see fonts/LICENSE.md); no third-party requests.
*/
@font-face { font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/press-start-2p-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/fira-code-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/fira-code-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/fira-code-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fira-code-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/fira-code-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #0b0614;
  --surface: #130826;
  --surface2: #1b0f33;
  --gutter: #1a1230;
  --line-num: #4a3870;
  --text: #f2e9ff;
  --muted: #b9a6d3;
  --primary: #7c3aed;
  --primaryHi: #a855f7;
  --accent: #22d3ee;
  --magenta: #ff7df0;
  --green: #4ade80;
  --yellow: #fbbf24;
  --pink: #fb7185;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(168, 85, 247, 0.3);
  --glow-purple: rgba(124, 58, 237, 0.2);
  --glow-cyan: rgba(34, 211, 238, 0.15);
  --pixel: "Press Start 2P", monospace;
  --code: "Fira Code", "Cascadia Code", "JetBrains Mono", "Courier New", monospace;
}

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

body {
  min-height: 100vh;
  font-family: var(--code);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .2s, text-shadow .2s; }
a:hover { color: var(--primaryHi); text-shadow: 0 0 8px rgba(168, 85, 247, .4); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--surface2); }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* window chrome */
.site-shell {
  width: min(100%, 900px);
  margin: 24px auto;
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .6), 0 0 80px rgba(124, 58, 237, .06);
  display: flex;
  flex-direction: column;
}
.title-bar { display: flex; align-items: center; height: 40px; padding: 0 16px; background: var(--gutter); border-bottom: 1px solid var(--border); gap: 12px; }
.traffic-lights { display: flex; gap: 8px; }
.traffic-lights span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.traffic-lights .red { background: var(--pink); }
.traffic-lights .yellow { background: var(--yellow); }
.traffic-lights .green { background: var(--green); }
.title-bar-text { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); letter-spacing: .02em; margin-right: 52px; }

.site-nav { display: flex; background: var(--surface); border-bottom: 1px solid var(--border); }
.nav-link { font-size: .75rem; color: var(--muted); padding: 10px 18px; border-right: 1px solid var(--border); white-space: nowrap; position: relative; }
.nav-link:hover { color: var(--text); background: rgba(124, 58, 237, .08); text-shadow: none; }
.nav-link[aria-current="page"] { color: var(--text); background: var(--bg); font-weight: 500; }
.nav-link[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--glow-cyan); }

main { padding: 32px 36px 40px; flex: 1; }

.status-bar { display: flex; align-items: center; height: 28px; padding: 0 12px; background: var(--primary); font-size: .68rem; font-weight: 500; color: #fff; }
.status-mode { background: var(--surface); color: var(--accent); padding: 2px 10px; margin-right: 12px; font-weight: 600; letter-spacing: .05em; }
.status-file { color: rgba(255, 255, 255, .9); }
.status-right { margin-left: auto; color: rgba(255, 255, 255, .7); font-weight: 400; }

/* intro */
.intro-line { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.intro-line .prompt { color: var(--green); font-weight: 600; margin-right: .5ch; user-select: none; }

/* The README banner. Block characters come from the system monospace font, so all of it uses one. */
.banner {
  font-family: ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: clamp(4px, 1.38vw, 10.5px);
  line-height: 1.05;
  color: var(--magenta);
  text-shadow: 0 0 6px rgba(255, 43, 214, .55), 0 0 18px rgba(124, 58, 237, .5);
  overflow: hidden;
  margin: 0 0 22px;
}
.tagline { font-family: var(--pixel); font-size: clamp(.62rem, 2.2vw, .9rem); line-height: 1.8; color: var(--text); text-shadow: 0 0 24px var(--glow-purple); margin-bottom: 14px; }
.soon { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--accent); border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .06); border-radius: 999px; padding: 4px 14px; margin-bottom: 30px; }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .soon-dot { animation: none; } }

/* panels */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 22px 24px; margin-bottom: 18px; }
.panel-title { font-family: var(--pixel); font-size: .72rem; line-height: 1.6; color: var(--primaryHi); margin-bottom: 12px; font-weight: 400; }
.panel p { color: var(--muted); max-width: 70ch; margin-bottom: 12px; }
.panel p:last-child { margin-bottom: 0; }
.panel strong { color: var(--text); font-weight: 500; }
.motto { color: var(--accent) !important; font-weight: 500; }
.panel-link { display: inline-block; margin-top: 4px; font-size: .85rem; }

.device { border-color: var(--border-bright); background: linear-gradient(135deg, rgba(124, 58, 237, .1) 0%, transparent 60%), var(--surface); position: relative; overflow: hidden; }
.device::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--primaryHi), var(--accent)); opacity: .6; }
.device-3d { margin: -4px 0 6px; border-color: var(--border-bright); box-shadow: 0 0 24px var(--glow-purple); }
.panel .note-3d { font-size: .72rem; color: var(--muted); opacity: .75; margin-bottom: 16px; }
.device-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.device-head .panel-title { font-size: .9rem; margin-bottom: 6px; }
.status-chip { font-size: .68rem; color: var(--yellow); border: 1px solid rgba(251, 191, 36, .35); border-radius: 4px; padding: 1px 8px; }
.device-tag { font-style: italic; color: var(--magenta) !important; }

blockquote { border-left: 2px solid var(--primaryHi); padding-left: 16px; }
blockquote p { color: var(--text) !important; }

@media (max-width: 600px) {
  .site-shell { margin: 0; border-radius: 0; border-left: 0; border-right: 0; min-height: 100vh; }
  .status-bar { border-radius: 0; }
  main { padding: 24px 16px 32px; }
  .panel { padding: 18px 16px; }
  .banner { font-size: 1.62vw; }
}
