:root {
  --screen: #f4f3ed;
  --screen-light: #fbfbf7;
  --chrome: #deded7;
  --chrome-dark: #77776f;
  --ink: #11110f;
  --muted: #585850;
  --rule: #94948c;
  --red: #c73b32;
  --orange: #db7a25;
  --yellow: #d9b829;
  --green: #3e8a50;
  --blue: #3276a7;
  --violet: #725393;
  --brown: #6d4a3d;
  --serif: "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --sidebar-width: 298px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 300px;
  margin: 0;
  padding-left: var(--sidebar-width);
  background: #e8e8e3;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

html[data-animations="off"] {
  scroll-behavior: auto;
}

html[data-animations="off"] *,
html[data-animations="off"] *::before,
html[data-animations="off"] *::after {
  animation: none !important;
  transition: none !important;
}

a {
  color: #0000aa;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover,
a:focus-visible {
  color: #cc0000;
}

button {
  color: inherit;
  font: inherit;
}

img {
  max-width: 100%;
}

hr {
  height: 0;
  margin: 3.5rem 0;
  border: 0;
  border-top: 1px solid var(--ink);
}

::selection {
  background: var(--blue);
  color: #fff;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 4px;
  left: 4px;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  background: #fff;
  font: bold 12px/1 var(--sans);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.system-bar {
  display: grid;
  min-height: 31px;
  padding: 0 10px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid var(--ink);
  background: var(--chrome);
  align-items: center;
  grid-template-columns: auto 1fr auto;
  font: 12px/1 var(--sans);
}

.system-name {
  display: flex;
  color: var(--ink);
  text-decoration: none;
  align-items: center;
  gap: 7px;
}

.system-name:visited {
  color: var(--ink);
}

.system-name:hover,
.system-name:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.system-mark {
  display: block;
  width: 13px;
  height: 13px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, var(--red) 0 20%, var(--yellow) 20% 40%, var(--green) 40% 60%, var(--blue) 60% 80%, var(--violet) 80%);
}

.system-nav {
  display: flex;
  margin-left: 28px;
  align-items: stretch;
}

.system-nav a,
.system-nav button {
  display: block;
  padding: 9px 9px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.system-nav a:visited {
  color: var(--ink);
}

.system-nav a:hover,
.system-nav a:focus-visible,
.system-nav button:hover,
.system-nav button:focus-visible,
.system-nav [aria-current="page"] {
  outline: 0;
  background: var(--ink);
  color: #fff;
}

.system-time {
  font-family: var(--mono);
}

site-sidebar {
  display: block;
}

.site-sidebar {
  position: fixed;
  z-index: 160;
  inset: 0 auto 0 0;
  display: grid;
  width: var(--sidebar-width);
  border-right: 1px solid var(--ink);
  background: var(--chrome);
  grid-template-rows: 31px 27px 1fr 31px;
  box-shadow: 2px 0 0 #8c8c86;
}

.sidebar-menubar {
  display: flex;
  padding: 0 9px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid var(--ink);
  align-items: center;
  gap: 8px;
  font: 12px/1 var(--sans);
}

.sidebar-home-link {
  display: block;
  padding: 2px;
  color: var(--ink);
}

.sidebar-home-link:visited {
  color: var(--ink);
}

.sidebar-home-link:hover,
.sidebar-home-link:focus-visible {
  outline: 1px dotted var(--ink);
  background: #fff;
}

.directory-tree {
  padding: 10px 7px 14px;
  background: var(--screen-light);
  overflow: auto;
}

.directory-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tree-drive-row {
  display: grid;
  min-height: 30px;
  padding: 4px 5px;
  align-items: center;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  font: 13px/1.2 var(--sans);
}

.tree-row {
  display: grid;
  align-items: stretch;
  grid-template-columns: 17px minmax(0, 1fr);
}

.tree-expander,
.tree-expander-spacer {
  width: 17px;
  min-height: 27px;
}

.tree-expander {
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
  place-items: center;
  cursor: pointer;
  font: 12px/1 var(--sans);
}

.tree-expander:hover,
.tree-expander:focus-visible {
  outline: 1px dotted var(--ink);
  outline-offset: -2px;
  background: #d9d9d2;
}

.tree-expander[aria-expanded="true"] span {
  transform: rotate(90deg);
}

.tree-children {
  margin-left: 25px !important;
  padding-left: 8px !important;
  border-left: 1px dotted var(--rule);
}

.tree-children[hidden] {
  display: none;
}

.folder-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 12px;
  border: 1px solid var(--ink);
  background: var(--tree-accent, var(--yellow));
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.55);
}

.folder-icon::before {
  position: absolute;
  top: -4px;
  left: 1px;
  width: 8px;
  height: 3px;
  border: 1px solid var(--ink);
  border-bottom: 0;
  background: var(--tree-accent, var(--yellow));
  content: "";
}

.drive-icon {
  display: block;
  width: 17px;
  height: 13px;
  border: 1px solid var(--ink);
  background: #c9c9c2;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #777;
}

.drive-icon::after {
  display: block;
  width: 4px;
  height: 4px;
  margin: 6px 0 0 10px;
  background: #000080;
  content: "";
}

.file-icon {
  display: block;
  width: 13px;
  height: 16px;
  border: 1px solid var(--ink);
  border-left: 3px solid var(--tree-accent, #8d8d86);
  background: #fff;
}

.tree-red {
  --tree-accent: var(--red);
}

.tree-orange {
  --tree-accent: var(--orange);
}

.tree-yellow {
  --tree-accent: var(--yellow);
}

.tree-green {
  --tree-accent: var(--green);
}

.tree-blue {
  --tree-accent: var(--blue);
}

.tree-violet {
  --tree-accent: var(--violet);
}

.tree-brown {
  --tree-accent: var(--brown);
}

.tree-link {
  display: grid;
  width: 100%;
  min-height: 27px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  align-items: center;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  cursor: pointer;
  font: 12px/1.25 var(--sans);
  text-align: left;
  text-decoration: none;
}

.tree-link:visited {
  color: var(--ink);
}

.tree-link:hover,
.tree-link:focus-visible {
  outline: 1px dotted var(--ink);
  outline-offset: -2px;
  background: #d9d9d2;
  color: var(--ink);
}

.tree-link.is-current,
.tree-link.is-current:visited {
  background: #000080;
  color: #fff;
}

.tree-child-link {
  font-size: 11px;
}

.tree-child-link .file-icon {
  transform: scale(0.88);
}

.sidebar-status {
  display: flex;
  padding: 0 9px;
  border-top: 1px solid var(--ink);
  background: var(--chrome);
  align-items: center;
  justify-content: space-between;
  font: 10px/1 var(--mono);
  text-transform: uppercase;
}

.mobile-toolbar,
.sidebar-toggle,
.sidebar-backdrop {
  display: none;
}

.noscript-nav {
  padding: 8px 12px;
  border-bottom: 1px solid var(--ink);
  background: var(--chrome);
  font: 12px/1.3 var(--sans);
}

.site-frame,
.cv-document {
  width: min(980px, calc(100% - 42px));
  margin: 0 auto;
}

.site-frame {
  padding: 52px 0 70px;
}

.page-heading {
  padding: 48px 0 0;
}

.meta-line,
.section-label {
  margin: 0 0 7px;
  font: bold 11px/1.3 var(--mono);
  letter-spacing: 0.04em;
}

.page-heading h1 {
  margin: 0;
  font: bold clamp(58px, 10vw, 112px) / 0.82 var(--serif);
  letter-spacing: -0.055em;
}

.spectrum-rule {
  display: grid;
  height: 4px;
  margin-top: 27px;
  grid-template-columns: repeat(7, 1fr);
}

.spectrum-rule span:nth-child(1) {
  background: var(--red);
}

.spectrum-rule span:nth-child(2) {
  background: var(--orange);
}

.spectrum-rule span:nth-child(3) {
  background: var(--yellow);
}

.spectrum-rule span:nth-child(4) {
  background: var(--green);
}

.spectrum-rule span:nth-child(5) {
  background: var(--blue);
}

.spectrum-rule span:nth-child(6) {
  background: var(--violet);
}

.spectrum-rule span:nth-child(7) {
  background: var(--brown);
}

.mac-window {
  border: 1px solid var(--ink);
  background: var(--screen-light);
  box-shadow:
    1px 1px 0 #fff,
    3px 3px 0 #8c8c86;
}

.home-window {
  margin-top: 0;
}

.index-window {
  margin-top: 34px;
}

.window-titlebar {
  display: grid;
  min-height: 26px;
  padding: 3px 4px;
  border-bottom: 1px solid var(--ink);
  background:
    repeating-linear-gradient(
      to bottom,
      var(--chrome) 0,
      var(--chrome) 2px,
      #a9a9a3 2px,
      #a9a9a3 3px
    );
  align-items: center;
  grid-template-columns: 22px 1fr 22px;
}

.window-titlebar strong {
  width: max-content;
  padding: 1px 9px;
  background: var(--chrome);
  justify-self: center;
  font: bold 12px/1.25 var(--sans);
}

.window-control {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ink);
  background: var(--chrome);
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #777;
}

.window-control-double {
  position: relative;
  justify-self: end;
}

.window-control-double::after {
  position: absolute;
  inset: 3px;
  border: 1px solid var(--ink);
  content: "";
}

.front-page {
  display: grid;
  padding: 36px 38px 34px;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 55px;
  align-items: start;
}

.front-copy h1 {
  max-width: 9ch;
  margin: 0;
  font: bold clamp(48px, 7vw, 78px) / 0.86 var(--serif);
  letter-spacing: -0.055em;
}

.front-copy .spectrum-rule {
  margin: 18px 0 34px;
}

.section-window {
  width: min(720px, 100%);
}

.empty-directory {
  min-height: 360px;
  padding: 42px;
  background: var(--screen-light);
}

.empty-directory h1 {
  margin: 0 0 22px;
  font: bold clamp(48px, 7vw, 76px) / 0.9 var(--serif);
  letter-spacing: -0.045em;
}

.empty-directory > p:last-child {
  max-width: 48ch;
  font: 18px/1.5 var(--serif);
}

.site-index h2 {
  max-width: 16ch;
  margin: 0;
  font: bold 38px/1.05 var(--serif);
}

.lead {
  max-width: 600px;
  margin: 16px 0 0;
  font: 20px/1.45 var(--serif);
}

.plain-links {
  margin: 30px 0 0;
}

.plain-links span {
  padding: 0 8px;
  color: var(--rule);
}

.portrait-figure {
  margin: 0;
  padding: 6px;
  border: 1px solid var(--ink);
  background: var(--chrome);
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #777;
}

.portrait-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--ink);
  object-fit: contain;
}

