/* Layout and interface */
@font-face {
  font-family: Inconsolata;
  src: url('./assets/fonts/inconsolata.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #1b1b1b;
  --panel: #181818;
  --ink: #efeeea;
  --muted: #aaa9a5;
  --line: #3d3d3a;
  --yellow: #ffda00;
  --pink: #e60093;
  --sidebar: 228px;
  --font: Inconsolata,Consolas,monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
}

body {
  min-width: 320px;
}

button, input {
  font: inherit;
}

button, a, input {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  border-radius: 0;
  background: none;
}

button:disabled {
  cursor: default;
}

img {
  max-width: 100%;
  display: block;
}

figure, p, :is(h1, .hero-slogan), h2, h3 {
  margin: 0;
}

:is(h1, .hero-slogan), h2, h3 {
  font-weight: 500;
}

a, button {
  transition: color .15s,background-color .15s,border-color .15s;
}

a:hover {
  color: var(--yellow);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 5px;
}

::selection {
  background: var(--accent-fill);
  color: #171717;
}

[hidden] {
  display: none!important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  filter: invert(1);
  opacity: .85;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
}

.icon-button:hover {
  background: var(--hover-bg);
}

.icon-button:hover .icon {
  opacity: 1;
}

.syntax {
  color: var(--pink);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 250px;
  background: var(--accent-fill);
  color: #171717;
  padding: 10px 18px;
  transform: translateY(-180%);
  z-index: 100;
}

.skip-link:focus {
  transform: none;
}

.workspace {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0,1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 110px;
  padding: 24px 40px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 117px;
  height: auto;
  image-rendering: auto;
}

.file-tree {
  position: relative;
  overflow-y: auto;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.file-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 12px 28px;
  font-size: 20px;
}

.file-link small {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-top: 1px;
}

.file-link:hover {
  background: var(--hover-bg);
  color: var(--ink);
}

.file-link.active {
  background: var(--accent-fill);
  color: #151515;
}

.file-link.active small {
  color: #4d450f;
}

.file-link.active .icon {
  filter: none;
  opacity: 1;
}

.folder-toggle {
  position: absolute;
  right: 13px;
  top: 88px;
  width: 28px;
  height: 28px;
  display: grid;
  place-content: center;
}

.folder-toggle .icon {
  width: 16px;
}

.folder-toggle[aria-expanded=false] .icon {
  transform: rotate(-90deg);
}

.project-tree {
  padding: 2px 15px 15px 40px;
}

.project-tree a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--muted);
}

.project-tree a:hover {
  color: var(--yellow);
}

.project-tree .icon {
  width: 15px;
  height: 15px;
}

.project-tree span {
  overflow-wrap: anywhere;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 0 20px;
}

.studio-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.studio-link span {
  color: var(--muted);
}

.studio-link .icon {
  width: 17px;
}

.editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.topbar {
  min-height: 77px;
  height: 77px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 30px 0 12px;
  gap: 10px;
  flex: none;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: none;
}

.language {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
}

.language>span {
  color: #666;
}

.language a {
  color: var(--muted);
  padding: 5px 0;
}

.language a[aria-current] {
  color: var(--yellow);
  font-weight: 700;
}

.command-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  align-self: center;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}

.command-trigger:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.command-trigger .icon {
  width: 17px;
  height: 17px;
}

.command-trigger kbd {
  margin-left: 9px;
}

kbd {
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.mobile-menu, .mobile-close {
  display: none;
}

.document-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #4a4a45 transparent;
}

.document-inner {
  max-width: 1310px;
  margin: auto;
  padding: 48px 54px 0;
}

.document-inner section {
  scroll-margin-top: 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1.18fr) minmax(0,1fr);
  gap: 48px;
  align-items: start;
}

.eyebrow {
  font-size: 18px;
  letter-spacing: 1.2px;
  margin: 12px 0 22px;
}

.eyebrow .syntax {
  margin-right: 10px;
}

:is(h1, .hero-slogan) {
  font-size: clamp(40px,4.1vw,62px);
  line-height: 1.06;
  letter-spacing: -1.3px;
  font-weight: 600;
}

:is(h1, .hero-slogan) em {
  font-style: normal;
  color: var(--yellow);
}

.lead {
  margin: 34px 0 33px;
  max-width: 530px;
  color: var(--ink);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 60px;
  background: var(--accent-fill);
  color: #171717;
  padding: 12px 26px;
  font-size: 21px;
  font-weight: 500;
  border: 1px solid var(--yellow);
}

.primary-button .icon {
  filter: none;
  width: 26px;
  height: 26px;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--pink);
  color: #000;
  border-color: var(--pink);
}

.portrait>img {
  width: 100%;
  height: clamp(300px,29vw,410px);
  object-fit: cover;
  object-position: 50% 44%;
}

.projects-section {
  margin-top: 36px;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) 22px minmax(150px,1fr) 24px;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  min-height: 68px;
}

.project-row:hover {
  background: var(--hover-bg);
}

.project-name {
  font-size: 27px;
  letter-spacing: -.5px;
  overflow-wrap: anywhere;
}

.project-type {
  color: var(--ink);
  font-size: 18px;
}

.project-row .icon {
  filter: invert(82%) sepia(97%) saturate(2400%) hue-rotate(2deg) brightness(110%);
  width: 27px;
  height: 27px;
  transition: transform .15s;
}

