@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3eee6;
  --ink: #221e1f;
  --ink-soft: #5a514b;
  --cream: #f6f1e8;
  --cobalt: #1f4ed8;
  --cobalt-deep: #1a41b5;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --measure: 720px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

#price {
  scroll-margin-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgb(31 78 216 / 0.22);
  color: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

.top :focus-visible,
.hero :focus-visible {
  outline-color: var(--cream);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
p,
figure {
  margin: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
}

.skip:focus {
  top: 16px;
}

.meta {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  color: var(--cream);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.1875rem;
  font-weight: 600;
  text-decoration: none;
}

.wordmark svg {
  fill: currentColor;
}

.top nav a {
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 6px 0;
}

.top nav a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  height: min(100svh, 1240px);
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  color: var(--cream);
  background: #3a3333;
}

.hero-art img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgb(34 28 30 / 0.62), rgb(34 28 30 / 0.6) 40%, rgb(34 28 30 / 0) 56%);
}

.hero-copy {
  max-width: 880px;
  padding: 108px 24px 0;
  text-align: center;
}

h1 {
  font-size: 3.75rem;
  font-weight: 500;
  line-height: 1.06;
  text-wrap: balance;
}

h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  line-height: 0.9;
  font-variation-settings: "opsz" 96;
}

.lede {
  margin: 20px auto 0;
  max-width: 36em;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: #ece5da;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.button:active {
  transform: scale(0.97);
}

.button.primary {
  background: var(--cobalt);
  color: #fff;
}

.button.primary:hover {
  background: var(--cobalt-deep);
}

.button.secondary {
  background: var(--cream);
  color: var(--ink);
}

.button.secondary:hover {
  background: #fff;
}

.hero .meta {
  margin-top: 16px;
  color: #f1ebe0;
}

.hero .actions {
  margin-top: 28px;
}

.window {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 48px));
  margin: -168px auto 0;
}

.window img {
  border-radius: 12px;
  box-shadow:
    0 0 0 0.5px rgb(34 30 31 / 0.22),
    0 2px 6px rgb(34 30 31 / 0.12),
    0 32px 70px -18px rgb(34 30 31 / 0.5);
}

.story,
.line,
.get {
  width: min(var(--measure), calc(100% - 48px));
  margin-inline: auto;
}

.story {
  padding: 120px 0 0;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

.story p {
  margin-top: 16px;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.line {
  padding: 48px 0 0;
  font-size: 1.375rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.line strong {
  font-weight: 500;
}

.price {
  color: var(--ink-soft);
}

.price strong {
  color: var(--ink);
}

.get {
  padding: 40px 0 120px;
}

.get .actions {
  justify-content: flex-start;
}

.get .meta {
  margin-top: 16px;
}

.get .button.secondary {
  background: #e6dfd3;
}

.get .button.secondary:hover {
  background: #ddd5c7;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 32px;
  padding: 28px clamp(20px, 4vw, 48px) 40px;
  background: #ebe5db;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.foot nav {
  display: flex;
  gap: 20px;
}

.foot nav a {
  color: var(--ink);
}

.foot .credit {
  flex: 1;
  min-width: 260px;
}

.foot cite {
  font-style: italic;
}

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.lost .wordmark {
  justify-self: center;
  margin-bottom: 20px;
  color: var(--ink);
}

.lost h1 {
  font-size: 1.5rem;
  font-weight: 500;
}

.lost p {
  color: var(--ink-soft);
}

@media (max-width: 1100px) {
  h1 {
    font-size: 3.125rem;
  }
}

@media (min-width: 701px) and (max-height: 767px) {
  .hero::before {
    background: linear-gradient(to bottom, rgb(34 28 30 / 0.66), rgb(34 28 30 / 0.7) 340px, rgb(34 28 30 / 0) 460px);
  }
}

@media (max-width: 700px) {
  .hero {
    aspect-ratio: 1590 / 3070;
    height: auto;
    min-height: 0;
  }

  .hero::before {
    background: linear-gradient(to bottom, rgb(34 28 30 / 0.66), rgb(34 28 30 / 0.6) 48%, rgb(34 28 30 / 0) 64%);
  }

  .hero-copy {
    padding: 96px 20px 0;
  }

  h1 {
    font-size: 2.25rem;
  }

  .lede {
    font-size: 1.0625rem;
    margin-top: 16px;
  }

  .window {
    width: calc(100% - 32px);
    margin-top: -90px;
  }

  .window img {
    border-radius: 7px;
  }

  .story {
    padding-top: 88px;
  }

  h2 {
    font-size: 1.625rem;
  }

  .story p {
    font-size: 1.0625rem;
  }

  .line {
    font-size: 1.1875rem;
    padding-top: 40px;
  }

  .story,
  .line,
  .get {
    width: calc(100% - 40px);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
