:root {
  --paper: #f8f7f2;
  --ink: #25332d;
  --muted: #657269;
  --line: #d9ded5;
  --accent: #789278;
  --footer: #263830;
  --sans: "DM Sans", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  color: var(--paper);
  background: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(100% - 80px, 1120px);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  z-index: 30;
  top: -70px;
  left: 16px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}
.skip-link:focus {
  top: 12px;
}
section[id],
footer[id] {
  scroll-margin-top: 90px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(248 247 242 / 95%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.wordmark span,
.section-label h2 span {
  color: var(--accent);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
}
.desktop-nav a,
.header-email {
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.desktop-nav a:hover,
.header-email:hover,
.hero-links a:hover,
.project a:hover,
.footer-bottom a:hover {
  color: var(--accent);
}
.header-email {
  margin-left: 18px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
  white-space: nowrap;
}
.header-email span {
  margin-left: 6px;
}
.menu-button {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.7fr);
  gap: clamp(56px, 8vw, 124px);
  align-items: center;
  min-height: 620px;
  padding-top: 95px;
  padding-bottom: 105px;
}
.eyebrow,
.section-number,
.portrait figcaption,
.project-number,
.project-tech,
.footer-label {
  font: 500 10px/1.5 var(--mono);
  letter-spacing: 0.045em;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 31px;
  color: var(--muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  margin: 0 0 28px;
  font: 500 clamp(64px, 7.6vw, 104px)/0.98 var(--sans);
  letter-spacing: -0.085em;
}
.hero h1 em {
  color: var(--accent);
  font: italic 1.08em/1 var(--serif);
  letter-spacing: -0.045em;
}
.hero-lead {
  max-width: 590px;
  margin: 0 0 15px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.hero-detail {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 29px;
}
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.portrait {
  position: relative;
  width: 100%;
  max-width: 370px;
  margin: 0 0 0 auto;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 12px -12px 31px 12px;
  border: 1px solid #a8b7aa;
  border-radius: 3px;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: #cbd8d5;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.82);
}
.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  color: var(--muted);
}
.portrait-accent {
  position: absolute;
  left: -29px;
  bottom: 30px;
  color: var(--accent);
  font: 55px/1 var(--serif);
}

.page-sections {
  border-top: 1px solid var(--line);
}
.content-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(50px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
  padding: 78px 0 89px;
}
.section-label {
  align-self: start;
}
.section-number {
  display: block;
  margin-bottom: 17px;
  color: var(--accent);
}
.section-label h2 {
  margin: 0;
  font-size: clamp(29px, 3vw, 37px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.055em;
}
.section-aside {
  max-width: 190px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.section-content {
  min-width: 0;
}
.entry {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.entry:first-child {
  padding-top: 0;
}
.entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.entry h3,
.project h3,
.honor h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.entry-main > p,
.organization {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
.entry-note,
.entry-date {
  color: var(--muted);
}
.entry-main .entry-note {
  font-size: 12px;
  margin-top: 6px;
}
.entry-date {
  flex: none;
  margin: 3px 0 0;
  font: 11px/1.6 var(--mono);
  text-align: right;
  white-space: nowrap;
}
.job {
  display: block;
}
.job-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}
.job .organization {
  color: var(--muted);
}
.job ul {
  list-style: none;
  margin: 17px 0 0;
  padding: 0;
  max-width: 670px;
}
.job li {
  position: relative;
  padding-left: 19px;
  margin-top: 8px;
  color: #4c5b51;
  font-size: 13px;
  line-height: 1.75;
}
.job li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.project {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.project:first-child {
  padding-top: 0;
}
.project:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.project-number {
  color: var(--accent);
  padding-top: 5px;
}
.project p {
  margin: 8px 0 0;
  color: #4c5b51;
  font-size: 13px;
  line-height: 1.7;
}
.project .project-tech {
  margin-top: 12px;
  color: #819086;
  font-size: 10px;
}
.project a {
  margin-top: 3px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.honor {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
}
.honor:first-child {
  padding-top: 0;
}
.honor:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.honor p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.honor span {
  flex: none;
  color: var(--muted);
  font: 11px var(--mono);
  padding-top: 4px;
}
.skill-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.skill-row:first-child {
  padding-top: 0;
}
.skill-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.skill-row h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.skill-row p {
  margin: 0;
  color: #4c5b51;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  margin-top: 120px;
  background: var(--footer);
  color: #f8f7f2;
}
.footer-inner {
  padding: 74px 0 28px;
}
.footer-label {
  margin: 0 0 18px;
  color: #a8beaa;
}
.site-footer h2 {
  margin: 0 0 19px;
  font-size: clamp(39px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.06em;
}
.site-footer h2 em {
  font: italic 1.06em var(--serif);
  color: #c0d2b8;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.contact-link {
  display: inline-flex;
  gap: 25px;
  align-items: center;
  border-bottom: 1px solid #c0d2b8;
  padding-bottom: 7px;
  color: #d9e6d3;
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: -0.025em;
}
.contact-link:hover {
  color: white;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #587063;
  margin-top: 92px;
  padding-top: 22px;
}
.footer-bottom p,
.footer-bottom a {
  margin: 0;
  color: #c2d2c5;
  font-size: 11px;
}
.footer-bottom > div {
  display: flex;
  gap: 28px;
}
.footer-bottom a {
  transition: color 0.2s ease;
}

@media (max-width: 1000px) {
  .container {
    width: min(100% - 56px, 1120px);
  }
  .desktop-nav {
    gap: 14px;
  }
  .header-email {
    margin-left: 0;
  }
  .hero {
    gap: 45px;
  }
  .content-section {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 45px;
  }
}

@media (max-width: 830px) {
  .desktop-nav,
  .header-email {
    display: none;
  }
  .menu-button {
    display: flex;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }
  .menu-button span {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--ink);
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .mobile-nav:not([hidden]) {
    position: absolute;
    inset: 71px 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
    padding: 13px max(28px, calc((100vw - 1120px) / 2)) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 22px rgb(37 51 45 / 8%);
  }
  .mobile-nav a {
    border-bottom: 1px solid var(--line);
    padding: 13px 2px;
    font-size: 15px;
    font-weight: 600;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 40px, 1120px);
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 55px;
    padding-top: 74px;
    padding-bottom: 90px;
  }
  .hero h1 {
    font-size: clamp(58px, 10vw, 76px);
  }
  .hero-detail {
    font-size: 14px;
  }
  .portrait {
    width: min(100% - 15px, 380px);
    margin: 0 13px 0 15px;
  }
  .content-section {
    display: block;
    padding: 57px 0 65px;
  }
  .section-label {
    margin-bottom: 38px;
  }
  .section-label h2 {
    font-size: 34px;
  }
  .section-aside {
    max-width: 350px;
    margin-top: 13px;
  }
  .site-footer {
    margin-top: 80px;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 32px, 1120px);
  }
  .mobile-nav:not([hidden]) {
    padding-inline: 16px;
  }
  .hero {
    padding-top: 58px;
  }
  .hero h1 {
    font-size: clamp(51px, 11.8vw, 64px);
  }
  .hero-lead {
    font-size: 20px;
  }
  .hero-links {
    gap: 23px;
  }
  .portrait figcaption {
    font-size: 8px;
  }
  .education-entry,
  .job-heading {
    display: block;
  }
  .entry-date {
    text-align: left;
    margin-top: 8px;
  }
  .project {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
  }
  .project a {
    grid-column: 2;
    width: max-content;
    margin-top: 0;
  }
  .honor {
    gap: 10px;
  }
  .honor h3 {
    font-size: 16px;
  }
  .honor span {
    font-size: 9px;
  }
  .skill-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .menu-button span {
    transition: none;
  }
}
