@import url("./reveals.css");
@import url("./identity.css");

:root {
  --paper: #fffdf8;
  --ink: #232723;
  --muted: #657064;
  --accent: #e5eadf;
  --body-font: Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  font:
    18px/1.6 Georgia,
    serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.intro,
main,
.end {
  width: min(100% - 3rem, 60rem);
  margin: auto;
}
.intro {
  padding: 4rem 0 3rem;
  border-bottom: 3px solid;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.08;
  max-width: 20ch;
  font-weight: normal;
}
h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.2;
}
.eyebrow {
  font: 0.75rem/1.5 monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
a:hover {
  color: #42652c;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin: 2rem 0;
}
button {
  font: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #42652c;
  outline-offset: 5px;
}
.slide {
  padding: 3rem 0;
  border-bottom: 1px solid #c9cec3;
  scroll-margin-top: 1rem;
}
.slide img {
  display: block;
  max-width: 100%;
  max-height: 30rem;
  object-fit: contain;
  margin: 1.5rem 0;
}
.slide svg {
  max-width: 100%;
  height: auto;
}
.slide footer,
.activity,
.end {
  font-size: 0.85rem;
  color: #505a4d;
}
.slide footer {
  margin-top: 2rem;
}
.end {
  padding: 3rem 0;
}
pre {
  overflow: auto;
  padding: 1rem;
  background: #f0f0e9;
  font-size: 0.85rem;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #c9cec3;
  padding: 0.65rem;
  overflow-wrap: anywhere;
}
li {
  margin-bottom: 0.6rem;
}
[id^="reference-"]:target {
  background: #e5eadf;
}
@media print {
  :root {
    color: #202020;
    background: white;
    font:
      11pt/1.45 Georgia,
      serif;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .intro,
  main,
  .end {
    width: 100%;
  }
  button,
  nav {
    display: none;
  }
  .intro {
    padding: 28mm 0 12mm;
    break-after: page;
    border-bottom: 2pt solid #232723;
  }
  h1 {
    font-size: 34pt;
    line-height: 1.1;
    max-width: 20ch;
  }
  h2 {
    font-size: 21pt;
    line-height: 1.15;
    margin: 3mm 0 5mm;
    break-after: avoid;
  }
  h3 {
    font-size: 13pt;
    break-after: avoid;
  }
  p,
  li {
    orphans: 3;
    widows: 3;
  }
  .slide {
    break-inside: avoid;
    padding: 8mm 0;
    border-bottom: 0.5pt solid #b8bdb5;
  }
  .slide-title {
    break-before: page;
  }
  .slide-references {
    break-inside: avoid;
  }
  .eyebrow {
    font-size: 8pt;
    margin: 0;
    break-after: avoid;
  }
  .slide footer {
    margin-top: 4mm;
    font-size: 8.5pt;
    break-before: avoid;
  }
  .slide img {
    max-height: 100mm;
    max-width: 100%;
    margin: 5mm auto;
    break-inside: avoid;
  }
  .slide svg {
    max-height: 110mm;
    width: 100%;
    break-inside: avoid;
  }
  .mermaid-graphic {
    break-inside: avoid;
  }
  pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow: visible;
    font-size: 9pt;
    padding: 4mm;
  }
  table {
    font-size: 10pt;
  }
  thead {
    display: table-header-group;
  }
  tr,
  li {
    break-inside: avoid;
  }
  a {
    text-decoration: underline;
  }
  .end {
    display: none;
  }
  @page {
    size: A4;
    margin: 16mm 18mm 20mm;
  }
}
