/* Terminal look, always dark. Tokens from the spec. */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #15171a;
  --fg: #d9d6cf;
  --muted: #8a877f;
  --rule: #2a2d31;
  --accent: #7ee08f;
  --accent-dim: #5a9a66; /* 5.34:1 on --bg */
  --fg-past: #b3b0a9;    /* between --fg and --muted, so past titles stay apart from their dates */
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.7 var(--mono); }
p, h1, h2, ol, ul { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem max(16px, env(safe-area-inset-right, 0px)) 3rem max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
main { display: flex; flex-direction: column; gap: 2rem; }
section { display: flex; flex-direction: column; gap: .4rem; }

.lang { color: var(--muted); font-size: .85rem; }
.lang .current { color: var(--accent); font-weight: 600; }

.cmd { font-size: 1rem; font-weight: 400; color: var(--muted); }
.cmd::before { content: "~/vmamore $ "; color: var(--accent); }

.name { font-size: 1.6rem; font-weight: 600; line-height: 1.3; }
.dim { color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 0 2ch; }
.prose { display: flex; flex-direction: column; gap: .8rem; }
.prose p { margin: 0; }

.companies, .roles, .education { list-style: none; padding: 0; }
.companies { display: flex; flex-direction: column; gap: 1rem; padding-top: .4rem; }
.company { display: flex; flex-direction: column; gap: .2rem; }
.company-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1ch; }
.logo { width: 18px; height: 18px; flex: none; border-radius: 4px; background: #fff; object-fit: contain; }
.monogram { display: inline-grid; place-items: center; background: var(--rule); color: var(--fg); font-size: .7rem; font-weight: 600; line-height: 1; }
.company-head strong { color: var(--accent); font-weight: 600; }
.company-link { text-decoration: none; }
.company-link:hover, .company-link:focus-visible { text-decoration: underline; }
.role { display: grid; grid-template-columns: 2ch 1fr; column-gap: 1ch; }
.branch { color: var(--muted); }
.role-body { min-width: 0; display: flex; flex-direction: column; }
.role-head { display: flex; flex-wrap: wrap; gap: 0 1ch; }
.summary { color: var(--fg); }
.tech { color: var(--muted); }
.tech::before { content: "# "; }
/* Current job stands out; past jobs step back but stay readable (muted is 5.01:1 on --bg). */
.tag { color: var(--accent); font-size: .8rem; }
.company.past .company-head strong { color: var(--accent-dim); }
.company.past .role-title { color: var(--fg-past); }
.company.past .summary { color: var(--muted); }

.education li { display: flex; flex-direction: column; }
.education strong { font-weight: 600; }

.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: text-bottom; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

footer { color: var(--muted); font-size: .8rem; border-top: 1px solid var(--rule); padding-top: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.built::before { content: "# "; }
