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

html, body { height: 100%; }

body {
  margin: 0;
  background: #14100c;
  color: #f6efe5;
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

.stage {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  padding: clamp(12px, 1.6vw, 22px);
}

.frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  isolation: isolate;
  background: #2a1f17;
}

.hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 45%;
  z-index: 0;
  filter: saturate(1.02) contrast(1.02);
}

.wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 75% 90%, rgba(40, 22, 10, .68) 0%, rgba(40, 22, 10, 0) 55%),
    linear-gradient(180deg, rgba(20, 12, 6, .35) 0%, rgba(20, 12, 6, 0) 22%, rgba(20, 12, 6, 0) 55%, rgba(20, 12, 6, .55) 100%),
    linear-gradient(90deg, rgba(20, 12, 6, .12) 0%, rgba(20, 12, 6, 0) 40%);
}

.topline {
  position: absolute;
  top: clamp(18px, 3vw, 36px);
  left: clamp(20px, 3.2vw, 44px);
  right: clamp(20px, 3.2vw, 44px);
  z-index: 2;
  display: flex;
  align-items: center;
  color: #fbf6ee;
}

.mark {
  font-family: ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.005em;
  font-weight: 400;
}

.sidetag {
  position: absolute;
  right: clamp(18px, 2.6vw, 36px);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #fbf6ee;
  opacity: .7;
  font-weight: 400;
}

.lede {
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(96px, 14vh, 150px);
  z-index: 2;
  max-width: 920px;
  color: #fbf6ee;
}

h1 {
  margin: 0;
  font-family: ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  font-weight: 300;
  font-size: clamp(48px, 8.6vw, 132px);
  line-height: 0.92;
  letter-spacing: 0;
  color: #fdf8ef;
  text-shadow: 0 1px 30px rgba(20, 12, 6, .35);
}

h1 em {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: 0.62em;
  letter-spacing: 0;
  color: #f6e7d2;
  padding-left: 0.08em;
  margin: 0.06em 0;
  opacity: .95;
}

.lede-copy {
  margin: clamp(20px, 2.8vw, 30px) 0 0 0;
  max-width: 36ch;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.5;
  font-weight: 300;
  opacity: .92;
}

.baseline {
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(20px, 3vw, 36px);
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.baseline p {
  margin: 0;
  max-width: 42ch;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: #fbf6ee;
  opacity: .72;
  text-align: right;
  font-weight: 300;
}

@media (max-width: 900px) {
  .hero { object-position: 42% 40%; }
  .sidetag { display: none; }
  .lede { bottom: clamp(140px, 22vh, 220px); }
  .baseline { justify-content: flex-start; }
  .baseline p { text-align: left; max-width: 36ch; }
}

/* Mobile */
@media (max-width: 620px) {
  body { overflow-y: auto; }
  .stage { height: auto; min-height: 100dvh; padding: 8px; }
  .frame { min-height: calc(100dvh - 16px); }
  .hero { object-position: 50% 32%; }
  .lede {
    left: 22px;
    right: 22px;
    bottom: 150px;
  }
  h1 { font-size: clamp(44px, 13vw, 64px); }
  h1 em { font-size: 0.6em; }
  .lede-copy { font-size: 15px; }
  .baseline {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }
  .baseline p { font-size: 11.5px; max-width: none; }
}

/* Very short viewports keep the hero usable */
@media (max-height: 620px) and (min-width: 901px) {
  .lede { bottom: clamp(72px, 10vh, 110px); }
  h1 { font-size: clamp(40px, 6.4vw, 88px); }
}
