*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #EDEBE6;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --border: #d0cdc8;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Noto Sans JP', sans-serif;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(14, 165, 233, 0.12) 0%,
    rgba(124, 58, 237, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

.site-header__logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
}

.site-header__github {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.site-header__github:hover {
  color: var(--text-primary);
}

.site-header__github svg {
  width: 22px;
  height: 22px;
}

main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  animation: fadeUp 0.4s ease both;
}

.hero__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 56px;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Works */
.works {
  padding-bottom: 80px;
  animation: fadeUp 0.4s 0.1s ease both;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Card */
.card {
  display: block;
  border-radius: 16px;
  padding: 28px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
}

.card--pdfree {
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
}

.card--echochoch {
  background: linear-gradient(135deg, #f97316, #ec4899);
  pointer-events: none;
}

.card--babeken {
  background: linear-gradient(135deg, #22c55e, #eab308);
  pointer-events: none;
}

.card--tbd {
  background: linear-gradient(135deg, #e11d48, #7c3aed);
  opacity: 0.5;
  pointer-events: none;
}

.card__badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 16px;
}

.card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.card__desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card__url {
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s;
}

.card:hover .card__url {
  opacity: 1;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 480px) {
  .site-header {
    padding: 0 20px;
  }

  .hero__name {
    font-size: 40px;
  }

  .hero__sub {
    font-size: 16px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 0 16px;
  }
}
