:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #172033;
  --line: #d8e0ea;
  --surface: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.12),
    0 0 0 1px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

#vanta-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

html {
  height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  background: transparent;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page-shell {
  display: grid;
  width: min(100% - 24px, calc((100vh - 96px) * 0.69));
  height: 100vh;
  grid-template-rows: 52px auto;
  align-content: center;
  gap: 6px;
  margin: 0 auto;
  padding: 12px 0 18px;
}

.download-hint {
  position: relative;
  width: 100%;
  height: 52px;
  justify-self: stretch;
  align-self: end;
  color: var(--ink);
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  pointer-events: none;
  z-index: 2;
}

.download-hint span {
  position: absolute;
  bottom: 8px;
  right: 68px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-3deg);
}

.download-hint svg {
  position: absolute;
  right: 40px;
  bottom: -9px;
  width: 37px;
  height: 33px;
  overflow: visible;
}

/* Taller windows show the full PDF toolbar, so the download button sits
   further from the right edge — push the hint out to keep the arrow on it. */
@media (min-height: 780px) {
  .download-hint span {
    right: 118px;
  }

  .download-hint svg {
    right: 92px;
  }
}

.arrow-line,
.arrow-head {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.resume-panel {
  position: relative;
  z-index: 1;
  height: calc((100vh - 96px) * 0.8924 + 44px);
  max-height: calc(100vh - 96px);
  overflow: hidden;
  min-height: 0;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.resume-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: var(--surface);
}

.resume-image {
  display: none;
  width: 100%;
  height: auto;
}

/* Subtle glass glare sweeping across the preview. */
.resume-panel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 38%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.18) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-12deg) translateX(-200%);
  animation: glass-shine 3s ease-in-out infinite;
}

@keyframes glass-shine {
  0% {
    transform: skewX(-12deg) translateX(-200%);
  }
  20% {
    transform: skewX(-12deg) translateX(360%);
  }
  40%,
  100% {
    transform: skewX(-12deg) translateX(-200%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .resume-panel::after {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100% - 24px, calc((100dvh - 32px) * 0.7735));
    height: auto;
    min-height: 100dvh;
    padding: 16px 0;
  }

  .download-hint {
    display: none;
  }

  .resume-frame {
    display: none;
  }

  .resume-image {
    display: block;
  }

  .resume-panel {
    width: 100%;
    height: auto;
    max-height: none;
  }
}
