#cover {
  --cover-ground: var(--wine);
  --cover-ink: var(--paper);
  --cover-detail: #f9e4df;
  --cover-rule: #aa6978;
  --cover-gutter: clamp(22px, 5.2vw, 94px);
  --cover-copy-size: clamp(2.9rem, 6.65vw, 6rem);
  background: var(--paper);
}

#cover .cover-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  row-gap: clamp(28px, 4.4svh, 55px);
  min-height: calc(100svh - var(--header));
  padding: clamp(38px, 6.5svh, 75px) 0 24px;
  background: var(--cover-ground);
  color: var(--cover-ink);
}

#cover .hero-copy {
  container-type: normal;
  width: min(100% - 2 * var(--cover-gutter), 69rem);
  min-width: 0;
  padding: 0;
  text-align: center;
}

#cover .cover-edition {
  margin: 0 0 .95em;
  color: var(--cover-detail);
  font-size: clamp(.84rem, 1.08vw, .98rem);
  font-weight: 520;
  line-height: 1.5;
}

#cover #title {
  margin: 0;
  color: var(--cover-ink);
  font-size: var(--cover-copy-size);
  font-weight: 720;
  line-height: 1.07;
  letter-spacing: -.036em;
  white-space: normal;
  text-wrap: balance;
}

#cover #title > span { display: inline-block; }

#report #cover .hero-lede {
  max-width: 37em;
  margin: clamp(13px, 2.2svh, 23px) auto 0;
  color: var(--cover-detail);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 440;
  line-height: 1.55;
  text-wrap: balance;
}

#cover .cover-word { white-space: nowrap; }

#cover .hero-actions {
  justify-content: center;
  gap: 6px clamp(13px, 1.65vw, 26px);
  margin-block-start: clamp(14px, 2.5svh, 26px);
}

#cover .hero-actions :is(.primary, .quiet) {
  min-height: 43px;
  padding: .48em 1.12em;
  border-radius: 100vw;
  font-size: .92rem;
  font-weight: 650;
  transition: background-color .18s ease, color .18s ease;
}

#cover .hero-actions .primary {
  background: var(--peach);
  border-color: var(--peach);
  color: var(--deep);
}

#cover .hero-actions .primary:hover {
  background: #ffddc9;
  border-color: #ffddc9;
}

#cover .hero-actions .quiet {
  padding-inline: .22em;
  background: transparent;
  border-color: #dba7a9;
  color: var(--cover-ink);
}

#cover .hero-actions .quiet:hover {
  color: var(--peach);
  text-decoration: underline;
  text-underline-offset: .26em;
}

#cover .play-start svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

#cover .cover-visual {
  width: min(100% - 2 * var(--cover-gutter), 91rem);
  min-width: 0;
  margin: 0;
  align-self: center;
}

#cover .cover-notes {
  --note-rise: clamp(21px, 3.25vw, 52px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: clamp(13px, 2.45vw, 37px);
  align-items: start;
  min-width: 0;
  margin: 0;
  padding: 12px 0 18px;
  list-style: none;
}

#cover .cover-notes > li {
  min-width: 0;
  margin-block-start: calc(var(--note-rise) * var(--note-offset));
}

#cover .cover-notes > :nth-child(1) {
  --note-offset: 1;
  --note-tilt: -11deg;
  --note-time: 8.1s;
  --note-phase: -1.8s;
  --note-image-width: 105.24%;
  --note-image-top: -1.43%;
}

#cover .cover-notes > :nth-child(2) {
  --note-offset: .42;
  --note-tilt: -6deg;
  --note-time: 9.5s;
  --note-phase: -4.4s;
  --note-image-width: 103.81%;
  --note-image-top: -1.42%;
}

#cover .cover-notes > :nth-child(3) {
  --note-offset: .07;
  --note-tilt: -1.8deg;
  --note-time: 7.9s;
  --note-phase: -.7s;
  --note-image-width: 104.74%;
  --note-image-top: -1.42%;
}

#cover .cover-notes > :nth-child(4) {
  --note-offset: 0;
  --note-tilt: 2.5deg;
  --note-time: 10.2s;
  --note-phase: -6.5s;
  --note-image-width: 105.29%;
  --note-image-top: -3.22%;
}

#cover .cover-notes > :nth-child(5) {
  --note-offset: .52;
  --note-tilt: 6.2deg;
  --note-time: 9s;
  --note-phase: -2.3s;
  --note-image-width: 104.29%;
  --note-image-top: -3.56%;
}

