/* Palette, type, shape and shadow decisions are explained in DESIGN.md. */

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
}

:root {
  --ink: #14171f;
  --cream: #fbf6ec;
  --paper: #ffffff;
  --cyan: #22d3ee;
  --amber: #ffc93c;
  --green: #1e7a34;
  --green-tint: #eaf7ec;
  --red: #b23a3a;
  --red-tint: #fdeded;

  --border-w: 3px;
  --border-w-sm: 2px;
  --shadow-off: 6px;
  --radius: 4px;

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --section-pad-y: clamp(2.5rem, 6vw, 6rem);
  --section-pad-x: clamp(1.25rem, 5vw, 4rem);
  --content-max: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* reserve room for the fixed bottom header so it never covers the last slide/footer */
  padding-bottom: 4.75rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ---------- focus & keyboard ---------- */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: top 0.15s ease;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- shared building blocks ---------- */

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cyan);
  border: var(--border-w-sm) solid var(--ink);
  border-radius: var(--radius);
  padding: 0.25rem 0.6rem;
}

.slide-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  max-width: 40ch;
}

.slide-kicker {
  margin-bottom: 1rem;
}

.slide-lede {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 62ch;
  color: var(--ink);
}

.hard-card {
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
}

.icon-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: var(--border-w-sm) solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge.fill-cyan { background: var(--cyan); }
.icon-badge.fill-amber { background: var(--amber); }

.icon-badge svg,
.icon-badge [data-lucide] {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--ink);
  stroke-width: 2.5;
}

/* ---------- header / progress ---------- */

.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--cream);
  border-top: var(--border-w) solid var(--ink);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--section-pad-x);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.brand__mark {
  background: var(--ink);
  color: var(--cream);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}

.dot-rail {
  display: none;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dot-rail button {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  border: var(--border-w-sm) solid var(--ink);
  background: var(--paper);
  padding: 0;
  cursor: pointer;
}

.dot-rail button[aria-current="true"] {
  background: var(--cyan);
}

.slide-counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--border-w-sm) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.icon-btn:hover,
.icon-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.icon-btn .material-symbols-outlined {
  font-size: 22px;
}

.icon-btn[aria-pressed="true"] {
  background: var(--cyan);
}

.progress-track {
  height: 3px;
  background: var(--ink);
  opacity: 0.15;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--cyan);
}

/* ---------- slide sections ---------- */

.slide {
  padding-block: var(--section-pad-y);
  border-bottom: var(--border-w) solid var(--ink);
}

.slide:last-of-type {
  border-bottom: none;
}

/* presentation mode: one slide fills the screen at a time, click/arrow-key
   through like the original deck, instead of the normal reading scroll. */

body.presenting {
  overflow: hidden;
}

body.presenting .site-footer {
  display: none;
}

body.presenting .slide {
  display: none;
  border-bottom: none;
}

body.presenting .slide.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 4.75rem);
  max-height: calc(100dvh - 4.75rem);
  overflow-y: auto;
}

/* reading mode can afford generous whitespace since people scroll at their
   own pace; presenting mode has a hard one-screen budget, so everything
   scales down instead of relying on the scroll fallback above. */

body.presenting {
  --section-pad-y: clamp(1rem, 2.5vw, 1.75rem);
  --section-pad-x: clamp(1rem, 4vw, 3rem);
}

body.presenting .slide-heading,
body.presenting .definition__statement {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
}

body.presenting .slide-lede {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  max-width: 68ch;
}

body.presenting .slide-kicker {
  margin-bottom: 0.5rem;
}

body.presenting .card-grid,
body.presenting .flow-row,
body.presenting .timeline,
body.presenting .split-cols,
body.presenting .assembly-steps,
body.presenting .agenda-list {
  gap: 0.75rem;
  margin-top: 1.1rem;
}

body.presenting .info-card,
body.presenting .concept-card {
  padding: 1rem;
  gap: 0.5rem;
}

body.presenting .info-card p,
body.presenting .concept-card p {
  font-size: 0.88rem;
}

body.presenting .info-card__photo {
  aspect-ratio: 16 / 9;
}

body.presenting .icon-badge {
  width: 2.25rem;
  height: 2.25rem;
}

body.presenting .icon-badge svg,
body.presenting .icon-badge [data-lucide] {
  width: 1.15rem;
  height: 1.15rem;
}

