:root {
  color-scheme: dark;
  --background: #141414;
  --bar: #1c1c1c;
  --rule: #343434;
  --text: #d4d4d4;
  --number: #919191;
  --heading: #79c2ff;
  --strong: #f1f1f1;
  --bullet: #d7ba7d;
  --gutter: 3rem;
  color: var(--text);
  background: var(--background);
  font: 1rem / 1.5 Consolas, "Liberation Mono", "SFMono-Regular", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:hover { color: var(--heading); }
:focus-visible { outline: 2px solid var(--heading); outline-offset: 0.2rem; }

.skip {
  position: absolute;
  z-index: 2;
  inset: 0.5rem auto auto 0.75rem;
  padding: 0.4rem 0.7rem;
  color: var(--background);
  background: var(--heading);
  transform: translateY(-160%);
}

.skip:focus { color: var(--background); transform: none; }

.file-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bar);
}

.file-bar a { text-decoration: none; }
.file-bar a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.filename { color: var(--heading); font-weight: 700; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.resume-editor {
  max-inline-size: 138ch;
  padding: 1rem 1.35rem 3rem 0;
  outline: none;
}

.source-line {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  align-items: baseline;
  min-block-size: 1.5em;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  scroll-margin-block-start: 1rem;
}

.line-number {
  padding-inline-end: 0.8rem;
  color: var(--number);
  text-align: right;
  user-select: none;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.line-content { white-space: pre-wrap; overflow-wrap: anywhere; }

h1, h2, h3 { color: var(--heading); font-weight: 700; }
strong { color: var(--strong); }
strong .syntax { color: var(--text); }
li > .line-content > .syntax { color: var(--bullet); }

.source-list { list-style: none; margin: 0; padding: 0; }

@media (hover: hover) {
  .source-line:hover { background: #202020; }
}

@media (max-width: 37rem) {
  :root { --gutter: 2.35rem; }
  .file-bar { padding-inline: 0.75rem; }
  .resume-editor { padding-inline-end: 0.75rem; }
  .line-number { padding-inline-end: 0.5rem; }
}

@media print {
  :root { color-scheme: light; color: #000; background: #fff; font: 10pt / 1.35 system-ui, sans-serif; }
  .file-bar, .skip, .line-number, .syntax, .source-line[aria-hidden] { display: none; }
  .resume-editor { max-inline-size: none; padding: 0; }
  .source-line { display: block; min-block-size: auto; margin-block: 0.2rem; }
  h1, h2, h3, strong { color: #000; }
  h1, h2, h3 { break-after: avoid; margin-block-start: 0.65rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .source-list { list-style: disc; padding-inline-start: 1.4rem; }
  .source-list li { display: list-item; break-inside: avoid; }
}