.portrait-figure figcaption {
  padding: 7px 2px 1px;
  font: 11px/1.4 var(--mono);
  text-align: right;
}

.site-index {
  display: grid;
  padding: 28px 34px 32px;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 66px;
}

.index-intro > p:last-child {
  max-width: 38ch;
}

.directory-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
  counter-reset: directory;
}

.directory-list li {
  display: grid;
  min-height: 42px;
  border-bottom: 1px dotted var(--rule);
  align-items: center;
  grid-template-columns: 11px 1fr auto;
  gap: 10px;
  counter-increment: directory;
}

.directory-list a,
.directory-list button {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0000aa;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
}

.directory-list a:visited {
  color: #551a8b;
}

.directory-list a:hover,
.directory-list a:focus-visible,
.directory-list button:hover,
.directory-list button:focus-visible {
  color: #cc0000;
}

.directory-list small {
  color: var(--muted);
  font: 10px/1 var(--mono);
  text-transform: uppercase;
}

.directory-key {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
}

.key-red {
  background: var(--red);
}

.key-orange {
  background: var(--orange);
}

.key-yellow {
  background: var(--yellow);
}

.key-green {
  background: var(--green);
}

.key-blue {
  background: var(--blue);
}

.key-violet {
  background: var(--violet);
}

.key-brown {
  background: var(--brown);
}

