:root {
  --ink: #1b1b1b;
  --paper: #f7f3ed;
  --paper-soft: #f1efe9;
  --line: rgba(27, 27, 27, 0.12);
  --muted: rgba(27, 27, 27, 0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  line-height: 1.5;
}

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

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

main {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.nav {
  height: 72px;
  max-width: 1100px;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.brand i {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 600 9px "Outfit", sans-serif;
  font-style: normal;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.nav nav a {
  transition: opacity 0.2s ease;
}

.nav nav a:hover,
.nav-cta:hover,
.text-link:hover,
.button:hover {
  opacity: 0.7;
}

.nav-cta,
.text-link {
  font-size: 12px;
  font-weight: 500;
}

.nav-cta span,
.text-link span {
  margin-left: 5px;
  font-size: 16px;
}

.menu-button {
  display: none;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 76px 32px 64px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 54px;
  align-items: center;
}

.hero-copy {
  max-width: 570px;
}

.eyebrow,
.section-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 10px/1.2 "Outfit", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label span {
  display: inline-block;
}

.section-label span:first-child {
  opacity: 0.7;
}

.hero h1,
.about h2,
.work h2,
.interests h2,
.contact h2,
.education-card h2,
.timeline h3,
.project-meta h3,
.interest-grid h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(3.2rem, 5vw, 5.4rem);
  line-height: 0.9;
  margin: 18px 0 0;
}

.hero h1 .dot {
  color: var(--ink);
}

.intro {
  margin: 22px 0 28px;
  max-width: 470px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--ink);
}

.text-link {
  color: var(--ink);
}

.hero-visual {
  position: relative;
  width: 260px;
  height: 320px;
  justify-self: end;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  overflow: visible;
}

.profile-photo {
  width: 260px;
  height: 300px;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 0;
  transform: scale(1.02);
}

.hero-visual p {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px;
}

.about {
  border-top: 1px solid var(--line);
}

.about-content {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: start;
  margin: 28px 0 42px;
}

.about h2,
.work h2,
.interests h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1;
}

.about-text {
  max-width: 620px;
  color: var(--muted);
}

.about-text p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
}

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

.stats div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.stats strong span {
  font-size: 0.8em;
}

.stats p {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: none;
}

.education {
  background: var(--paper-soft);
}

.education-card {
  display: grid;
  grid-template-columns: 150px 1fr 0.9fr;
  gap: 26px;
  align-items: end;
  max-width: 900px;
  margin: 32px auto 0;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.education-year,
.education-notes span,
.timeline-year {
  font: 500 10px/1.2 "Outfit", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.education-type {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.education-card h2 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.5rem);
  line-height: 1;
}

.place {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.detail {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.education-notes {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  padding: 18px 30px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--paper-soft);
}

.education-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.experience .timeline {
  max-width: 900px;
  margin: 0 auto;
}

.experience .section-label {
  max-width: 900px;
  margin: 0 auto 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.timeline article:first-child {
  border-top: 2px solid var(--ink);
}

.timeline h3 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.3rem);
  line-height: 1.1;
}

.timeline h3 span {
  font-size: 0.72em;
}

.timeline .detail,
.timeline .place {
  margin-top: 10px;
}

.work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.project {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.project-art {
  position: relative;
  height: 240px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--ink);
  overflow: hidden;
}

.project-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-art span,
.project-art strong,
.project-art em,
.project-art b {
  position: relative;
  z-index: 1;
}

.project-art b {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 16px;
  color: var(--ink);
  background: rgba(247, 243, 237, 0.75);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.project-meta {
  padding: 16px 18px 18px;
}

.project-meta h3 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
}

.project-meta p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.work-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.work-footer p {
  margin: 0;
  color: var(--muted);
}

.interest-main {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: end;
  margin: 28px 0 34px;
}

.interest-main p {
  margin: 0;
  color: var(--muted);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.interest-grid > div {
  padding: 22px 18px 0 0;
  border-right: 1px solid var(--line);
}

.interest-grid > div:last-child {
  border-right: 0;
}

.interest-grid span {
  display: inline-block;
  font: 500 10px/1.2 "Outfit", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.interest-grid h3 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.1;
}

.interest-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.contact {
  padding: 88px 32px 120px;
}

.contact-wrap {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact h2 {
  margin: 8px 0 18px;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.95;
}

.contact a {
  display: inline-block;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-brand i {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 600 8px "Outfit", sans-serif;
  font-style: normal;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
}

.footer-links a {
  color: var(--muted);
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

@media (max-width: 760px) {
  .nav {
    position: relative;
    height: 66px;
    padding: 0 22px;
    transition: height 0.2s ease;
  }

  .nav nav,
  .nav-cta {
    display: none;
  }

  .nav.open {
    height: auto;
    padding-bottom: 18px;
  }

  .nav.open nav {
    display: flex;
    position: absolute;
    left: 22px;
    right: 22px;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 8px;
    background: rgba(247, 243, 237, 0.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    z-index: 20;
  }

  .menu-button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    display: block;
    padding: 54px 22px 58px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-visual {
    width: 100%;
    min-height: 0;
    margin-top: 34px;
    justify-self: auto;
  }

  .profile-photo {
    width: 180px;
    height: 180px;
  }

  .section {
    padding: 56px 22px;
  }

  .about-content,
  .interest-main,
  .work-heading {
    display: block;
    margin: 26px 0 32px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .education-card,
  .education-notes,
  .timeline article {
    display: block;
  }

  .education-card,
  .education-notes {
    padding: 22px;
  }

  .timeline article {
    padding: 20px 0;
  }

  .timeline-year {
    margin-bottom: 8px;
  }

  .projects,
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .interest-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .contact {
    padding: 72px 22px 96px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px 32px;
  }
}