.project-row:hover .icon {
  transform: translateX(4px);
}

.project-more {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding: 22px 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.project-more p {
  max-width: 550px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--yellow);
  padding-bottom: 4px;
  max-width: 100%;
  white-space: normal;
}

.text-link .icon {
  width: 18px;
  height: 18px;
}

.project-more .text-link {
  flex: none;
  color: var(--ink);
}

.story-section {
  padding: 64px 0 0;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 44px;
  color: var(--ink);
}

.bio-grid a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.content-section {
  padding-top: 70px;
}

.section-intro {
  color: var(--ink);
  max-width: 850px;
  margin-bottom: 34px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.skills-column h3 {
  margin-bottom: 10px;
}

.skills-column h3 .syntax {
  margin-right: 8px;
}

.skills-column dl {
  margin: 0;
}

.skills-column dl>div {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.skills-column dt {
  color: var(--yellow);
}

.skills-column dd {
  margin: 8px 0 0;
  color: var(--ink);
}

.resource {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 25px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
}

.resource p {
  color: var(--ink);
}

.timeline {
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row .time {
  color: var(--yellow);
  font-size: 19px;
}

.timeline-row h3 {
  margin-bottom: 9px;
}

.timeline-row div>p {
  color: var(--ink);
}

.contact-section {
  padding: 80px 0 60px;
}

.contact-section>p:not(.eyebrow) {
  max-width: 750px;
  color: var(--ink);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--yellow);
  font-size: clamp(26px,3.6vw,48px);
  margin-top: 24px;
  overflow-wrap: anywhere;
}

.email-link .icon {
  width: 34px;
  height: 34px;
  filter: invert(82%) sepia(97%) saturate(2400%) hue-rotate(2deg) brightness(110%);
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 25px;
  font-size: 18px;
}

.text-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--yellow);
}

.text-button:hover {
  color: var(--yellow);
}

.copy-status {
  min-height: 28px;
  margin-top: 15px;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px 0 30px;
  color: var(--muted);
  font-size: 14px;
}

.page-footer a {
  color: var(--yellow);
}

.terminal-panel {
  height: 192px;
  min-height: 142px;
  flex: none;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.terminal-header {
  height: 44px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 26px;
}

.terminal-header .panel-title {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.terminal-header .panel-title .syntax {
  margin-right: 12px;
}

.terminal-header>div {
  display: flex;
  align-items: center;
  gap: 22px;
}

.terminal-help {
  font-size: 14px;
  color: var(--muted);
  padding: 4px;
}

.terminal-help:hover {
  color: var(--yellow);
}

.terminal-body {
  height: calc(100% - 44px);
  overflow-y: auto;
  padding: 14px 28px;
  font-size: 17px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.terminal-output p {
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-output .echo {
  color: var(--muted);
  margin-top: 12px;
}

.terminal-output .output-link {
  color: var(--yellow);
  border-bottom: 1px solid #7f7100;
  display: inline-flex;
  margin-right: 15px;
}

.terminal-output .output-error {
  color: var(--error-ink);
}

.inline-command {
  color: var(--yellow);
  padding: 0;
  font-weight: 700;
}

.inline-command:hover {
  text-decoration: underline;
}

#terminal-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  min-height: 25px;
}

#terminal-form label {
  color: var(--yellow);
  font-weight: 700;
  white-space: nowrap;
}

#terminal-form label>span {
  color: var(--muted);
}

#terminal-input {
  min-width: 0;
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ink);
  caret-color: var(--yellow);
  padding: 0;
  line-height: 1.4;
}

#terminal-input:focus-visible {
  outline: none;
}

#terminal-form:focus-within {
  border-left: 2px solid var(--yellow);
  margin-left: -10px;
  padding-left: 8px;
}

#terminal-form>.icon-button {
  width: 28px;
  height: 25px;
  padding: 3px;
}

.statusbar {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 31px;
  height: 31px;
  padding: 0 22px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  gap: 20px;
  background: var(--panel);
}

.statusbar .icon {
  width: 14px;
  height: 14px;
}

.branch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.statusbar button {
  font-size: 13px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
}

.statusbar button:hover {
  color: var(--yellow);
}

.status-right {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  height: 100%;
}

.status-right>span {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

#toggle-terminal[aria-expanded=true] {
  color: var(--yellow);
}

.command-dialog {
  width: min(650px,calc(100vw - 32px));
  max-height: min(680px,85dvh);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--dialog-bg);
  color: var(--ink);
  margin: 12vh auto auto;
  box-shadow: 0 24px 80px #0008;
  overflow: hidden;
}

.command-dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(3px);
}

.command-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}

.command-heading .panel-title {
  font-size: 21px;
  font-weight: 500;
}

.command-input-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 18px;
  border-bottom: 1px solid var(--line);
}

#command-input {
  background: none;
  border: 0;
  padding: 5px 0;
  color: var(--ink);
  outline: none;
  width: 100%;
  font-size: 19px;
  min-width: 0;
}

#command-input::placeholder {
  color: var(--muted);
}

#command-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.command-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  text-align: left;
  border-radius: 2px;
  min-height: 50px;
  font-size: 19px;
}

.command-result small {
  font-size: 14px;
  color: var(--muted);
  margin-left: auto;
}

