:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --text: #18222f;
  --muted: #546170;
  --line: #e4e8ee;
  --accent: #2246d2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(980px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(248, 249, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

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

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
}

.nav a:hover {
  color: var(--text);
  background: #eef2fa;
}

main {
  padding: 2.4rem 0 3rem;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  margin-top: 0.55rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.lead {
  max-width: 64ch;
  color: var(--muted);
}

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

.button {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 1rem;
  background: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 1rem;
  padding: 1.4rem;
}

.panel p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.grid {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: #fcfdff;
}

.card p {
  margin: 0.45rem 0 0.7rem;
}

.card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.skill-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
}

.footer-wrap a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 640px) {
  .hero,
  .panel {
    padding: 1.1rem;
  }

  .nav-wrap {
    min-height: 58px;
  }
}
