:root {
  --bg: #0b0d14;
  --bg-raised: #131722;
  --line: #242a3a;
  --text: #e8e6e1;
  --muted: #9aa0ae;
  --sun: #f59e0b;
  --sun-soft: #ffe7a8;
  --radius: 14px;
  --max: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--sun-soft); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: .02em;
}
.brand img { width: 28px; height: 28px; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
}
.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .28), rgba(245, 158, 11, 0) 65%);
  pointer-events: none;
}
.eyebrow {
  color: var(--sun);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 14ch;
}
.hero p.lede {
  color: var(--muted);
  font-size: 19px;
  max-width: 56ch;
  margin: 0 0 32px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-primary {
  background: var(--sun);
  border-color: var(--sun);
  color: #1a1204;
}
.btn-primary:hover { background: #fbb53a; }
.btn + .btn { margin-left: 10px; }

/* Projects */
.section { padding: 48px 0 80px; }
.section h2 { font-size: 24px; margin: 0 0 24px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { color: var(--muted); margin: 0 0 20px; flex: 1; }
.card .btn { align-self: flex-start; }
.card .tag {
  align-self: flex-start;
  font-size: 12px;
  color: var(--sun-soft);
  border: 1px solid rgba(245, 158, 11, .4);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 14px;
}
.card.placeholder { border-style: dashed; background: transparent; }

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; }

@media (max-width: 520px) {
  .hero { padding: 64px 0 48px; }
  .btn + .btn { margin: 10px 0 0; }
  .btn { display: block; text-align: center; }
}

/* Animated sun, cloud and rain behind the hero (see sky.js). The static
   .hero::before glow stays as the fallback when the script does not run. */
.sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.has-sky .hero::before { display: none; }
.hero .wrap { position: relative; z-index: 1; }
