:root {
  --bg: #f2efe7;
  --text: #14312b;
  --muted: #5f6d68;
  --accent: #ef6847;
  --line: rgba(20, 49, 43, 0.16);
  --max: 1180px;
  --pad: 32px;
}


/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img,
svg {
  max-width: 100%;
}

button {
  font: inherit;
}

.shell {
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  margin: 0 auto;
}


/* HEADER */

.site-header {
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  margin: 0 auto;
  min-height: 84px;

  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;

  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.desktop-nav {
  justify-self: end;

  display: flex;
  align-items: center;
  gap: 25px;

  min-width: 0;
}

.desktop-nav a {
  font-size: 14px;
}

.desktop-nav a:hover,
.contact-links a:hover,
.text-link:hover,
.primary-link:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  justify-self: end;

  padding: 0;
  border: 0;

  background: transparent;
  color: var(--text);

  cursor: pointer;
}

.mobile-nav {
  display: none;
}


/* SHARED TYPOGRAPHY */

.kicker,
.section-label,
.project-topline,
.credential-type {
  margin: 0;

  color: var(--accent);

  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.13em;
}

h1,
h2,
h3 {
  margin-top: 0;

  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
}

h2 {
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.98;

  letter-spacing: -0.055em;
  font-weight: 600;
}

h3 {
  letter-spacing: -0.03em;
}


/* HERO */

.hero {
  min-height: calc(100vh - 84px);

  padding-top: 60px;
  padding-bottom: 88px;
}

.kicker {
  margin-bottom: 34px;
}


/* NAME + PHOTO */

.hero-top {
  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(260px, 0.65fr);

  gap: clamp(48px, 7vw, 90px);

  align-items: center;
}

h1 {
  margin: 0;

  font-size: clamp(76px, 10vw, 142px);
  line-height: 0.82;

  letter-spacing: -0.075em;
  font-weight: 600;
}

h1 span {
  display: block;
}


/* HERO PHOTO */

.hero-photo {
  width: 100%;
  max-width: 350px;

  justify-self: end;

  overflow: hidden;
}

.hero-photo img {
  display: block;

  width: 100%;

  aspect-ratio: 4 / 5;

  object-fit: cover;
  object-position: center 15%;
}


/* HERO INTRO */

.hero-intro {
  max-width: 650px;

  margin-top: 48px;
}

.hero-line {
  margin: 0 0 10px;

  font-family: "Manrope", Arial, sans-serif;

  font-size: clamp(24px, 2.6vw, 35px);
  line-height: 1.2;

  letter-spacing: -0.04em;
}

.hero-subline {
  margin: 0 0 28px;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.5;
}

.availability {
  max-width: 540px;

  margin: 0 0 32px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.55;
}

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

