/* emo-science.de: black end card from the video, white handwriting. */
@font-face {
  font-family: "Hand Fallback";
  src: url("/assets/fonts/hand.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --fg: #fff;
  --muted: #8f8f8f;
  --line: #333;
  /* Segoe Print is the font of the original end card and ships with Windows. Other systems get a free look-alike. */
  --hand: "Segoe Print", "Hand Fallback", "Comic Sans MS", cursive;
  --sans: Verdana, "DejaVu Sans", Geneva, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #000;
  color: var(--fg);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
}

.hand { font-family: var(--hand); font-weight: 400; }

.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vh, 2.5rem);
  padding: clamp(2rem, 7vh, 5rem) 1.25rem 2rem;
  text-align: center;
}

h1 { margin: 0; line-height: 0; }

.hero {
  display: block;
  width: min(92vw, 820px);
  height: auto;
}

.url {
  margin: 0;
  font-size: clamp(1.15rem, 4vw, 2.1rem);
  letter-spacing: 0.01em;
}

.lost {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.lost code { color: var(--fg); font-family: inherit; }

.video {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  margin: clamp(0.5rem, 3vh, 2rem) 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d0d;
  color: var(--fg);
  font: inherit;
  overflow: hidden;
}

button.video {
  display: grid;
  place-items: center;
  cursor: pointer;
}

button.video:hover,
button.video:focus-visible {
  border-color: var(--fg);
  outline: none;
}

.video-title {
  position: absolute;
  top: 7%;
  left: 5%;
  right: 5%;
  font-size: clamp(1.05rem, 3.4vw, 1.75rem);
  line-height: 1.3;
}

.play {
  width: clamp(64px, 14vw, 92px);
  aspect-ratio: 1;
  border: 3px solid var(--fg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}

.play::after {
  content: "";
  margin-left: 12%;
  border-left: clamp(20px, 4.4vw, 28px) solid var(--fg);
  border-top: clamp(12px, 2.7vw, 17px) solid transparent;
  border-bottom: clamp(12px, 2.7vw, 17px) solid transparent;
}

button.video:hover .play { transform: scale(1.08); }

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.note {
  margin: -0.4rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.share {
  margin-top: 0.25rem;
  padding: 0.45rem 1.5rem 0.6rem;
  border: 2px solid var(--fg);
  border-radius: 999px;
  background: none;
  color: var(--fg);
  font-size: 1.2rem;
  cursor: pointer;
}

.share:hover,
.share:focus-visible {
  background: var(--fg);
  color: #000;
  outline: none;
}

a { color: var(--fg); }
.note a, footer a { color: var(--muted); }

footer {
  padding: 1.25rem 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.legal {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal h1 {
  margin-bottom: 1rem;
  font-family: var(--hand);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.2;
}

.legal h2 {
  margin: 2rem 0 0.4rem;
  font-size: 1.05rem;
}

.legal ul { padding-left: 1.25rem; }
