:root {
  --bg: #f7f6f2;
  --ink: #151715;
  --muted: #686b68;
  --line: #c9c9c3;
  --pink: #e84d7c;
  --page: min(100% - 4rem, 90rem);
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--ink);
  background: #ffc7d9;
}

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

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

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: var(--page);
  min-height: 5.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: clamp(1.1rem, 2.5vw, 2.25rem);
  font-size: 0.76rem;
}

.site-nav a {
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--ink);
}

.home-hero {
  display: grid;
  width: var(--page);
  min-height: calc(100svh - 5.5rem);
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 6rem) 0 clamp(4rem, 8vh, 6rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(0rem, 2vw, 2rem);
  align-items: center;
}

.hero-name {
  position: relative;
  z-index: 2;
  align-self: start;
}

.hero-name h1 {
  margin: 0;
  font-size: clamp(6.5rem, 11.7vw, 11rem);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.76;
}

.hero-name p {
  margin: 2.25rem 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  width: min(47vw, 42rem);
  margin: 0 0 0 clamp(-4rem, -4vw, -1rem);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.hero-portrait img {
  width: 100%;
  height: auto;
}

.hero-summary {
  max-width: 36rem;
  margin: clamp(3rem, 8vh, 7rem) 0 0 0.45rem;
  align-self: end;
  color: #3c403c;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.work-section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(6rem, 10vw, 10rem) 0;
  border-top: 1px solid var(--ink);
}

.work-heading {
  display: flex;
  margin-bottom: clamp(4rem, 7vw, 6rem);
  align-items: flex-end;
  justify-content: space-between;
}

.work-heading h2 {
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.work-heading p {
  max-width: 18rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.work-list a {
  display: flex;
  padding: clamp(1.75rem, 3.3vw, 3rem) 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.work-list span {
  font-size: clamp(1.85rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.work-list small {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}

.work-list a:hover span {
  color: var(--pink);
}

.experience-section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(7rem, 13vw, 13rem) 0;
  border-top: 1px solid var(--line);
}

.experience-section h2 {
  max-width: 23ch;
  margin: 0 0 3rem;
  font-size: clamp(2.5rem, 5.5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.text-link {
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.contact-section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 11rem) 0;
  border-top: 1px solid var(--ink);
}

.contact-section h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.contact-section p {
  margin: 2rem 0 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.email-link {
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: clamp(1.1rem, 2.25vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.email-link:hover {
  color: var(--pink);
}

.site-footer {
  display: flex;
  width: var(--page);
  min-height: 6.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.site-footer > div {
  display: flex;
  gap: 1.5rem;
}

.site-footer a:hover {
  color: var(--ink);
}

.inner-main {
  width: var(--page);
  margin: 0 auto;
}

.page-hero {
  display: flex;
  min-height: 62svh;
  padding: clamp(6rem, 14vh, 11rem) 0 clamp(5rem, 10vh, 8rem);
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
  border-bottom: 1px solid var(--ink);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(6rem, 12vw, 11rem);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.78;
}

.page-hero p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  letter-spacing: -0.02em;
}

.reading-section {
  max-width: 50rem;
  margin: 0 0 0 auto;
  padding: clamp(6rem, 10vw, 9rem) 0;
}

.reading-section h2,
.history-section h2 {
  margin: 0 0 3rem;
  font-size: 1rem;
  font-weight: 600;
}

.reading-section p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.reading-section .lead {
  margin-bottom: 2.5rem;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.reading-section p a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.reading-section p a:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.history-section {
  padding: clamp(6rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

.history-section dl {
  max-width: 62rem;
  margin: 0 0 0 auto;
  border-top: 1px solid var(--ink);
}

.history-section dl > div {
  display: grid;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(9rem, 0.3fr) minmax(0, 1fr);
  gap: 2rem;
}

.history-section dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.history-section dd {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.simple-cta {
  padding: clamp(6rem, 12vw, 11rem) 0;
  border-top: 1px solid var(--ink);
}

.simple-cta p {
  margin: 0 0 2rem;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

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

.topics-section .text-link {
  margin-top: 1rem;
}

.contact-main {
  display: flex;
  width: var(--page);
  min-height: calc(100svh - 12rem);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) 0 clamp(6rem, 12vh, 9rem);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.contact-main h1 {
  margin: 0;
  font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.contact-main > p {
  max-width: 32rem;
  margin: 3rem 0 2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-email {
  max-width: 100%;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: clamp(1.6rem, 4.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--pink);
}

.contact-links {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.contact-links a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .home-hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.85fr);
  }

  .hero-name h1 {
    font-size: clamp(5.5rem, 13vw, 8rem);
  }

  .hero-portrait {
    width: min(48vw, 35rem);
  }

  .page-hero {
    min-height: 55svh;
  }
}

@media (max-width: 650px) {
  :root {
    --page: min(100% - 2.25rem, 90rem);
  }

  .site-header {
    min-height: 4.75rem;
  }

  .brand,
  .site-nav {
    font-size: 0.7rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .home-hero {
    padding: 4rem 0 5rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .hero-name h1 {
    font-size: clamp(4.9rem, 24vw, 7rem);
  }

  .hero-name p {
    margin: 1.75rem 0 0 0.2rem;
  }

  .hero-portrait {
    width: min(108%, 30rem);
    margin: 3.5rem auto 0;
    grid-column: 1;
    grid-row: 2;
  }

  .hero-summary {
    margin: 3rem 0 0;
    grid-row: 3;
    font-size: 1.05rem;
  }

  .work-heading {
    gap: 1.5rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .work-heading h2 {
    font-size: 4.2rem;
  }

  .work-list a {
    gap: 0.7rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .work-list span {
    font-size: 2.3rem;
  }

  .work-list small {
    text-align: left;
  }

  .experience-section h2 {
    font-size: 2.7rem;
  }

  .contact-section h2 {
    font-size: 4rem;
  }

  .email-link {
    font-size: 1.1rem;
  }

  .site-footer {
    min-height: 8rem;
    padding: 1.5rem 0;
    gap: 1.2rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .page-hero {
    min-height: auto;
    padding: 5rem 0;
    gap: 3rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero h1 {
    font-size: clamp(5rem, 23vw, 7.5rem);
  }

  .reading-section {
    padding: 5rem 0;
  }

  .reading-section .lead {
    font-size: 2.2rem;
  }

  .history-section dl > div {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .simple-cta p {
    font-size: 3.5rem;
  }

  .contact-main {
    min-height: calc(100svh - 12rem);
  }

  .contact-main h1 {
    font-size: clamp(5rem, 23vw, 7.5rem);
  }

  .contact-main > p {
    margin-top: 2.5rem;
    font-size: 1rem;
  }

  .contact-email {
    font-size: 1.35rem;
  }
}

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