@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --ink: #231814;
  --cream: #fff8ed;
  --sunflower: #bf850f;
  --sunflower-deep: #8f611f;
  --pink: #cb8e8f;
  --pink-deep: #9a5b60;
  --green: #2f4029;
  --line: rgb(255 248 237 / 56%);
  --positive-risk-coral: #b64f52;
  --positive-risk-pink: #ef9292;
  --display-font: "semplicita-pro", "Semplicita Pro", "Semplicita", "Raleway",
    Arial, sans-serif;
  --wide: 112.5rem;
  color-scheme: light;
  font-family: "Raleway", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
p,
hr {
  margin: 0;
}

body {
  min-width: 0;
  overflow-x: hidden;
  background: var(--sunflower);
  color: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  min-height: 44px;
  padding: 0.72rem 1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--cream);
  font-weight: 760;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  background: var(--sunflower);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(27rem, 0.95fr) minmax(34rem, 1.05fr);
  width: min(100%, var(--wide));
  height: 100svh;
  min-height: 100svh;
  margin-inline: auto;
}

.hero-art {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--green);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.hero-copy {
  --panel-pad-x: clamp(2rem, 5vw, 6.2rem);

  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: clamp(2rem, 4.5vh, 3.5rem) var(--panel-pad-x) 0;
  background-color: var(--sunflower);
  background-image: url("assets/sunflower-shadow-panel-v2-desktop.webp");
  background-position: left bottom;
  background-size: cover;
}

h1 {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 31rem;
  transform: translateX(-0.05em);
  font-size: clamp(5rem, min(7.2vw, 12vh), 7.8rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.82;
  text-transform: uppercase;
}

h1 span {
  white-space: nowrap;
}

.poster-rule {
  width: clamp(7.5rem, 42%, 12rem);
  margin-top: clamp(1rem, 2.2vh, 1.5rem);
  border: 0;
  border-top: 0.22rem solid var(--green);
}

.hero-role {
  max-width: 31rem;
  margin-top: clamp(1rem, 2vh, 1.45rem);
  color: var(--cream);
  font-size: clamp(0.82rem, 1.1vw, 0.98rem);
  font-weight: 760;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-transform: uppercase;
}

.hero-description {
  display: grid;
  align-self: center;
  max-width: 27rem;
  gap: clamp(1rem, 2.4vh, 1.55rem);
  padding-block: clamp(1.2rem, 3vh, 2.4rem);
}

.hero-description p {
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  font-weight: 500;
  line-height: 1.5;
}

.hero-description p + p {
  color: var(--cream);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 450;
}

.hero-footer {
  width: calc(100% + (var(--panel-pad-x) * 2));
  margin-inline: calc(var(--panel-pad-x) * -1);
}

.project-card {
  --project-pad-x: max(1.25rem, calc(var(--panel-pad-x) * 0.82));

  position: relative;
  display: grid;
  grid-template-columns: 66% 34%;
  height: clamp(11.25rem, 27vh, 14rem);
  overflow: hidden;
  background: var(--positive-risk-coral);
  color: var(--cream);
  cursor: pointer;
}

.project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(0.8rem, 2vh, 1.25rem)
    clamp(0.85rem, 1.4vw, 1.2rem) clamp(0.8rem, 2vh, 1.25rem)
    var(--project-pad-x);
}

.project-label {
  color: var(--cream);
  font-size: clamp(0.68rem, 0.9vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.project-title {
  margin-top: clamp(0.4rem, 0.9vh, 0.6rem);
}

.project-link {
  display: flex;
  flex-direction: column;
  width: fit-content;
  color: var(--cream);
  font-family: var(--display-font);
  font-size: clamp(3rem, 4.75vw, 3.8rem);
  font-weight: 330;
  letter-spacing: -0.055em;
  line-height: 0.76;
  text-decoration: none;
  text-transform: uppercase;
}

.project-link > span {
  display: block;
  transform: translateX(-0.075em);
}

.project-link::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
}

.project-link:focus-visible {
  outline: none;
}

.project-action {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  margin-top: clamp(0.55rem, 1.2vh, 0.8rem);
  padding: 0.65rem;
  border: 1px solid var(--cream);
  font-size: clamp(0.72rem, 1vw, 0.8rem);
  font-weight: 780;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.project-art {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--positive-risk-pink);
}

.project-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 50%;
}

.project-card:hover .project-action,
.project-card:focus-within .project-action {
  background: var(--cream);
  color: var(--positive-risk-coral);
}

.project-card:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

@media (max-width: 68.75rem) {
  .hero-shell {
    grid-template-columns: minmax(25rem, 0.9fr) minmax(30rem, 1.1fr);
  }

  .hero-copy {
    --panel-pad-x: clamp(1.75rem, 4vw, 3.5rem);
  }
}

