/* grousset.com :: fake filesystem pages (footer easter eggs) */
:root {
  --bg: #000;
  --green: #33ff66;
  --green-dim: #1a8033;
  --green-bright: #b4ffc4;
  --amber: #ffb84d;
  --amber-dim: #a87420;
  --red: #ff3344;
  --magenta: #ff66cc;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg); color: var(--green);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 15px; line-height: 1.5;
}
body {
  min-height: 100vh; padding: 36px 5vw 80px;
  text-shadow: 0 0 4px rgba(51,255,102,0.55), 0 0 12px rgba(51,255,102,0.18);
  overflow-x: hidden;
}

/* ─── CRT overlays ─── */
.crt-scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(0deg,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.20) 3px, rgba(0,0,0,0) 4px);
}
.crt-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 101;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,0.78) 100%);
}
.crt-flicker {
  position: fixed; inset: 0; pointer-events: none; z-index: 99;
  background: rgba(51,255,102,0.014);
  animation: flicker 0.14s infinite;
}
@keyframes flicker {
  0% { opacity: 0.97; } 8% { opacity: 0.93; } 14% { opacity: 1; }
  23% { opacity: 0.97; } 44% { opacity: 1; } 61% { opacity: 0.95; }
  79% { opacity: 0.99; } 100% { opacity: 0.97; }
}

/* ─── Window ─── */
main { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.win {
  border: 1px solid var(--green-dim);
  background: rgba(0,28,8,0.45);
  padding: 14px 18px 18px;
  box-shadow: 0 0 30px rgba(51,255,102,0.15), inset 0 0 80px rgba(0,40,12,0.4);
}
.titlebar {
  color: var(--green-dim); font-size: 12px; margin-bottom: 12px;
  border-bottom: 1px dashed var(--green-dim); padding-bottom: 6px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  letter-spacing: 1px;
}
.titlebar .right { color: var(--amber-dim); }

.prompt { color: var(--amber); white-space: nowrap; user-select: none; }
.prompt .user { color: var(--red); }
.prompt .at   { color: var(--green-dim); }
.prompt .host { color: var(--green-bright); }
.prompt .path { color: var(--green); }
.echo { color: var(--green-bright); }
.cmdline { margin: 4px 0; word-break: break-word; }

pre.out {
  font-family: inherit; white-space: pre; overflow-x: auto; overflow-y: hidden;
  margin: 8px 0 14px; line-height: 1.35;
}
pre.out.wrap { white-space: pre-wrap; word-break: break-word; }
pre.art {
  font-family: inherit; white-space: pre; overflow-x: auto; overflow-y: hidden;
  color: var(--green-bright); line-height: 1.1; font-size: 12px; margin: 6px 0 12px;
  text-shadow: 0 0 8px rgba(180,255,196,0.55), 0 0 24px rgba(51,255,102,0.3);
}

.dim     { color: var(--green-dim); }
.hl      { color: var(--green-bright); }
.amber   { color: var(--amber); }
.red     { color: var(--red); }
.magenta { color: var(--magenta); }

h1 {
  font-family: 'VT323', monospace; font-weight: normal;
  font-size: 40px; line-height: 1.1; color: var(--green-bright); margin: 4px 0 2px;
  text-shadow: 0 0 8px rgba(180,255,196,0.85), 0 0 22px rgba(51,255,102,0.4);
}
h1::before { content: '// '; color: var(--green-dim); }
h1::after  { content: ' //'; color: var(--green-dim); }
.sub { color: var(--amber); font-size: 13px; margin-bottom: 18px; }

a {
  color: var(--amber); text-decoration: none;
  border-bottom: 1px dotted var(--amber); transition: all 0.08s ease-out;
  text-shadow: 0 0 6px rgba(255,184,77,0.55);
}
a:hover, a:focus {
  background: var(--amber); color: var(--bg);
  text-shadow: none; outline: none; border-bottom: 1px solid var(--amber);
}

.cursor {
  display: inline-block; width: 0.6ch; height: 1.05em;
  background: var(--green-bright);
  vertical-align: text-bottom; margin-left: 4px;
  animation: blink 1.05s steps(1) infinite;
  box-shadow: 0 0 6px var(--green-bright);
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── Footer nav ─── */
nav.fs {
  margin-top: 28px; padding-top: 14px;
  border-top: 1px dashed var(--green-dim);
  color: var(--green-dim); font-size: 13px; line-height: 1.9;
  display: flex; flex-wrap: wrap; gap: 4px 22px;
}
nav.fs a { color: var(--green-dim); border-bottom-color: transparent; text-shadow: none; }
nav.fs a:hover { color: var(--green-bright); background: transparent; border-bottom: 1px dotted var(--green-dim); }
nav.fs a[aria-current] { color: var(--green-bright); }

@media (max-width: 720px) {
  body { padding: 20px 16px 60px; font-size: 13px; }
  h1 { font-size: 28px; }
  pre.out { font-size: 12px; }
  pre.art { font-size: 9px; }
}

::selection { background: var(--green); color: var(--bg); text-shadow: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0,30,8,0.4); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }
