:root {
  --bg: #f6f3ee;
  --paper: #fffdf8;
  --ink: #1d252c;
  --muted: #66717d;
  --line: #d8dee4;
  --blue: #174d82;
  --teal: #14706d;
  --red: #a9433b;
  --gold: #b8812e;
  --shadow: 0 18px 55px rgba(30, 39, 48, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(246, 243, 238, 0.88);
  border-bottom: 1px solid rgba(29, 37, 44, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(23, 77, 130, 0.1);
  color: var(--blue);
  outline: none;
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 69px);
  display: flex;
  align-items: center;
  padding: clamp(38px, 7vw, 96px) clamp(20px, 5vw, 72px) 44px;
  border-bottom: 1px solid rgba(29, 37, 44, 0.08);
}

.hero-copy {
  width: min(880px, 100%);
}

.avatar {
  display: block;
  width: clamp(112px, 16vw, 168px);
  aspect-ratio: 1;
  margin-bottom: 24px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 38%;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(4.35rem, 8vw, 6.8rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 span {
  color: var(--muted);
  font-size: 1em;
  font-weight: 760;
  white-space: nowrap;
}

.hero-name {
  margin-bottom: 18px;
}

.hero-name p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(1.25rem, 2.3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.summary {
  max-width: 660px;
  margin-bottom: 28px;
  color: #46525e;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(29, 37, 44, 0.24);
  border-radius: 6px;
  font-weight: 720;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.contact-list div {
  min-width: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(29, 37, 44, 0.16);
}

.contact-list dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date,
.card-meta,
.compact-list span {
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 760;
}

.timeline-content p,
.info-card p,
.feature-card p,
.compact-list p,
.skill-card p {
  margin-bottom: 0;
  color: #4f5a64;
}

ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

li + li {
  margin-top: 5px;
}

.split {
  background: #ebe7df;
  border-top: 1px solid rgba(29, 37, 44, 0.08);
  border-bottom: 1px solid rgba(29, 37, 44, 0.08);
}

.card-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.feature-card,
.skill-card {
  padding: 24px;
  border: 1px solid rgba(29, 37, 44, 0.12);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(30, 39, 48, 0.07);
}

.info-card h3,
.feature-card h3,
.skill-card h3 {
  margin-top: 8px;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  gap: 22px;
  align-items: start;
}

.feature-card {
  position: sticky;
  top: 92px;
  background: var(--ink);
  color: var(--paper);
}

.feature-card p,
.feature-card li {
  color: rgba(255, 253, 248, 0.78);
}

.role {
  font-weight: 740;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-list article {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 8px 22px rgba(30, 39, 48, 0.05);
}

.compact-list h3 {
  margin: 4px 0 4px;
}

.skills-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(23, 77, 130, 0.1);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 720;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(29, 37, 44, 0.12);
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .experience-layout,
  .section-heading,
  .timeline-item,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .feature-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

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