.build-note {
  margin: 38px 0 60px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font: 11px/1.3 var(--mono);
}

.status-light {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border: 1px solid var(--ink);
  background: var(--green);
}

.site-footer {
  display: grid;
  min-height: 72px;
  padding: 15px max(21px, calc((100% - 980px) / 2));
  border-top: 1px solid var(--ink);
  background: var(--chrome);
  font: 11px/1.4 var(--mono);
  grid-template-columns: 1fr 1fr 1fr;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  text-align: right;
}

.placeholder-dialog {
  width: min(430px, calc(100% - 26px));
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--chrome);
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}

.placeholder-dialog::backdrop {
  background: rgba(0, 0, 0, 0.22);
}

.dialog-bar {
  display: flex;
  min-height: 27px;
  padding-left: 8px;
  border-bottom: 1px solid var(--ink);
  background: #000080;
  color: #fff;
  align-items: center;
  justify-content: space-between;
  font: bold 12px/1 var(--sans);
}

.dialog-close {
  width: 25px;
  height: 21px;
  margin-right: 3px;
  padding: 0;
  border: 2px outset #fff;
  background: var(--chrome);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.dialog-body {
  display: grid;
  padding: 24px;
  grid-template-columns: 32px 1fr;
  gap: 17px;
}

.dialog-icon {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  place-items: center;
  font: bold italic 20px/1 var(--serif);
}

.dialog-body h2 {
  margin: 0 0 8px;
  font: bold 17px/1.2 var(--sans);
}

.dialog-body p {
  margin: 0 0 20px;
  font-size: 13px;
}

.dialog-ok,
.old-button {
  display: inline-block;
  min-width: 76px;
  padding: 5px 12px;
  border: 2px outset #fff;
  background: var(--chrome);
  color: var(--ink);
  cursor: pointer;
  font: 12px/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
}

.dialog-ok:active,
.old-button:active {
  border-style: inset;
}

.old-button:visited {
  color: var(--ink);
}

.boot-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  background: var(--screen);
  place-items: center;
  opacity: 1;
}

