:root {
  color-scheme: dark;
  --bg: #000;
  --fg: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.4);
  --radius: 16px;
  --gap: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-variation-settings: "opsz" 14;
  min-height: 100vh;
  min-height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Header */
.site-header {
  display: flex;
  gap: var(--gap);
  padding: 24px 24px 48px 28px;
  font-size: 20px;
  line-height: 1.2;
}
.site-header p { margin: 0; flex: 1 0 0; min-width: 0; }
.site-header .name { font-weight: 600; }
.site-header .role { font-weight: 300; }

/* Content (cards) */
.content {
  flex: 1 0 auto;
  display: flex;
  gap: var(--gap);
  padding: 0 24px;
  min-height: 0;
}

.card {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover { transform: translateY(-2px); }
.card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.card-overlay--work {
  background-image: linear-gradient(142deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.2) 77%);
}
.card-overlay--play {
  background-image: linear-gradient(122deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
}

.card-word {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 76%;
  max-height: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Footer */
.site-footer {
  padding: 16px 24px 40px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.site-footer p { margin: 0; }

/* Mobile */
@media (max-width: 720px) {
  .site-header {
    padding: 16px 16px 32px 18px;
    font-size: 16px;
  }
  .site-header .role { font-weight: 400; line-height: 1.4; }

  .content {
    flex-direction: column;
    padding: 0 16px;
  }

  .site-footer {
    padding: 16px;
    line-height: 1.33;
  }
}
