@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(/static/fonts/ubuntu-sans-latin-wght-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Ubuntu Sans";
  font-style: italic;
  font-weight: 100 800;
  font-display: swap;
  src: url(/static/fonts/ubuntu-sans-latin-wght-italic.woff2) format("woff2");
}

:root {
  --black: #0B0B0C;
  --gold: #F5C842;
  --bg: #FFFFFF;
  --text: #0B0B0C;
  --muted: #5E5E66;
  --line: #E3E3E6;
  --tile: #F2F2F3;
  --link-line: #F5C842;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B0B0C;
  --text: #ECECEE;
  --muted: #9C9CA4;
  --line: #26262B;
  --tile: #17171A;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0C;
    --text: #ECECEE;
    --muted: #9C9CA4;
    --line: #26262B;
    --tile: #17171A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Ubuntu Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header: black in both themes */
.bar { position: sticky; top: 0; z-index: 10; background: var(--black); color: #fff; border-bottom: 1px solid #1E1E22; }
.bar-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 58px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; line-height: 0; }
.logo svg { height: 24px; width: auto; }
.logo .mark { display: none; }
.logo title { display: none; }
.bar nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.bar nav a { text-decoration: none; color: #D6D6DA; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--gold); }
.theme { background: none; border: 0; padding: 6px; margin: 0 -6px 0 4px; color: #D6D6DA; cursor: pointer; line-height: 0; border-radius: 4px; }
.theme:hover { color: var(--gold); }

/* home hero: black band, the sphere is the one loud thing */
.hero { background: var(--black); color: #fff; }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: min(560px, 78vh); }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 600; max-width: 13em; }
.hero p { color: #B4B4BB; font-size: 19px; max-width: 30em; margin: 20px 0 0; }
.hero a { color: #fff; }
#sphere { width: 100%; aspect-ratio: 1; max-height: 520px; justify-self: end; cursor: grab; touch-action: pan-y; }
#sphere:active { cursor: grabbing; }

.section { padding: 72px 0 0; }
.section h2 { font-size: 26px; font-weight: 600; margin-bottom: 20px; }
.section[id] { scroll-margin-top: 58px; }
.section .intro { max-width: 38em; margin: 0 0 20px; }
.links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 24px 0 0; }
.links a { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; text-decoration: none; }
.links a span { text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.links a:hover span { text-decoration-color: currentColor; }
.links svg { flex: none; }
.intro + .links { margin-top: 4px; }
.contact { margin: 0; max-width: 720px; border-top: 1px solid var(--line); }
.contact > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact dt { color: var(--muted); font-weight: 500; }
.contact dd { margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 18px; }
.icon-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.icon-link span { text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.icon-link:hover span { text-decoration-color: currentColor; }
.copy { font: inherit; font-size: 14px; font-weight: 500; color: var(--text); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.copy:hover { border-color: var(--muted); }
.about p { max-width: 38em; margin: 0 0 1em; }

.project { margin: 0 0 44px; max-width: 720px; }
.project:last-child { margin-bottom: 0; }
.project h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.project > p { margin: 0 0 20px; max-width: 38em; }
.project > .note { margin: 12px 0 0; }
.models { width: 100%; max-width: 720px; border-collapse: collapse; font-size: 16px; }
.models th { text-align: left; font-weight: 500; color: var(--muted); padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); }
.models td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.models td:first-child { white-space: nowrap; }
.models th:last-child, .models td:last-child { padding-right: 0; }
.models .num { text-align: right; font-variant-numeric: tabular-nums; }
.models th.num { text-align: right; }
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* article grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.card { text-decoration: none; display: block; }
.thumb { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--tile); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.blank { background: var(--black); display: grid; place-items: center; }
.thumb.blank img { width: 18%; height: auto; object-fit: contain; }
.card h3 { font-size: 20px; font-weight: 500; margin: 14px 0 6px; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.meta { color: var(--muted); font-size: 14px; display: flex; gap: 12px; }
.meta .kind { color: var(--text); font-weight: 500; }
.more { display: inline-block; margin-top: 32px; font-weight: 500; }
.page-head { padding: 56px 0 36px; }
.page-head h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 600; }
.empty { color: var(--muted); }

/* article page */
.article { max-width: 720px; margin: 0 auto; padding: 56px 24px 0; }
.article > header h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 600; }
.article > header .lede { font-size: 20px; color: var(--muted); margin: 16px 0 0; }
.article > header .meta { margin-top: 18px; }
.prose { margin-top: 40px; font-size: 18px; line-height: 1.7; }
.prose > * { margin: 0 0 1.1em; }
.prose h2 { font-size: 26px; font-weight: 600; margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 1.6em 0 0.5em; }
.prose img, .prose video { border-radius: 6px; margin: 1.6em auto; height: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { color: var(--muted); font-size: 15px; margin-top: -0.8em; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--gold); color: var(--muted); }
.prose code { font: 0.88em/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--tile); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { background: var(--tile); padding: 16px 18px; border-radius: 6px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.foot { margin-top: 96px; border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 32px; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap, .bar-in, .hero-in { padding: 0 16px; }
  .foot-in { padding-top: 24px; padding-bottom: 32px; }
  .logo .word { display: none; }
  .logo .mark { display: block; }
  .bar nav { gap: 18px; font-size: 14px; }
  .theme { margin-left: 0; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  #sphere { justify-self: center; max-width: 420px; margin: 8px auto 0; }
  .hero p { font-size: 17px; }
  .models { font-size: 15px; }
  .section { padding-top: 56px; }
  .grid { grid-template-columns: 1fr; gap: 32px; }
  .article { padding: 40px 16px 0; }
  .prose { font-size: 17px; }
  .foot { margin-top: 72px; }
  .contact > div { grid-template-columns: 1fr; gap: 6px; }
  .contact dd { font-size: 17px; }
}
@media (max-width: 380px) {
  .bar nav { gap: 12px; font-size: 13.5px; }
  .bar-in { gap: 12px; }
}
