/* retro-terminal — local preview theme (not committed) */

:root,
[data-scheme="tokyonight"] {
  --bg:      #1a1b26;
  --bg-soft: #24283b;
  --fg:      #c0caf5;
  --muted:   #565f89;
  --accent:  #7aa2f7;
  --green:   #9ece6a;
  --aqua:    #7dcfff;
}

[data-scheme="gruvbox"] {
  --bg:      #1d2021;
  --bg-soft: #282828;
  --fg:      #ebdbb2;
  --muted:   #928374;
  --accent:  #fabd2f;
  --green:   #b8bb26;
  --aqua:    #8ec07c;
}

:root {
  --mono: ui-monospace, "JetBrains Mono", "Fira Code", "SFMono-Regular",
          Menlo, Consolas, "Liberation Mono", monospace;
}

[data-scheme="matrix"] {
  --bg:      #050805;
  --bg-soft: #0b120b;
  --fg:      #b8ffb8;
  --muted:   #4f7a4f;
  --accent:  #39ff14;
  --green:   #00e65b;
  --aqua:    #22d3a6;
}

[data-scheme="amber"] {
  --bg:      #120d05;
  --bg-soft: #1c1408;
  --fg:      #ffcc66;
  --muted:   #8a6d3b;
  --accent:  #ffb000;
  --green:   #ffd75f;
  --aqua:    #ff9e3d;
}

[data-scheme="dracula"] {
  --bg:      #282a36;
  --bg-soft: #343746;
  --fg:      #f8f8f2;
  --muted:   #6272a4;
  --accent:  #bd93f9;
  --green:   #50fa7b;
  --aqua:    #8be9fd;
}

[data-scheme="nord"] {
  --bg:      #2e3440;
  --bg-soft: #3b4252;
  --fg:      #d8dee9;
  --muted:   #7b88a1;
  --accent:  #88c0d0;
  --green:   #a3be8c;
  --aqua:    #81a1c1;
}

[data-scheme="synthwave"] {
  --bg:      #241b2f;
  --bg-soft: #2f2440;
  --fg:      #f8f8f2;
  --muted:   #7d6b9e;
  --accent:  #ff7edb;
  --green:   #72f1b8;
  --aqua:    #36f9f6;
}

[data-scheme="mono"] {
  --bg:      #0a0a0a;
  --bg-soft: #141414;
  --fg:      #e6e6e6;
  --muted:   #6e6e6e;
  --accent:  #ffffff;
  --green:   #cfcfcf;
  --aqua:    #9e9e9e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 16px 72px;
}

.crt {
  width: 100%;
  max-width: 640px;
  text-shadow: 0 0 1px rgba(235, 219, 178, .35);
}

/* ── prompt bar ─────────────────────────────────────────── */
.promptbar {
  border: 1px solid var(--accent);
  background: var(--bg-soft);
  padding: 6px 12px;
  margin-bottom: 32px;
  white-space: nowrap;
  overflow: hidden;
}
.promptbar .host { color: var(--green); }
.promptbar .path { color: var(--aqua); }
.promptbar .sep  { color: var(--muted); margin: 0 1px; }
.promptbar .cmd  { color: var(--fg); margin-left: 8px; }
.cursor {
  color: var(--accent);
  margin-left: 4px;
}

/* ── profile ────────────────────────────────────────────── */
.profile { margin-bottom: 28px; }

.avatar { margin-bottom: 18px; }
.avatar img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 2px solid var(--accent);
  border-radius: 4px;
  filter: grayscale(.25) contrast(1.05);
  box-shadow: 0 0 0 4px rgba(250, 189, 47, .08);
}

h1 {
  font-size: 1.35rem;
  margin: 0 0 4px;
  color: var(--accent);
  letter-spacing: .5px;
}
h1::before { content: "> "; color: var(--muted); }

.desc { margin: 0; color: var(--muted); }

/* ── rules ──────────────────────────────────────────────── */
.rule {
  color: var(--muted);
  opacity: .5;
  overflow: hidden;
  white-space: nowrap;
  margin: 22px 0;
  user-select: none;
}

/* ── link cards ─────────────────────────────────────────── */
.links { display: flex; flex-direction: column; gap: 6px; }

.card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "arrow title" "arrow meta";
  column-gap: 10px;
  align-items: baseline;
  padding: 6px 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--fg);
}
.card .arrow { grid-area: arrow; color: var(--green); }
.card .title { grid-area: title; color: var(--fg); }
.card .meta  { grid-area: meta; color: var(--muted); font-size: .85rem; }
.card:hover {
  border-color: var(--accent);
  background: rgba(250, 189, 47, .07);
}
.card:hover .title { color: var(--accent); }
.card:hover .arrow { color: var(--accent); }

/* ── about ──────────────────────────────────────────────── */
.about .block { margin-bottom: 18px; }
.about h2 {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: .4px;
}
.about p { margin: 0 0 .55em; color: var(--fg); opacity: .92; }
.about .block-body { white-space: pre-wrap; color: var(--fg); opacity: .92; }
.about .block p:last-child { margin-bottom: 0; }
.about strong { font-weight: 700; }

/* ── haiku ──────────────────────────────────────────────── */
.haiku {
  margin-top: 26px;
  padding-left: 14px;
  border-left: 2px solid var(--muted);
  color: var(--muted);
  font-style: italic;
}
.haiku p { margin: 2px 0; }

footer {
  margin-top: 36px;
  font-size: .8rem;
  color: var(--muted);
}

/* ── crt scanlines ──────────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0)    0px,
    rgba(0, 0, 0, 0)    2px,
    rgba(0, 0, 0, .10)  3px,
    rgba(0, 0, 0, .10)  3px
  );
  mix-blend-mode: multiply;
  z-index: 10;
}