html[data-animations="off"] .boot-screen {
  display: none;
}

.boot-screen.is-finished {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 160ms linear,
    visibility 0s 160ms;
}

.boot-window {
  width: min(340px, calc(100% - 34px));
  border: 1px solid var(--ink);
  background: var(--chrome);
  box-shadow:
    1px 1px 0 #fff,
    4px 4px 0 #7e7e78;
}

.boot-body {
  display: grid;
  padding: 25px;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
}

.boot-mark {
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  background: var(--screen-light);
  place-items: center;
  font: bold 28px/1 var(--serif);
}

.boot-body strong {
  font: bold 14px/1.2 var(--sans);
}

.boot-body p {
  margin: 4px 0 12px;
  font: 11px/1.3 var(--mono);
}

.boot-progress {
  height: 12px;
  padding: 2px;
  border: 1px solid var(--ink);
  background: #fff;
}

.boot-progress span {
  display: block;
  width: 0;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      #000080 0,
      #000080 7px,
      transparent 7px,
      transparent 9px
    );
}

html[data-animations="on"] .boot-screen.is-running .boot-progress span {
  animation: boot-progress 650ms steps(9, end) forwards;
}

@keyframes boot-progress {
  to {
    width: 100%;
  }
}

/* CV */

.cv-document {
  padding: 55px 0 62px;
}

.cv-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 45px;
  align-items: end;
}

.cv-heading h1 {
  margin: 0;
  font: bold clamp(50px, 8vw, 84px) / 0.9 var(--serif);
  letter-spacing: -0.045em;
}

.cv-subtitle {
  margin: 13px 0 0;
  font: 20px/1.2 var(--serif);
}

.cv-contact {
  padding-bottom: 2px;
  font-size: 13px;
  text-align: right;
}

.cv-contact p {
  margin: 2px 0;
}

.cv-contact .old-button {
  margin-top: 12px;
}

.cv-toc {
  margin: 24px 0 52px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}

.cv-toc a,
.cv-toc strong {
  margin-right: 17px;
}

.resume-section {
  position: relative;
  margin: 0 0 60px;
  border: 1px solid var(--ink);
  border-top: 4px solid var(--section-colour);
  background: var(--screen-light);
  box-shadow:
    1px 1px 0 #fff,
    3px 3px 0 #969690;
  scroll-margin-top: 24px;
}

.section-red {
  --section-colour: var(--red);
}

.section-yellow {
  --section-colour: var(--yellow);
}

.section-blue {
  --section-colour: var(--blue);
}

.section-green {
  --section-colour: var(--green);
}

.resume-section > h2 {
  margin: 0;
  padding: 7px 11px;
  border-bottom: 1px solid var(--ink);
  background: var(--chrome);
  font: bold 22px/1 var(--serif);
}

.resume-row {
  display: grid;
  padding: 18px 13px;
  border-bottom: 1px dotted var(--rule);
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 26px;
}

.resume-date {
  margin: 2px 0 0;
  font: 12px/1.4 var(--mono);
}

.resume-row article > :first-child {
  margin-top: 0;
}

