:root {
  --cream: #f3eddf;
  --text: #2f2f2c;
  --muted: #747067;
  --line: rgba(47, 47, 44, 0.18);
  --copied: #7b4fd6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top navigation */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 122px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-size: 0;
}

.site-title {
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.email-button {
  border-bottom: 0;
  padding-bottom: 0;
}

.nav a:hover,
.email-button:hover {
  color: var(--text);
}

.email-button {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease;
}

.email-button.copied {
  color: var(--copied);
}

/* Page snap behavior */

.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.sheet {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  padding: 140px 8vw 48px;
  border-bottom: 1px solid var(--line);
}

.sheet-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* Home sheet */

.home-layout {
  display: grid;
  grid-template-columns: 820px 600px;
  gap: 90px;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--muted);
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  font-size: 92px;
  line-height: 0.95;
  letter-spacing: -6px;
  margin-bottom: 0;
}

h2 {
  max-width: 960px;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -3.5px;
  margin-bottom: 44px;
}

.about-block {
  max-width: 600px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.58;
}

.about-block p {
  margin-bottom: 18px;
}

.quick-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.scroll-cue {
  position: absolute;
  right: 56px;
  bottom: 28px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.scroll-cue::after {
  content: "↓";
  margin-left: 10px;
}

/* Project index sheet */

.project-layout {
  max-width: 1180px;
}

.project-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.project-link {
  display: grid;
  grid-template-columns: 60px 380px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 160ms ease;
}

.project-link:hover {
  transform: translateX(8px);
}

.project-number {
  color: var(--muted);
  font-size: 13px;
}

.project-name {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 700;
}

.project-meta {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

/* Resume page */

.resume-page {
  min-height: 100vh;
  background: var(--cream);
}

.resume-sheet {
  min-height: 100vh;
  padding: 170px 8vw 64px;
}

.resume-inner {
  max-width: 1250px;
  margin: 0 auto;
}

.resume-inner h1 {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 18px;
}

.resume-intro {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.resume-actions {
  display: flex;
  gap: 28px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
}

.resume-actions a:hover {
  color: var(--text);
}

.resume-frame {
  width: 100%;
  height: 900px;
  border: 1px solid var(--line);
  background: white;
}

.resume-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tablet / mobile */

@media (max-width: 1500px) {
  .home-layout {
    grid-template-columns: 740px 560px;
    gap: 80px;
  }

  h1 {
    font-size: 82px;
  }

  .about-block {
    font-size: 18px;
  }
}

@media (max-width: 1300px) {
  .home-layout {
    grid-template-columns: 1fr 0.8fr;
    gap: 70px;
  }

  h1 {
    font-size: 72px;
  }

  .about-block {
    font-size: 17px;
  }

  .resume-inner {
    max-width: 1100px;
  }

  .resume-frame {
    height: 850px;
  }
}

@media (max-width: 1000px) {
  .site-header {
    height: 112px;
  }

  .site-title {
    font-size: 24px;
  }

  .nav {
    gap: 22px;
  }

  .sheet {
    height: auto;
    min-height: 100vh;
    padding: 140px 24px 48px;
    align-items: flex-start;
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  h1 {
    font-size: 52px;
    letter-spacing: -3px;
  }

  h2 {
    font-size: 42px;
    letter-spacing: -2px;
  }

  .project-link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }

  .project-name {
    font-size: 34px;
  }

  .resume-sheet {
    padding: 150px 24px 48px;
  }

  .resume-inner h1 {
    font-size: 44px;
    letter-spacing: -2px;
  }

  .resume-frame {
    height: 720px;
  }
}
/* Project pages */

.project-page {
  min-height: 100vh;
  background: var(--cream);
}

.project-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 8vw 70px;
  border-bottom: 1px solid var(--line);
}

.project-hero-inner {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 760px 520px;
  gap: 120px;
  align-items: center;
}

.project-summary {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.58;
}

.project-summary p {
  margin-bottom: 36px;
}

.project-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.project-facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
}

.project-facts span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
  font-weight: 700;
}

.project-section {
  padding: 110px 8vw;
  border-bottom: 1px solid var(--line);
}

.project-section-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: 640px 520px;
  gap: 140px;
  align-items: start;
  justify-content: center;
}

.project-copy {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.project-copy p {
  margin-bottom: 22px;
}

.project-image-section {
  padding: 70px 8vw;
  border-bottom: 1px solid var(--line);
}

.image-placeholder {
  min-height: 420px;
  border: 1px solid var(--line);
  background: rgba(47, 47, 44, 0.045);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.image-placeholder.large {
  max-width: 1400px;
  min-height: 680px;
  margin: 0 auto;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 70px 8vw;
  border-bottom: 1px solid var(--line);
}

.project-gallery.two {
  grid-template-columns: repeat(2, 1fr);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 8vw;
  color: var(--muted);
  font-size: 14px;
}

.project-nav a:hover {
  color: var(--text);
}

@media (max-width: 1300px) {
  .project-hero-inner {
    grid-template-columns: 1fr 0.8fr;
    gap: 80px;
  }

  .two-column {
    grid-template-columns: 1fr 0.85fr;
    gap: 80px;
  }
}

@media (max-width: 1000px) {
  .project-hero {
    min-height: auto;
    padding: 150px 24px 70px;
  }

  .project-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .project-summary {
    font-size: 17px;
  }

  .project-section {
    padding: 70px 24px;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-copy {
    font-size: 17px;
  }

  .project-image-section {
    padding: 40px 24px;
  }

  .image-placeholder,
  .image-placeholder.large {
    min-height: 360px;
  }

  .project-gallery,
  .project-gallery.two {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .project-nav {
    padding: 36px 24px;
  }
}
.project-copy a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
}

.project-copy a:hover {
  color: var(--copied);
  border-bottom-color: var(--copied);
}
.project-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(47, 47, 44, 0.045);
}

.project-image.large {
  max-width: 1400px;
  max-height: 760px;
  margin: 0 auto;
}

/* Square project images */

.project-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(47, 47, 44, 0.045);
}

.project-image.large {
  max-width: 900px;
  margin: 0 auto;
}

.image-placeholder {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 1px solid var(--line);
  background: rgba(47, 47, 44, 0.045);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.image-placeholder.large {
  max-width: 900px;
  min-height: 0;
  margin: 0 auto;
}