:root {
  color-scheme: light dark;
  --bg: light-dark(#fafafa, #191919);
  --fg: light-dark(#292929, #dedede);
  --muted: light-dark(#777, #929292);
  --link: light-dark(#285c91, #a4c7eb);
  --focus: light-dark(#b8cee4, #536a84);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
a, button { color: var(--link); }
a { text-decoration: none; }
a:hover, button:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
button, input { font: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.shell { width: min(100% - 40px, 760px); flex: 1; margin: 0 auto; padding: clamp(56px, 13vh, 142px) 0 80px; }
.site-footer { width: min(100% - 40px, 760px); margin: 0 auto; padding: 0 0 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; font-size: 12px; line-height: 1.7; text-align: center; }
.site-footer a { color: var(--muted); }
header { margin-bottom: 13px; font-size: 15px; }
header strong { font-weight: 600; }
#output { overflow-wrap: anywhere; }
.entry { margin-bottom: 19px; }
.echo { white-space: pre-wrap; }
.prompt { color: var(--muted); white-space: nowrap; }
.echo .prompt { margin-right: 12px; }
.result { margin: 6px 0 0 22px; }
.result p { margin: 0; }
.row { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 14px; margin-bottom: 6px; }
.muted { color: var(--muted); }
.profile { max-width: 570px; line-height: 1.65; }
.profile .profile-name { font-weight: 600; margin-bottom: 18px; }
.school-block + .school-block { margin-top: 22px; }
.school-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: 22px; }
.school-name { font-weight: 600; }
.years { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.school-block .field { margin-top: 2px; }
.profile .school-note { margin-top: 5px; color: var(--muted); }
#command-form { display: flex; align-items: baseline; gap: 12px; }
#prompt { flex-shrink: 0; color: var(--muted); white-space: nowrap; user-select: none; }
#command-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--fg);
  caret-color: var(--fg);
  border-radius: 0;
}
@media (max-width: 560px) {
  .shell { width: min(100% - 32px, 760px); padding-top: 54px; }
  .site-footer { width: min(100% - 32px, 760px); }
  .row { grid-template-columns: 1fr; gap: 0; margin-bottom: 12px; }
  .school-heading { flex-direction: column; align-items: flex-start; }
  .school-heading .years { order: -1; }
}
/* Completion choices appear only after the visitor presses Tab. */
.completion-list { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0 0 18px; color: var(--muted); }
