@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/dm-sans-medium.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/dm-sans-bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --paper: #fff8f2;
  --ink: #080808;
  --orange: #ff5900;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  background: radial-gradient(ellipse at 45% 40%, #fff9f5 0%, #fff8f2 65%, #fdf6ee 100%);
}

.landing {
  display: grid;
  grid-template-columns: 46.32% 53.68%;
  grid-template-rows: min(26.8vw, 448px) auto auto;
  grid-template-areas: "brand portrait" "statement portrait" "links links";
  max-width: 1671px;
  margin-inline: auto;
  padding-bottom: clamp(36px, 3.3vw, 55px);
}

.brand {
  grid-area: brand;
  padding-top: min(7.9vw, 132px);
  padding-left: min(8.62vw, 144px);
  align-self: start;
}

.brand__name {
  width: min(29.44vw, 492px);
  margin: 0;
  font-size: 8rem;
  line-height: 1;
}

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

.brand__tagline {
  margin: min(1.35vw, 23px) 0 0 min(.36vw, 6px);
  font-size: min(1.65vw, 27.5px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .105em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__tagline span { padding-inline: .13em; }

.portrait {
  grid-area: portrait;
  display: block;
  width: 97.43%;
  align-self: start;
}

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

.statement {
  grid-area: statement;
  align-self: start;
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 90vw;
  margin: min(3.6vw, 60px) 0 0 min(8.98vw, 150px);
  font-size: min(1.47vw, 24.5px);
  font-weight: 500;
  line-height: 1.36;
}

.links {
  grid-area: links;
  display: grid;
  grid-template-columns: 1.06fr .99fr 1fr 1.02fr;
  gap: min(1.44vw, 24px);
  width: 79.6%;
  margin: min(2.52vw, 42px) auto 0 10.7%;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  height: min(4.85vw, 81px);
  padding: .3em .7em;
  border: 2px solid var(--orange);
  border-radius: min(1.2vw, 20px);
  background: transparent;
  color: var(--ink);
  font: 700 min(2vw, 33px)/1.2 "DM Sans", Arial, sans-serif;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.link--primary { background: var(--orange); color: #fff; }
.link[aria-disabled="true"] { cursor: default; }
.link[href]:hover { background: var(--orange); color: #fff; }
.link:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1099px) {
  .landing {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "brand" "portrait" "statement" "links";
    max-width: 941px;
    padding-bottom: clamp(40px, 10.3vw, 97px);
  }

  .brand { padding: min(14.25vw, 134px) 0 0 11.7%; }
  .brand__name { width: 41.55%; font-size: 5.625rem; }
  .brand__tagline {
    margin: min(.85vw, 8px) 0 0 .45%;
    font-size: min(2.77vw, 26px);
    letter-spacing: .13em;
  }

  .portrait { width: 67.16%; margin: min(6.05vw, 57px) auto 0; }
  .statement {
    width: 100%;
    max-width: none;
    padding-inline: 6%;
    margin: min(6.2vw, 58px) 0 0;
    font-size: min(2.6vw, 24.5px);
    line-height: 1.43;
    text-align: center;
  }

  .links {
    grid-template-columns: 1fr;
    width: 61.95%;
    gap: min(2.3vw, 22px);
    margin-top: min(6.38vw, 60px);
    margin-inline: auto;
  }

  .link {
    height: min(8vw, 75px);
    border-radius: min(2.1vw, 20px);
    font-size: min(3.6vw, 34px);
  }
}

@media (max-width: 600px) {
  .landing { padding-bottom: 40px; }
  .brand { padding-top: 45px; padding-left: 9%; }
  .brand__name { width: 58%; max-width: 238px; font-size: 3.75rem; }
  .brand__tagline {
    margin-top: 13px;
    font-size: clamp(10px, 2.7vw, 16px);
    letter-spacing: .09em;
  }

  .portrait { width: 85%; max-width: 430px; margin-top: 30px; }
  .statement {
    max-width: 490px;
    margin: 27px auto 0;
    padding-inline: 7%;
    font-size: clamp(16px, 3.7vw, 20px);
    line-height: 1.45;
    text-wrap: pretty;
  }
  .statement__break { display: none; }
  .links { width: 80%; max-width: 410px; gap: 13px; margin-top: 30px; }
  .link { height: 54px; border-radius: 13px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
}
