/* === Self-Hosted Stack Deck — All Things Open 2026 ===
   Light-mode deck styled to the techhut.tv "Spearmint Ice" system:
   neutral surfaces, hairline borders, square corners, mint acts, ice informs.
   Display: Outfit · Body: Inter · Labels/code: JetBrains Mono */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  /* Surfaces — neutral ramp */
  --bg: #FAFAFA;            /* off-white, main light surface */
  --bg-2: #F0F0F0;          /* paper raised — cards, panels */
  --bg-3: #E5E5E5;          /* raised further */
  --ink: #171717;           /* headings */
  --ink-dim: #404040;       /* body */
  --ink-faint: #737373;     /* muted, metadata */
  --line: #E5E5E5;          /* hairline borders */
  --line-2: #D4D4D4;        /* stronger borders */

  /* Spearmint — brand / action. 800 for text on light, 500 as a fill. */
  --accent: #08734F;
  --accent-dim: #087850;
  --accent-fill: #4FE3A3;
  --accent-soft: #E3FBF0;
  --accent-deep: #D4D4D4;   /* legacy: callout borders stay neutral */

  /* Ice — secondary / informational. 800 for text on light, 500 as a fill. */
  --cyan: #08748E;
  --cyan-fill: #59E0FF;
  --cyan-soft: #E4F9FF;

  /* Functional — feedback only. Darkened for legible text on light. */
  --amber: #9A6700;
  --amber-fill: #FFC94D;
  --amber-soft: #FFF4D6;
  --rust: #B42318;
  --rust-fill: #FF7A70;
  --rust-soft: #FFE9E6;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --display: 'Outfit', ui-sans-serif, system-ui, sans-serif;

  --ease-swift: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink-dim);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

deck-stage { background: #080808; }

deck-stage > section {
  background: var(--bg);
  color: var(--ink-dim);
  font-family: var(--sans);
  overflow: hidden;
  position: relative;
}

/* === Persistent chrome on every slide === */
.chrome-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  z-index: 5;
  background: var(--bg);
}
.chrome-top .path { letter-spacing: 0.02em; }
.chrome-top .path .slash { color: var(--line-2); }
.chrome-top .path .leaf { color: var(--ink-dim); }

.chrome-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 46px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: 17px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  z-index: 5;
  background: var(--bg);
}

/* === Main content area ===
   Most slides have no chrome-top now, so content claims the full top of the canvas.
   The cover slide keeps its chrome-top (terminal prompt) and restores the 50px reservation inline. */
.content {
  position: absolute;
  inset: 0 0 46px 0;
  padding: 64px 100px 54px 100px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content img {
  filter: drop-shadow(0 8px 24px rgba(23, 23, 23, 0.14));
}

/* === Dark-mode slide override — for slides built around a dark-UI screenshot === */
section.dark-slide {
  --bg: #121317;
  --bg-2: #1C1E24;
  --bg-3: #26282F;
  --ink: #F5F5F5;
  --ink-dim: #C9C9CC;
  --ink-faint: #85868C;
  --line: #2B2D33;
  --line-2: #3C3E46;
  --accent: #4FE3A3;
  --accent-dim: #4FE3A3;
  --accent-soft: rgba(79, 227, 163, 0.12);
  --cyan: #59E0FF;
}
section.dark-slide .content img {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

/* === Typography === */
.eyebrow {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '›';
  font-weight: 700;
}

h1.slide-title {
  font-family: var(--display);
  font-size: 84px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 44px;
  text-wrap: balance;
}
h1.slide-title .g { color: var(--accent); }
h1.slide-title em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.82em;
  letter-spacing: -0.01em;
}

h2.slide-title {
  font-family: var(--display);
  font-size: 68px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 34px;
  text-wrap: balance;
}
h2.slide-title .g { color: var(--accent); }

.lede {
  font-family: var(--sans);
  font-size: 32px;
  line-height: 1.4;
  color: var(--ink-dim);
  max-width: 56ch;
  font-weight: 400;
  text-wrap: pretty;
}
.lede strong { color: var(--ink); font-weight: 600; }

.kicker {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* === Bullet rows: terminal-list look === */
.term-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 12px;
}
.term-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: baseline;
  column-gap: 22px;
  font-size: 34px;
  line-height: 1.38;
  color: var(--ink);
  max-width: 58ch;
  text-wrap: pretty;
}
.term-list li::before {
  content: '›';
  font-family: var(--mono);
  color: var(--accent);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}
.term-list li .dim { color: var(--ink-dim); }
.term-list li code,
.term-list li .mono {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.92em;
}

