@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-500.woff2") format("woff2");
}

:root {
  --wall: #545454;
  --floor: #9a9a9c;
  --ink: #f4f1ea;
  --muted: #e6e1d6;
  --ivory: #f6f3ec;
  --ink-on-ivory: #161616;
  --shadow:
    0 1px 1px rgba(0, 0, 0, 0.16),
    0 10px 18px rgba(0, 0, 0, 0.18),
    0 28px 44px rgba(0, 0, 0, 0.22);
  color-scheme: light;
}

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

html {
  background: #6a6a6a;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 48% 62% at 76% 48%, rgba(150, 150, 150, 0.55), transparent 72%),
    linear-gradient(180deg, transparent 70%, rgba(176, 176, 178, 0.45) 100%),
    linear-gradient(90deg, #5c5c5c 0%, #666666 38%, #767676 100%);
}

.stage {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(18rem, 48vw);
  align-items: end;
  column-gap: 0;
  padding: 0 0 0 clamp(1.25rem, 5vw, 4.5rem);
}

.copy {
  align-self: center;
  padding-top: clamp(2.5rem, 7vh, 5rem);
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  font-size: clamp(4.4rem, 8.4vw, 8.25rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
}

h1 .italic {
  display: block;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.45;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.75rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink-on-ivory);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.cta:hover {
  background: #fffdf8;
}

.cta:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}

.portrait {
  margin: 0;
  justify-self: end;
  align-self: stretch;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  width: min(100%, 720px);
}

.portrait img {
  display: block;
  width: auto;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 7%, #000 95%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 7%, #000 95%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 94%, transparent 100%);
  mask-composite: intersect;
}

@media (max-width: 800px) {
  html,
  body {
    background: linear-gradient(180deg, #656565 0%, #656565 30%, #808080 40%, #8c8c8c 55%, #a3a3a5 100%);
  }

  .stage {
    height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    row-gap: 0.25rem;
    padding: 2.75rem 1.25rem 0;
  }

  .copy {
    align-self: start;
    max-width: none;
    padding-top: 0;
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 4.6rem);
  }

  .lede {
    max-width: 18rem;
  }

  .portrait {
    justify-self: stretch;
    align-self: auto;
    display: block;
    height: auto;
    width: calc(100% + 2.5rem);
    max-width: none;
    margin: 0.35rem -1.25rem 0;
  }

  .portrait img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: fill;
    object-position: center top;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, #000 6%),
      linear-gradient(to right, transparent 0%, #000 30%, #000 70%, transparent 100%);
    mask-image:
      linear-gradient(to bottom, transparent 0%, #000 6%),
      linear-gradient(to right, transparent 0%, #000 30%, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}
