:root {
  color-scheme: light;
  --background: #f7f7f4;
  --foreground: #171717;
  --muted: #5f666d;
  --panel: #ffffff;
  --line: #d9ded8;
  --accent: #196f5a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.intro {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  line-height: 0.95;
}

.lede {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.app-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.app-card:hover {
  border-color: var(--accent);
}

.app-card strong {
  font-size: 1.25rem;
}

.app-card span:last-child {
  color: var(--muted);
  line-height: 1.45;
}

.app-path {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--foreground);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.screensaver {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.08), transparent 20%),
    #050505;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.screensaver[data-active="true"] {
  opacity: 1;
  pointer-events: auto;
  cursor: none;
}

.screensaver__logo {
  position: absolute;
  left: 0;
  top: 0;
  width: min(200px, 42vw);
  aspect-ratio: 453 / 204;
  background: currentColor;
  color: #35f0a9;
  filter: drop-shadow(0 0 18px color-mix(in srgb, currentColor 72%, transparent));
  mask-image: url("/assets/dvd-logo-12d7a7e1.png");
  mask-mode: alpha;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  transform: translate3d(0, 0, 0);
  user-select: none;
  -webkit-mask-image: url("/assets/dvd-logo-12d7a7e1.png");
  -webkit-mask-mode: alpha;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.screensaver-hot-corner {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.screensaver-hot-corner:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -8px;
}
