:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #f0f2ee;
  --ink: #202124;
  --muted: #676b73;
  --line: #deded8;
  --accent: #176c5f;
  --accent-strong: #0f574c;
  --accent-soft: #e5f4f0;
  --live: #d82727;
  --warning: #9a5b13;
  --shadow: 0 10px 30px rgba(24, 27, 31, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono", "Liberation Mono", Menlo, Consolas, monospace;
  letter-spacing: 0;
}

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

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

.site-shell {
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
  padding: 20px 0 28px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.brand-photo {
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(24, 27, 31, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 690;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.eyebrow {
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1;
  font-weight: 780;
}

h2 {
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.1;
  font-weight: 760;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.inline-links a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 720;
}

.inline-links a:hover,
.inline-links a:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.intro {
  display: grid;
  gap: 14px;
  max-width: 760px;
  padding: 46px 0 34px;
}

.plain-section {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 18px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compact-line {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.compact-list {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.page-intro {
  display: grid;
  gap: 14px;
  min-height: min(360px, calc(100vh - 190px));
  align-content: center;
  max-width: 760px;
  padding: 42px 0 36px;
}

.page-intro h1 {
  font-size: clamp(42px, 8vw, 76px);
}

.projects-section {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
}

.project-list {
  display: grid;
  gap: 0;
}

.project-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.project-item + .project-item {
  padding-top: 18px;
}

.project-item h2 {
  font-size: 22px;
}

.project-item p {
  margin-top: 8px;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.project-item a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 720;
}

.project-status {
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.contact-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
  padding: 26px 0 4px;
  border-top: 1px solid var(--line);
}

.contact-footer h2 {
  margin-top: 5px;
  font-size: 30px;
}

.contact-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  font-style: normal;
}

.contact-links a {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 690;
  white-space: nowrap;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--ink);
  outline: none;
}

/* 3D printer live page */
.printer-page {
  display: grid;
  gap: 18px;
}

.printer-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 2px;
}

.printer-page h1 {
  max-width: 760px;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 0.98;
  font-weight: 760;
}

.printer-header-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pill.live {
  border-color: rgba(216, 39, 39, 0.22);
  background: #fff6f5;
  color: #a01919;
  font-weight: 740;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(216, 39, 39, 0.48);
  flex: 0 0 auto;
  animation: livePulse 1.6s ease-out infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(216, 39, 39, 0.48);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(216, 39, 39, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(216, 39, 39, 0);
  }
}

.printer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.video-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(24, 27, 31, 0.10);
}

.camera-wrap {
  position: relative;
  background: #111;
}

.camera {
  display: block;
  width: 100%;
  max-height: calc(100vh - 190px);
  aspect-ratio: 4 / 3;
  background: #111;
  object-fit: contain;
}

.live-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #991818;
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.video-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.printer-side {
  display: grid;
  gap: 12px;
}

.printer-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.printer-card h2 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

.print-name {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.progress-wrap {
  margin-top: 14px;
}

.progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.progress-percent {
  color: var(--ink);
  font-weight: 760;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 280ms ease;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf9;
}

.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.value {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.value.small {
  font-size: 15px;
  font-weight: 680;
  line-height: 1.3;
}

.temperatures {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.temp-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.temp-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.temp-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.updated {
  color: var(--muted);
  font-size: 12px;
}

.footer-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.archive {
  margin-top: 2px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading h2 {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 760;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  justify-content: start;
  align-items: start;
  gap: 12px;
}

.old-print {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.old-print-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #111;
  object-fit: contain;
}

.old-print-body {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.old-print-title {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.old-print-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfbf9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.old-print-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.fact {
  min-height: 45px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf9;
}

.fact .label {
  font-size: 11px;
}

.fact .value {
  font-size: 13px;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .printer-layout {
    grid-template-columns: 1fr;
  }

  .camera {
    max-height: none;
  }
}

@media (max-width: 860px) {
  .site-header,
  .plain-section,
  .projects-section,
  .contact-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
    justify-items: start;
  }

  .nav {
    justify-content: flex-start;
  }

  .contact-links {
    justify-content: flex-start;
  }

  .printer-page-header,
  .video-meta,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .printer-header-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 20px, 1320px);
    padding-top: 12px;
  }

  .nav {
    gap: 4px;
  }

  .nav a,
  .contact-links a {
    font-size: 12px;
    min-height: 32px;
    padding: 7px 9px;
  }

  .brand {
    width: 100%;
  }

  h1 {
    font-size: clamp(38px, 15vw, 64px);
  }

  .lede {
    font-size: 16px;
  }

  .old-print-facts {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }
}
