:root {
  color-scheme: dark;
  --background: #060814;
  --surface: #0f172a;
  --surface-alt: #111c38;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #7dd3fc;
  --border: rgba(148, 163, 184, 0.18);
  --radius: 24px;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 28%),
              radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.08), transparent 30%),
              var(--background);
  color: var(--text);
}

body {
  line-height: 1.7;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(6, 8, 20, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent-strong);
}

.section {
  padding: 5rem 0;
}

.hero {
  padding-top: 5.5rem;
}

.hero-content {
  display: grid;
  gap: 1.75rem;
  max-width: 780px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.95;
}

.hero-copy {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #020617;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.button-secondary {
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--text);
}

.section-header {
  display: grid;
  gap: 1rem;
  max-width: 780px;
}

.section-label {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.about-section p,
.contact-section p,
.running-section p {
  max-width: 780px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.projects-section .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.note-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card h3,
.note-card h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.note-card {
  min-height: 180px;
}

.notes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.running-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.running-stats div {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.running-stats strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.contact-grid a {
  color: var(--accent-strong);
  text-decoration: none;
}

.supporting-note {
  margin-top: 2rem;
  max-width: 780px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding: 2rem 0;
}

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

@media (max-width: 900px) {
  .projects-section .grid,
  .notes-grid,
  .running-stats,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
