/* GENERATED by Web/site/build.py: a verbatim copy of esaba.ca's src/styles/global.css (repo sabaesmaeili/Website). Never edit here: change the Website, then rebuild. */
/*
  esaba.ca styles. The rules live in docs/design-system.xml: every font-size,
  font-weight, line-height, and column width here goes through the tokens
  below. Shared markup lives in src/components.
*/

@font-face {
  font-family: "SF Mono Terminal";
  font-style: normal;
  font-weight: 400 700;
  src: local("SF Mono Terminal"), local("SFMono-Regular"), local("SF Mono");
}

:root {
  color-scheme: dark;

  /* Values and roles: docs/design-system.xml tokens */

  /* Color roles */
  --color-bg: #18191d;
  --color-bg-rgb: 24, 25, 29;
  --color-surface: #1f2025;
  --color-surface-2: #26282d;
  --color-text: #e6edf3;
  --color-muted: #8b949e;
  --color-line: #3a3c43;
  --color-blue: #00b1d2;
  --color-blue-rgb: 0, 177, 210;
  --color-green: #69ff47;
  --color-pink: #ff3ea5;
  --color-pink-text: #ff51ae;
  --color-violet: #946cf0;
  --color-green-rgb: 105, 255, 71;
  --color-pink-rgb: 255, 62, 165;
  --color-square-idle: #5d666f;
  --color-material: rgba(22, 25, 32, 0.32);
  --color-edge: rgba(255, 255, 255, 0.15);
  --color-menu-hover: rgba(255, 255, 255, 0.05);
  --color-field: rgba(255, 255, 255, 0.045);
  --color-lift: rgba(255, 255, 255, 0.12);

  /* Component tokens (design system componentTokens): one name per repeated
     style. Change one here and every use follows, on the site and in the TCF
     tool's synced copy. The color roles are built from the palette, so they
     follow it into light mode. */
  --color-hover: var(--color-text);
  --color-link: var(--color-blue);
  --color-link-hover: var(--color-hover);
  --color-link-marker: var(--color-green);
  --color-link-quiet: var(--color-muted);
  --color-link-quiet-hover: var(--color-link);
  --color-toggle: var(--color-muted);
  --color-toggle-hover: var(--color-hover);
  --color-choice: var(--color-muted);
  --color-choice-chosen: var(--color-blue);
  --color-prompt: var(--color-green);
  --color-identity: var(--color-violet);
  --color-markdown-marker: var(--color-blue);
  --color-focus: var(--color-blue);
  --color-selection: rgba(var(--color-blue-rgb), var(--tint-selection));
  --color-square-current: var(--color-blue);
  --color-square-done: var(--color-green);
  --color-square-wrong: var(--color-pink);
  --fill-square-half: linear-gradient(90deg, var(--color-square-done) 50%, var(--color-square-idle) 50%);
  --tint-mark: 0.18;
  --tint-wrong: 0.2;
  --tint-diff: 0.22;
  --tint-diff-wrong: 0.24;
  --tint-selection: 0.24;
  --radius-tint: 2px;
  --motion-duration: 160ms;
  --motion-easing: ease;
  --focus-width: 2px;
  --focus-offset: 4px;
  --text-choice: var(--text-base);
  --choice-height: var(--control-height);
  --choice-gap: var(--gap-inline);
  --toggle-closed: "+";
  --toggle-open: "\2212";
  --toggle-gap: 1ch;

  /* Type */
  --font-primary: "SF Mono Terminal", "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, monospace;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --font-menu: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --text-menu: 0.8125rem;
  --text-menu-sm: 0.75rem;
  --text-menu-xs: 0.6875rem;
  --leading-menu: 1.35;
  --weight-regular: 400;
  --weight-strong: 600;
  --leading: 1.5;
  --leading-tight: 1.3;
  --letter-spacing: 0.01em;

  /* Space */
  --frame: 60rem;
  --gutter: max(2rem, 100vw / 12);
  --header-top-gap: clamp(1rem, 2.4vw, 2.25rem);
  --content-top-gap: clamp(4rem, 6vw, 8rem);
  --gap-heading: 8px;
  --gap-output: 24px;
  --gap-section: 56px;
  --gap-inline: 2ch;
  --row-pad: 6px;
  --control-height: 40px;
  --key-col: 10ch;
  --branch-col: 4ch;
  --col-gap: 3ch;
  --preview-col: minmax(220px, 320px);
  --radius: 6px;
  --radius-menu: 12px;
  --menu-row: 28px;
  --shadow-pop: 0 28px 72px -12px rgba(0, 0, 0, 0.55), 0 6px 20px -4px rgba(0, 0, 0, 0.28);
  --shadow-chip: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
  --radius-chip: 10px;
}

