:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #0f172a;
  --primary-2: #1e3a8a;
  --accent: #2563eb;
  --line: #e5e7eb;
  --soft: #eef2ff;
  --success: #ecfdf5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: var(--accent);
}

header {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  padding: 54px 20px;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 34px;
  align-items: center;
}

.avatar {
  width: 170px;
  height: 170px;
  border-radius: 18px;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

.header-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 8px;
}

header h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.15;
}

header p {
  margin: 5px 0;
  font-size: 18px;
  opacity: 0.95;
}

.header-actions {
  margin-top: 18px;
}

nav {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 7px 9px;
  border-radius: 8px;
}

nav a:hover {
  background: var(--soft);
  color: var(--primary-2);
}

main {
  max-width: 1180px;
  margin: 30px auto;
  padding: 0 20px;
}

section, article {
  background: var(--card);
  margin-bottom: 24px;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

h1, h2, h3 {
  line-height: 1.25;
}

h2 {
  color: var(--primary);
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 16px;
}

h3 {
  color: var(--primary-2);
  margin-bottom: 8px;
}

.lead {
  font-size: 18px;
  color: #374151;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  background: #fbfdff;
  border-radius: 16px;
  padding: 20px;
}

.card.compact {
  padding: 16px;
}

.button {
  display: inline-block;
  background: var(--primary-2);
  color: white !important;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  margin: 6px 8px 6px 0;
  font-size: 14px;
  font-weight: 700;
}

.button:hover {
  background: var(--accent);
}

.button.secondary {
  background: #334155;
}

.badge {
  display: inline-block;
  background: var(--soft);
  border: 1px solid #dbeafe;
  color: var(--primary-2);
  border-radius: 999px;
  padding: 7px 11px;
  margin: 4px;
  font-size: 14px;
  font-weight: 600;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  border-left: 3px solid #dbeafe;
  padding-left: 18px;
}

.timeline-item {
  margin-bottom: 18px;
}

.timeline-item h3 {
  margin-bottom: 2px;
}

.resource-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}

.notice {
  background: var(--success);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px;
}

.project-hero {
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  border: 1px solid #c7d2fe;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 28px;
}

code {
  background: #f1f5f9;
  padding: 2px 5px;
  border-radius: 5px;
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .avatar {
    margin: 0 auto;
  }

  nav {
    position: static;
  }
}
