*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fbf7f0;
  color: #221d18;
  font-family: "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
.serif {
  font-family: "Instrument Serif", Georgia, serif;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 64px;
  border-bottom: 1px solid #ece3d4;
}
.brand {
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:hover {
  color: #cf4f2c;
}

/* Hero */
.hero {
  padding: 58px 64px 62px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  text-decoration: none;
  color: #4d7c3a;
  transition: color 0.15s ease;
}
.status:hover {
  color: #3c6330;
}
.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 72px;
  line-height: 1.02;
  max-width: 720px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: #cf4f2c;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-meta img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(34, 29, 24, 0.14);
}
.hero-meta p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #6b6055;
  max-width: 380px;
}

/* Sections */
.section {
  padding: 48px 64px;
  border-top: 1px solid #ece3d4;
}
.row {
  display: flex;
  flex-direction: row;
  gap: 40px;
}
.num {
  flex: none;
  font-family: "Instrument Serif", serif;
  font-size: 34px;
  color: #cf4f2c;
  line-height: 1;
  width: 54px;
}
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a08e7a;
  margin-bottom: 18px;
}
.body p {
  font-size: 18px;
  line-height: 1.62;
  color: #3a322a;
  max-width: 600px;
  text-wrap: pretty;
  margin: 18px 0 0;
}
.body p:first-of-type {
  margin-top: 0;
}
.body p.muted {
  color: #8a7d6e;
}
.body strong {
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}
.chip {
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.chip.a {
  background: #f4e7da;
  color: #b4561f;
}
.chip.b {
  background: #ede4d2;
  color: #9a6a12;
}
.chip.c {
  background: #e6ebde;
  color: #4d7c3a;
}

/* Work */
.work-col {
  flex: 1;
  width: 100%;
}
.job {
  border-top: 1px solid #e4dac9;
  padding: 22px 0;
}
.job:last-child {
  padding-bottom: 0;
}
.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.job-head h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: 26px;
  font-weight: 400;
}
.job-head .when {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: #cf4f2c;
}
.job .where {
  margin: 6px 0 0;
  font-size: 14px;
  color: #a08e7a;
  font-weight: 500;
}
.job .desc {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4a4138;
  max-width: 560px;
}

/* Contact */
.contact-head {
  margin: 0 0 26px;
  font-family: "Instrument Serif", serif;
  font-size: 32px;
  line-height: 1.2;
  max-width: 520px;
}
.links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.links a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 2px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.links a.linkedin {
  color: #cf4f2c;
  border-bottom: 2px solid #cf4f2c;
}
.links a.linkedin:hover {
  color: #a93c1c;
  border-bottom-color: #a93c1c;
}
.links a.github {
  color: #221d18;
  border-bottom: 2px solid #ddd2c0;
}
.links a.github:hover {
  border-bottom-color: #221d18;
}

.footer {
  padding: 22px 64px;
  border-top: 1px solid #ece3d4;
  font-size: 13px;
  color: #b1a48f;
}

/* Tablet */
@media (max-width: 900px) {
  .topbar {
    padding: 24px 44px;
  }
  .hero {
    padding: 50px 44px 62px;
  }
  .hero h1 {
    font-size: 56px;
  }
  .section {
    padding: 48px 44px;
  }
  .footer {
    padding: 22px 44px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .topbar {
    padding: 18px 26px;
  }
  .hero {
    padding: 38px 26px 42px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .section {
    padding: 34px 26px;
  }
  .row {
    flex-direction: column;
    gap: 14px;
  }
  .num {
    font-size: 28px;
    width: auto;
  }
  .contact-head {
    font-size: 26px;
  }
  .job-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .footer {
    padding: 22px 26px;
  }
}
