@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --paper: #f3efe6;
  --paper-deep: #e9e2d7;
  --ink: #202521;
  --ink-soft: #4f5751;
  --forest: #2d5748;
  --forest-deep: #27483d;
  --copper: #955d3c;
  --line: rgba(32, 37, 33, 0.19);
  --line-strong: rgba(32, 37, 33, 0.36);
  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-height: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--forest);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
blockquote {
  font-family: "Newsreader", Georgia, serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--forest);
  color: var(--paper);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}

.section-shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section-spacing {
  padding-block: clamp(5rem, 8vw, 8rem);
}

.is-enhanced .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.is-enhanced .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    height 220ms ease;
}

.site-header.is-scrolled {
  height: 64px;
  border-bottom-color: var(--line);
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header-inner {
  display: flex;
  width: min(100% - (var(--gutter) * 2), var(--shell));
  height: 100%;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.brand {
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.86rem;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 1px;
  background: var(--forest);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 220ms ease;
}

.intro {
  min-height: 100svh;
  padding-top: calc(var(--header-height) + clamp(4rem, 8vh, 7rem));
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.folio-line,
.section-index {
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.folio-line span {
  margin-inline: 0.45rem;
  color: var(--copper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.58fr);
  gap: clamp(4rem, 9vw, 9rem);
  align-items: end;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.intro-name h1 {
  font-size: clamp(6.2rem, 11vw, 10.5rem);
  font-weight: 430;
  letter-spacing: -0.065em;
  line-height: 0.72;
}

.intro-name > p {
  max-width: 520px;
  margin-top: 2rem;
  color: var(--forest);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  line-height: 1.15;
}

.intro-copy {
  padding-bottom: 0.4rem;
}

.intro-copy > p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.intro-copy > p + p {
  margin-top: 1rem;
}

.intro-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin-top: 1.8rem;
}

.intro-links a,
.contact-email {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--forest);
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 650;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.intro-links a:hover,
.contact-email:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.intro-thesis {
  max-width: 1000px;
  margin-top: clamp(5rem, 10vw, 9rem);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 6.6rem);
  font-weight: 350;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.intro-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.intro-proof span:not(:last-child)::after {
  margin-left: 2rem;
  color: var(--copper);
  content: "/";
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.55fr);
  gap: clamp(4rem, 9vw, 9rem);
  align-items: start;
  margin-top: 2rem;
}

.about h2,
.contact h2 {
  max-width: 720px;
  font-size: clamp(3.1rem, 5.5vw, 5.2rem);
  font-weight: 430;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.about-copy p,
.contact-copy > p {
  color: var(--ink-soft);
}

.about-copy p + p {
  margin-top: 1.2rem;
}

.career-thread {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-strong);
}

.career-thread::after {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--forest);
  content: "";
  transition: width 1.3s var(--ease);
}

.career-thread.is-visible::after {
  width: 100%;
}

.career-thread span {
  color: var(--ink-soft);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.4rem;
}

.editorial-image {
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.editorial-image picture {
  display: block;
  overflow: hidden;
}

.editorial-image img {
  display: block;
  width: 100%;
  height: clamp(360px, 38vw, 620px);
  object-fit: cover;
  object-position: center 56%;
  transition: transform 1.2s var(--ease);
}

.editorial-image.is-visible img {
  transform: scale(1.015);
}

.editorial-image figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.editorial-image figcaption span {
  color: var(--forest);
  font-weight: 650;
}

.editorial-image figcaption .photo-credit {
  color: var(--ink-soft);
  font-weight: 400;
}

.case-notes {
  background: var(--paper-deep);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.4fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
  margin-top: 2rem;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section-heading h2 {
  max-width: 760px;
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 430;
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading > p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.case-note {
  display: grid;
  grid-template-columns: 70px minmax(280px, 0.9fr) minmax(300px, 0.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(2.2rem, 4vw, 3.4rem);
  border-top: 1px solid var(--line);
}

.case-note:last-child {
  border-bottom: 1px solid var(--line);
}

.case-number {
  color: var(--copper);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
}

.case-title > span {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 650;
}

.case-title h3 {
  max-width: 520px;
  margin-top: 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 480;
  line-height: 1.08;
}

.case-copy p {
  color: var(--ink-soft);
}

.case-copy strong {
  display: block;
  margin-top: 1.2rem;
  color: var(--forest);
  font-size: 0.85rem;
}

.thinking {
  background: var(--forest-deep);
  color: var(--paper);
}

.thinking .section-index {
  color: #b8cfbf;
}

.thinking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: clamp(4rem, 9vw, 9rem);
}

.thinking h2 {
  max-width: 690px;
  margin-top: 2rem;
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  font-weight: 390;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.thinking-copy > p {
  color: #d5dfd8;
  font-size: 1.04rem;
}

.thinking-copy blockquote {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 239, 230, 0.3);
  color: var(--paper);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 350;
  line-height: 1.12;
}

.contact {
  border-bottom: 1px solid var(--line);
}

.contact-copy {
  padding-top: 0.5rem;
}

.contact-email {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.recruiter-note {
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer {
  display: grid;
  min-height: 120px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.site-footer > p:last-child {
  justify-self: end;
}

.error-page {
  min-height: 100svh;
}

.error-shell {
  display: flex;
  width: min(100% - (var(--gutter) * 2), var(--shell));
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  margin-inline: auto;
  padding-block: 2rem;
}

.error-content {
  max-width: 850px;
  padding-block: 5rem;
}

.error-content h1 {
  margin-top: 1.5rem;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 420;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.error-content > p:not(.section-index) {
  max-width: 520px;
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

.error-link {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--forest);
  color: var(--forest);
  font-weight: 650;
}

@media (max-width: 1080px) {
  .menu-toggle {
    position: relative;
    z-index: 102;
    display: block;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: calc(var(--header-height) + 2rem) var(--gutter) 3rem;
    background: rgba(243, 239, 230, 0.99);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1rem);
    transition:
      opacity 240ms ease,
      transform 340ms var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding-block: 0.95rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.55rem, 5vw, 2.5rem);
  }

  .site-nav a::after {
    display: none;
  }
}

@media (max-width: 800px) {
  .intro {
    min-height: auto;
    padding-top: calc(var(--header-height) + 4rem);
  }

  .intro-grid,
  .about-layout,
  .contact-layout,
  .section-heading,
  .thinking-layout {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .intro-name h1 {
    font-size: clamp(5rem, 20vw, 8rem);
  }

  .intro-copy {
    max-width: 620px;
  }

  .intro-thesis {
    margin-top: 5rem;
  }

  .case-note {
    grid-template-columns: 48px 1fr;
    gap: 1rem 1.5rem;
  }

  .case-copy {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 1.2rem;
  }

  body {
    font-size: 16px;
  }

  .section-spacing {
    padding-block: 4.5rem;
  }

  .folio-line {
    line-height: 1.7;
  }

  .intro-name h1 {
    font-size: clamp(4.6rem, 23vw, 6.5rem);
  }

  .intro-name > p {
    margin-top: 1.4rem;
    font-size: 1.6rem;
  }

  .intro-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-thesis {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .intro-proof {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .intro-proof span::after {
    display: none;
  }

  .about h2,
  .contact h2,
  .section-heading h2,
  .thinking h2 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .career-thread {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .editorial-image img {
    height: min(110vw, 470px);
    object-position: center 52%;
  }

  .editorial-image figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .case-note {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .case-copy {
    grid-column: 1;
  }

  .thinking-copy blockquote {
    margin-top: 2rem;
  }

  .site-footer {
    display: flex;
    min-height: 170px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
  }

  .site-footer > p:last-child {
    justify-self: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .is-enhanced .reveal {
    opacity: 1;
    transform: none;
  }
}

@supports (text-wrap: balance) {
  h1,
  h2,
  h3,
  blockquote {
    text-wrap: balance;
  }

  p {
    text-wrap: pretty;
  }
}
