@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/InterDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/InterDisplay-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* one neutral ramp, tinted toward the lavender paper of the art */
  --page: #efeff1;
  --paper: #d3d7e3;
  --raised: #f6f6f9;
  --ink: #0e1218;
  --navy: #2f3f78;
  --text-2: #464c5f;
  --muted: #5f6685;
  --line: rgba(14, 18, 24, 0.08);
  --accent: #1e22a7;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Display", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --edge: 24px;
  --max: 1280px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  font-feature-settings: "cv05" 1, "ss01" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

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

/* ---------------------------------------------------------------- nav */

.nav__inner {
  max-width: calc(var(--max) + 2 * var(--edge));
  margin: 0 auto;
  height: 72px;
  padding: 0 calc(var(--edge) + 8px);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo img {
  height: 24px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav__links a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 160ms var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--ink);
  color: #f3f4f8;
}

.btn--primary:hover {
  background: #1c2230;
}

.btn--small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 8px;
}

.link {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}

.link:hover {
  border-color: currentColor;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  min-height: clamp(640px, calc(100vh - 96px), 820px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  padding: 64px 56px 56px;
  margin-inline: max(var(--edge), calc((100vw - var(--max)) / 2));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.hero__scene,
.hero__scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__scene img {
  object-fit: cover;
  object-position: 62% 50%;
}

.hero__copy {
  position: relative;
  max-width: 560px;
}

.hero h1 {
  margin: 0;
  font: 500 72px/1.03 var(--display);
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero__lede {
  margin: 24px 0 0;
  max-width: 34rem;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* the sealed call: the product moment */

.sealed {
  position: relative;
  width: 376px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(14, 18, 24, 0.08);
  margin-top: 48px;
}

.sealed__head,
.sealed__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
}

.sealed__head {
  border-bottom: 1px solid var(--line);
}

.sealed__title {
  font-weight: 500;
  font-size: 14px;
}

.sealed__tag {
  font-size: 12px;
  color: var(--muted);
}

.sealed__body {
  display: grid;
  gap: 4px;
  padding: 20px 20px 16px;
}

.sealed__label {
  font-size: 13px;
  color: var(--text-2);
}

.sealed__count {
  font: 400 44px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sealed__stamp {
  margin-top: 8px;
  display: grid;
  gap: 2px;
  font: 400 12px/16px var(--mono);
  color: var(--accent);
}

.sealed__when {
  color: var(--muted);
}

.sealed__cipher {
  margin: 0 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font: 400 11px/16px var(--mono);
  color: var(--muted);
  white-space: pre;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent);
  mask-image: linear-gradient(90deg, #000 55%, transparent);
}

.sealed__foot {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
  padding-top: 12px;
  padding-bottom: 16px;
}

.sealed__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font: 400 12px/16px var(--mono);
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}

.sealed[data-open="true"] .sealed__count {
  color: var(--accent);
}

/* ---------------------------------------------------------------- how it works */

.how {
  max-width: var(--max);
  padding-top: 120px;
  margin-inline: max(var(--edge), calc((100vw - var(--max)) / 2));
}

.how h2 {
  margin: 0 0 40px;
  font: 500 44px/1.1 var(--display);
  letter-spacing: -0.03em;
  color: var(--navy);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  aspect-ratio: 560 / 680;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__copy {
  position: absolute;
  top: 36px;
  left: 36px;
  right: 120px;
}

.card h3 {
  margin: 0;
  font: 500 52px/1.06 var(--display);
  letter-spacing: -0.03em;
  color: var(--navy);
}

.card p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--text-2);
}

.card__num {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 17px;
  color: #525977;
  font-variant-numeric: tabular-nums;
}

.card__logo {
  position: absolute;
  left: 36px;
  bottom: 32px;
  height: 18px;
  width: auto;
}

/* ---------------------------------------------------------------- footer */

.foot__inner {
  max-width: calc(var(--max) + 2 * var(--edge));
  margin: 0 auto;
  padding: 96px calc(var(--edge) + 8px) 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.foot__inner p {
  margin: 0;
}

.foot__x {
  margin-left: auto;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  transition: color 160ms var(--ease);
}

.foot__x:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 1080px) {
  .hero h1 {
    font-size: 56px;
  }
  .card h3 {
    font-size: 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --edge: 16px;
  }
  .nav__inner {
    height: 64px;
    gap: 16px;
    padding: 0 20px;
  }
  .nav__links {
    display: none;
  }
  .nav .btn--small {
    margin-left: auto;
  }
  .hero {
    padding: 32px 24px 24px;
    min-height: 0;
    border-radius: 16px;
  }
  .hero__scene {
    bottom: auto;
    height: 700px;
  }
  .hero__scene img {
    object-position: 50% 100%;
    -webkit-mask-image: linear-gradient(#000 82%, transparent);
    mask-image: linear-gradient(#000 82%, transparent);
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero__lede {
    font-size: 17px;
  }
  .hero__actions {
    gap: 20px;
  }
  .sealed {
    width: 100%;
    margin-top: 388px;
  }
  .how {
    padding-top: 80px;
  }
  .how h2 {
    font-size: 32px;
    margin-bottom: 24px;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .card h3 {
    font-size: 36px;
  }
  .card__copy {
    top: 28px;
    left: 28px;
    right: 88px;
  }
  .card__num {
    top: 32px;
    right: 28px;
  }
  .card__logo {
    left: 28px;
    bottom: 24px;
  }
  .foot__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 64px;
  }
  .foot__x {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------------------------------------------------------------- 404 */

.missing {
  max-width: var(--max);
  margin-inline: max(var(--edge), calc((100vw - var(--max)) / 2));
  padding: 120px 8px 160px;
}

.missing h1 {
  margin: 0;
  font: 500 56px/1.05 var(--display);
  letter-spacing: -0.03em;
  color: var(--navy);
}

.missing p {
  margin: 20px 0 0;
  font-size: 17px;
  color: var(--text-2);
}
