:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f9;
  --text: #162033;
  --muted: #5f6f86;
  --border: #d8e1ee;
  --primary: #123a6b;
  --primary-dark: #0c2a4c;
  --accent: #2f6fb2;
  --shadow: 0 12px 30px rgba(18, 58, 107, 0.08);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

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

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 225, 238, 0.9);
}

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

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.hero h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 65ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  transition: 0.2s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

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

.button.secondary {
  background: var(--surface);
  color: var(--primary);
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: var(--surface-alt);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.feature-list {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-list li + li {
  margin-top: 0.65rem;
}

.job-meta,
.meta {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.job-title {
  font-weight: 700;
  color: var(--text);
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero p {
  max-width: 72ch;
  color: var(--muted);
}

.content-block + .content-block {
  margin-top: 2rem;
}

.skill-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.skill-table th,
.skill-table td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.skill-table th {
  width: 30%;
  color: var(--primary-dark);
  background: #f8fbff;
}

.skill-table tr:last-child th,
.skill-table tr:last-child td {
  border-bottom: 0;
}

.resume-panel {
  text-align: center;
  padding: 2rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li + li {
  margin-top: 0.8rem;
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
}

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

@media (max-width: 900px) {
  .hero-grid,
  .two-up,
  .three-up {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }
}
