:root {
  color-scheme: light;
  --ink: #20201e;
  --muted: #69655e;
  --line: #ded8ce;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --soft: #f2eee6;
  --teal: #0f766e;
  --teal-dark: #0b4f49;
  --coral: #c95f4a;
  --gold: #c99a2e;
  --green: #68865b;
  --shadow: 0 24px 80px rgba(45, 38, 25, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(222, 216, 206, 0.85);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-links {
  gap: clamp(0.8rem, 3vw, 1.7rem);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--teal);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  width: min(var(--max), calc(100% - 2rem));
  min-height: clamp(34rem, calc(88svh - 4.1rem), 42rem);
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto auto;
  width: min(36rem, 52vw);
  height: min(32rem, 50vw);
  background: rgba(15, 118, 110, 0.07);
  border: 1px solid rgba(32, 32, 30, 0.06);
  border-radius: var(--radius);
  opacity: 0.9;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 47rem);
  padding-top: clamp(1rem, 4vw, 3rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 10vw, 7.6rem);
  line-height: 0.91;
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 43rem;
  margin-bottom: 1.7rem;
  color: #3f3d38;
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

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

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

.button-secondary {
  background: rgba(255, 255, 255, 0.94);
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  margin: 0 0 0 auto;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(32, 32, 30, 0.1);
}

.intro-band,
.section,
.contact-section {
  border-top: 1px solid var(--line);
}

.intro-band {
  background: var(--ink);
  color: white;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.82fr 12rem 1.05fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.2rem) 0;
}

.intro-grid .section-kicker {
  color: #f1b3a4;
}

.intro-grid h2 {
  max-width: 12ch;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.intro-grid p:last-child {
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.company {
  margin-bottom: 1rem;
  color: var(--teal-dark);
  font-weight: 800;
}

ul {
  margin: 0;
  padding-left: 1.05rem;
}

li + li {
  margin-top: 0.55rem;
}

.work-section {
  width: 100%;
  max-width: none;
  background: var(--soft);
}

.work-section > .section-heading,
.work-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  min-height: 18rem;
  padding: 1.2rem;
  border: 1px solid rgba(32, 32, 30, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
}

.work-number {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--gold);
  font-weight: 900;
}

.work-card p,
.education-grid p,
.contact-section p {
  color: var(--muted);
}

.skill-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.skill-columns > section {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 750;
}

.education-section {
  border-bottom: 1px solid var(--line);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.education-grid > div {
  padding: 1.4rem;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.62);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.contact-section h2 {
  max-width: 15ch;
}

.contact-section p {
  max-width: 46rem;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .intro-grid,
  .timeline-item,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    inset: 15% 0 auto auto;
    width: 82vw;
    height: 52vw;
  }

  .hero-photo {
    position: relative;
    inset: auto;
    width: min(100%, 24rem);
    margin-top: 2rem;
    margin-left: 0;
  }

  .profile-photo {
    width: min(100%, 13rem);
  }

  .work-grid,
  .skill-columns,
  .education-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 0.95rem;
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.1rem;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
    max-width: 20.5rem;
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 3.6rem);
  }

  .hero-copy {
    width: 100%;
  }

  .hero-lede {
    max-width: 20.5rem;
    font-size: 1.04rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-photo {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 18rem);
    margin-top: 0;
    opacity: 1;
    transform: none;
  }

  .work-grid,
  .skill-columns,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .work-card,
  .skill-columns > section {
    padding: 1rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