.resume-row article > :last-child {
  margin-bottom: 0;
}

.resume-row h3 {
  margin: 0;
  font: bold 18px/1.25 var(--serif);
}

.resume-row h3 small,
.resume-row h4 small {
  color: var(--muted);
  font: normal 12px/1.3 var(--sans);
}

.resume-row h3 small::before {
  content: " — ";
}

.resume-row h4 {
  margin: 13px 0 3px;
  font: bold 13px/1.35 var(--sans);
}

.resume-row h4 small {
  margin-left: 5px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.resume-row p:not(.resume-date) {
  max-width: 650px;
  margin: 5px 0;
  font-size: 14px;
}

.download-note {
  margin-top: 55px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--screen-light);
  font-size: 13px;
}

.download-note p {
  margin: 0;
}

@media (max-width: 760px) {
  .system-bar {
    padding: 0;
    grid-template-columns: auto 1fr;
  }

  .system-name {
    padding-left: 8px;
  }

  .system-time {
    display: none;
  }

  .system-nav {
    margin-left: auto;
    overflow-x: auto;
    justify-content: flex-end;
  }

  .system-nav a,
  .system-nav button {
    padding-inline: 7px;
  }

  .site-frame,
  .cv-document {
    width: min(100% - 28px, 600px);
  }

  .page-heading {
    padding-top: 40px;
  }

  .page-heading h1 {
    font-size: clamp(48px, 17vw, 82px);
    line-height: 0.88;
  }

  .front-page {
    padding: 30px 25px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .portrait-figure {
    width: min(100%, 380px);
    margin: 0 auto;
  }

  .site-index {
    padding: 25px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    display: block;
    padding: 14px;
  }

  .site-footer p,
  .site-footer p:nth-child(2),
  .site-footer p:last-child {
    margin: 3px 0;
    text-align: left;
  }

  .cv-document {
    padding-top: 40px;
  }

  .cv-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cv-contact {
    text-align: left;
  }

  .cv-toc {
    line-height: 2;
  }

  .resume-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 500px) {
  .system-name strong {
    display: none;
  }

  .system-nav a,
  .system-nav button {
    padding-inline: 6px;
    font-size: 11px;
  }

  .page-heading h1 {
    font-size: 51px;
  }

  .site-index h2 {
    font-size: 31px;
  }

  .lead {
    font-size: 18px;
  }

  .plain-links {
    display: flex;
    gap: 8px;
    flex-direction: column;
  }

  .plain-links span {
    display: none;
  }

  .empty-directory {
    min-height: 300px;
    padding: 28px 22px;
  }

  .empty-directory h1 {
    font-size: 48px;
  }

  .cv-heading h1 {
    font-size: 48px;
  }

  .dialog-body {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  body {
    padding-left: 0;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .mobile-toolbar {
    position: fixed;
    z-index: 170;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 39px;
    padding: 4px 6px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid var(--ink);
    background: var(--chrome);
    align-items: stretch;
  }

  .mobile-home-button {
    display: grid;
    width: 31px;
    border: 2px outset #fff;
    background: var(--chrome);
    place-items: center;
    color: var(--ink);
  }

  .mobile-home-button:visited {
    color: var(--ink);
  }

  .mobile-home-button:active {
    border-style: inset;
  }

  .site-sidebar {
    top: 39px;
    width: min(84vw, 310px);
    transform: translateX(calc(-100% - 4px));
    transition: transform 160ms ease-out;
  }

  body.sidebar-open .site-sidebar {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
    min-height: 29px;
    margin-left: 5px;
    padding: 4px 9px;
    border: 2px outset #fff;
    background: var(--chrome);
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font: bold 12px/1 var(--sans);
  }

  .sidebar-toggle:active {
    border-style: inset;
  }

  .toggle-lines {
    display: block;
    width: 14px;
    height: 10px;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
  }

  .toggle-lines::after {
    display: block;
    margin-top: 2px;
    border-top: 2px solid var(--ink);
    content: "";
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 150;
    inset: 39px 0 0;
    display: block;
    background: rgba(0, 0, 0, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms linear;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .site-frame {
    padding-top: 58px;
  }

  .cv-document {
    padding-top: 64px;
  }

  .resume-section {
    scroll-margin-top: 54px;
  }

  .front-copy h1 {
    max-width: none;
    font-size: clamp(46px, 15vw, 72px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
