:root {
  color-scheme: dark;
  --ink: #f7f2e8;
  --muted: #b9b0a2;
  --paper: #10100f;
  --panel: #171715;
  --line: #38362f;
  --gold: #e7ad35;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: .07em; }
a:hover { color: var(--gold); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.1rem; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); font-weight: 650; text-wrap: balance; }
.container { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 20;
  padding: .65rem .9rem; background: var(--ink); color: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--paper); border-bottom: 1px solid rgba(255, 253, 247, .1); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { font-size: 1.1rem; font-weight: 800; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.65rem; color: #d2cabe; font-size: .9rem; }
.nav-links a { padding-block: .75rem; text-decoration: none; }
.hero { position: relative; isolation: isolate; min-height: calc(100svh - 4.25rem); display: grid; align-content: center; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("https://julien.li/assets/img/header-r2.jpg");
  background-size: cover;
  background-position: center 32%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 9, 7, .9), rgba(10, 9, 7, .68) 48%, rgba(10, 9, 7, .28));
}
.hero-layout { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(2rem, 4vw, 4rem); padding-block: 5rem 7rem; }
.hero-copy, .teaser, .prose { min-width: 0; }
.eyebrow { margin-bottom: 1.2rem; color: var(--gold); font-size: .74rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1 { font-size: clamp(4rem, 7vw, 6rem); font-weight: 700; letter-spacing: -.035em; }
.hero-subtitle { display: block; margin-top: 1.3rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; font-weight: 550; letter-spacing: -.015em; }
.hero-intro { max-width: 42ch; margin-top: 1.4rem; color: #ded6c9; font-size: 1.02rem; }
.publication-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.publication-link {
  flex: 1 1 11rem; padding: .85rem 1rem; border: 1px solid rgba(255, 255, 255, .65);
  border-radius: .35rem; background: rgba(255, 255, 255, .1); text-decoration: none;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .16);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.publication-link > span { display: flex; justify-content: space-between; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.publication-link strong { display: block; margin-top: .25rem; font-size: .94rem; }
.publication-link:hover { color: var(--ink); border-color: var(--ink); background: rgba(255, 255, 255, .19); }
.publication-note { margin-top: 1.2rem; margin-bottom: 0; color: #c3baab; font-size: .77rem; max-width: 50ch; }
.teaser { margin: 0; }
.teaser-media {
  display: block; overflow: hidden;
  background: transparent; border: 0; border-radius: .4rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}
.teaser img { width: 100%; height: auto; }
.teaser figcaption { margin-top: .9rem; padding: .7rem .85rem; background: #38362f; border-radius: .25rem; color: #eee7dc; font-size: .76rem; }
.explore-link { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #d2cabe; text-decoration: none; font-size: .78rem; }
.explore-link span { margin-left: .65rem; color: var(--gold); }
.robot-section { padding-bottom: 5rem; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 2.6rem 0; margin: 0 0 5rem; border-bottom: 1px solid var(--line); }
.specs > div { display: flex; flex-direction: column-reverse; padding-left: 2rem; border-left: 1px solid var(--line); }
.specs > div:first-child { padding-left: 0; border-left: 0; }
.specs dt { margin-top: .6rem; color: var(--muted); font-size: .82rem; }
.specs dd { margin: 0; font-size: clamp(1.8rem, 3.7vw, 3rem); font-weight: 550; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.specs dd span { font-size: .52em; color: var(--muted); font-weight: 450; }
.section-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); }
.prose { color: #d2cabe; font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration-color: var(--gold); }
.research-section { padding-block: 5rem; background: var(--panel); border-block: 1px solid var(--line); }
.section-intro { align-self: end; max-width: 49ch; color: #d2cabe; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; margin-top: 3.3rem; }
.result { border-top: 1px solid #60523b; padding-top: 1.6rem; }
.result-label { color: var(--muted); font-size: .8rem; }
.result h3 { font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.03em; }
.result h3 span { color: var(--gold); font-size: .4em; font-weight: 450; letter-spacing: 0; }
.result > p:not(.result-label) { margin-top: 1.3rem; max-width: 48ch; color: #d2cabe; }
.result a { display: inline-block; padding-block: .5rem; font-size: .85rem; text-decoration-color: var(--gold); }
.research-note { max-width: 90ch; margin: 2.8rem 0 0; color: var(--muted); font-size: .82rem; }
.publication-section { padding-block: 5rem; }
.paper-title { max-width: 66ch; margin-top: 2rem; font-size: 1.2rem; font-weight: 550; }
.authors, .journal, .doi { color: #d2cabe; font-size: .92rem; max-width: 83ch; }
.journal { margin-bottom: .4rem; }
.doi { overflow-wrap: anywhere; }
.resource-links { display: flex; flex-wrap: wrap; column-gap: 2rem; row-gap: .5rem; margin-top: 1.8rem; }
.resource-links a { padding-block: .65rem; text-decoration-color: var(--gold); font-size: .88rem; }
.resource-links span { margin-left: .3rem; color: var(--gold); }
.site-footer { border-top: 1px solid var(--line); }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; }
.footer-layout p { margin: 0; color: var(--muted); font-size: .78rem; }
.footer-layout > a:last-child { color: #d2cabe; font-size: .8rem; text-decoration: none; }
.error-page { min-height: 100svh; display: grid; align-content: center; }
.error-page h1 { font-size: clamp(3rem, 10vw, 5rem); }
.error-page p { margin-top: 1.5rem; }

@media (min-width: 1600px) {
  .hero { min-height: 850px; }
}
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 2.6rem; padding-block: 3.5rem 6rem; }
  .hero-copy { max-width: 38rem; }
  .hero-subtitle { font-size: 1.9rem; }
  .hero-intro { max-width: 50ch; }
  .publication-links { max-width: 33rem; }
  .teaser { width: min(100%, 640px); }
  .section-layout { grid-template-columns: 1fr; gap: 1.8rem; }
  .section-intro { max-width: 60ch; margin-bottom: 0; }
  .results { gap: 2rem; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 2rem); }
  .topbar { flex-wrap: wrap; gap: .25rem 1rem; padding-block: .75rem; }
  .brand { font-size: 1rem; }
  .nav-links { gap: .8rem; font-size: .75rem; flex-wrap: wrap; }
  .hero-layout { padding-top: 2.7rem; }
  .hero-subtitle { font-size: 1.55rem; }
  .desktop-break { display: none; }
  .hero-intro { font-size: .95rem; }
  .publication-link { flex-basis: 9rem; padding: .8rem; }
  .publication-link strong { font-size: .82rem; }
  .publication-note { font-size: .75rem; }
  .teaser figcaption { font-size: .73rem; }
  .specs { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 2rem; margin-bottom: 3rem; }
  .specs > div, .specs > div:first-child { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1rem; border: 0; padding: 0 0 1.2rem; border-bottom: 1px solid var(--line); }
  .specs > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .specs dt { margin-top: 0; }
  .specs dd { font-size: 1.75rem; }
  .robot-section { padding-bottom: 3rem; }
  .research-section, .publication-section { padding-block: 3rem; }
  .results { grid-template-columns: 1fr; gap: 2.6rem; margin-top: 2.4rem; }
  .research-note { margin-top: 2rem; }
  .paper-title { font-size: 1.06rem; }
  .resource-links { column-gap: 1.5rem; }
  .footer-layout { flex-wrap: wrap; }
  .footer-layout p { flex-basis: 100%; order: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  :root { color-scheme: light; }
  body { background: white; color: #151515; }
  .site-header, .skip-link, .hero-bg, .hero::after, .explore-link, .site-footer { display: none; }
  .hero { min-height: auto; }
  .hero-layout { padding-block: 1rem 2rem; }
  .hero-copy p, .teaser figcaption, .prose, .section-intro, .result p, .research-note, .authors, .journal, .doi { color: #333; }
  .teaser-media { box-shadow: none; }
  .teaser figcaption, .research-section { background: white; }
  .research-section, .publication-section { padding-block: 2rem; }
  .specs { margin-bottom: 2rem; }
}
