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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: #f3eee4;
  color: #1c1915;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 1px solid #8c4030;
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: #1c1915;
  color: #f3eee4;
  padding: 0.4rem 0.7rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.frame {
  min-height: 100%;
  display: grid;
}

.sheet {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(32rem, 100%);
  padding: 3.25rem 0 2rem;
}

.kicker {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8c4030;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Palatino, Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 6.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.line {
  width: 3.25rem;
  height: 1px;
  margin: 1.15rem 0 1.2rem;
  background: #8c4030;
}

.lede {
  margin: 0;
  max-width: 24rem;
  font-family: "Cormorant Garamond", Palatino, Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  color: #3a352e;
}

.lede .inline {
  text-decoration: none;
  border-bottom: 1px solid #c9b7a4;
}

.lede .inline:hover {
  border-bottom-color: #8c4030;
}

.credits {
  margin-top: 2.1rem;
  max-width: 28rem;
}

.titles,
.next {
  margin: 0;
  font-family: "Cormorant Garamond", Palatino, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.45;
}

.next {
  margin-top: 0.85rem;
  color: #3a352e;
}

.next span {
  display: inline-block;
  margin-right: 0.7rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8c4030;
  transform: translateY(-0.12em);
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.7rem;
  margin-top: 2.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.links a {
  text-decoration: none;
  color: #1c1915;
  border-bottom: 1px solid transparent;
}

.links a:hover {
  border-bottom-color: #1c1915;
}

.dot {
  color: #b3a898;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding: 0 0 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8276;
}

footer p {
  margin: 0;
}

.still {
  display: none;
}

.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

@media (min-width: 880px) {
  .frame {
    grid-template-columns: minmax(24rem, 0.92fr) minmax(22rem, 1.08fr);
    min-height: 100vh;
    padding: 1.35rem;
    gap: 0.25rem;
  }

  .sheet {
    padding: 0.6rem 4.5vw 0.6rem 5.5vw;
    min-height: calc(100vh - 2.7rem);
  }

  .still {
    display: block;
    height: calc(100vh - 2.7rem);
  }
}

@media (max-width: 879px) {
  .frame {
    min-height: auto;
    padding: 1rem 1rem 0;
    grid-template-rows: auto auto;
    gap: 0;
  }

  .still {
    display: block;
    grid-row: 1;
    height: 38vh;
    min-height: 14rem;
  }

  .sheet {
    grid-row: 2;
    padding: 0 0.35rem 1.35rem;
  }

  main {
    padding-top: 1.85rem;
  }
}

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