:root {
  --page-max-width: min(100vw - 24px, 760px);
  --surface: #faf7f2;
  --card: #ffffff;
  --ink: #171717;
  --muted: rgba(23, 23, 23, 0.66);
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.12);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f1ede5;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: 100%;
  max-width: calc(var(--page-max-width) + 32px);
  margin: 0 auto;
  padding: 12px 12px 48px;
}

.slides {
  display: grid;
  gap: 18px;
}

.slide-card {
  width: 100%;
}

.slide-frame {
  position: relative;
  width: min(100%, var(--page-max-width));
  margin: 0 auto;
  aspect-ratio: 1080 / 1920;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card,
.video-frame {
  position: absolute;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.video-card {
  cursor: pointer;
}

.video-thumb,
.video-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-frame iframe {
  border: 0;
}

.video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.36));
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.video-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: white;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.video-card:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.75);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  :root {
    --page-max-width: min(100vw - 12px, 760px);
    --radius: 18px;
  }

  .site-shell {
    padding: 6px 6px 28px;
  }
}