@media (min-width: 56.3125rem) and (max-width: 68.75rem) {
  .project-card {
    --project-pad-x: clamp(1.1rem, 2.2vw, 1.5rem);

    grid-template-columns: 58% 42%;
    height: clamp(11.5rem, 22vh, 12rem);
  }

  .project-copy {
    padding-right: 0.5rem;
  }

  .project-link {
    font-size: clamp(2.45rem, 4.4vw, 3.25rem);
  }

  .project-action {
    padding-inline: 0.65rem;
    font-size: clamp(0.66rem, 0.9vw, 0.74rem);
    letter-spacing: 0.1em;
  }
}

@media (max-width: 56.25rem) {
  .hero-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
  }

  .hero-art {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    aspect-ratio: 8 / 5;
  }

  .hero-art img {
    object-position: 50% 50%;
  }

  .hero-copy {
    --panel-pad-x: clamp(1.75rem, 6vw, 4rem);

    display: grid;
    grid-column: 1;
    grid-row: 2;
    grid-template-rows: auto 1fr auto;
    min-height: clamp(46rem, 105vw, 56rem);
    padding: clamp(2rem, 5vw, 3rem) var(--panel-pad-x) 0;
    background-image: url("assets/sunflower-shadow-panel-v2-tablet.webp");
    background-position: left bottom;
  }

  h1 {
    max-width: 40rem;
    font-size: clamp(3.5rem, 11vw, 5.5rem);
    letter-spacing: -0.04em;
    line-height: 0.78;
  }

  .hero-role,
  .hero-description {
    max-width: 40rem;
  }

  .hero-description {
    max-width: 31rem;
    padding-block: clamp(2.5rem, 7vw, 4.5rem);
  }

  .project-card {
    grid-template-columns: 62% 38%;
    height: clamp(13rem, 30vw, 16rem);
  }
}

@media (max-width: 38.75rem) {
  .hero-art {
    aspect-ratio: 5 / 4;
  }

  .hero-art img {
    object-position: 50% 50%;
  }

  .hero-copy {
    --panel-pad-x: clamp(1.55rem, 7.75vw, 2rem);

    min-height: clamp(49rem, 208vw, 53rem);
    padding-top: clamp(2.25rem, 10.5vw, 2.75rem);
    background-image: url("assets/sunflower-shadow-panel-v2-mobile-poster.webp");
    background-position: -5.5rem -5rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(4.7rem, 24vw, 6.25rem);
    letter-spacing: -0.05em;
    line-height: 1.1;
  }

  .poster-rule {
    width: 36%;
    margin-top: 1.45rem;
    border-top-width: 0.2rem;
  }

  .hero-role {
    margin-top: 1rem;
    font-size: clamp(0.7rem, 3.15vw, 0.8rem);
    letter-spacing: 0.075em;
    white-space: nowrap;
  }

  .hero-description {
    align-self: center;
    gap: 1.35rem;
    max-width: 15.5rem;
    padding-block: 3.25rem 0.75rem;
  }

  .hero-description p {
    font-size: clamp(1.02rem, 4.7vw, 1.18rem);
    line-height: 1.48;
  }

  .hero-description p + p {
    max-width: 14.75rem;
    font-size: clamp(0.98rem, 4.35vw, 1.1rem);
  }

  .project-card {
    grid-template-columns: 58% 42%;
    height: clamp(14.5rem, 62vw, 15.75rem);
  }

  .project-copy {
    padding: 1.2rem 0.6rem 1.2rem var(--project-pad-x);
  }

  .project-link {
    font-size: clamp(2.25rem, 10.8vw, 2.75rem);
  }

  .project-action {
    min-height: 2.2rem;
    margin-top: 0.85rem;
    padding: 0.6rem clamp(0.58rem, 2.6vw, 0.75rem);
    font-size: clamp(0.58rem, 2.55vw, 0.67rem);
    letter-spacing: 0.075em;
  }
}

@media (min-width: 56.3125rem) and (max-height: 50rem) {
  .hero-copy {
    padding-top: clamp(1.25rem, 3.5vh, 2rem);
  }

  h1 {
    font-size: clamp(5.4rem, 13.5vh, 6.35rem);
  }

  .poster-rule {
    margin-top: 0.7rem;
  }

  .hero-role {
    margin-top: 0.45rem;
    font-size: 0.74rem;
  }

  .hero-description {
    padding-block: 0.5rem;
  }

  .hero-description p {
    font-size: 0.97rem;
    line-height: 1.34;
  }

  .hero-description p + p {
    font-size: 0.88rem;
  }

  .project-card {
    height: clamp(9.5rem, 26vh, 12rem);
  }
}

@media (min-width: 56.3125rem) and (max-height: 40rem) {
  .hero-shell {
    height: auto;
    min-height: 100svh;
  }

  .hero-copy {
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-action {
    transition: none;
  }
}
