:root {
  --bg: #f7f4ee;
  --text-dark: #2e2a25;
  --text-gray: #8b8378;
  --text-label: #a68f72;
  --accent: #c98a5e;
  --border: #e4ded1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
}

h1,
h2,
.nav__logo {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 80px;
}

.nav__logo {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dark);
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 12px;
  color: var(--text-gray);
  text-decoration: none;
}

.nav__link--active {
  color: var(--accent);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  gap: 64px;
  align-items: start;
  padding: 60px 80px 120px;
  max-width: 1160px;
  margin: 0 auto;
}

.hero__image-box {
  aspect-ratio: 3 / 4.3;
  width: 100%;
  background: #ece6d9;
  border-radius: 2px;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__content {
  padding-top: 8px;
}

.hero__name {
  font-size: 32px;
  font-weight: 300;
  margin: 0 0 22px;
  line-height: 1.2;
}

.hero__bio {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-gray);
  max-width: 480px;
  margin: 0 0 20px;
}

.hero__cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Slot machine / stats replacement */

.slot-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 80px;
  max-width: 1160px;
  margin: 0 auto;
}

.slot-section__inner {
  padding-left: 0;
}

.slot-machine {
  overflow: hidden;
  height: 38px;
  line-height: 38px;
}

.slot-word {
  display: inline-block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 38px;
  color: var(--text-dark);
  transition: transform 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97), opacity 0.4s ease;
}

.slot-word.is-flipping {
  transform: translateY(-100%);
  opacity: 0;
}

.slot-label {
  margin: 6px 0 0;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
}

/* Work with */

.work-with {
  padding: 70px 80px 100px;
  max-width: 1160px;
  margin: 0 auto;
}

.work-with__heading {
  font-size: 20px;
  font-weight: 300;
  margin: 0 0 12px;
}

.work-with__text {
  font-size: 13px;
  color: var(--text-gray);
  margin: 0 0 20px;
  max-width: 460px;
}

.contact-list {
  margin-top: 56px;
  border-top: 1px solid var(--border);
}

.contact-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.contact-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  max-width: 220px;
}

.contact-email {
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 860px) {
  .nav {
    padding: 20px 24px;
  }

  .nav__links {
    gap: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 24px 24px 70px;
  }

  .hero__image-box {
    aspect-ratio: 4 / 3;
  }

  .hero__name {
    font-size: 26px;
  }

  .slot-section {
    padding: 48px 24px;
  }

  .slot-machine {
    height: 32px;
    line-height: 32px;
  }

  .slot-word {
    font-size: 22px;
    line-height: 32px;
  }

  .work-with {
    padding: 60px 24px 80px;
  }
}
