:root {
  --ink: #3c3d3d;
  --text: #3c3c3c;
  --bg: #e0e5e4;
  --ink-soft: #565858;
  --surface: #e4e8e7;
  --surface-soft: #eef0ec;
  --line: rgba(48, 50, 50, 0.74);
  --card: #3d3d3d;
  --card-ink: #f0f0ec;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia,
    serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--surface);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

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

.site {
  min-height: 100svh;
  overflow-x: hidden;
  isolation: isolate;
}

.ambient {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.ambient::before {
  position: absolute;
  width: min(180vw, 1600px);
  aspect-ratio: 1.1;
  top: 50%;
  left: 50%;
  content: "";
  opacity: 0.6;
  background: url("./assets/8d696b549935b082.png") center / 100% 100% no-repeat;
  transform: translate(-50%, -50%);
  animation:
    gradient-morph 20s ease-in-out infinite,
    fade-in 1.5s ease both;
}

@keyframes gradient-morph {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  25% {
    transform: translate(-48%, -52%) scale(1.03) rotate(2deg);
  }

  50% {
    transform: translate(-52%, -48%) scale(0.97) rotate(-1deg);
  }

  75% {
    transform: translate(-50%, -51%) scale(1.02) rotate(1.5deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.corner-fold {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 78px;
  height: 78px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.corner-fold::before {
  position: absolute;
  inset: 0;
  content: "";
  background: #050505;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  filter: drop-shadow(5px 4px 7px rgba(0, 0, 0, 0.22));
}

.corner-fold::after {
  position: absolute;
  width: 59px;
  height: 59px;
  top: -4px;
  left: 17px;
  content: "";
  background:
    linear-gradient(135deg, #f7f7f5 0 60%, #d6d8d7 61% 68%, transparent 69%);
  clip-path: polygon(0 0, 100% 0, 78% 78%, 0 100%);
  transform: rotate(-3deg);
  filter: drop-shadow(-2px 4px 3px rgba(0, 0, 0, 0.16));
}

.shop-bag {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 11px;
  width: 16px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #050505;
  background: #fff;
  font: 700 11px/1 Arial, sans-serif;
  transform: rotate(-9deg);
}

.shop-bag::before {
  position: absolute;
  width: 8px;
  height: 6px;
  top: -5px;
  left: 4px;
  content: "";
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.home-view {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}

.home-logo {
  position: absolute;
  z-index: 2;
  width: 129px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.home-logo img {
  width: 100%;
  height: auto;
}

.home-date {
  position: absolute;
  top: 20px;
  right: 16px;
  margin: 0;
  text-align: right;
  font-size: 16px;
  line-height: 1.35;
}

.home-heading {
  position: absolute;
  z-index: 2;
  width: min(620px, 74vw);
  top: 18.6%;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-size: clamp(42px, 4.1vw, 58px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.045em;
  text-align: center;
}

.home-heading span {
  display: block;
}

.orbit {
  position: absolute;
  z-index: 3;
  width: 430px;
  height: 430px;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-prompt {
  position: absolute;
  width: 212px;
  height: 67px;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}

.orbit-prompt text {
  fill: var(--ink);
  font: 700 14px var(--sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.orbit-sign {
  --angle: 0deg;
  position: absolute;
  top: calc(50% + 35px);
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: rotate(var(--angle)) translateY(-181px)
    rotate(calc(var(--angle) * -1));
  transition:
    transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease;
}

.orbit-sign img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.orbit-sign:hover img {
  transform: scale(1.08);
}

.orbit-sign.is-active {
  width: 82px;
  height: 82px;
  margin: -41px;
  padding: 5px;
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--surface);
}

.orbit-sign.is-active img {
  width: 68px;
  height: 68px;
}

.orbit-center {
  position: absolute;
  width: 260px;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.selected-sign {
  margin: 0 0 19px;
  font: 27px/1.1 var(--serif);
}

.cta-stem {
  width: 1px;
  height: 42px;
  margin: 0 auto;
  background: var(--ink);
}

.cosmic-cta {
  width: 226px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 auto;
  padding: 12px 13px 12px 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 15.5px;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.cosmic-cta:hover {
  color: var(--surface-soft);
  background: var(--ink);
  transform: translateY(-2px);
}

.cta-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--surface);
  background: var(--ink);
  font-size: 19px;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.cosmic-cta:hover .cta-arrow {
  color: var(--ink);
  background: var(--surface);
}

.home-meta {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 18px;
  left: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 16px;
  line-height: 1.35;
}

.home-meta p {
  margin: 0;
}

.reading-view {
  min-height: 100svh;
}

.reading-header {
  position: sticky;
  z-index: 60;
  top: 0;
  height: 71px;
  display: grid;
  grid-template-columns: 71px 1fr;
  border-bottom: 1px solid var(--line);
  background: rgba(228, 232, 231, 0.78);
  backdrop-filter: blur(18px);
}

.reading-home {
  width: 71px;
  height: 71px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.reading-home img {
  width: 40px;
  height: 40px;
}

.sign-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 1.7vw, 25px);
  padding: 0 82px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sign-nav::-webkit-scrollbar {
  display: none;
}

.nav-sign {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-sign img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-sign.is-active::before,
.nav-sign.is-active::after {
  position: absolute;
  content: "";
  border: 1px solid var(--ink);
  border-radius: 50%;
  inset: -8px;
}

.nav-sign.is-active::after {
  inset: -4px;
  opacity: 0.65;
}

.reading-cart-button {
  position: fixed;
  z-index: 70;
  top: 111px;
  right: 31px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: rgba(228, 232, 231, 0.5);
  cursor: pointer;
  backdrop-filter: blur(9px);
}

.reading-cart-button svg {
  width: 19px;
  height: 19px;
}

.cart-badge {
  position: absolute;
  min-width: 18px;
  height: 18px;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: var(--surface);
  background: var(--ink);
  font-size: 11px;
}

.reading-hero {
  min-height: 245px;
  display: flex;
  align-items: flex-start;
  padding: 41px 31px 32px;
}

.reading-title {
  max-width: 90%;
  margin: 0;
  font-size: clamp(64px, 6.25vw, 88px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.reading-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(580px, 1.88fr);
  grid-template-areas:
    "horoscope rituals"
    "between rituals";
  align-items: start;
  column-gap: 46px;
  padding: 0 31px 80px;
}

.horoscope-section {
  grid-area: horoscope;
}

.between-section {
  grid-area: between;
  align-self: start;
}

.between-desktop {
  display: none;
}

.between-mobile {
  display: block;
}

.rituals-section {
  grid-area: rituals;
}

.section-heading {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 32px;
  padding: 7px 1px 10px;
  border-top: 1px solid var(--line);
  font-size: clamp(27px, 2.35vw, 34px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-sigil {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0;
}

.horoscope-copy {
  min-height: 290px;
  padding: 14px 0 21px;
  font: clamp(18px, 1.65vw, 23px) / 1.24 var(--serif);
}

.horoscope-copy p {
  margin: 0 0 20px;
}

.between-content {
  padding: 10px 0 28px;
}

.lucky-number {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 8px 0 24px;
}

.lucky-number strong {
  font: 76px/0.9 var(--serif);
}

.lucky-number span {
  max-width: 120px;
  font: 17px/1.15 var(--serif);
}

.between-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.between-list div {
  display: grid;
  gap: 4px;
}

.between-list dt {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.between-list dd {
  margin: 0;
  font: 18px/1.25 var(--serif);
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 16px 0;
}

.rituals-section .section-heading {
  margin-bottom: 16px;
}

.col-span-full {
  grid-column: 1 / -1;
}

.ritual-card-wrap {
  min-width: 0;
  height: 100%;
}

.ritual-card {
  position: relative;
  height: 100%;
  min-height: 485px;
  overflow: hidden;
  color: var(--card-ink);
  background: var(--card);
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px rgba(238, 238, 233, 0.56);
}

.ritual-copy {
  position: relative;
  z-index: 2;
  max-width: 330px;
  margin: 0 auto;
  padding: 30px 32px 0;
  text-align: center;
}

.ritual-category {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
  padding: 3px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-size: 14px;
}

.ritual-card h3 {
  margin: 0 0 5px;
  font: 23px/1.15 var(--serif);
}

.ritual-description {
  margin: 0;
  color: rgba(244, 244, 239, 0.82);
  font: 19px/1.24 var(--serif);
}

.product-stack {
  position: absolute;
  width: 76%;
  height: 205px;
  right: 12%;
  bottom: -35px;
}

.product-tile {
  position: absolute;
  width: min(128px, 51%);
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  box-shadow: 0 11px 24px rgba(0, 0, 0, 0.2);
  transition:
    transform 220ms ease,
    bottom 220ms ease;
}

.product-tile:first-child {
  left: 2%;
  bottom: -4px;
  transform: rotate(-3deg);
}

.product-tile:last-child {
  right: 1%;
  bottom: 1px;
  transform: rotate(3deg);
}

.product-tile:hover:first-child {
  bottom: 5px;
  transform: rotate(-1deg);
}

.product-tile:hover:last-child {
  bottom: 10px;
  transform: rotate(1deg);
}

.product-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease-out;
}

.product-tile:hover img {
  transform: scale(1.05);
}

[role="status"][aria-label="Loading"].relative {
  position: relative;
}

[role="status"][aria-label="Loading"].overflow-hidden {
  overflow: hidden;
}

[role="status"][aria-label="Loading"].flex {
  display: flex;
}

[role="status"][aria-label="Loading"].items-center {
  align-items: center;
}

[role="status"][aria-label="Loading"].justify-center {
  justify-content: center;
}

[role="status"][aria-label="Loading"] > .relative {
  position: relative;
}

[role="status"][aria-label="Loading"] .absolute {
  position: absolute;
}

[role="status"][aria-label="Loading"] .rounded-full {
  border-radius: 9999px;
}

[role="status"][aria-label="Loading"] [class~="bg-[var(--text)]"] {
  background: var(--text);
}

@keyframes sparkle {
  0%,
  to {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 0.8;
    transform: scale(1);
  }
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.6s var(--ease-out-expo) both;
}

.cart-overlay,
.product-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(25, 25, 25, 0.32);
  backdrop-filter: blur(3px);
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.cart-overlay.is-open,
.product-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.cart-drawer {
  position: absolute;
  width: min(440px, 100vw);
  height: 100%;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 25px;
  background: #efefe9;
  border-left: 1px solid var(--ink);
  transform: translateX(101%);
  transition: transform 360ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.cart-overlay.is-open .cart-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 400;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-empty {
  height: 70%;
  display: grid;
  place-items: center;
  text-align: center;
}

.cart-empty-mark {
  display: block;
  margin-bottom: 15px;
  font: 55px/1 var(--serif);
}

.cart-empty p {
  margin: 5px;
  font: 21px/1.2 var(--serif);
}

.cart-line {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(60, 61, 61, 0.35);
}

.cart-line img {
  width: 86px;
  height: 96px;
  border-radius: 3px;
  object-fit: cover;
}

.cart-line h3 {
  margin: 3px 0 7px;
  font: 18px/1.15 var(--serif);
}

.cart-line p {
  margin: 0;
  font-size: 14px;
}

.remove-line {
  align-self: start;
  padding: 3px;
  border: 0;
  border-bottom: 1px solid;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 0 8px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.product-modal {
  position: absolute;
  width: min(760px, calc(100vw - 36px));
  min-height: 420px;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  color: var(--card-ink);
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 8px;
  transform: translate(-50%, -46%) scale(0.97);
  transition: transform 260ms ease;
}

.product-overlay.is-open .product-modal {
  transform: translate(-50%, -50%) scale(1);
}

.product-modal-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.product-modal-copy {
  display: flex;
  flex-direction: column;
  padding: 34px;
}

.product-modal-copy .icon-button {
  align-self: flex-end;
  color: var(--card-ink);
  border-color: rgba(255, 255, 255, 0.72);
}

.product-eyebrow {
  margin: auto 0 11px;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-modal h2 {
  margin: 0 0 15px;
  font: 31px/1.08 var(--serif);
}

.product-price {
  margin: 0 0 30px;
  font-size: 18px;
}

.add-button {
  min-height: 54px;
  border: 1px solid var(--card-ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--card-ink);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.add-button:hover {
  color: var(--card-ink);
  background: transparent;
}

.toast {
  position: fixed;
  z-index: 110;
  right: 24px;
  bottom: 24px;
  padding: 14px 20px;
  border-radius: 999px;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(120px);
  transition: transform 260ms ease;
}

.toast.is-visible {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .sign-nav {
    justify-content: flex-start;
  }

  .reading-grid {
    grid-template-columns: minmax(270px, 0.85fr) minmax(430px, 1.15fr);
    column-gap: 28px;
  }

  .ritual-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 48rem) {
  .between-desktop {
    display: block;
  }

  .between-mobile {
    display: none;
  }
}

@media (width < 48rem) {
  .corner-fold {
    width: 72px;
    height: 72px;
  }

  .home-logo {
    width: 40px;
    top: 20px;
  }

  .home-date,
  .home-meta {
    display: none;
  }

  .home-heading {
    width: calc(100% - 44px);
    top: 18.5%;
    font-size: clamp(30px, 8.1vw, 38px);
    line-height: 1.16;
  }

  .orbit {
    width: 390px;
    height: 390px;
    top: 83%;
  }

  .orbit-sign {
    top: 50%;
    transform: rotate(var(--angle)) translateY(-176px)
      rotate(calc(var(--angle) * -1));
  }

  .orbit-prompt {
    top: -72px;
  }

  .orbit-center {
    top: 49%;
  }

  .reading-header {
    grid-template-columns: 69px 1fr;
    height: 69px;
  }

  .reading-home {
    width: 69px;
    height: 69px;
  }

  .sign-nav {
    gap: 12px;
    padding: 0 18px;
  }

  .nav-sign {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
  }

  .nav-sign img {
    width: 43px;
    height: 43px;
  }

  .reading-cart-button {
    top: 108px;
    right: 31px;
  }

  .reading-hero {
    min-height: 248px;
    padding: 36px 31px 28px;
  }

  .reading-title {
    max-width: 250px;
    font-size: clamp(52px, 15vw, 64px);
    line-height: 0.94;
  }

  .reading-title span {
    display: block;
  }

  .reading-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 31px 64px;
  }

  .horoscope-section,
  .rituals-section,
  .between-section {
    width: 100%;
  }

  .horoscope-section {
    order: 1;
  }

  .rituals-section {
    order: 2;
  }

  .between-section {
    order: 3;
  }

  .section-heading {
    min-height: 54px;
    font-size: 28px;
  }

  .horoscope-copy {
    min-height: 0;
    padding-top: 14px;
    font-size: 19px;
    line-height: 1.24;
  }

  .ritual-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px 8px;
  }

  .ritual-card {
    min-height: 500px;
  }

  .ritual-copy {
    padding-inline: 27px;
  }

  .product-modal {
    max-height: calc(100vh - 36px);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .product-modal-image {
    height: 230px;
    min-height: 230px;
  }

  .product-modal-copy {
    min-height: 300px;
    padding: 24px;
  }

  .product-eyebrow {
    margin-top: 35px;
  }
}

@media (max-height: 680px) and (min-width: 48rem) {
  .home-heading {
    top: 15.5%;
  }

  .orbit {
    top: 84%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .starred-root *,
  .starred-root ::before,
  .starred-root ::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
