:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f2efe8;
  --text: #23231f;
  --muted: #68675f;
  --accent: #2f6f73;
  --accent-dark: #225457;
  --line: #ded9ce;
  --shadow: 0 20px 50px rgba(40, 41, 34, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(222, 217, 206, 0.8);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  padding: 10px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
  scroll-margin-top: 88px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  font-size: 5.8rem;
}

h2 {
  font-size: 3.1rem;
}

.lead {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 12px 18px;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

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

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--surface-soft);
}

.profile-panel {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.profile-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.panel-label,
.panel-value {
  margin: 0;
}

.panel-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-value {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: start;
}

.about article {
  color: var(--muted);
  font-size: 1.08rem;
}

.about article p:first-child {
  margin-top: 0;
}

.quick-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.quick-facts div {
  background: var(--surface);
  padding: 18px;
}

.quick-facts span,
.contact-links span {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts strong {
  display: block;
  margin-top: 6px;
}

.resume {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resume p {
  max-width: 600px;
  margin: 0 0 24px;
  color: var(--muted);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-links a {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  overflow-wrap: anywhere;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: rgba(47, 111, 115, 0.45);
  box-shadow: 0 12px 28px rgba(47, 111, 115, 0.11);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 16px 36px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .nav {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 8px;
  }

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

  .nav-links a {
    padding: 12px 14px;
  }

  .section {
    padding: 72px 0;
    scroll-margin-top: 80px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding-top: 64px;
  }

  .profile-panel {
    max-width: 420px;
  }

  .about-grid,
  .contact-links {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }
}
