@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap");

:root {
  --paper: #f5f3ec;
  --surface: #faf9f4;
  --ink: #19261f;
  --muted: #606b62;
  --line: #d8dcd1;
  --accent: #607343;
  --green: #dce4d3;
  --dark: #202c28;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;

  /* Change this value to resize the project screenshot. */
  --interface-width: 180px;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  letter-spacing: -2px;
}

h2 {
  font-size: clamp(34px, 3.8vw, 49px);
  letter-spacing: -1.3px;
}

h3 {
  line-height: 1.4;
}

.container {
  width: min(88%, 1100px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 1.8px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 95px;
  padding: 20px 6%;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  flex-shrink: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.5px;
}

.wordmark span {
  color: var(--accent);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

nav a {
  padding-block: 6px;
  font-size: 13px;
}

nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 70px;
  padding-block: 75px;
}

.hero-copy {
  min-width: 0;
}

.intro {
  max-width: 430px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin: 30px 0 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 3px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.button:hover {
  background: #38533c;
}

.text-link {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid #9ca68c;
  font-size: 13px;
  font-weight: 600;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.2px;
}

/* Portrait */

.portrait-scene {
  min-width: 0;
  width: 100%;
  max-width: 410px;
  margin: 0;
  justify-self: end;
}

.portrait-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border: 1px solid #d3d7ca;
  border-radius: 7px;
  background: #dfe2d5;
}

.portrait-scene figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}

/* Shared section headings */

.section-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 25px;
}

.section-top > span {
  color: var(--muted);
  font-size: 11px;
}

/* Projects */

.projects {
  padding-block: 75px 90px;
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.project-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 32px;
  background: var(--green);
}

.project-art .interface-image {
  flex: 0 1 auto;
  width: var(--interface-width);
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 5px;
}

.project-info {
  min-width: 0;
  padding: 42px 35px;
}

.project-info .eyebrow {
  margin-bottom: 18px;
  font-size: 8px;
  letter-spacing: 1.3px;
}

.project-info h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 500;
  letter-spacing: -0.8px;
}

.project-info > p {
  color: var(--muted);
  font-size: 13px;
}

.project-details {
  margin: 25px 0;
  font-size: 12px;
}

.project-details > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
  margin-block: 12px;
}

.project-details dt {
  color: var(--muted);
}

.project-details dd {
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 10px;
  border: 1px solid #cbd3c2;
  border-radius: 20px;
  font-size: 10px;
}

/* About */

.about {
  padding-block: 75px;
  background: var(--dark);
  color: #f0f1e8;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.about .eyebrow {
  color: #c1cbb8;
}

.about-copy {
  min-width: 0;
}

.about-copy > p {
  color: #c5cec5;
  font-size: 14px;
}

.about-copy .large-copy {
  margin-top: 0;
  color: #f0f1e8;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
}

.education {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #536055;
}

.education .eyebrow {
  margin-bottom: 10px;
}

.education h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.education > p:last-child {
  margin: 6px 0 0;
  color: #c5cec5;
  font-size: 12px;
}

/* Skills */

.skills {
  padding-block: 50px;
  border-bottom: 1px solid var(--line);
}

.skill-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 40px;
}

.skill-grid h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.skill-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

/* Experience */

.experience {
  padding-block: 75px 65px;
}

.timeline {
  margin-top: 40px;
}

.experience-item {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 30px;
  padding-block: 27px;
  border-top: 1px solid var(--line);
}

.experience-item .date {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.5px;
}

.experience-item h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.experience-item .organization {
  margin: 0;
  color: #586640;
  font-size: 13px;
}

.experience-item div > p:not(.organization) {
  max-width: 650px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.certifications {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.certifications .eyebrow {
  margin-bottom: 8px;
}

.certifications > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Contact */

.contact {
  padding-block: 60px;
  background: #e4e8dc;
}

.contact .container > p:not(.eyebrow) {
  max-width: 440px;
  margin: 22px 0 0;
  color: #58644d;
  font-size: 14px;
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 105px;
  padding-block: 25px;
}

.site-footer p,
.site-footer > a:last-child {
  color: var(--muted);
  font-size: 11px;
}

/* Tablet */

@media (max-width: 900px) {
  .hero {
    gap: 35px;
  }

  h1 {
    font-size: 56px;
  }

  .project-info {
    padding: 32px 25px;
  }

  .project-art {
    padding: 24px;
  }

  .about-grid {
    gap: 40px;
  }

  .skill-grid {
    gap: 25px;
  }

  .experience-item {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 25px;
  }
}

/* Mobile */

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    min-height: 80px;
    gap: 18px;
    padding-block: 20px;
  }

  nav {
    gap: 15px;
  }

  nav a {
    font-size: 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 45px;
  }

  h1 {
    font-size: clamp(42px, 10vw, 57px);
  }

  h2 {
    font-size: 36px;
  }

  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  .intro {
    font-size: 14px;
  }

  .actions {
    gap: 22px;
    margin-block: 25px 30px;
  }

  .hero-note {
    font-size: 8px;
    letter-spacing: 0.8px;
  }

  .portrait-scene {
    max-width: 330px;
    justify-self: center;
  }

  .portrait-scene figcaption {
    font-size: 7px;
  }

  .projects,
  .experience {
    padding-block: 50px;
  }

  .section-top > span {
    display: none;
  }

  .project {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .project-art {
    padding: 28px;
  }

  .project-info {
    padding: 28px 24px;
  }

  .project-info h3 {
    font-size: 30px;
  }

  .project-details > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .about {
    padding-block: 50px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-copy .large-copy {
    font-size: 24px;
  }

  .skills {
    padding-block: 40px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 23px;
  }

  .experience-item .date {
    margin: 0;
  }

  .experience-item h3 {
    font-size: 19px;
  }

  .contact {
    padding-block: 45px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 20px;
  }

  .site-footer .wordmark {
    margin-right: auto;
  }

  .site-footer p {
    order: 3;
    width: 100%;
    margin: 0;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}