:root {
  --background: #f0f0ed;
  --foreground: #10110f;
  --card: #f0f0ed;
  --card-foreground: #10110f;
  --primary: #8f2032;
  --primary-foreground: #f7f7f4;
  --secondary: #deded8;
  --secondary-foreground: #10110f;
  --muted: #e4e4df;
  --muted-foreground: #60615d;
  --accent: #8f2032;
  --accent-foreground: #f7f7f4;
  --border: #9e9f99;
  --ring: #8f2032;
  --radius: 0;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

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

a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 5px;
}

.site-header,
.hero,
.work-section,
.about-section,
.skills-section,
.education-section,
.contact-section,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.8rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--foreground);
}

.wordmark {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.site-header nav svg {
  width: 13px;
  height: 13px;
}

.hero {
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(42px, 7vh, 76px) 34px;
}

.hero-kicker,
.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
  margin-top: clamp(32px, 6vh, 66px);
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(4rem, 8vw, 8.2rem);
  font-weight: 680;
  letter-spacing: -0.072em;
  line-height: 0.89;
}

.hero-portrait { margin: 0; }
.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  filter: grayscale(1) contrast(1.08);
  object-fit: cover;
}
.hero-portrait figcaption {
  margin-top: 9px;
  color: var(--muted-foreground);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(46px, 8vh, 96px);
  padding-top: 18px;
  border-top: 1px solid var(--foreground);
}
.hero-foot p { max-width: 640px; margin: 0; font-size: 0.9rem; line-height: 1.55; }
.hero-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-foot svg { width: 15px; height: 15px; }

.work-section {
  padding-block: 120px 140px;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  column-gap: 56px;
  align-items: end;
  margin-bottom: 72px;
}

.section-heading .eyebrow {
  grid-column: 1;
  margin-bottom: 9px;
}

.section-heading h2 {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: 440px;
  margin: 0 0 4px;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.65;
}

.work-list {
  border-top: 1px solid var(--foreground);
}

.work-item {
  display: grid;
  grid-template-columns: 70px minmax(190px, 0.65fr) minmax(0, 1.35fr);
  gap: 38px;
  padding-block: 46px;
  border-bottom: 1px solid var(--border);
}

.work-index {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 0.96rem;
}

.work-meta p {
  margin: 0 0 7px;
  font-weight: 700;
}

.work-meta span {
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.work-story h3 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.work-story > p {
  max-width: 680px;
  margin: 20px 0;
  color: #484a43;
  line-height: 1.65;
}

.work-story ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-story li {
  padding: 6px 9px;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.72rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.3fr);
  gap: clamp(64px, 10vw, 150px);
  padding-block: 130px;
  border-top: 1px solid var(--border);
}

.about-lead {
  align-self: start;
  position: sticky;
  top: 48px;
}

.about-lead h2,
.skills-title h2,
.education-row h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.about-copy > p {
  max-width: 690px;
  margin: 0 0 22px;
  color: #484a43;
  font-size: 1rem;
  line-height: 1.75;
}

.about-copy .about-intro {
  margin-bottom: 28px;
  color: var(--foreground);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.experience-list {
  margin-top: 62px;
  border-top: 1px solid var(--foreground);
}

.experience-list > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 28px;
  padding-block: 20px;
  border-bottom: 1px solid var(--border);
}

.experience-list span {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 0.92rem;
}

.experience-list p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.skills-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.3fr);
  gap: clamp(64px, 10vw, 150px);
  padding-block: 120px;
  border-top: 1px solid var(--border);
}

.skills-list {
  border-top: 1px solid var(--foreground);
}

.skills-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  padding-block: 25px;
  border-bottom: 1px solid var(--border);
}

.skills-list h3 {
  margin: 0;
  color: var(--primary);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skills-list p {
  margin: 0;
  color: #484a43;
  line-height: 1.65;
}

.education-section {
  padding-block: 120px;
  border-top: 1px solid var(--border);
}

.education-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.education-row h2 {
  max-width: 420px;
}

.education-row > div {
  padding-top: 8px;
}

.education-row p {
  margin: 0 0 9px;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.25;
}

.education-row span {
  color: var(--muted-foreground);
  font-size: 0.8rem;
  line-height: 1.5;
}

.contact-section {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 120px;
  border-top: 1px solid var(--border);
}

.contact-section h2 {
  max-width: 840px;
  font-size: clamp(3.7rem, 8vw, 8rem);
}

.contact-section > p:not(.eyebrow) {
  max-width: 590px;
  margin: 32px 0 0;
  color: #484a43;
  font-size: 1.05rem;
  line-height: 1.7;
}

.email-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--foreground);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.email-link svg {
  width: 19px;
  height: 19px;
}

.contact-links {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 650;
}

.contact-links svg {
  width: 14px;
  height: 14px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

@media (max-width: 850px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 30px;
  }


  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .work-item {
    grid-template-columns: 44px 1fr;
  }

  .work-story {
    grid-column: 2;
  }

  .about-section,
  .skills-section {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 100px;
  }

  .about-lead {
    position: static;
  }

  .education-row {
    grid-template-columns: 1fr 1fr;
  }

  .education-row h2 {
    grid-column: 1 / -1;
    margin-bottom: 22px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .work-section,
  .about-section,
  .skills-section,
  .education-section,
  .contact-section,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 64px 90px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    width: 132px;
  }

  .hero-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 16vw, 5rem);
  }


  .work-section {
    padding-block: 90px;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 34px;
  }

  .work-story {
    grid-column: 1;
  }

  .experience-list > div,
  .skills-list > div {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .education-section {
    padding-block: 90px;
  }

  .education-row {
    grid-template-columns: 1fr;
  }

  .education-row h2 {
    grid-column: auto;
  }

  .education-row > div {
    padding-block: 12px;
    border-top: 1px solid var(--border);
  }

  .contact-section {
    min-height: 72svh;
  }

  .contact-section h2 {
    font-size: clamp(3.3rem, 15vw, 5.5rem);
  }

  footer {
    min-height: 110px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
