:root {
  --text: #202124;
  --muted: #696969;
  --line: #e8e8e8;
  --link: #2459a9;
  --surface: #f8f8f8;
  --max-width: 900px;
}

* { box-sizing: border-box; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 72px 0 48px;
}

.note {
  margin: 12px 0 0 1.0rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.note summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.note summary::marker {
  color: var(--muted);
}

.note[open] summary {
  margin-bottom: 6px;
}

.note p {
  margin: 0;
  font-style: italic;
}

.intro {
  margin-bottom: 34px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--link);
}

.project-header {
  margin-bottom: 34px;
}

.project-header h1 {
  font-size: 1.7rem;
}

.project-header .meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-header .entry-links {
  margin-top: 10px;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.intro .identity {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 3px;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.role {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 1rem;
}

.links,
.entry-links {
  font-size: 0.96rem;
}

.links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: -6px;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  opacity: 0.65;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--link);
  background: var(--surface);
  opacity: 1;
  text-decoration: none;
}

.links svg {
  width: 17px;
  height: 17px;
  display: block;
}


a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

section {
  margin-top: 46px;
}

section:first-of-type { margin-top: 0; }

h2 {
  margin-bottom: 17px;
  font-size: 1.28rem;
  letter-spacing: -0.015em;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 2px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.entry {
  margin: 0 0 30px;
}

.entry h3 {
  margin-bottom: 2px;
  font-size: 1.03rem;
  line-height: 1.4;
}

.entry p {
  margin-bottom: 4px;
}

.entry .meta,
.entry .authors {
  color: var(--muted);
  font-size: 0.92rem;
}

.entry .authors strong {
  color: var(--text);
  font-weight: 600;
}

.entry > p:not(.meta):not(.authors):not(.entry-links) {
  margin-top: 8px;
  font-size: 0.96rem;
}

.entry-links {
  margin-top: 6px;
}

/* ───────────────────────── Hero Comparison ───────────────────────── */


.project-overview {
  width: 100%;
}

.project-overview p {
  width: 100%;
  max-width: none;
  line-height: 1.75;
}

/* Featured demonstration */
.project-demo {
  margin: 42px 0 48px;
}

.demo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.demo-heading h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 5px;
}

.demo-heading p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.demo-tag {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 0.76rem;
  white-space: nowrap;
}

/* Side-by-side videos */
.hero-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  aspect-ratio: 32 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.hero-panel:first-child {
  border-right: 1px solid var(--line);
}

.hero-panel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 0.77rem;
  border-radius: 4px;
  pointer-events: none;
}

.demo-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}


.featured {
  padding-left: 13px;
  border-left: 3px solid #d9d9d9;
}

.entry:has(.entry-media) {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}

.entry-body > :last-child {
  margin-bottom: 0;
}

.entry-media {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.entry-media video,
.entry-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Keep the featured border beside the text rather than the media */
.featured:has(.entry-media) {
  padding-left: 0;
  border-left: none;
}

.featured .entry-body {
  padding-left: 13px;
  border-left: 3px solid #d9d9d9;
}

.compact {
  margin-bottom: 21px;
}

.template-note {
  padding: 13px 15px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
}

.timeline-row .year {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.toc {
  margin: 0;
  padding-left: 1.3rem;
  list-style: none;
}

.note-image {
  display: block;
  max-width: 35%;
  height: auto;
  margin: 16px auto;
}

.note-image-1 {
  display: block;
  max-width: 45%;
  height: auto;
  margin: 16px auto;
}

.toc li {
  margin-bottom: 10px;
}

.toc ul {
  margin: 10px 0 0;
  padding-left: 1.3rem;
  list-style: circle;
}

.toc ul ul {
  list-style: square;
}

.toc .status {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 650px) {
  html { font-size: 16px; }

  .page {
    width: min(calc(100% - 30px), var(--max-width));
    padding-top: 42px;
  }

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

  .entry:has(.entry-media) {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  footer {
    flex-direction: column;
    gap: 3px;
  }
}

.references {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.94rem;
}

.references li {
  margin-bottom: 10px;
}

.references li:last-child {
  margin-bottom: 0;
}