/* Light mode follows the viewer's system setting. Values: the light attribute
   of each color token in docs/design-system.xml */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --color-bg: #f3f4f6;
    --color-bg-rgb: 243, 244, 246;
    --color-surface: #e3e3e5;
    --color-surface-2: #d9d9db;
    --color-text: #18191d;
    --color-muted: #565c63;
    --color-line: #bbbcc0;
    --color-blue: #007A92;
    --color-blue-rgb: 0, 122, 146;
    --color-green: #228100;
    --color-pink: #d70085;
    --color-pink-text: #d60089;
    --color-violet: #7546d8;
    --color-green-rgb: 34, 129, 0;
    --color-pink-rgb: 215, 0, 133;
    --color-square-idle: #d9d9db;
    --color-material: rgba(249, 250, 252, 0.36);
    --color-edge: rgba(0, 0, 0, 0.14);
    --color-menu-hover: rgba(0, 0, 0, 0.05);
    --color-field: rgba(0, 0, 0, 0.035);
    --color-lift: rgba(255, 255, 255, 0.78);
    --shadow-pop: 0 28px 72px -12px rgba(0, 0, 0, 0.24), 0 6px 20px -4px rgba(0, 0, 0, 0.12);
  }
}

/* Base: element defaults carry the type roles */

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--color-bg);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading);
  letter-spacing: var(--letter-spacing);
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

h1 {
  font-size: var(--text-lg);
  font-weight: var(--weight-strong);
  line-height: var(--leading-tight);
}

h2,
h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-strong);
}

strong {
  font-weight: var(--weight-strong);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--motion-duration) var(--motion-easing);
}

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

/* A quiet link: a secondary link beside a row's note (a book's buy), muted
   until pointed at. */

a.quiet-link {
  color: var(--color-link-quiet);
}

a.quiet-link:hover {
  color: var(--color-link-quiet-hover);
}

:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-offset);
}

::selection {
  background: var(--color-selection);
  color: var(--color-text);
}

img {
  max-width: 100%;
}

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

/* Small text: the one place the small size is set */

.row dt,
.course-disclosure-label,
.tag,
.tree-branch,
.hashtags li,
.entry-links,
.quiet-link,
.jumper button,
.caption,
.back-link,
.booking-caption,
.booking-status,
.local-mode-note {
  font-size: var(--text-sm);
}

/* Workspace and header */

.shell {
  width: min(100% - var(--gutter) * 2, var(--frame));
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 clamp(42px, 8vw, 84px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--content-top-gap);
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1ch;
  min-height: var(--control-height);
  padding-top: var(--header-top-gap);
  font-weight: var(--weight-strong);
  line-height: var(--leading-tight);
}

.site-mark,
.address-path {
  font-weight: var(--weight-regular);
  line-height: var(--leading);
}

.site-mark {
  display: inline-flex;
  min-height: var(--control-height);
  align-items: center;
  color: var(--color-identity);
  white-space: nowrap;
}

.site-mark:hover {
  color: var(--color-identity);
}

.address-path {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  color: var(--color-muted);
  white-space: nowrap;
}

.address-crumb,
.address-separator {
  color: var(--color-muted);
}

.address-crumb {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

.address-crumb:hover,
.address-crumb:focus-visible {
  color: var(--color-hover);
}

/* The nav is a row of text choices (textChoice): the current page is chosen */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--choice-gap);
}

.site-nav a {
  display: inline-flex;
  min-height: var(--choice-height);
  align-items: center;
  color: var(--color-choice);
  font-size: var(--text-choice);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-hover);
}

.site-nav a[aria-current="page"] {
  color: var(--color-choice-chosen);
}

main {
  display: block;
  min-width: 0;
}

/* Transcript: PageHeading and Prompt */

.page-heading {
  display: grid;
  gap: var(--gap-heading);
}

.prompt-symbol,
.prompt-cursor {
  color: var(--color-prompt);
}

