:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --surface: #ffffff;
  --text: #132238;
  --muted: #55657a;
  --accent: #3458d6;
  --accent-2: #0f172a;
  --border: #e4e7eb;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

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

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #ffffff 0%, #eef3ff 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 720px;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-media img {
  width: min(100%, 320px);
  height: auto;
  border-radius: 16px;
  border: 4px solid white;
  box-shadow: var(--shadow);
}

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

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

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

.button {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: #f0f4ff;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

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

.card h3 {
  margin-top: 0;
}

.section-note {
  margin-top: 1rem;
  color: var(--muted);
}

.resume-classic {
  margin-top: 1.5rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.resume-classic h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.resume-entry + .resume-entry {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.resume-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.resume-meta span {
  color: var(--muted);
}

.link-list {
  padding-left: 1.2rem;
}

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

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

.pub-list li + li {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.pub-title {
  font-weight: 600;
  display: inline-block;
}

.pub-meta {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.15rem;
}

.pub-desc {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.image-example {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.image-example img {
  margin-top: 0.75rem;
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 1rem;
    background: var(--surface);
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
  }

  .nav-links.open {
    display: flex;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }
}