body.presenting .hero__title {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
}

body.presenting .ide-mock__editor {
  padding: 0.85rem 1.1rem;
}

body.presenting .ide-mock__editor pre {
  font-size: 0.78rem;
  line-height: 1.4;
}

body.presenting .ide-legend {
  margin-top: 1rem;
  gap: 0.6rem;
}

body.presenting .embed-frame {
  margin-top: 1.1rem;
  height: 40vh;
  min-height: 14rem;
  max-height: 20rem;
}

body.presenting .agenda-item {
  padding: 0.75rem;
}

.slide--dark {
  background: var(--ink);
  color: var(--cream);
}

.slide--dark .hard-card {
  background: #1f2330;
  border-color: var(--cream);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--cream);
}

.slide--dark .icon-badge {
  border-color: var(--cream);
}

.slide--dark .icon-badge svg,
.slide--dark .icon-badge [data-lucide] {
  stroke: var(--ink);
}

/* hero */

#slide-1 {
  padding-block: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: calc(100dvh - 4.75rem);
  padding-block: clamp(2rem, 6vw, 4rem);
  justify-content: center;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  max-width: 18ch;
}

.hero__title em {
  font-style: normal;
  color: var(--ink);
  background: var(--cyan);
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__lede {
  font-size: clamp(1rem, 2vw, 1.35rem);
  max-width: 48ch;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  border-top: var(--border-w-sm) solid var(--ink);
  padding-top: 1.5rem;
}

@media (min-width: 560px) {
  .hero__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.hero__meta dl {
  margin: 0;
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.hero__meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  opacity: 0.7;
}

.hero__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* agenda */

.agenda-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.agenda-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.agenda-item__text {
  min-width: 0;
}

.agenda-item__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  background: var(--amber);
  border: var(--border-w-sm) solid var(--ink);
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agenda-item__text {
  font-size: 1.05rem;
  font-weight: 500;
}

/* generic card grid */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.card-grid > * {
  min-width: 0;
}

@media (min-width: 640px) {
  .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .card-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.info-card {
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
}

.info-card h3 {
  font-size: 1.05rem;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--ink);
}

.slide--dark .info-card p {
  color: var(--cream);
  opacity: 0.85;
}

/* component flow (slide 5) */

.flow-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  align-items: stretch;
}

.flow-row > * {
  min-width: 0;
}

.flow-row .flow-card {
  flex: 1 1 0;
}

@media (min-width: 900px) {
  .flow-row {
    flex-direction: row;
  }

  .flow-row .flow-arrow {
    display: flex;
  }
}

.flow-arrow {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.flow-arrow [data-lucide] {
  width: 1.5rem;
  height: 1.5rem;
}

.flow-card {
  text-align: center;
  justify-items: center;
}

.flow-card .icon-badge {
  margin-bottom: 0.25rem;
}

/* definition slide */

.definition {
  display: grid;
  gap: 2.5rem;
}

.definition__statement {
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  max-width: 24ch;
}

.formula {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  padding: 1.5rem;
}

@media (min-width: 720px) {
  .formula {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.formula span {
  padding: 0.35rem 0.75rem;
  border: var(--border-w-sm) solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  max-width: 100%;
}

.formula .op {
  border: none;
  background: none;
  padding: 0;
  opacity: 0.6;
}

/* connectivity table */

.table-scroll {
  margin-top: 2rem;
  overflow-x: auto;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

table.conn-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
}

.conn-table th,
.conn-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: var(--border-w-sm) solid var(--ink);
  vertical-align: top;
}

.conn-table thead th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--cream);
}

.conn-table tbody tr:last-child td {
  border-bottom: none;
}

.conn-table .conn-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.conn-table .conn-name [data-lucide] {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.5;
}

/* timeline (alur) */

.timeline {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.timeline > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}

.timeline-step {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
}

.timeline-step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: var(--border-w-sm) solid var(--ink);
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* do / don't */

.split-cols {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.split-cols > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .split-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.status-col {
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.status-col--do {
  background: var(--green-tint);
  border-color: var(--green);
}

.status-col--dont {
  background: var(--red-tint);
  border-color: var(--red);
}

.status-col__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.status-col--do .status-col__title { color: var(--green); }
.status-col--dont .status-col__title { color: var(--red); }

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.status-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.98rem;
}

.status-list [data-lucide] {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  stroke-width: 2.5;
}

.status-col--do [data-lucide] { stroke: var(--green); }
.status-col--dont [data-lucide] { stroke: var(--red); }

/* resource cards with real links */

.resource-card {
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

a.resource-card:hover,
a.resource-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--shadow-off) + 2px) calc(var(--shadow-off) + 2px) 0 var(--ink);
}

