:root {
  color-scheme: dark;
  --bg: #000;
  --fg: rgba(255, 255, 255, 0.9);
  --fg-soft: rgba(255, 255, 255, 0.6);
  --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;
}

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

/* Header */
.site-header {
  padding: 24px 24px 0 28px;
  font-size: 20px;
  line-height: 1.3;
}
.site-header p { margin: 0; }
.site-header .name { font-weight: 600; color: var(--fg); }
.site-header .role { font-weight: 300; color: var(--fg-soft); }

/* Cards */
.cards {
  display: flex;
  gap: var(--gap);
  padding: 0 24px;
}

.card {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  aspect-ratio: 508 / 359;
  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;
}
.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(149deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.2) 77%);
}
.card-overlay--play {
  background-image: linear-gradient(130deg, 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;
}

/* Projects */
.projects {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.projects-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}
.projects-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.projects-list li { margin: 0; }
.projects-list p { margin: 0; font-size: 14px; line-height: 1.3; }
.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  transition: opacity 150ms ease;
}
.project-link:hover { opacity: 0.7; }
.project-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.project-name { font-weight: 600; color: var(--fg); }
.project-desc { font-weight: 300; color: var(--fg-soft); }

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

/* Mobile */
@media (max-width: 720px) {
  body { gap: 16px; }

  .site-header {
    padding: 16px 16px 0 18px;
    font-size: 16px;
  }
  .site-header .role { font-weight: 400; line-height: 1.4; }

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

  .projects { padding: 16px; }

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