.lead {
  max-width: 64ch;
  color: var(--color-muted);
  overflow-wrap: break-word;
}

/* The closing "$ _" line follows its output like a new shell prompt */
.rows + .prompt {
  margin-top: var(--gap-heading);
}

/* Rows (outputRow) */

.rows {
  display: grid;
  margin-top: var(--gap-output);
}

.row {
  display: grid;
  grid-template-columns: var(--key-col) minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding: var(--row-pad) 0;
  align-items: baseline;
}

.row dt,
.course-disclosure-label {
  color: var(--color-muted);
}

.row dd {
  min-width: 0;
  max-width: 74ch;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.line {
  display: block;
  text-wrap: balance;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--gap-inline);
}

/* Courses disclosure (courseDisclosure): a toggle, + closed and − open */

.tutoring-details {
  margin-top: var(--gap-output);
}

.tutoring-details .rows {
  margin-top: 0;
}

/* The toggle stays --control-height tall, but the extra height becomes padding
   offset by negative margin, so its text sits --row-pad from its neighbors
   like every other row */
.course-disclosure > summary {
  --tap-extra: max(0px, (var(--control-height) - 1lh - var(--row-pad) * 2) / 2);
  min-height: var(--control-height);
  margin-block: calc(var(--tap-extra) * -1);
  padding-block: calc(var(--row-pad) + var(--tap-extra));
  list-style: none;
  cursor: pointer;
}

.course-disclosure > summary::-webkit-details-marker {
  display: none;
}

.course-disclosure-toggle {
  display: inline-flex;
  align-items: baseline;
  gap: var(--toggle-gap);
  min-width: 0;
  color: var(--color-toggle);
  transition: color var(--motion-duration) var(--motion-easing);
}

.course-disclosure-toggle::before {
  content: var(--toggle-closed);
  flex: none;
}

.course-disclosure[open] .course-disclosure-toggle::before {
  content: var(--toggle-open);
}

.course-disclosure > summary:hover .course-disclosure-toggle,
.course-disclosure > summary:focus-visible .course-disclosure-toggle {
  color: var(--color-toggle-hover);
}

/* List entries (entryRow) */

.entry-list {
  display: grid;
  margin-top: var(--gap-output);
}

.entry {
  display: grid;
  grid-template-columns: var(--key-col) minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding: var(--row-pad) 0;
  align-items: baseline;
}

.entry > div {
  min-width: 0;
}

/* List titles stay regular: color (white, or blue when linked) carries them */
.entry h2,
.entry h3 {
  font-weight: var(--weight-regular);
}

.tag {
  color: var(--color-muted);
  white-space: nowrap;
}

.entry p {
  max-width: 64ch;
  color: var(--color-muted);
}

.entry .quote {
  color: var(--color-text);
}

.caption {
  color: var(--color-muted);
}

.list-section {
  margin-top: var(--gap-output);
}

.list-section .entry-list {
  margin-top: var(--gap-heading);
}

.section-heading::before {
  content: "## ";
  color: var(--color-markdown-marker);
}

.back-link {
  margin-top: var(--gap-output);
  color: var(--color-muted);
}

.back-link a::before {
  content: "../";
  color: var(--color-muted);
}

/* Tree rows (directoryRow): stuff. Each row is a tappable row: its name is a
   link title */

.directory-list {
  display: grid;
  margin-top: var(--gap-output);
}

.directory-row {
  display: grid;
  grid-template-columns: var(--branch-col) var(--key-col) minmax(0, 1fr);
  column-gap: var(--col-gap);
  min-width: 0;
  padding: var(--row-pad) 0;
  align-items: baseline;
  color: inherit;
}

.tree-branch {
  color: var(--color-muted);
  white-space: nowrap;
}

.directory-name {
  color: var(--color-link);
  font-weight: var(--weight-strong);
  white-space: nowrap;
  transition: color var(--motion-duration) var(--motion-easing);
}

.directory-row:hover .directory-name,
.directory-row:focus-visible .directory-name {
  color: var(--color-link-hover);
}

.directory-description {
  min-width: 0;
  color: var(--color-muted);
  overflow-wrap: break-word;
}

.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5ch;
  padding: 0;
  list-style: none;
}

.hashtags li {
  color: var(--color-muted);
  white-space: nowrap;
}