.primary-link,
.text-link {
  font-size: 14px;
  font-weight: 600;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.text-link {
  padding-bottom: 2px;

  border-bottom: 1px solid currentColor;
}


/* GENERAL SECTIONS */

.section {
  padding: 112px 0;

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

.section-label {
  margin-bottom: 34px;
}

.section > h2 {
  margin-bottom: 60px;
}


/* ABOUT */

.about-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  gap: clamp(44px, 7vw, 100px);

  align-items: start;
}

.about-grid h2 {
  margin-bottom: 0;
}

.body-copy {
  max-width: 650px;

  color: #2b423c;

  font-size: 18px;
}

.body-copy p {
  margin-bottom: 22px;
}

.body-copy p:last-child {
  margin-bottom: 0;
}


/* METRICS */

.metrics {
  margin-top: 84px;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-width: 0;

  padding: 28px 24px 32px 0;
}

.metric + .metric {
  padding-left: 24px;

  border-left: 1px solid var(--line);
}

.metric strong {
  display: block;

  margin-bottom: 16px;

  font-family: "Manrope", Arial, sans-serif;

  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1;

  letter-spacing: -0.055em;
  font-weight: 600;
}

.metric span {
  display: block;

  max-width: 225px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.48;
}


/* PROJECTS */

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

.project {
  display: grid;

  grid-template-columns:
    minmax(190px, 0.34fr)
    minmax(0, 0.66fr);

  gap: clamp(30px, 5vw, 72px);

  padding: 40px 0 42px;

  border-bottom: 1px solid var(--line);
}

.project-topline {
  padding-top: 7px;
}

.project-content {
  max-width: 720px;
}

.project h3 {
  margin-bottom: 15px;

  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;

  font-weight: 600;
}

.project p {
  margin-bottom: 0;

  color: #31463f;

  font-size: 17px;
  line-height: 1.58;
}

.project-outcome {
  margin-top: 20px !important;

  color: var(--accent) !important;

  font-size: 14px !important;
  font-weight: 600;
}


/* EXPERIENCE */

.timeline-row {
  display: grid;

  grid-template-columns:
    190px
    minmax(0, 1fr);

  gap: 54px;

  padding: 36px 0 38px;

  border-bottom: 1px solid var(--line);
}

.timeline-date {
  padding-top: 5px;

  color: var(--muted);

  font-size: 14px;
}

.timeline-copy {
  max-width: 780px;
}

.timeline-copy h3 {
  margin-bottom: 3px;

  font-size: 27px;
  line-height: 1.18;

  font-weight: 600;
}

.employer {
  margin-bottom: 12px;

  color: var(--accent);

  font-size: 15px;
  font-weight: 500;
}

.timeline-copy > p:last-child {
  margin-bottom: 0;

  color: #3b4d47;
}


/* FOCUS */

.focus-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

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

.focus-grid article {
  min-height: 170px;

  padding: 30px 30px 32px 0;

  border-bottom: 1px solid var(--line);
}

.focus-grid article:nth-child(even) {
  padding-left: 30px;

  border-left: 1px solid var(--line);
}

.focus-grid h3 {
  margin-bottom: 9px;

  font-size: 22px;
  font-weight: 600;
}

.focus-grid p {
  margin-bottom: 0;

  max-width: 500px;

  color: var(--muted);
}


/* CREDENTIALS */

.credentials-section {
  background: transparent;
}

.credentials {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

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

.credentials article {
  min-width: 0;
  min-height: 195px;

  padding: 28px 26px 30px 0;

  border-bottom: 1px solid var(--line);
}

.credentials article:not(:nth-child(3n + 1)) {
  padding-left: 26px;

  border-left: 1px solid var(--line);
}

.credential-type {
  display: block;

  margin-bottom: 25px;
}

.credentials h3 {
  margin-bottom: 8px;

  font-size: 19px;
  line-height: 1.25;

  font-weight: 600;
}

.credentials p,
.small-note {
  color: var(--muted);

  font-size: 14px;
}

.credentials p {
  margin-bottom: 0;
}

.small-note {
  margin: 26px 0 0;
}


/* WRITING */

.writing-list {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 34px;
}

.writing-list article {
  min-width: 0;

  padding-top: 26px;

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

.writing-list h3 {
  margin: 20px 0 12px;

  font-size: 23px;
  line-height: 1.2;

  font-weight: 600;
}

.writing-list p {
  margin-bottom: 0;

  color: var(--muted);

  line-height: 1.55;
}

.coming-soon {
  display: inline-block;

  margin-top: 18px;

  color: var(--accent);

  font-size: 14px;
  font-weight: 600;
}


/* CONTACT */

.contact {
  padding: 112px 0 104px;

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

.contact .section-label {
  margin-bottom: 34px;
}

.contact h2 {
  margin-bottom: 38px;

  font-size: clamp(70px, 10vw, 124px);
  line-height: 0.9;

  letter-spacing: -0.07em;
  font-weight: 600;
}

.contact-copy {
  max-width: 710px;

  margin-bottom: 32px;

  color: var(--muted);

  font-size: 18px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.contact-links a {
  padding-bottom: 2px;

  border-bottom: 1px solid currentColor;

  font-size: 15px;
  font-weight: 600;
}


/* FOOTER */

.site-footer {
  padding: 24px 0 34px;

  display: flex;
  justify-content: space-between;
  gap: 24px;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font-size: 13px;
}


/* REMOVE DEPENDENCE ON REVEAL ANIMATIONS */

.reveal,
.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}


/* TABLET */

@media (max-width: 1040px) {

  :root {
    --pad: 24px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .mobile-nav {
    position: fixed;

    z-index: 100;

    top: 72px;
    left: 20px;
    right: 20px;

    padding: 10px 18px;

    background: var(--text);
    color: var(--bg);

    border-radius: 14px;
  }

  .mobile-nav.open {
    display: grid;
  }

  .mobile-nav a {
    padding: 12px 2px;

    border-bottom:
      1px solid rgba(242, 239, 231, 0.14);
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;

    padding-top: 56px;
    padding-bottom: 82px;
  }

  .hero-top {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(230px, 0.48fr);

    gap: 44px;
  }

  h1 {
    font-size: clamp(68px, 11vw, 104px);
  }

  .hero-photo {
    max-width: 310px;
  }

  .hero-intro {
    margin-top: 42px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(3) {
    padding-left: 0;

    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .credentials {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .credentials article:not(:nth-child(3n + 1)) {
    padding-left: 0;

    border-left: 0;
  }

  .credentials article:nth-child(even) {
    padding-left: 26px;

    border-left: 1px solid var(--line);
  }

  .writing-list {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}


/* MOBILE */

@media (max-width: 700px) {

  :root {
    --pad: 16px;
  }

  .site-header {
    min-height: 70px;
  }

  .hero {
    padding-top: 46px;
    padding-bottom: 72px;
  }

  .kicker {
    margin-bottom: 26px;
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  h1 {
    font-size: clamp(60px, 20vw, 88px);
    line-height: 0.86;
  }

  .hero-photo {
    width: min(100%, 330px);

    max-width: none;

    justify-self: start;
  }

  .hero-photo img {
    aspect-ratio: 4 / 4.5;

    object-position: center 15%;
  }

  .hero-intro {
    margin-top: 36px;
  }

  .hero-line {
    font-size: 27px;
  }

  .hero-subline,
  .body-copy,
  .contact-copy {
    font-size: 16px;
  }

  .actions {
    align-items: flex-start;

    flex-direction: column;

    gap: 16px;
  }

  .section,
  .contact {
    padding: 76px 0;
  }

  .section-label {
    margin-bottom: 26px;
  }

  .section > h2,
  .about-grid h2 {
    margin-bottom: 42px;

    font-size: 44px;
  }

  .about-grid {
    gap: 26px;
  }

  .metrics {
    grid-template-columns: 1fr;

    margin-top: 58px;
  }

  .metric,
  .metric + .metric,
  .metric:nth-child(3),
  .metric:nth-child(4) {
    padding: 24px 0;

    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric:first-child {
    border-top: 0;
  }

  .project {
    grid-template-columns: 1fr;

    gap: 16px;

    padding: 32px 0;
  }

  .project-topline {
    padding-top: 0;
  }

  .timeline-row {
    grid-template-columns: 1fr;

    gap: 8px;

    padding: 30px 0;
  }

  .timeline-date {
    padding-top: 0;
  }

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

  .focus-grid article,
  .focus-grid article:nth-child(even) {
    min-height: auto;

    padding: 26px 0;

    border-left: 0;
  }

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

  .credentials article,
  .credentials article:nth-child(even),
  .credentials article:not(:nth-child(3n + 1)) {
    min-height: auto;

    padding: 26px 0;

    border-left: 0;
  }

  .contact h2 {
    font-size: 66px;
  }

  .contact-links {
    flex-direction: column;

    align-items: flex-start;

    gap: 16px;
  }

  .site-footer {
    flex-direction: column;

    gap: 4px;
  }
}
