:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #555555;
  --border: #dddddd;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
}

* {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.sound {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sound-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.sound h3 {
  margin: 0;
  font-size: 0.95rem;
}

.kind {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
}

audio {
  width: 100%;
  margin-top: 0.25rem;
}

.style-group summary {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.style-group summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 600px) {
  main {
    padding: 1rem;
  }
  .sound-grid {
    grid-template-columns: 1fr;
  }
}

.github-corner > svg {
  opacity: 0.5;
  transition: opacity 0.4s;
}

.github-corner:hover > svg {
  opacity: 1;
}