/* A hashtag: a blue # and one small word that filters (design system hashtag) */
.hashtag::before {
  content: "#";
  color: var(--color-markdown-marker);
}

.local-dashboard-link {
  grid-column: 3;
}

/* Show control and its menu (design system filterBar, short form) */

.filter-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  margin-top: var(--gap-output);
}

.filter-bar[hidden],
.filter-menu[hidden],
.entry[hidden] {
  display: none;
}

/* A muted key and a blue value, one button: it opens the menu. One row at
   every width: the value is the part that gives way. */
.filter-choice {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 32px;
}

.filter-value,
.filter-clear,
.filter-option,
.jumper button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: color var(--motion-duration) var(--motion-easing), background-color var(--motion-duration) var(--motion-easing);
}

.filter-value {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 32px;
  color: var(--color-link);
}

.filter-key {
  flex: none;
  color: var(--color-muted);
}

.filter-value-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A value whose menu is open has no highlight: the menu under it says which is open (owner, 2026-11-25) */

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

.filter-clear {
  flex: none;
  width: 20px;
  min-height: 32px;
  margin-left: -6px;
  color: var(--color-muted);
  font-family: var(--font-menu);
  text-align: center;
  opacity: 0.8;
}

.filter-clear:hover {
  color: var(--color-pink-text);
  opacity: 1;
}

/* Nothing to remove, or an open menu (an x beside it would read as "close"):
   the x keeps its place, so the gap after the value never changes */
.filter-clear:disabled,
.filter-choice:has([aria-expanded="true"]) .filter-clear {
  visibility: hidden;
}

/* Whatever opens over the page (design system popover): translucent, blurred,
   the system face, small rows */
.filter-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 10;
  width: 220px;
  max-width: 100%;
  padding: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border-radius: var(--radius-menu);
  background: var(--color-material);
  -webkit-backdrop-filter: blur(26px) saturate(1.9);
  backdrop-filter: blur(26px) saturate(1.9);
  box-shadow: 0 0 0 0.5px var(--color-edge), var(--shadow-pop);
  color: var(--color-text);
  font-family: var(--font-menu);
  font-size: var(--text-menu);
  line-height: var(--leading-menu);
  letter-spacing: inherit;
  transform-origin: top left;
  animation: popover var(--motion-duration) var(--motion-easing);
}

@keyframes popover {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: var(--menu-row);
  padding: 3px 8px;
  border-radius: var(--radius);
}

.filter-option:hover {
  background: var(--color-menu-hover);
}

/* Inside the menu the row the keyboard is on takes the highlight, not an outline */
.filter-option:focus-visible {
  outline: 0;
  background: var(--color-menu-hover);
}

.filter-check {
  flex: 0 0 11px;
  color: var(--color-blue);
  font-size: var(--text-menu-sm);
}

.filter-option-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.filter-option-count {
  font-size: var(--text-menu-sm);
  font-variant-numeric: tabular-nums;
}

.filter-option-count,
.filter-option[data-count="0"] {
  color: var(--color-muted);
}

/* With more than one kind of value, a small heading sits over each */
.filter-menu:not([data-kinds="1"]) .filter-options::before {
  content: attr(data-pane);
  display: block;
  padding: 8px 8px 3px;
  color: var(--color-muted);
  font-size: var(--text-menu-xs);
  font-weight: var(--weight-strong);
}

/* Jumper (design system jumper) */

.jumper {
  position: fixed;
  right: max(12px, (100vw - var(--frame)) / 2 - 52px);
  bottom: 22px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-chip);
  background: var(--color-material);
  -webkit-backdrop-filter: blur(26px) saturate(1.9);
  backdrop-filter: blur(26px) saturate(1.9);
  box-shadow: 0 0 0 0.5px var(--color-edge), var(--shadow-chip);
  opacity: 0.6;
  transition: opacity var(--motion-duration) var(--motion-easing);
}

.jumper[hidden] {
  display: none;
}

.jumper:hover,
.jumper:focus-within {
  opacity: 1;
}

.jumper button {
  width: 30px;
  min-height: 28px;
  color: var(--color-muted);
  text-align: center;
}

.jumper button:disabled {
  opacity: 0.28;
  cursor: default;
}

.project-preview {
  grid-column: 4;
  grid-row: 1 / span 5;
  align-self: start;
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface-2);
}