/* === Backup setup and recovery example === */
.backup-sequence {
  list-style: none;
  counter-reset: backup-step;
  display: flex;
  flex-direction: column;
}
.backup-sequence li {
  counter-increment: backup-step;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line-2);
}
.backup-sequence li::before {
  content: counter(backup-step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 34px;
  line-height: 1.2;
  color: var(--accent);
}
.backup-sequence h2 {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}
.backup-sequence p { font-size: 28px; line-height: 1.4; }
.backup-note {
  margin-top: auto;
  padding-top: 28px;
  font-size: 28px;
  line-height: 1.4;
  color: var(--accent);
}
.backup-restore {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.backup-restore img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: contain;
  object-position: top left;
}
.backup-restore figcaption {
  font-size: 24px;
  line-height: 1.4;
  margin-top: 12px;
}

/* === Section dividers === */
.divider {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 96px;
  height: 100%;
  position: relative;
}
.divider .num {
  font-family: var(--mono);
  font-size: 340px;
  font-weight: 700;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px var(--line-2);
  letter-spacing: -0.04em;
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
}
.divider .num-solid {
  font-family: var(--mono);
  font-size: 160px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.divider .label {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.divider .title {
  font-family: var(--display);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 16ch;
  text-wrap: balance;
  position: relative;
  z-index: 2;
}
.divider .title span[style*="--accent"], .divider .title .g { color: var(--accent); }
.divider .sub {
  font-family: var(--sans);
  font-size: 30px;
  color: var(--ink-dim);
  margin-top: 28px;
  max-width: 56ch;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

/* === Tool chip === */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.chip::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-fill);
}
.chip.amber::before { background: var(--amber-fill); }
.chip.cyan::before { background: var(--cyan-fill); }
.chip.rust::before { background: var(--rust-fill); }
.chip.dim { color: var(--ink-dim); border-color: var(--line); }
.chip.dim::before { background: var(--line-2); }

/* === Cards === */
.card {
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  border-radius: 0;
  padding: 28px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card .card-title {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.card .card-title .g { color: var(--accent); }
.card .card-sub {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.card .card-body {
  font-size: 27px;
  line-height: 1.45;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.card .card-body strong { color: var(--ink); font-weight: 600; }

.card.feature::after {
  content: '';
  position: absolute;
  left: -1px; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--accent);
}

/* === Grids === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 18px; }

/* === Ascii-ish framing === */
.frame-label {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* === Prompt bars === */
.prompt {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.prompt .p { color: var(--accent); }
.prompt .c {
  display: inline-block;
  width: 9px; height: 18px;
  background: var(--accent);
  margin-left: 4px;
  animation: blink2 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink2 { 50% { opacity: 0; } }

/* === Background grid watermark === */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23,23,23,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,23,23,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 40%, transparent 100%);
}

/* === Cover glow — retired. The site allows no glows or gradients on UI. === */
.brand-glow { display: none; }

/* === Cover-specific === */
.cover-ascii {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.1;
  color: var(--line-2);
  white-space: pre;
  letter-spacing: 0;
}

/* === Closing slide === */
.closing-title {
  font-family: var(--display);
  font-size: 280px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.closing-title .g { color: var(--accent); }

/* === Starting a homelab: hardware options and platform comparisons === */
.intro-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 20px; }
.cost-note { border-left: 2px solid var(--line-2); padding-left: 48px; }
.cost-note h2 { font-family: var(--display); font-size: 42px; color: var(--accent); margin-bottom: 28px; }
.cost-note p { font-size: 32px; line-height: 1.5; margin-bottom: 28px; }
.cost-note .cost-takeaway { color: var(--ink); font-weight: 600; }
figcaption { font-size: 25px; line-height: 1.4; color: var(--ink-dim); margin-top: 18px; }
.starter-options { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; margin-top: 72px; margin-bottom: 42px; }
.starter-options strong { display: block; font-family: var(--display); font-size: 38px; color: var(--ink); margin-bottom: 10px; }
.starter-options span { font-size: 28px; line-height: 1.4; }
.hardware-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.hardware-checks dt { color: var(--accent); font-family: var(--mono); font-size: 25px; margin-bottom: 10px; }
.hardware-checks dd { font-size: 27px; line-height: 1.4; }
.resource-line { font-family: var(--mono); font-size: 25px; line-height: 1.5; color: var(--ink-dim); margin-top: 42px; }

/* === "Other options" logo strip === */
.option-logos { display: flex; align-items: flex-end; gap: 52px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.option-logos div { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.option-logos img { height: 52px; width: auto; display: block; }
.option-logos span { font-family: var(--mono); font-size: 19px; color: var(--ink-faint); letter-spacing: 0.02em; }
.foundation-table { width: 100%; border-collapse: collapse; margin-top: 12px; color: var(--ink); }
.foundation-table th, .foundation-table td { text-align: left; vertical-align: middle; padding: 32px 26px; border-bottom: 1px solid var(--line-2); font-size: 32px; line-height: 1.4; }
.foundation-table thead th { font-family: var(--mono); font-size: 24px; font-weight: 400; color: var(--ink-dim); padding-top: 0; padding-bottom: 18px; }
.foundation-table tbody th { font-family: var(--display); font-size: 36px; width: 31%; }
.foundation-table td:last-child { width: 24%; }
.foundation-table .chosen-platform { background: var(--accent-soft); }
.foundation-table .chosen-platform th, .foundation-table .chosen-platform td:last-child { color: var(--accent); }
.foundation-choice { margin-top: 44px; max-width: 72ch; }
.proxmox-layout { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 40px; align-items: center; margin-top: 10px; }
.proxmox-layout img { width: 100%; max-height: 620px; object-fit: contain; display: block; }
.workload-table td:last-child { width: 30%; }
.host-summary { display: flex; align-items: center; gap: 48px; border-top: 3px solid var(--accent); margin-top: 52px; padding-top: 30px; color: var(--ink); }
.host-summary strong { font-family: var(--display); font-size: 36px; white-space: nowrap; }
.host-summary span { font-size: 30px; line-height: 1.4; }
.netbird-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.netbird-intro figcaption { font-size: 24px; }

/* Print rules handled by deck-stage */

/* === Stack overview, private connection paths, and closing recap === */
.resource-line a { color: var(--accent); text-underline-offset: 5px; }
.stack-overview, .stack-recap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 72px;
  row-gap: 26px;
}
.stack-overview > div, .stack-recap > div {
  border-top: 1px solid var(--line-2);
  padding-top: 20px;
}
.stack-overview dt, .stack-recap dt {
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 12px;
}
.stack-overview dd {
  font-family: var(--display);
  font-size: 42px;
  line-height: 1.2;
  color: var(--ink);
}
.stack-recap dd { font-size: 32px; line-height: 1.4; color: var(--ink); }
.stack-recap dd span { color: var(--ink-dim); }
.recap-slide h1.slide-title { margin-bottom: 28px; }
.recap-takeaway {
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--display);
  font-size: 44px;
  line-height: 1.15;
  color: var(--ink);
}
.recap-takeaway span { color: var(--accent); }
.connection-slide { padding: 56px 80px 50px; }
.connection-slide .eyebrow { margin-bottom: 16px; }
.connection-slide h1.slide-title { font-size: 64px; margin-bottom: 22px; max-width: none; }
.connection-map { margin: 0; }
.connection-map svg { display: block; width: 100%; height: 580px; }
.connection-map rect { stroke: var(--line-2); stroke-width: 2; }
.connection-map .coordination-node { fill: var(--bg-2); }
.connection-map .peer-node { fill: var(--accent-soft); }
.connection-map .relay-node { fill: var(--cyan-soft); }
.connection-map text { text-anchor: middle; fill: var(--ink); font-family: var(--sans); }
.connection-map .node-title { font-family: var(--display); font-size: 36px; font-weight: 700; }
.connection-map .node-detail { font-size: 26px; }
.connection-map .line-label { font-size: 28px; }
.connection-map .muted { fill: var(--ink-dim); }
.connection-map .direct-label { fill: var(--accent); font-weight: 600; }
.connection-map .relay-label { fill: var(--cyan); }
.connection-map .coordination-line { fill: none; stroke: var(--ink-faint); stroke-width: 3; }
.connection-map .direct-line { fill: none; stroke: var(--accent); stroke-width: 4; }
.connection-map .relay-line { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-dasharray: 12 8; }
.connection-map figcaption { margin-top: 12px; text-align: center; font-size: 28px; }
.connection-reading { display: none; }
.netbird-map svg { height: auto; overflow: visible; }
.netbird-map .local-label { text-anchor: end; }
.selfhost-slide { padding: 56px 1050px 46px 80px; }
.selfhost-copy { display: flex; flex: 1; align-items: center; }
.selfhost-slide .term-list li { font-size: 30px; }
.selfhost-install { position: absolute; top: 0; right: 0; width: 52%; height: 100%; margin: 0; }
.selfhost-install img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top right; filter: drop-shadow(-12px 0 24px rgba(23, 23, 23, 0.18)); }
