/* Console — a developer's personal shell. System monospace, warm dark. */
:root {
  --bg: #f4eee1;
  --panel: #fbf7ee;
  --ink: #1e1a13;
  --muted: #7c7566;
  --hair: #e2d9c6;
  --amber: #b9741a;
  --green: #5f7d3a;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110d;
    --panel: #1b1711;
    --ink: #efe7d8;
    --muted: #a99c86;
    --hair: #2c2720;
    --amber: #f2a43b;
    --green: #9cc07f;
  }
}
:root[data-theme="light"] {
  --bg: #f4eee1; --panel: #fbf7ee; --ink: #1e1a13; --muted: #7c7566;
  --hair: #e2d9c6; --amber: #b9741a; --green: #5f7d3a;
}
:root[data-theme="dark"] {
  --bg: #14110d; --panel: #1b1711; --ink: #efe7d8; --muted: #a99c86;
  --hair: #2c2720; --amber: #f2a43b; --green: #9cc07f;
}

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

body {
  background: var(--bg);
  font-family: var(--mono);
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(1.5rem, 6vw, 3rem) clamp(1rem, 5vw, 2rem) 2.5rem;
}

/* Terminal window */
.window {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.5);
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hair);
}
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: var(--hair); }
.titlebar i:first-child { background: var(--amber); }
.titlebar .path { margin-left: 0.6rem; color: var(--muted); font-size: 0.8rem; }

.window-body { padding: clamp(1.1rem, 5vw, 1.75rem); }

/* Shell lines */
.line { color: var(--muted); }
.prompt { color: var(--amber); }
.prompt::before { content: "\27A4  "; }
.cmd { color: var(--ink); }

h1 {
  font-size: clamp(1.9rem, 9vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.35rem 0 0.15rem;
  text-wrap: balance;
}
.role { color: var(--muted); margin-bottom: 1.6rem; }
.role b { color: var(--green); font-weight: 700; }

.ls { margin: 0.4rem 0 0.3rem; color: var(--muted); }

/* Project listing */
.projects {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.5rem 0 0.4rem;
}
.proj {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--hair);
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.proj .name { color: var(--amber); font-weight: 700; }
.proj .flag { color: var(--muted); }
.proj .desc { display: block; color: var(--muted); margin-top: 0.15rem; }
.proj .desc::before { content: "# "; opacity: 0.7; }

@media (hover: hover) {
  .proj:hover {
    border-color: var(--amber);
    transform: translateX(4px);
    background: color-mix(in srgb, var(--amber) 7%, transparent);
  }
}
.proj:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Blinking caret */
.caret {
  display: inline-block;
  width: 0.55rem;
  height: 1.05rem;
  background: var(--amber);
  vertical-align: text-bottom;
  margin-left: 0.15rem;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

footer {
  margin-top: 1.5rem;
  padding-left: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--hair); }
footer a:hover { color: var(--amber); border-color: var(--amber); }

/* Sitemap table (shares the terminal window frame) */
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--hair); }
th { color: var(--amber); font-weight: 700; letter-spacing: 0.04em; }
td { color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td a { color: var(--ink); text-decoration: none; }
td a:hover { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .proj { transition: none; }
}
