/* Self-hosted fonts (SIL OFL 1.1; licenses in /fonts). Variable fonts, Latin subset. */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/cinzel-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1e222b;
  --border: #2a2f3a;
  --text: #e9e4d8;
  --muted: #9aa0ab;
  --brass: #c9a45c;
  --brass-bright: #e0bd74;
  --steel: #7f9be0;
  --radius: 14px;
  --display: "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(127, 155, 224, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 164, 92, 0.08), transparent 70%),
    var(--bg) no-repeat;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass-bright); }
a:hover { color: var(--text); }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 56px;
}
.hero img {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 24px 0 12px;
}
.hero h1 span { white-space: nowrap; } /* keeps "of Gamers" together on phones */
.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0;
}

/* Sections */
section { padding: 40px 0; }
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* Project card */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid rgba(127, 155, 224, 0.4);
  background: rgba(127, 155, 224, 0.08);
  border-radius: 999px;
  padding: 2px 10px;
}
.card p { margin: 0; color: var(--muted); }
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.features li {
  font-size: 0.875rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
}
.btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--brass);
  color: #17130b;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: var(--brass-bright); color: #17130b; }
.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.about p { margin: 0 0 14px; max-width: 65ch; }
.about p:last-child { margin-bottom: 0; }

.contact p { margin: 0; color: var(--muted); }

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 520px) {
  .hero { padding: 48px 0 32px; }
  .hero img { width: 112px; height: 112px; }
  .card { padding: 22px; }
  .btn { justify-self: stretch; justify-content: center; }
}