.command-result[aria-selected=true] {
  background: var(--accent-fill);
  color: #181818;
}

.command-result[aria-selected=true] small {
  color: #51480c;
}

.command-result[aria-selected=true] .icon {
  filter: none;
}

.command-empty {
  padding: 20px;
  color: var(--muted);
}

.command-footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 12px 22px;
  color: var(--muted);
  font-size: 14px;
}

.command-footer kbd {
  font-size: 12px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.command-footer>span:last-child {
  margin-left: auto;
}

.no-js .terminal-panel, .no-js .statusbar, .no-js .command-trigger, .no-js .folder-toggle, .no-js .mobile-menu, .no-js #copy-email {
  display: none;
}

.no-js .workspace {
  height: auto;
  overflow: visible;
}

.no-js .document-scroll {
  overflow: visible;
}

.no-js .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
}

.no-js .topbar {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
}

.noscript-note {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: var(--accent-fill);
  color: #181818;
  z-index: 60;
  text-align: center;
  font-size: 15px;
}

@media(min-width:1700px) {
  .document-inner {
    padding-top: 42px;
  }

  .hero {
    gap: 70px;
  }

  .portrait>img {
    height: 390px;
  }

  .hero-copy .lead {
    max-width: 600px;
  }

  .projects-section {
    margin-top: 35px;
  }
}

@media(max-width:1300px) {
  :root {
    --sidebar: 228px;
  }

  .brand {
    padding-left: 30px;
  }

  .document-inner {
    padding: 38px 38px 0;
  }

  .hero {
    gap: 32px;
  }

  :is(h1, .hero-slogan) {
    font-size: 50px;
  }

  .lead {
    margin: 26px 0;
  }

  .portrait>img {
    height: 340px;
  }

  .topbar {
    padding-right: 20px;
  }

  .topbar-tools {
    gap: 18px;
  }

  .command-trigger>span {
    display: none;
  }

  .command-trigger kbd {
    margin-left: 0;
  }

  .project-name {
    font-size: 23px;
  }

  .project-row {
    gap: 15px;
  }

  .file-link {
    padding-left: 24px;
    padding-right: 24px;
    font-size: 19px;
  }

  .project-tree {
    padding-left: 36px;
  }

  .project-tree a {
    font-size: 12px;
  }

  .project-type {
    font-size: 17px;
  }
}

@media(max-width:1050px) {
  :root {
    --sidebar: 228px;
  }

  .brand {
    padding: 24px 26px;
    min-height: 96px;
  }

  .brand img {
    width: 111px;
  }

  .file-link {
    padding: 12px 20px;
    gap: 12px;
    min-height: 66px;
    font-size: 18px;
  }

  .file-link small {
    font-size: 14px;
  }

  .folder-toggle {
    top: 84px;
    right: 6px;
  }

  .project-tree {
    padding-left: 29px;
    padding-right: 10px;
  }

  .sidebar-bottom {
    padding: 0 12px;
  }

  .topbar {
    height: 65px;
    min-height: 65px;
    padding-left: 4px;
    gap: 4px;
  }

  .topbar-tools {
    gap: 12px;
  }

  .language {
    font-size: 14px;
    gap: 8px;
  }

  .command-trigger {
    padding: 7px;
  }

  .command-trigger kbd {
    display: none;
  }

  .document-inner {
    padding: 32px 28px 0;
  }

  .hero {
    gap: 26px;
    grid-template-columns: 1.05fr 1fr;
  }

  :is(h1, .hero-slogan) {
    font-size: 42px;
  }

  .eyebrow {
    font-size: 15px;
    margin: 8px 0 18px;
    letter-spacing: .5px;
  }

  .lead {
    margin: 22px 0 24px;
  }

  .portrait>img {
    height: 320px;
  }

  .primary-button {
    font-size: 18px;
    gap: 24px;
    min-height: 53px;
    padding: 10px 20px;
  }

  .projects-section {
    margin-top: 28px;
  }

  .project-row {
    grid-template-columns: minmax(0,1.35fr) minmax(120px,1fr) 22px;
    gap: 15px;
  }

  .project-name {
    font-size: 21px;
  }

  .project-type {
    font-size: 16px;
  }

  .project-more {
    flex-direction: column;
    gap: 14px;
  }

  .bio-grid {
    gap: 20px 30px;
  }

  .resource {
    grid-template-columns: 180px 1fr;
  }

  .timeline-row {
    grid-template-columns: 145px 1fr;
    gap: 20px;
  }

  .skills-grid {
    gap: 32px;
  }

  .terminal-panel {
    height: 175px;
  }

  .terminal-body {
    font-size: 16px;
    padding: 12px 24px;
  }
}

