:root {
  --text: #e8ecf1;
  --muted: #9aa4b2;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --accent: #34d399;
  --modrinth: #1bd96a;
  --curseforge: #f16436;
  --coffee: #ffdd00;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #000 linear-gradient(180deg, #16213a 0%, #0c1222 40%, #000 100%) fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding-top: 72px;
  padding-bottom: 40px;
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tagline {
  margin: 6px 0 28px;
  color: var(--muted);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.pill.modrinth:hover   { border-color: var(--modrinth); color: var(--modrinth); }
.pill.curseforge:hover { border-color: var(--curseforge); color: var(--curseforge); }
.pill.coffee:hover     { border-color: var(--coffee); color: var(--coffee); }
.pill.email            { margin-bottom: 20px; font-size: 1rem; color: var(--text); }
.pill.email:hover      { border-color: var(--accent); color: var(--accent); }

/* Mods */
.section-title {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mod-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.mod {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(6px);
  transition: border-color 0.15s ease;
}

.mod:hover { border-color: rgba(52, 211, 153, 0.45); }

.mod-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  image-rendering: pixelated;
}

.mod-body { min-width: 0; flex: 1; }

.mod-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.mod-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.mod-date {
  font-size: 0.9rem;
  color: var(--muted);
}

.mod-desc {
  margin: 6px 0 10px;
  color: #c7ced8;
}

.mod-tags {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mod-tags li {
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.mod-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mod-links a {
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.mod-links a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  padding-top: 56px;
  padding-bottom: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7480;
}

@media (max-width: 480px) {
  .site-header { padding-top: 48px; }
  .mod { padding: 16px; gap: 14px; }
  .mod-icon { width: 48px; height: 48px; }
}