.resource-card__link-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.6;
}

a.resource-card__link-label {
  text-decoration: none;
  display: inline-block;
}

a.resource-card__link-label:hover,
a.resource-card__link-label:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

/* live embed: only used where the source site actually allows framing */

.embed-frame {
  margin-top: 2rem;
  overflow: hidden;
  height: 60vh;
  min-height: 18rem;
  max-height: 34rem;
}

.embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.embed-footer {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.embed-footer p {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* photo cards: real product photos for boards and sensors */

.info-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--border-w-sm) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

.info-card__photo-credit {
  font-size: 0.7rem;
  opacity: 0.55;
  margin-top: -0.4rem;
}

/* board comparison: spec rows inside a photo card */

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--ink);
}

.spec-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.spec-list__label {
  font-weight: 600;
  opacity: 0.65;
}

.spec-list__value {
  font-weight: 700;
  text-align: right;
}

/* Arduino IDE mock diagram: an honest labeled illustration, not a real screenshot */

.ide-mock {
  margin-top: 2rem;
  overflow: hidden;
}

.ide-mock__toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--cream);
  border-bottom: var(--border-w) solid var(--ink);
}

.ide-mock__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: var(--border-w-sm) solid var(--cream);
}

.ide-mock__btn--verify { background: var(--green); }
.ide-mock__btn--upload { background: var(--cyan); }

.ide-mock__btn [data-lucide] {
  width: 1rem;
  height: 1rem;
  stroke: var(--ink);
  stroke-width: 3;
}

.ide-mock__filename {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0.8;
}

.ide-mock__editor {
  padding: 1.25rem;
  background: #1f2330;
  color: #d7ddf0;
  overflow-x: auto;
}

.ide-mock__editor pre {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.ide-mock__editor .cm {
  color: #7d8bb5;
}

.ide-mock__serial {
  padding: 0.85rem 1.25rem;
  background: var(--cream);
  border-top: var(--border-w) solid var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ide-mock__serial [data-lucide] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.ide-legend {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .ide-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ide-legend__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.92rem;
}

.ide-legend__item [data-lucide] {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  stroke-width: 2.5;
}

.ide-legend__item strong {
  font-family: var(--font-display);
}

/* citation: a formal sourced definition, distinct from the casual explanation above it */

.citation-box {
  margin: 1.5rem 0 0;
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.citation-box p {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
}

.citation-box cite {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

/* concept cards: mikrokontroler building blocks, no photo, icon-only */

.concept-card {
  padding: 1.5rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

/* assembly steps */

.assembly-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.assembly-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.25rem;
}

.assembly-steps__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--amber);
  border: var(--border-w-sm) solid var(--ink);
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assembly-steps p {
  font-size: 0.95rem;
  padding-top: 0.2rem;
}

.assembly-steps code,
.info-card code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
  font-size: 0.85rem;
}

/* closing */

.closing {
  text-align: left;
  display: grid;
  gap: 1.5rem;
}

.closing__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 22ch;
}

.closing__footer {
  border-top: var(--border-w-sm) solid var(--cream);
  padding-top: 1.5rem;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ---------- floating nav buttons ---------- */

.float-nav {
  position: fixed;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: calc(4.75rem + clamp(1rem, 4vw, 2.5rem));
  display: grid;
  gap: 0.6rem;
  z-index: 40;
}

/* ---------- site footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem var(--section-pad-x);
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--cyan);
}

/* ---------- print ---------- */

@media print {
  .site-header,
  .float-nav,
  .skip-link {
    display: none !important;
  }

  .slide {
    break-after: page;
    min-height: 0;
    padding: 1.5cm;
  }

  .hard-card {
    box-shadow: none;
  }

  body {
    background: #fff;
  }
}

@media (min-width: 720px) {
  .dot-rail {
    display: flex;
  }
}
