* {
  box-sizing: border-box;
}

/* fonts */
@font-face {
  font-family: "Acumin";
  src: url("../assets/fonts/Acumin-RPro.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Acumin";
  src: url("../assets/fonts/Acumin-BdPro.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

@keyframes title-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* reset */

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Acumin", sans-serif;
  background: #f0ede7;
  color: #f0ede7;
}

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

/* hero */
.hero,
.projects-header {
  align-items: center;
  background: #171614;
  color: #f0ede7;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  padding: 140px 24px 40px;
  position: relative;
}

.main-nav {
  display: flex;
  justify-content: center;
  max-width: 100%;
  margin-top: 130px;
  font-size: 20px;
  font-weight: 700;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.main-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero h1,
.projects-header h1 {
  font-family: "Acumin", sans-serif;
  font-size: clamp(64px, 12vw, 180px);
  font-weight: 700;
  letter-spacing: -0.095em;
  line-height: 0.92;
  margin: 58px 0 0;
  position: relative;
  transform-origin: center center;
  white-space: nowrap;
  z-index: 1;
}

.animation {
  animation: title-enter 800ms ease-out both;
}

/* content */
.content {
  color: #171614;
}

.section {
  padding: 9vw 7vw;
  scroll-margin-top: 24px;
}

.content figure {
  margin: 0;
  min-width: 0;
}

.content img {
  display: block;
  width: 100%;
  height: auto;
}

.content h2 {
  animation: title-enter 800ms ease-out both;
  margin: 0 0 32px;
  font-size: clamp(52px, 8vw, 132px);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .content h2 {
    animation: none;
  }
}

.section-index {
  margin: 0;
  color: #b84f3c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

/* about */
.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(280px, 1fr) minmax(300px, 1.15fr);
  align-items: end;
  gap: 5vw;
  min-height: 720px;
  background: #f0ede7;
}

.about-text {
  max-width: 590px;
  padding-bottom: 2vw;
}

.about-text>p:not(.eyebrow) {
  max-width: 390px;
  margin: 0;
  color: #625e57;
  font-size: 17px;
  line-height: 1.65;
}

.about-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-portrait {
  align-self: stretch;
  max-width: 680px;
  width: 100%;
}

.about-portrait img {
  height: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  border-bottom: 1px solid #171614;
  padding-bottom: 7px;
  font-size: 15px;
  font-weight: 700;
}

/* portfolio */
.portfolio {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(420px, 1.4fr);
  gap: 8vw;
  background: #171614;
  color: #f0ede7;
}

.portfolio-heading {
  align-self: start;
}

.portfolio-heading h2 {
  margin-top: 28px;
  max-width: 820px;
}

.portfolio-heading .section-index {
  margin: 0;
}

/* slideshow */
.slide img {
  aspect-ratio: 16 / 9;
  max-height: none;
  object-fit: cover;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.slideshow-link {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.slideshow [hidden] {
  display: none;
}

.slide-count {
  min-width: 44px;
  text-align: center;
  font-size: 13px;
  color: #b9b2a9;
}

/* contact */
.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: 8vw;
  background: #b84f3c;
  color: #f0ede7;
}

.contact-heading h2 {
  margin-top: 28px;
}

.contact .section-index {
  color: #171614;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  align-content: end;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(240, 237, 231, 0.7);
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  color: #f0ede7;
  font: inherit;
  outline: 0;
  resize: vertical;
}

.form-field textarea {
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: #171614;
}

.contact-form button {
  justify-self: start;
  border: 1px solid #171614;
  padding: 14px 18px;
  background: #171614;
  color: #f0ede7;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-form button:hover {
  background: transparent;
  color: #171614;
}

/* projects */
.projects-page {
  background: #f0ede7;
  color: #171614;
}

.main-nav .current {
  color: #e78165;
}

.projects-header h1 span {
  color: #b84f3c;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  color: rgba(240, 237, 231, 0.58);
  font-size: 18px;
  line-height: 1;
  transform: translateX(-50%);
  transition: color 180ms ease, transform 180ms ease;
}

.hero-scroll:hover {
  color: #e78165;
  transform: translate(-50%, 3px);
}

.project-section {
  display: grid;
  grid-template-columns: minmax(210px, 0.4fr) minmax(0, 1.6fr);
  gap: 6vw;
  padding: 10vw 7vw;
}

.project-section > *,
.graphics-section > * {
  min-width: 0;
}

.project-section-heading {
  align-self: start;
  position: sticky;
  top: 32px;
  z-index: 1;
}

.project-section-heading h2 {
  margin-top: 26px;
  font-size: clamp(50px, 6.4vw, 106px);
}

.project-section-heading > p:last-child {
  max-width: 270px;
  color: #625e57;
  line-height: 1.6;
}

.projects-page figure {
  margin: 0;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.grid-image {
  overflow: hidden;
  background: #ded9d0;
  position: relative;
}

.grid-image img {
  display: block;
  height: 100%;
  width: 100%;
  cursor: zoom-in;
  object-fit: cover;
  transition: transform 500ms ease;
}

.grid-image:hover img {
  transform: scale(1.035);
}

.grid-image-featured {
  grid-column: auto;
}

.grid-image-featured img {
  aspect-ratio: 16 / 8;
}

.landscape-grid .grid-image:not(.grid-image-featured) img {
  aspect-ratio: 4 / 5;
}

.projects-page .image-grid:not(.street-grid) .grid-image img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.project-section-dark {
  background: #171614;
  color: #f0ede7;
}

.project-section-dark .project-section-heading > p:last-child {
  color: #b9b2a9;
}

.project-section-dark .project-section-heading {
  background: #171614;
}

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

.street-grid .grid-image img {
  aspect-ratio: 3 / 4;
}

.animals-section {
  background: #d8d2c9;
}

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

.animals-grid .grid-image img {
  aspect-ratio: 1 / 1;
}

.graphics-section {
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1.45fr);
  background: #6a00ff;
  color: #f0ede7;
}

.graphics-section .project-section-heading > p:last-child {
  color: #f0ede7;
}
.graphics-index {
  color:#f0ede7
}
.graphics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.graphic-card {
  margin: 0;
}

.graphic-card img {
  cursor: zoom-in;
  width: 100%;
  object-fit: cover;
}

.graphic-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(240, 237, 231, 0.6);
  padding-top: 12px;
  font-size: 13px;
}

.graphic-card figcaption span {
  color: #171614;
}

.projects-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 26px 7vw;
  background: #171614;
  color: #f0ede7;
  font-size: 13px;
}

.projects-footer a:hover {
  color: #e78165;
}

.image-viewer {
  width: min(92vw, 1180px);
  max-width: none;
  border: 0;
  padding: 18px;
  background: #171614;
  color: #f0ede7;
}

.image-viewer::backdrop {
  background: rgba(23, 22, 20, 0.88);
}

.image-viewer img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.image-viewer-caption {
  margin: 14px 0 0;
  color: #b9b2a9;
  font-size: 13px;
}

.image-viewer-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  padding: 0 6px;
  background: transparent;
  color: #f0ede7;
  font: 32px/1 "Acumin", sans-serif;
  cursor: pointer;
}

.image-viewer-close:hover {
  color: #e78165;
}

/* tablet */
@media (max-width: 1024px) {
  .hero,
  .projects-header {
    padding-top: 96px;
  }

  .main-nav {
    margin-top: 72px;
  }

  .about {
    grid-template-columns: minmax(100px, 0.3fr) minmax(220px, 1fr) minmax(240px, 1fr);
    gap: 4vw;
    min-height: 600px;
  }

  .portfolio,
  .contact {
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    gap: 6vw;
  }

  .content h2 {
    font-size: clamp(48px, 7vw, 88px);
  }
}

/* mobile */
@media (max-width: 700px) {
  .section {
    padding: 56px 20px;
  }

  .hero,
  .projects-header {
    justify-content: center;
    min-height: 100svh;
    padding: 48px 20px 32px;
  }

  .main-nav {
    align-items: center;
    flex-direction: column;
    gap: 7px;
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.2;
    order: 2;
  }

  .main-nav span {
    display: none;
  }

  .main-nav a:not(:last-of-type)::after {
    display: block;
    width: 28px;
    height: 1px;
    margin: 7px auto 0;
    background: currentColor;
    content: "";
    opacity: 0.35;
  }

  .hero h1,
  .projects-header h1 {
    max-width: 100%;
    font-size: clamp(42px, 15vw, 90px);
    margin: 0;
    order: 1;
    white-space: normal;
    text-align: center;
  }

  .hero-scroll {
    bottom: 20px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
  }

  .about-text>p:not(.eyebrow) {
    font-size: 16px;
  }

  .about-portrait img {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .portfolio {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    width: 100%;
  }

  .project-section,
  .graphics-section {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: clamp(56px, 12vw, 72px) clamp(16px, 5vw, 20px);
  }

  .project-section-heading {
    position: static;
  }

  .project-section-heading h2 {
    font-size: clamp(40px, 12vw, 72px);
    line-height: 1;
  }

  .image-grid,
  .graphics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .grid-image-featured {
    grid-column: 1 / -1;
  }

  .projects-page .image-grid:not(.street-grid) .grid-image img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }

  .graphic-card figcaption {
    display: block;
    line-height: 1.5;
  }

  .graphic-card figcaption span {
    display: block;
  }

  .projects-footer {
    padding: 22px 20px;
  }

  .image-viewer {
    padding: 10px;
  }

  .image-viewer img {
    max-height: 78vh;
  }
}