#cover .cover-notes > :nth-child(6) {
  --note-offset: 1.13;
  --note-tilt: 10.2deg;
  --note-time: 8.6s;
  --note-phase: -5.1s;
  --note-image-width: 104.76%;
  --note-image-top: -3.91%;
}

#cover .cover-note {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  border-radius: .65rem;
  cursor: zoom-in;
  touch-action: manipulation;
}

#cover .cover-note:focus-visible { outline: 2px solid var(--peach); outline-offset: 6px; }

#cover .cover-note-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: clamp(8px, .83vw, 15px);
  background: #f0eae6;
  box-shadow: 0 1px 2px #32101b43, 0 10px 24px -12px #32101b82;
  transform: rotate(var(--note-tilt));
  transform-origin: 50% 78%;
}

#cover .cover-note img {
  position: absolute;
  inset: var(--note-image-top) auto auto 50%;
  display: block;
  width: var(--note-image-width);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: no-preference) {
  #cover .cover-note-frame {
    animation: cover-note-breeze var(--note-time) var(--note-phase) infinite ease-in-out paused;
  }

  #cover .cover-visual[data-cover-live] .cover-note-frame { animation-play-state: running; }

  #cover .cover-visual[data-cover-live] .cover-note:is(:hover, :focus-visible) .cover-note-frame,
  body:has(#evidence-dialog[open]) #cover .cover-visual[data-cover-live] .cover-note-frame {
    animation-play-state: paused;
  }
}

@keyframes cover-note-breeze {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--note-tilt)); }
  32% { transform: translate3d(1.2px, -4px, 0) rotate(calc(var(--note-tilt) + 1.25deg)); }
  60% { transform: translate3d(-.75px, -1px, 0) rotate(calc(var(--note-tilt) - .8deg)); }
  81% { transform: translate3d(.45px, 1.3px, 0) rotate(calc(var(--note-tilt) + .35deg)); }
}

#cover .cover-gallery-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  gap: 7px;
  color: var(--cover-detail);
  font-size: .82rem;
  line-height: 1.35;
}

#cover .cover-motion-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--cover-detail);
  background: transparent;
}

#cover .cover-motion-toggle svg { width: 1em; height: 1em; fill: currentColor; }

#cover .cover-motion-toggle:hover {
  color: var(--cover-ink);
  background: #8b3349;
}

#cover .cover-motion-toggle[aria-pressed="true"] .cover-play-icon,
#cover .cover-motion-toggle[aria-pressed="false"] .cover-pause-icon { display: none; }

#cover .cover-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  width: min(100% - 2 * var(--cover-gutter), 91rem);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--cover-rule);
  color: var(--cover-detail);
  font-size: .83rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

#cover .cover-proof {
  display: inline-flex;
  align-items: baseline;
  gap: .7em;
  text-decoration: none;
}

#cover .cover-proof strong {
  color: var(--peach);
  font-size: 1.35em;
  font-weight: 690;
  white-space: nowrap;
}

#cover .cover-proof:hover span {
  color: var(--peach);
  text-decoration: underline;
  text-underline-offset: .24em;
}

#cover .cover-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 1.1em;
  margin: 0;
}

#cover .report-outline {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

#cover .report-outline a { min-height: 54px; border-color: var(--line); }
#cover .report-outline a::before { font-weight: 600; }

body:has(.chapter-chip[href="#cover"][aria-current]) .chapter-rail,
body:not(.player-open):has(.chapter-chip[href="#cover"][aria-current]) .presenter-card {
  display: none;
}

@media (max-width: 700px) {
  body:not(.meeting-open) #cover .cover-main { row-gap: 22px; min-height: 0; }
  body:not(.meeting-open) #cover .cover-visual { max-width: 29rem; }
  body:not(.meeting-open) #cover .cover-notes {
    --note-rise: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px clamp(8px, 3vw, 18px);
    padding: 4px 0 8px;
  }
  body:not(.meeting-open) #cover .cover-notes > li { --note-tilt: var(--mobile-tilt, 0deg); }
  body:not(.meeting-open) #cover .cover-notes > :nth-child(3n + 1) { --mobile-tilt: -2.8deg; }
  body:not(.meeting-open) #cover .cover-notes > :nth-child(3n) { --mobile-tilt: 2.5deg; }
  body:not(.meeting-open) #cover .cover-foot { padding-top: 9px; }
}

@media (max-width: 460px) {
  body:not(.meeting-open) #cover { --cover-copy-size: clamp(2.8rem, 12vw, 3.45rem); }
  body:not(.meeting-open) #cover #title > span { display: block; }
  body:not(.meeting-open) #cover #title > wbr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #cover .hero-actions :is(.primary, .quiet) { transition: none; }
}
