@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  background: #2b1c15;
  color: #fff1df;
  font-family: "Manrope", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }

body {
  min-width: 0;
  background: radial-gradient(ellipse at 57% 100%, #66301d, #2b1c15 65%);
}

.page {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: min(100%, 68rem);
  min-height: 100svh;
  margin-inline: auto;
}

.scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 72% 85%, #74341d, #341e16 73%);
}

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

.portrait {
  mask-image: linear-gradient(black 94%, transparent 100%);
}

.note {
  position: absolute;
  top: 22.15cqw;
  right: 3.6cqw;
  width: 15.65cqw;
  color: #f49527;
  font: 400 3.75cqw / .99 "Caveat", cursive;
  white-space: nowrap;
}

.note ul {
  margin: 0;
  padding: 0;
  list-style: none;
  transform: rotate(-11deg);
}

.note li:nth-child(3) { padding-left: .38em; }
.note li:nth-child(4) { padding-left: .16em; }
.note li:nth-child(5) { padding-left: .6em; }

.note-arrow {
  display: block;
  width: 49%;
  margin: .33em 0 0 .34em;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top {
  position: relative;
  padding: 6cqw 3.5cqw 0;
}

.top nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: safe end;
  overflow-x: auto;
  white-space: nowrap;
  gap: .2rem clamp(.85rem, 2.45cqw, 1.75rem);
  font-size: clamp(.875rem, 1.76cqw, 1.2rem);
  font-weight: 400;
}

.top a {
  display: inline-flex;
  align-items: center;
  min-height: 1.875rem;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  text-underline-offset: .24em;
}

.top a:hover,
.top a:focus-visible { text-decoration: underline; }

.top a:focus-visible {
  outline: 2px solid #ffc475;
  outline-offset: -2px;
  border-radius: 2px;
}

main { padding-bottom: 17.8cqw; }

.intro {
  margin-left: 7.05cqw;
  padding-top: calc(43.3cqw - 1.875rem - 6cqw);
}

h1 {
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  width: max-content;
  max-width: 100%;
  font-size: clamp(3.5rem, 10.3cqw, 7rem);
  font-weight: 850;
  line-height: .87;
  letter-spacing: -.054em;
  text-shadow: 0 2px 16px #2d1a1520;
}

.underline {
  display: block;
  margin: .6cqw 0 1.85cqw 4.2cqw;
  width: 19.5cqw;
  min-width: 7.5rem;
  fill: none;
  stroke: #f49527;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro p {
  margin-left: .95cqw;
  margin-right: 6cqw;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  font-size: clamp(1rem, 2.38cqw, 1.64rem);
  line-height: 1.29;
  letter-spacing: .012em;
  text-shadow: 0 1px 8px #2b1c15a0;
}

.work {
  display: grid;
  margin: 6.05cqw 9.7cqw 0 13.3cqw;
  gap: 4.35cqw;
}

.entry {
  display: grid;
  grid-template-columns: 6.6cqw minmax(0, 1fr);
  align-items: start;
  column-gap: 3.2cqw;
  row-gap: .24rem;
  color: #fff6eb;
  text-shadow: 0 1px 9px #35180fa0;
}

.brand {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  margin-top: .12rem;
  border-radius: 50%;
  background: rgb(255 241 223 / 11%);
  backdrop-filter: blur(12px);
}

.brand img {
  display: block;
  width: 61%;
  height: 61%;
  object-fit: contain;
}

.brand--td img {
  width: 66%;
  opacity: .9;
}

.brand--nat-geo img {
  width: 48%;
  height: 48%;
}

.entry h2 {
  grid-column: 2;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.93cqw, 2rem);
  line-height: 1.08;
  letter-spacing: .004em;
}

.summary {
  grid-column: 2;
  max-width: 39ch;
  font-size: clamp(1rem, 2.04cqw, 1.4rem);
  line-height: 1.24;
}

@media (min-width: 68.01rem) {
  .scene {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  }
}

@media (max-width: 43rem) {
  .portrait {
    mask-image: linear-gradient(black 72%, transparent 100%);
  }

  .top {
    padding: 1.15rem clamp(.5rem, 2.65cqw, 1.1rem) 0;
  }

  .top nav {
    justify-content: safe center;
    column-gap: clamp(.25rem, 1.65cqw, 1rem);
    font-size: clamp(.71875rem, 3.28cqw, .875rem);
  }

  .top a {
    min-height: 2rem;
    text-shadow: 0 1px 5px #2b1c15;
  }

  .intro {
    margin-left: 6cqw;
    padding-top: calc(max(14rem, 43cqw) - 3.3rem);
  }

  h1 {
    font-size: clamp(3.7rem, 12.2cqw, 5rem);
    text-shadow: 0 2px 12px #42201170;
  }

  .underline { margin: .35rem 0 .65rem 1rem; }

  .intro p {
    margin-left: .15rem;
    font-size: clamp(.765625rem, 3.62cqw, 1.2rem);
  }

  .work {
    margin: 2.8rem 6cqw 0;
    gap: 1.85rem;
  }

  .entry {
    grid-template-columns: 2.55rem minmax(0, 1fr);
    column-gap: .7rem;
  }

  .entry h2 { font-size: 1.18rem; }

  .summary {
    line-height: 1.4;
  }

  main { padding-bottom: 4.25rem; }
}

@media (prefers-contrast: more) {
  .scene { opacity: .55; }
}