@media(max-width:760px) {
  :root {
    --sidebar: 228px;
  }

  .workspace {
    display: block;
  }

  .editor {
    height: 100vh;
    height: 100dvh;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(290px,86vw);
    transform: translateX(-101%);
    transition: transform .2s;
    box-shadow: 15px 0 60px #0005;
  }

  .menu-open .sidebar {
    transform: none;
  }

  .brand {
    min-height: 94px;
    padding-left: 28px;
  }

  .brand img {
    width: 112px;
  }

  .mobile-close {
    display: inline-flex;
  }

  .file-link {
    min-height: 60px;
    padding: 9px 24px;
  }

  .project-tree {
    padding-left: 43px;
  }

  .project-tree a {
    font-size: 14px;
  }

  .folder-toggle {
    top: 76px;
    right: 18px;
  }

  .drawer-scrim {
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 25;
    border: 0;
    width: 100%;
    height: 100%;
  }

  .mobile-menu {
    display: inline-flex;
    align-self: center;
    margin: 0 3px;
  }

  .topbar {
    height: 60px;
    min-height: 60px;
    padding: 0 10px 0 6px;
    gap: 3px;
  }

  .topbar-tools {
    gap: 9px;
  }

  .language {
    gap: 6px;
    font-size: 13px;
  }

  .command-trigger {
    border: 0;
    padding: 7px;
  }

  .command-trigger .icon {
    width: 19px;
    height: 19px;
  }

  .document-inner {
    padding: 30px 24px 0;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .hero-copy {
    width: 100%;
  }

  .eyebrow {
    font-size: 15px;
    letter-spacing: .6px;
    margin: 0 0 19px;
  }

  :is(h1, .hero-slogan) {
    font-size: clamp(36px,8.5vw,56px);
    letter-spacing: -.7px;
    line-height: 1.08;
  }

  .lead {
    margin: 22px 0 25px;
    max-width: 530px;
  }

  .primary-button {
    min-height: 52px;
    font-size: 18px;
    gap: 30px;
  }

  .portrait {
    width: 100%;
  }

  .portrait>img {
    height: auto;
    aspect-ratio: 1.26;
    object-position: 50% 40%;
  }

  .projects-section {
    margin-top: 32px;
  }

  .project-row {
    position: relative;
    grid-template-columns: 1fr 24px;
    gap: 4px 14px;
    min-height: 93px;
    padding: 15px 0;
  }

  .project-name {
    font-size: 22px;
    line-height: 1.25;
    grid-column: 1;
  }

  .project-type {
    font-size: 16px;
    grid-column: 1;
    color: var(--muted);
  }

  .project-row>.icon {
    grid-column: 2;
    grid-row: 1/3;
    width: 23px;
  }

  .project-more {
    font-size: 16px;
    line-height: 1.5;
  }

  .story-section {
    padding-top: 45px;
  }

  .bio-grid, .skills-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .content-section {
    padding-top: 52px;
  }

  .section-intro {
    margin-bottom: 26px;
  }

  .resource {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 23px 0;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .timeline-row .time {
    font-size: 16px;
  }

  .contact-section {
    padding-top: 60px;
    padding-bottom: 35px;
  }

  .email-link {
    font-size: 29px;
    gap: 12px;
    letter-spacing: -.6px;
  }

  .email-link .icon {
    width: 23px;
    height: 23px;
  }

  .contact-actions {
    gap: 24px;
    font-size: 17px;
  }

  .page-footer {
    font-size: 13px;
    gap: 12px;
  }

  .page-footer>span {
    width: 100%;
  }

  .terminal-panel {
    height: 215px;
    max-height: 39dvh;
    min-height: 130px;
  }

  .terminal-header {
    height: 39px;
    padding: 0 10px 0 20px;
  }

  .terminal-header .panel-title {
    font-size: 14px;
  }

  .terminal-header>div {
    gap: 14px;
  }

  .terminal-header kbd {
    display: none;
  }

  .terminal-body {
    height: calc(100% - 39px);
    padding: 12px 18px;
    font-size: 15px;
  }

  #terminal-form {
    gap: 8px;
    margin-top: 13px;
  }

  #terminal-form label {
    font-size: 14px;
  }

  .statusbar {
    padding: 0 12px;
    font-size: 12px;
    height: 30px;
    min-height: 30px;
    gap: 12px;
  }

  .statusbar button {
    font-size: 12px;
  }

  .status-right {
    gap: 12px;
  }

  .status-right>span {
    padding-left: 12px;
  }

  .statusbar .stack, .statusbar .encoding {
    display: none;
  }

  .command-dialog {
    margin-top: 8vh;
  }

  .command-heading {
    padding: 14px 16px 5px;
  }

  .command-heading .panel-title {
    font-size: 20px;
  }

  .command-input-wrap {
    padding: 10px 17px 14px;
    gap: 10px;
  }

  #command-input {
    font-size: 17px;
  }

  .command-result {
    font-size: 18px;
  }

  .command-result small {
    font-size: 12px;
  }

  .command-footer {
    font-size: 12px;
    padding: 12px 15px;
    gap: 15px;
  }

  .skip-link {
    left: 12px;
  }

  .no-js .sidebar {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    box-shadow: none;
  }

  .no-js .file-tree {
    display: flex;
    flex-wrap: wrap;
  }

  .no-js .file-link {
    font-size: 16px;
    min-height: 50px;
    padding: 8px 15px;
  }

  .no-js .project-tree, .no-js .sidebar-bottom {
    display: none;
  }

  .no-js .editor {
    height: auto;
  }

  .no-js .topbar {
    position: static;
  }

  .no-js .brand {
    min-height: 80px;
  }

  .no-js .workspace {
    display: block;
  }
}

