:root {
  --paper: #f6f5f1;
  --ink: #161616;
  --accent: #c7f36b;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, sans-serif;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  font: inherit;
}
.site-header,
.section,
footer {
  width: min(1200px, calc(100% - clamp(36px, 12vw, 160px)));
  margin: auto;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}
.wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}
.navigation {
  display: flex;
  gap: 30px;
  font-size: 0.78rem;
  font-weight: 600;
}
.navigation a:hover,
.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.menu-button {
  display: none;
  border: 0;
  padding: 13px 0;
  background: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}
.section {
  padding: clamp(72px, 11vw, 160px) 0;
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: 24px;
}
.hero {
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(28px, 4vw, 42px);
}
.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(370px, 36vw, 480px);
  gap: clamp(56px, 7vw, 80px);
  width: 100%;
  align-items: start;
  padding: 8vh 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 28px;
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.095em;
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 38px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.resume-button {
  display: inline-block;
  padding: 12px 17px;
  border: 1px solid var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  transition:
    background 150ms ease,
    color 150ms ease;
}
.resume-button:hover {
  background: var(--ink);
  color: var(--paper);
}
.secondary-action {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.secondary-action span {
  display: inline-block;
  transition: transform 150ms ease;
}
.secondary-action:hover span {
  transform: translateX(4px);
}
.hero-social {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}
.hero-social a,
.social-links a {
  position: relative;
}
/* 44px touch target around the small icons */
.hero-social a::after,
.social-links a::after {
  content: "";
  position: absolute;
  inset: -11px;
}
.hero-social a {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}
.hero-social a:hover {
  opacity: 0.6;
}
.hero-social img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hero-social .email-link {
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}
.hero-notes {
  font-size: 0.8rem;
  line-height: 1.45;
  border-top: 1px solid var(--ink);
}
.hero-notes p {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
}
.hero-notes span {
  font-weight: 700;
}
.hero-aside {
  width: 100%;
  justify-self: end;
  align-self: center;
  transform: translateY(13px);
}
.section-heading {
  margin-bottom: clamp(40px, 6vw, 68px);
}
.section-heading .eyebrow {
  margin-bottom: 16px;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}
h3 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}
.carousel-window {
  overflow: hidden;
  touch-action: pan-y;
}
.carousel-track {
  display: flex;
  transition: transform 250ms ease;
}
.project-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: stretch;
}
.project-card > img {
  width: 100%;
  height: clamp(260px, 55vw, 460px);
  object-fit: cover;
  object-position: left top;
  background: var(--ink);
  user-select: none;
  -webkit-user-drag: none;
}
.project-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 0;
}
.project-content > p {
  max-width: 310px;
  font-size: 1.05rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: auto 0 34px;
  list-style: none;
}
.tags li {
  border: 1px solid var(--ink);
  padding: 5px 9px;
  font-size: 0.67rem;
  font-weight: 700;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.project-link {
  font-size: 0.85rem;
  font-weight: 700;
}
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}
.slide-status {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.arrow-button {
  width: 52px;
  height: 44px;
  margin-left: 6px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease;
}
.arrow-button:hover {
  background: var(--ink);
  color: var(--paper);
}
.internship-list {
  border-top: 1px solid var(--ink);
}
.internship-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--ink);
}
.internship-item img {
  width: 180px;
  height: 115px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}
.internship-item .meta,
.work-copy .meta {
  margin-bottom: 12px;
}
.internship-item h3 {
  margin-bottom: 10px;
  font-size: 1.75rem;
}
.internship-item p:not(.meta) {
  max-width: 650px;
  margin-bottom: 0;
}
.inline-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.work-copy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--ink);
}
.work-role {
  padding-top: 28px;
}
.work-copy h3 {
  font-size: 1.75rem;
}
.work-role + .work-role {
  border-left: 1px solid var(--ink);
  padding-left: 40px;
}
.work-role ul {
  max-width: 540px;
  padding-left: 18px;
  margin: 20px 0 0;
  font-size: 0.9rem;
}
.work-role li + li {
  margin-top: 10px;
}
.credential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
}
.credential {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--ink);
  height: 275px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: default;
  min-width: 0;
}
.credential[href] {
  cursor: pointer;
}
.credential-media {
  width: 100%;
  height: 185px;
  overflow: hidden;
}
.credential-media img,
.credential-media object {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.credential-media object {
  width: calc(100% + 18px);
}
.credential > img {
  display: block;
  width: 100%;
  height: 185px;
  object-fit: contain;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.credential p {
  margin: 20px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 38px;
  font-size: 0.72rem;
  font-weight: 700;
}
footer p {
  margin: 0;
}
.social-links {
  display: flex;
  gap: 19px;
}
.social-links a {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
}
.social-links img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .carousel-track {
    transition: none;
  }
}
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-aside {
    width: min(100%, 560px);
    justify-self: start;
    transform: none;
  }
  .work-copy {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .work-role + .work-role {
    margin-top: 42px;
    padding: 42px 0 0;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }
}
@media (max-width: 860px) {
  .project-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .site-header {
    min-height: 72px;
    position: relative;
  }
  .menu-button {
    display: block;
  }
  .navigation {
    position: absolute;
    z-index: 3;
    top: 71px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 18px;
    border: 1px solid var(--ink);
    background: var(--paper);
  }
  .navigation.open {
    display: flex;
  }
  .navigation a {
    padding: 11px 0;
  }
  .hero {
    min-height: calc(100svh - 72px);
  }
  .hero-grid {
    gap: 38px;
    padding: 5vh 0 1vh;
  }
  h1 {
    font-size: clamp(4.2rem, 21vw, 6.6rem);
  }
  .project-content {
    min-height: 260px;
  }
  .tags {
    margin-top: 28px;
  }
  .internship-item {
    grid-template-columns: 105px 1fr;
    gap: 20px;
  }
  .internship-item img {
    width: 105px;
    height: 85px;
  }
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .credential {
    height: 205px;
    padding: 15px;
  }
  .credential-media {
    height: 125px;
  }
  .credential > img {
    height: 125px;
  }
  .credential p {
    margin-top: 14px;
    font-size: 0.7rem;
  }
}
@media (max-width: 560px) {
  .internship-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .internship-item img {
    width: 140px;
  }
  .credential-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .credential {
    height: 235px;
    padding: 18px;
  }
  .credential-media,
  .credential > img {
    height: 150px;
  }
}