.project-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.58) contrast(0.9) brightness(0.82);
  opacity: 0.92;
}

.project-preview .caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 2px 7px;
  border: 1px solid var(--color-line);
  background: rgba(var(--color-bg-rgb), 0.88);
  overflow-wrap: break-word;
}

.local-mode-note {
  max-width: 68ch;
  margin: 22px 0 0 calc(var(--branch-col) + var(--key-col) + var(--col-gap) * 2);
  color: var(--color-pink-text);
}

/* Booking: tabs and the Cal.com embed. Tabs are text choices with an outline */

.booking {
  display: grid;
  gap: var(--gap-heading);
  margin-top: var(--gap-section);
  scroll-margin-top: 24px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* A pill (design system pill): one of a few views of what is shown below */
.pill {
  display: inline-flex;
  min-height: var(--control-height);
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--color-field);
  color: var(--color-text);
  white-space: nowrap;
  transition: color var(--motion-duration) var(--motion-easing), background-color var(--motion-duration) var(--motion-easing);
}

.pill:hover,
.pill:focus-visible {
  background: var(--color-menu-hover);
  color: var(--color-text);
}

.pill[aria-selected="true"] {
  background: var(--color-blue);
  color: var(--color-bg);
}

/* Each panel: a caption line for its tab, then the calendar */
.booking-embed {
  display: grid;
  gap: var(--gap-heading);
}

.booking-embed[hidden] {
  display: none;
}

.booking-caption {
  color: var(--color-muted);
}

.booking-caption a {
  white-space: nowrap;
}

.booking-frame {
  position: relative;
  min-height: 560px;
}

.booking-status {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-muted);
}

.booking-frame:has(cal-inline[loading="done"]) {
  min-height: 0;
}

.booking-frame:has(cal-inline[loading="done"]) .booking-status {
  display: none;
}

/* Policies: a new section after the calendar. Cal.com always leaves room for
   a sixth week under the dates, so the calendar already ends in blank space
   and the section gap here is the smaller output gap. */
.policies {
  margin-top: var(--gap-output);
}

/* Game: the framed game (gameFrame) */
.game {
  display: grid;
  gap: var(--gap-heading);
  margin-top: var(--gap-section);
}

/* 16:10, so the game shows its scene and panel side by side; never shorter
   than the 560px the game needs when it stacks them */
.game-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 560px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
}

/* Status colors, after the components so they override the muted color */

.status-public {
  color: var(--color-green);
}

.status-private {
  color: var(--color-muted);
}

.status-draft,
.status-empty,
.status-local,
.status-login {
  color: var(--color-pink-text);
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Small screens */

/* The nav takes its own row when the full path would not fit beside it: src/scripts/headerPath.ts
   measures and sets data-layout. Before it has run (or without scripts), 760px decides. */
.site-header[data-layout="stacked"] {
  grid-template-columns: auto minmax(0, 1fr);
}

.site-header[data-layout="stacked"] .site-nav {
  grid-column: 1 / -1;
  justify-content: flex-start;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-header[data-layout="stacked"] .site-nav a {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .site-header:not([data-layout]) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .site-header:not([data-layout]) .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .directory-row {
    grid-template-columns: var(--branch-col) minmax(0, 1fr);
    column-gap: 1ch;
  }

  .directory-description {
    grid-column: 2;
  }

  .hashtags,
  .local-dashboard-link,
  .project-preview {
    grid-column: 2;
  }

  .project-preview {
    grid-row: auto;
    width: min(100%, 420px);
    margin-top: 4px;
  }

  .local-mode-note {
    margin-left: calc(var(--branch-col) + 1ch);
  }

  /* A phone has no room beside the column */
  .jumper {
    display: none;
  }

  /* Phones: the game stacks its scene over its panel, so the frame fills the
     screen height less a margin, and can still be scrolled fully into view */
  .game-frame {
    aspect-ratio: auto;
    height: max(560px, 100svh - 4rem);
  }
}

@media (max-width: 420px) {
  :root {
    --branch-col: 3ch;
  }

  /* Rows and entries put the key above the value */
  .row,
  .entry {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Balanced wrapping splits short sentences in half on narrow screens */
  .line {
    text-wrap: pretty;
  }

  .pill {
    flex: 1 1 auto;
  }

  .hashtags li {
    white-space: normal;
  }
}