@media(max-width:420px) {
  .topbar-tools {
    gap: 8px;
  }

  .document-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-name {
    font-size: 20px;
  }

  .email-link {
    font-size: 26px;
  }

  .command-result {
    padding: 11px 8px;
  }

  .command-result small {
    max-width: 120px;
    text-align: right;
  }
}

@media(prefers-reduced-motion:reduce) {
  *, *:before, *:after {
    scroll-behavior: auto!important;
    transition: none!important;
    animation: none!important;
  }
}

.project-tree span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.project-tree a {
  min-width: 0;
}

:root {
  --nav-row: 54px;
}

.topbar {
  height: 46px;
  min-height: 46px;
  padding: 0 26px 0 12px;
  justify-content: flex-end;
}

.topbar-tools {
  gap: 22px;
}

.language {
  gap: 17px;
}

.language a {
  padding: 7px 1px;
}

.command-trigger {
  padding: 5px 10px;
  font-size: 14px;
}

.command-trigger .icon {
  width: 16px;
  height: 16px;
}

.sidebar {
  position: relative;
}

.brand {
  height: 92px;
  min-height: 92px;
  padding: 18px 30px;
}

.brand img {
  width: 110px;
}

.file-tree {
  padding: 12px 0;
  flex-shrink: 0;
  overflow: visible;
}

.file-link {
  height: var(--nav-row);
  min-height: var(--nav-row);
  padding: 8px 24px;
  gap: 14px;
  font-size: 20px;
}

.file-link small {
  display: none;
}

.folder-toggle {
  top: calc(var(--nav-row) * 1.5 - 2px);
  right: 13px;
}

.project-tree {
  padding: 2px 18px 6px 44px;
}

.project-tree a {
  font-size: 13px;
  line-height: 18px;
  padding: 4px 0;
}

.sidebar-bottom {
  padding: 0 20px;
  flex-shrink: 0;
}

.studio-link {
  padding: 14px 4px;
  white-space: nowrap;
  font-size: 15px;
}

.mobile-close {
  position: absolute;
  right: 15px;
  top: 24px;
}

.project-row {
  grid-template-columns: minmax(180px,1fr) minmax(0,1.45fr) 26px;
  gap: 24px;
  align-items: start;
  padding: 23px 0;
  min-height: 0;
}

.project-name {
  font-size: 25px;
  line-height: 1.25;
  padding-top: 1px;
}

.project-copy {
  display: block;
  min-width: 0;
}

.project-type {
  display: block;
  font-size: 15px;
  color: var(--yellow);
  margin-bottom: 7px;
  line-height: 1.3;
}

.project-description {
  display: block;
  color: var(--ink);
}

.project-row>.icon {
  margin-top: 3px;
}

.project-more {
  justify-content: flex-end;
  padding-top: 20px;
}

@media(max-width:1300px) {
  .file-link {
    font-size: 19px;
    padding-left: 22px;
  }

  .brand {
    padding-left: 28px;
  }

  .topbar {
    padding-right: 20px;
  }

  .project-name {
    font-size: 23px;
  }

  .project-row {
    gap: 20px;
  }
}

@media(max-width:1050px) {
  .brand {
    height: 84px;
    min-height: 84px;
    padding: 16px 23px;
  }

  .brand img {
    width: 110px;
  }

  .file-link {
    font-size: 18px;
    padding: 8px 18px;
    gap: 12px;
  }

  .project-tree {
    padding-left: 31px;
    padding-right: 12px;
  }

  .project-tree a {
    font-size: 12px;
  }

  .studio-link {
    font-size: 14px;
  }

  .topbar {
    height: 44px;
    min-height: 44px;
  }

  .project-row {
    grid-template-columns: minmax(160px,1fr) minmax(0,1.35fr) 22px;
    gap: 17px;
  }

  .project-name {
    font-size: 21px;
  }

  .project-type {
    font-size: 14px;
  }
}

