:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #48253b;
  background: #fff5f8;
  --accent: #a92c66;
  --line: #e6c2d2;
  --muted: #80536a;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .38; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }

.landing {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1112px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 58px) 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.heading { text-align: center; margin-bottom: 26px; }
.summary { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 9px; }
h1 { margin: 0; font-size: clamp(30px, 4.6vw, 46px); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
.cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 944px);
  aspect-ratio: 16 / 9;
  max-height: 54vh;
  max-height: 54dvh;
  margin: 0;
  background: #fffafd;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}
.cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cover-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 28px; font-size: 14px; line-height: 1.65; text-align: center; color: var(--muted); }
.actions { display: flex; gap: 14px; margin-top: 28px; justify-content: center; width: 100%; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 550;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease;
}
.action-primary { color: white; background: var(--accent); border-color: var(--accent); }
.action-primary:hover { background: #902256; border-color: #902256; }
.action-secondary { color: #682b4d; background: #fffafd; }
.action-secondary:hover { background: #f9e2ec; border-color: #cf8fad; }
.no-script { color: var(--muted); font-size: 14px; text-align: center; }

body.presenting { overflow: hidden; }
.viewer {
  position: fixed;
  z-index: 10;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: #fff6fa;
  background: #261b24;
  touch-action: pan-y;
}
.viewer:focus { outline: none; }
.viewer::backdrop { background: #261b24; }
.viewer:fullscreen { width: 100%; height: 100%; }
.viewer:-webkit-full-screen { width: 100%; height: 100%; }
.slide-frame { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.slide-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; user-select: none; }
.slide-message { max-width: 420px; margin: 24px; text-align: center; }
.slide-message p { font-size: 16px; line-height: 1.65; }
.slide-message .viewer-button { border: 1px solid #b78fa5; margin-top: 8px; }
.viewer-controls {
  position: absolute;
  z-index: 1;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 28px);
  padding: 7px;
  border: 1px solid #927187;
  border-radius: 12px;
  background: rgba(38, 27, 36, .96);
  transition: opacity .2s ease;
}
.viewer-controls.is-hidden { opacity: 0; pointer-events: none; }
.viewer-controls:focus-within, .viewer-controls:hover { opacity: 1; pointer-events: auto; }
.viewer-button { min-height: 44px; padding: 10px 14px; color: #fff6fa; background: transparent; border: 0; border-radius: 6px; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.viewer-button:hover:not(:disabled) { background: #54384a; }
.viewer-button:focus-visible { outline-color: #f4b8d1; outline-offset: 1px; }
.slide-counter { min-width: 62px; padding: 0 7px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.control-divider { width: 1px; height: 23px; background: #765d6e; margin: 0 4px; }
kbd { margin-left: 8px; color: #d4b9ca; font: inherit; font-size: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .landing { padding: 30px 20px; }
  .heading { margin-bottom: 23px; }
  .cover { max-height: none; }
  .actions { flex-direction: column; gap: 11px; margin-top: 23px; }
  .action { width: 100%; min-height: 56px; padding: 16px 18px; }
  .viewer-controls { gap: 1px; padding: 5px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .viewer-button { padding: 10px; font-size: 12px; }
  .slide-counter { min-width: 46px; padding: 0 4px; font-size: 12px; }
  .control-divider { margin: 0 3px; }
  kbd { display: none; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .landing { padding: 22px; }
  .heading { margin-bottom: 18px; }
  h1 { font-size: 30px; }
  .cover { max-height: 46vh; }
  .actions { margin-top: 18px; }
  .action { min-height: 48px; padding: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .action, .viewer-controls { transition: none; }
}
