@font-face {
  font-family: Manrope;
  src: url(../fonts/xn7_YHE41ni1AdIRqAuZuw1Bx9mbZk79FO_F.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(../fonts/xn7_YHE41ni1AdIRqAuZuw1Bx9mbZk4jE-_F.ttf) format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(../fonts/xn7_YHE41ni1AdIRqAuZuw1Bx9mbZk4aE-_F.ttf) format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fafbf8;
  --ink: #202c29;
  --muted: #60716b;
  --line: #d6dfd8;
  --green: #227653;
  --reading-size: 20px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:hover:not(:disabled) {
  background: #eaf0e7;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #227653;
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  padding: 12px;
  background: var(--paper);
  z-index: 10;
}
.skip:focus {
  top: 8px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 744px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-height: 48px;
}
.brand-mark {
  font-size: 28px;
  border: 1px solid #9eb3a5;
  width: 38px;
  height: 41px;
  border-radius: 8px 2px 8px 2px;
  text-align: center;
  font-weight: 700;
}
.brand b {
  font-size: 11px;
  letter-spacing: 1px;
  display: block;
}
.brand small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
  color: var(--muted);
}
.type-controls {
  display: flex;
  gap: 6px;
}
.type-controls button {
  width: 46px;
  font-size: 17px;
  font-weight: 600;
}
.progress {
  height: 2px;
  background: var(--line);
}
.progress span {
  display: block;
  background: var(--green);
  height: 100%;
  width: 7.1429%;
}
#reader {
  max-width: 700px;
  margin: auto;
  padding: 28px 24px calc(124px + env(safe-area-inset-bottom));
  overflow-wrap: anywhere;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.1px;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(29px, 6.4vw, 40px);
  line-height: 1.17;
  letter-spacing: -1px;
  margin: 0 0 8px;
  outline: none;
  font-weight: 600;
}
.view-slide {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 13px;
  margin-bottom: 18px;
}
.note-body {
  font-size: var(--reading-size);
  line-height: 1.8;
}
.note-body > h2 {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 15px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.note-body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border: 0;
}
.note-body p {
  margin: 0 0 1.15em;
}
.note-body strong {
  font-weight: 700;
}
.note-body code {
  font-size: 0.88em;
  background: #edf1e9;
  padding: 2px 4px;
  border-radius: 3px;
}
.cue,
.transition {
  margin: 30px 0;
  padding: 18px 20px;
  border-left: 3px solid #a76819;
  background: #f5f0e5;
}
.transition {
  border-color: #227653;
  background: #edf2e9;
}
.cue h2,
.transition h2 {
  font-size: 12px;
  letter-spacing: 0.6px;
  line-height: 1.5;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.cue p,
.transition p {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.75;
}
.beat-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}
.beat-list li {
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
}
.beat-number {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.7px;
  font-weight: 700;
  color: var(--green);
  padding: 5px 9px;
  background: #e8efe5;
  margin-bottom: 12px;
  border-radius: 4px;
}
.beat-list p {
  margin-bottom: 12px;
}
.reader-footer {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 20px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.reader-footer a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}
.credits {
  margin-top: 22px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-inner {
  max-width: 700px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  padding: 10px 16px;
}
.bottom-inner button {
  min-height: 56px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
}
.bottom-inner .slide-switch {
  background: var(--green);
  border-color: var(--green);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.slide-switch span:first-child {
  font-size: 11px;
  letter-spacing: 1px;
}
.slide-switch span:last-child {
  font-size: 13px;
}
.bottom-inner .slide-switch:hover {
  background: #185f41;
}
dialog {
  position: fixed;
  width: min(520px, calc(100% - 24px));
  max-height: 88dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 70px #162d2930;
}
dialog::backdrop {
  background: #162d2970;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.7px;
  margin: 0;
}
.dialog-head .eyebrow {
  font-size: 10px;
  margin-bottom: 7px;
}
.dialog-head button {
  width: 48px;
  font-size: 28px;
  flex-shrink: 0;
}
#slide-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: calc(88dvh - 112px);
  padding: 8px 12px calc(14px + env(safe-area-inset-bottom));
}
#slide-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  text-align: left;
  gap: 12px;
  min-height: 66px;
  padding: 12px;
  border-color: transparent;
  border-bottom-color: var(--line);
  border-radius: 5px;
}
#slide-list button[aria-current='page'] {
  background: #eaf1e5;
  border-color: #acc5ad;
}
#slide-list .number {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
#slide-list strong {
  font-size: 14px;
  display: block;
  font-weight: 600;
}
#slide-list small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: block;
  margin-top: 3px;
}
.noscript {
  padding: 30px;
}
@media (max-width: 480px) {
  dialog {
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    margin: 0;
    inset: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
  #reader {
    padding-left: 22px;
    padding-right: 22px;
  }
  .topbar-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 350px) {
  .brand small {
    font-size: 10px;
  }
  .brand {
    gap: 7px;
  }
  .type-controls {
    gap: 4px;
  }
  .topbar-inner {
    gap: 8px;
  }
  .type-controls button {
    width: 44px;
  }
  #reader {
    padding-left: 18px;
    padding-right: 18px;
  }
  .bottom-inner {
    padding-left: 10px;
    padding-right: 10px;
  }
  .bottom-inner button {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  .topbar,
  .bottom-nav,
  .view-slide,
  .reader-footer {
    display: none;
  }
  #reader {
    padding: 0;
    max-width: none;
  }
  .note-body {
    font-size: 12pt;
  }
}
