:root {
  --bg: #0A0A0A;
  --fg: #F2F2F0;
  --white: #FFFFFF;
  --text-2: #E4E4E1;
  --text-3: #CFCFCC;
  --text-4: #C4C4C1;
  --text-5: #B8B8B5;
  --muted: #9A9A97;
  --btn-border: #666664;
  --line: rgba(255, 255, 255, 0.1);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--fg);
}

a:hover {
  color: var(--white);
}

a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* Blurred copy of the page photo behind the card */
.backdrop {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.backdrop--dim {
  opacity: 0.3;
}

/* Full-bleed on phones, a floating card on wider screens */
.card {
  --card-gap: clamp(0px, calc((100vw - 520px) * 0.25), 48px);
  position: relative;
  container-type: inline-size;
  max-width: 480px;
  min-height: calc(100vh - 2 * var(--card-gap));
  margin: var(--card-gap) auto;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  border-radius: clamp(0px, calc((100vw - 520px) * 0.5), 28px);
  overflow: hidden;
  overflow: clip;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6);
}

.card--home {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

/* Slowly turning zodiac wheel laid over the card */
.sigil {
  position: absolute;
  z-index: 1;
  top: 84cqw;
  left: -16cqw;
  width: 132cqw;
  height: 132cqw;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: sigil-spin 240s linear infinite;
}

.sigil--page {
  top: 54cqw;
}

@keyframes sigil-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sigil {
    animation: none;
  }
}

/* Waxing, full and waning moon ornament */
.moons {
  display: block;
  margin: 48px auto 0;
  color: #8A8A87;
}

.moons--page {
  margin-top: 40px;
}

.moons + .block {
  margin-top: 32px;
}

/* Hero photo with a fade into the background */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 15 / 16;
  overflow: hidden;
}

.hero > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.85) 70%, var(--bg) 100%);
  pointer-events: none;
}

.hero--square {
  aspect-ratio: 1 / 1;
}

.hero--square > img {
  object-position: center;
}

.hero--square::after {
  height: 55%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.8) 60%, var(--bg) 100%);
}

/* ---------- Link in bio ---------- */

.name {
  position: relative;
  margin: -40px 0 0;
  padding: 0 24px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
  padding: 0 24px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--fg);
  transition: background-color 0.2s ease;
}

.social:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding: 0 20px;
}

.link-btn {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 64px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.link-btn:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--bg);
}

.link-btn__icon,
.link-btn__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.link-btn__arrow {
  opacity: 0.55;
}

.link-btn__label {
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.005em;
}

.closing {
  margin: 20px 0 0;
  padding: 0 32px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text-4);
  text-wrap: balance;
}

/* ---------- Inner page ---------- */

.back {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--fg);
  transition: background-color 0.2s ease;
}

.back:hover {
  background-color: rgba(10, 10, 10, 0.85);
}

.page-header {
  position: relative;
  margin-top: -76px;
  padding: 0 24px;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}

.page-header p {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text-5);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 28px 0 0;
  padding: 0 20px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fact dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg);
}

.block {
  margin-top: 40px;
  padding: 0 24px;
}

.block h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  color: var(--fg);
}

.block p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-3);
}

.checklist {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-2);
}

.checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background-color: var(--muted);
  flex-shrink: 0;
}

/* Price and sign-up bar that stays at the bottom while scrolling */
.bar-spacer {
  height: 72px;
  flex-shrink: 0;
}

.book-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  background-color: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price__amount {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--fg);
}

.price__unit {
  font-size: 13px;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background-color: var(--fg);
  color: var(--bg);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta:hover {
  background-color: var(--white);
  color: var(--bg);
}
