/* Design System — CSS Custom Properties */
:root {
  --color-bg: #FAFAF7;
  --color-text: #1C1C1C;
  --color-secondary: #5E6470;
  --color-muted: #8B9099;
  --color-accent: #1F4B99;
  --color-accent-hover: #163A75;
  --color-border: #E6E7EB;

  --font-stack: 'Inter', system-ui, sans-serif;
  --font-h1: 44px;
  --font-h2: 30px;
  --font-body: 17px;
  --line-height: 1.6;

  --max-text: 780px;
  --section-spacing: 88px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  font-size: var(--font-body);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 { font-size: var(--font-h1); font-weight: 700; line-height: 1.2; }
h2 { font-size: var(--font-h2); font-weight: 600; line-height: 1.3; }

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

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

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Layout */
.container {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-spacing) 0;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.header__link {
  color: var(--color-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.header__link:hover {
  color: var(--color-text);
}

/* Hero */
.hero__layout {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero__content {
  flex: 1;
}

.hero__headshot {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

.hero__title {
  margin-bottom: 8px;
}

.hero__subtitle {
  font-size: 20px;
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero__description {
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.hero__experience {
  color: var(--color-muted);
  font-size: 15px;
}

/* Contact */
.contact {
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.contact h2 {
  margin-bottom: 16px;
}

.contact__email {
  font-size: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 15px;
}

.footer__copy {
  margin-top: 8px;
}

.footer__deploy-info {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --font-h1: 32px;
    --font-h2: 24px;
    --section-spacing: 56px;
  }

  .hero__layout {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
  }

  .hero__headshot {
    width: 120px;
    height: 120px;
  }
}