@media(max-width:760px) {
  .sidebar {
    position: fixed;
  }

  .brand {
    height: 80px;
    min-height: 80px;
    padding: 14px 26px;
  }

  .brand img {
    width: 110px;
  }

  .file-link {
    font-size: 19px;
    padding-left: 24px;
  }

  .project-tree {
    padding-left: 44px;
  }

  .project-tree a {
    font-size: 13px;
  }

  .topbar {
    justify-content: space-between;
    height: 48px;
    min-height: 48px;
    padding: 0 10px 0 6px;
  }

  .topbar-tools {
    gap: 10px;
  }

  .language {
    gap: 12px;
    font-size: 13px;
  }

  .command-trigger {
    padding: 7px;
  }

  .project-row {
    grid-template-columns: minmax(0,1fr) 24px;
    gap: 12px 14px;
    padding: 22px 0;
  }

  .project-name {
    font-size: 23px;
    grid-column: 1;
    grid-row: 1;
  }

  .project-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .project-type {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .project-row>.icon {
    grid-column: 2;
    grid-row: 1;
    margin-top: 1px;
  }

  .project-more {
    align-items: flex-end;
  }

  .terminal-panel {
    max-height: 40dvh;
  }

  .mobile-close {
    top: 21px;
  }
}

@media(max-height:760px) {
  :root {
    --nav-row: 46px;
  }

  .brand {
    height: 76px;
    min-height: 76px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand img {
    width: 102px;
  }

  .file-tree {
    padding: 8px 0;
  }

  .file-link {
    font-size: 18px;
  }

  .folder-toggle {
    top: calc(var(--nav-row) * 1.5 - 6px);
  }

  .project-tree {
    padding-top: 1px;
    padding-bottom: 5px;
  }

  .project-tree a {
    font-size: 12px;
    line-height: 16px;
    padding: 3px 0;
  }

  .studio-link {
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 14px;
  }

  .mobile-close {
    top: 18px;
  }

  .document-inner {
    padding-top: 28px;
  }

  .hero {
    gap: 35px;
  }

  .portrait>img {
    height: 320px;
  }

  .eyebrow {
    margin-top: 5px;
    margin-bottom: 18px;
  }

  .lead {
    margin-top: 24px;
    margin-bottom: 26px;
  }

  .terminal-panel {
    height: 160px;
    min-height: 130px;
  }
}

@media(max-height:520px) {
  :root {
    --nav-row: 36px;
  }

  .brand {
    height: 60px;
    min-height: 60px;
    padding: 9px 24px;
  }

  .brand img {
    width: 87px;
  }

  .file-tree {
    padding: 5px 0;
  }

  .file-link {
    font-size: 16px;
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 12px;
  }

  .file-link .icon {
    width: 18px;
    height: 18px;
  }

  .folder-toggle {
    top: calc(var(--nav-row) * 1.5 - 9px);
    height: 24px;
  }

  .project-tree {
    padding-top: 0;
    padding-bottom: 4px;
  }

  .project-tree a {
    font-size: 12px;
    line-height: 15px;
    padding: 2px 0;
  }

  .studio-link {
    padding: 7px 2px;
    font-size: 13px;
    line-height: 19px;
  }

  .mobile-close {
    top: 11px;
  }

  .topbar {
    height: 40px;
    min-height: 40px;
  }

  .document-inner {
    padding-top: 22px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .lead {
    margin: 20px 0;
  }

  .primary-button {
    min-height: 48px;
    padding: 8px 20px;
    font-size: 18px;
  }

  .terminal-panel {
    height: 140px;
    min-height: 100px;
  }

  .terminal-header {
    height: 34px;
  }

  .terminal-body {
    height: calc(100% - 34px);
    padding-top: 9px;
    font-size: 15px;
  }
}

@media(max-height:400px) {
  :root {
    --nav-row: 30px;
  }

  .brand {
    height: 48px;
    min-height: 48px;
    padding: 6px 22px;
  }

  .brand img {
    width: 78px;
  }

  .file-tree {
    padding: 2px 0;
  }

  .file-link {
    font-size: 15px;
    padding: 3px 18px;
    gap: 10px;
  }

  .file-link .icon {
    width: 16px;
    height: 16px;
  }

  .folder-toggle {
    top: calc(var(--nav-row) * 1.5 - 12px);
    right: 10px;
  }

  .project-tree {
    padding: 0 12px 2px 37px;
  }

  .project-tree a {
    font-size: 11px;
    line-height: 15px;
    padding: 1px 0;
  }

  .project-tree .icon {
    width: 13px;
    height: 13px;
  }

  .studio-link {
    padding: 5px 2px;
    font-size: 12px;
    line-height: 18px;
  }

  .mobile-close {
    top: 6px;
  }

  .topbar {
    height: 36px;
    min-height: 36px;
  }

  .statusbar {
    height: 26px;
    min-height: 26px;
  }

  .terminal-panel {
    max-height: 50dvh;
  }
}

@media(max-height:360px) {
  .brand {
    height: 44px;
    min-height: 44px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .brand img {
    width: 75px;
  }

  .file-tree {
    padding: 0;
  }
}

@media(max-width:760px) and (min-height:521px) {
  .portrait>img {
    height: auto;
    aspect-ratio: 1.26;
  }

  .hero {
    gap: 30px;
  }
}

@media(max-width:420px) {
  .language {
    gap: 9px;
  }

  .topbar-tools {
    gap: 5px;
  }

  .project-name {
    font-size: 21px;
  }
}

.portrait>img {
  object-position: 50% 5%;
}

.primary-button {
  max-width: 100%;
}

.primary-button>span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media(max-width:420px) {
  .primary-button {
    font-size: 18px;
    padding: 10px 16px;
    gap: 14px;
  }

  .primary-button .icon {
    width: 22px;
    height: 22px;
  }
}

/* Shared content typography: one scale across sections and breakpoints. */
:root {
  --text-body: 20px;
  --text-section: 30px;
  --text-subheading: 22px;
}

/* The viewport shell never scrolls; only the document pane does. */
html.js, html.js body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.js .workspace {
  position: fixed;
  inset: 0;
  height: auto;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  overflow: clip;
}
.js .editor {
  height: 100%;
  min-height: 0;
  overflow: clip;
}
.document-scroll {
  overflow-x: hidden;
}
.document-inner {
  font-size: var(--text-body);
  line-height: 1.55;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: var(--text-section);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-label > .syntax {
  flex: none;
}
.section-title {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: none;
}
.section-label::after {
  content: '';
  height: 2px;
  min-width: 64px;
  flex: 1;
  background: var(--pink);
}
.skills-column h3, .resource h3, .timeline-row h3, .skills-column dt {
  font-size: var(--text-subheading);
}

/* Leave room for the folder disclosure and longer translated names. */
.file-link[data-section="projects"] {
  padding-right: 42px;
}
.file-link[data-section="projects"] > span {
  min-width: 0;
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.project-tree .all-projects-link {
  color: var(--ink);
}
@media (max-height: 400px) {
  .file-link[data-section="projects"] > span {
    line-height: 1;
  }
  .project-tree {
    padding-top: 0;
    padding-bottom: 0;
  }
  .project-tree a {
    line-height: 14px;
    padding-top: 1px;
    padding-bottom: 1px;
  }
}

/* Decorative editor gutter, inside the content margin and out of the reading order. */
.document-inner {
  position: relative;
  padding-left: calc(var(--gutter-width) + 32px);
}
.code-line-gutter {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--gutter-width);
  border-right: 1px solid var(--line);
  color: var(--gutter-ink);
  font-size: var(--gutter-font);
  line-height: var(--line-step, 34.1px);
  text-align: right;
  overflow: clip;
  user-select: none;
  pointer-events: none;
}
.code-line-gutter > span {
  display: block;
  height: var(--line-step, 34.1px);
  padding-right: 5px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1300px) {
  .document-inner {
    padding-left: calc(var(--gutter-width) + 32px);
  }
}
@media (max-width: 1050px) {
  .document-inner {
    padding-left: calc(var(--gutter-width) + 24px);
  }
  .code-line-gutter > span {
    padding-right: 3px;
  }
}
@media (max-width: 760px) {
  .document-inner {
    padding-left: calc(var(--gutter-width) + 24px);
  }
}
@media (max-width: 420px) {
  .code-line-gutter {
    display: none;
  }
}

/* Hero columns share their height; translations determine the reading space. */
.hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 40px;
}
.hero :is(h1, .hero-slogan) {
  font-size: clamp(40px, 3.6vw, 56px);
  text-wrap: balance;
}
.portrait {
  position: relative;
  min-width: 0;
  min-height: 380px;
}
.portrait > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 55% 0;
}
@media (max-width: 1250px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .hero-copy { width: 100%; }
  .hero :is(h1, .hero-slogan) { max-width: 900px; }
  .hero .lead { max-width: 680px; }
  .portrait {
    width: 100%;
    max-width: 600px;
    min-height: 0;
    align-self: center;
  }
  .portrait > img {
    position: static;
    display: block;
    height: auto;
    aspect-ratio: 1374 / 1145;
    object-fit: contain;
  }
}
@media (max-width: 760px) {
  .hero :is(h1, .hero-slogan) { font-size: clamp(36px, 8.5vw, 56px); }
}
@media (max-width: 1050px) {
  .section-label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 14px;
    align-items: start;
  }
  .section-label::after {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 420px) {
  .document-inner { padding-left: 24px; }
}

/* The line gutter belongs to the whole document pane, not its content column. */
.document-page { position: relative; min-height: 100%; --gutter-width: 38px; --gutter-font: 12px; }
@media (max-width: 1300px) { .document-page { --gutter-width: 26px; --gutter-font: 11px; } }
@media (max-width: 1050px) { .document-page { --gutter-width: 20px; --gutter-font: 10px; } }
@media (max-width: 760px) { .document-page { --gutter-width: 18px; --gutter-font: 9px; } }
@media (min-width: 1441px) {
 :root { --sidebar: clamp(252px, 14vw, 300px); }
 .document-inner { max-width: 1400px; margin-left: auto; margin-right: auto; }
 .hero { grid-template-columns: minmax(0, 1fr) minmax(0, min(660px, 45%)); gap: clamp(40px, 4vw, 96px); }
 .portrait { min-height: 440px; }
 .hero :is(h1, .hero-slogan) { max-width: 900px; }
 .project-copy { max-width: 78ch; }
}
button.email-link { padding: 0; text-align: left; background: none; }
button.email-link:hover, button.email-link:focus-visible { color: var(--pink); }
.email-reveal-inline { display: inline; padding: 0; color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; text-align: inherit; }
.email-reveal-inline:hover { color: var(--pink); }
.email-fallback { color: var(--yellow); overflow-wrap: anywhere; }
[data-email-reveal] { display: none; }
.email-ready [data-email-reveal] { display: inline; }
.email-ready .email-link[data-email-reveal] { display: inline-flex; }

/* Reusable subpage content within the same editor shell. */
.breadcrumbs { margin-bottom: 30px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs li + li::before { content: '/'; margin-right: 12px; color: var(--pink); }
.breadcrumbs a { color: var(--yellow); }
.breadcrumbs [aria-current=page] { color: var(--ink); }
.privacy-article { margin-bottom: clamp(48px, 5vw, 80px); }
.privacy-article :is(h1, .hero-slogan) { font-size: clamp(36px, 4vw, 56px); line-height: 1.12; margin-bottom: 42px; overflow-wrap: anywhere; }
.privacy-article section { margin-top: 48px; }
.privacy-article p + p { margin-top: 22px; }
.privacy-article p { overflow-wrap: anywhere; }
.privacy-article p a { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
.privacy-article a:hover { color: var(--pink); }
.bio-grid > p, .skills-column, .resource, .timeline-row > div { min-width: 0; }
.document-inner p, .document-inner dd { overflow-wrap: anywhere; hyphens: none; }

.privacy-article p { font-size: 18px; }

/* UX audit: readable project evidence and resilient command results. */
.command-result {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) minmax(0, 36%);
}
.command-result > span, .command-result small {
  min-width: 0;
  overflow-wrap: anywhere;
}
.command-result small { margin-left: 0; text-align: right; }
.command-result > .icon { flex-shrink: 0; }
.project-scope, .project-destination, .project-caption { display: block; }
.project-scope { margin-bottom: 18px; color: var(--ink); }
.project-caption { margin-bottom: 4px; color: var(--muted); font-size: 15px; }
.project-destination { margin-top: 16px; color: var(--yellow); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.project-intro { max-width: 76ch; }
.resource h3 { overflow-wrap: anywhere; }
.timeline-row .timeline-organization {
  margin: 8px 0 16px;
  color: var(--yellow);
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.email-hint { margin-top: 12px; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .command-result { grid-template-columns: 20px minmax(0, 1fr); gap: 4px 10px; }
  .command-result > .icon { grid-row: 1 / span 2; align-self: start; margin-top: 3px; }
  .command-result small { grid-column: 2; max-width: none; text-align: left; }
}
@media (max-width: 420px) {
  .section-label { letter-spacing: .04em; column-gap: 10px; }
}

/* Never insert hyphens when wrapping text, in any language. */
html, body, body * { -webkit-hyphens: none; hyphens: none; }

/* SEO draft: semantic identity heading uses the existing eyebrow treatment. */
.hero h1.eyebrow { font-size:18px; line-height:1.5; letter-spacing:1.2px; font-weight:400; text-wrap:wrap; max-width:none; text-transform:uppercase; }
.hero-name { white-space:nowrap; }
@media(max-width:760px) { .hero h1.eyebrow { font-size:15px; letter-spacing:.6px; } }
.language-suggestion { margin:0 0 20px; padding:12px 16px; border:1px solid var(--line); font-size:16px; line-height:1.5; }
.language-suggestion a { color:var(--yellow); }
.language-suggestion button { margin-left:14px; color:var(--muted); background:none; border:0; text-decoration:underline; cursor:pointer; font:inherit; }

/* Shared semantic palette: dark is the original default. */
:root { --accent-fill:#ffda00; --dialog-bg:#20201e; --hover-bg:#ffffff0c; --gutter-ink:#74746e; --error-ink:#ff8ac7; }
:root[data-theme="light"] { color-scheme:light; --bg:#fff; --panel:#f7f7f5; --ink:#1b1b1b; --muted:#595952; --line:#d4d4ce; --yellow:#ffda00; --pink:#e60093; --dialog-bg:#fff; --hover-bg:#00000008; --gutter-ink:#66665f; --error-ink:#a00052; }
:root[data-theme="light"] .icon { filter:none; }

:root[data-theme="light"] .project-row .icon,
:root[data-theme="light"] .email-link .icon { filter:none; }
.theme-toggle { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; margin:6px 16px; padding:6px 10px; border:1px solid var(--line); font-size:14px; flex:none; }
.theme-track { width:34px; height:20px; border:1px solid var(--muted); border-radius:12px; padding:3px; flex:none; }
.theme-thumb { display:block; width:12px; height:12px; border-radius:50%; background:var(--ink); transform:translateX(0); }
[data-theme="light"] .theme-thumb { transform:translateX(12px); }
.sidebar .file-tree { flex:1 1 auto; min-height:0; overflow-y:auto; }
.no-js .theme-toggle { display:none; }
@media (prefers-reduced-motion:no-preference) {
 .theme-changing body, .theme-changing :is(.sidebar,.topbar,.statusbar,.terminal-panel,.command-dialog,a,button,input,p,span,h1,h2,h3,dt,dd,.icon) { transition:background-color .28s ease,color .28s ease,border-color .28s ease,filter .28s ease; }
 .theme-thumb { transition:transform .28s ease,background-color .28s ease; }
}

/* Topbar theme control follows the language selector. */
.topbar .theme-toggle { margin:0; border:0; padding:7px 1px; min-height:33px; gap:8px; font-size:15px; text-transform:uppercase; color:var(--muted); }
.theme-toggle .theme-divider { color:var(--muted); font-weight:400; }
.theme-toggle[aria-checked="false"] .theme-dark-label,
.theme-toggle[aria-checked="true"] .theme-light-label { color:var(--yellow); font-weight:700; }
.brand-logos { display:grid; }
.brand-logos img { grid-area:1 / 1; }
.brand-logos .logo-light { opacity:0; }
[data-theme="light"] .brand-logos .logo-light { opacity:1; }
[data-theme="light"] .brand-logos .logo-dark { opacity:0; }
@media (prefers-reduced-motion:no-preference) { .brand-logos img { transition:opacity .28s ease; } }
@media (max-width:760px) {
 .topbar .theme-toggle { font-size:12px; min-height:36px; gap:0; }
 .theme-divider { display:none; }
 [data-theme="dark"] .theme-dark-label,
 [data-theme="light"] .theme-light-label { display:none; }
 .topbar-tools { gap:9px; }
 .language { gap:7px; }
}

/* Theme control occupies the left edge of the topbar on every viewport. */
.topbar { justify-content:space-between; }
.topbar-tools { margin-left:auto; }
.topbar > .theme-toggle { flex:none; }
