:root {
  --ink: #f3eee4;
  --muted: #a6a3b8;
  --night: #0a0913;
  --indigo: #121126;
  --violet: #2b2148;
  --lavender: #a89ac9;
  --gold: #c5aa74;
  --line: rgba(226, 220, 238, 0.14);
  --glass: rgba(20, 18, 39, 0.72);
  --serif: "Prata", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
}
.app {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 3%, rgba(79, 53, 124, 0.27), transparent 24%),
    var(--night);
}
.page-shell {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
}
section {
  opacity: 1;
  transform: none;
}
section.visible {
  opacity: 1;
  transform: none;
}

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(1320px, calc(100% - 40px));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(10, 9, 19, 0.68);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.brand {
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.22em;
  cursor: pointer;
}
.brand-sigil {
  color: var(--gold);
  margin-right: 9px;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav-link {
  position: relative;
  border: 0;
  padding: 20px 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.25s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--gold);
  left: 0;
  right: 0;
  bottom: 13px;
}
.menu {
  display: none;
  border: 0;
  background: none;
  width: 32px;
}
.menu span {
  display: block;
  height: 1px;
  margin: 7px 0;
  background: var(--ink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: clamp(54px, 6.3vw, 96px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 30px;
}
h1 em {
  color: var(--lavender);
  font-weight: inherit;
}
h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 24px;
  line-height: 1.25;
}
p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}
.eyebrow {
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
}
.lead {
  max-width: 670px;
  font-size: 16px;
  line-height: 1.8;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  min-width: 210px;
  padding: 17px 20px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--night);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}
.button:hover {
  transform: translateY(-3px);
  background: #d7bf8f;
}
.button-quiet {
  min-width: 0;
  padding: 10px 0;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.button-quiet:hover {
  background: transparent;
  border-color: var(--gold);
}
.section {
  padding-block: 130px;
}
.section-title {
  max-width: 700px;
  margin-bottom: 52px;
}
.section-title h2 {
  margin: 0;
}
.section-title.centered {
  margin-inline: auto;
  text-align: center;
}
.section-intro {
  max-width: 660px;
  margin: -32px auto 55px;
  text-align: center;
}
.title-block {
  max-width: 940px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: 840px;
  padding-top: 120px;
}
.hero-copy {
  position: relative;
  z-index: 3;
}
.hero-copy .lead {
  max-width: 600px;
  margin-bottom: 38px;
}
.hero-cards {
  position: relative;
  height: 580px;
}
.hero-card {
  position: absolute;
  width: 265px;
  height: 455px;
  border: 1px solid rgba(197, 170, 116, 0.4);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(112, 88, 168, 0.12);
}
.main-card {
  z-index: 3;
  left: 45%;
  top: 48%;
  transform: translate(-50%, -50%);
}
.side-card {
  width: 220px;
  height: 380px;
  top: 18%;
  opacity: 0.58;
}
.left-card {
  left: 3%;
  transform: rotate(-12deg);
}
.right-card {
  right: -3%;
  transform: rotate(13deg);
}
.hero-orbit {
  position: absolute;
  width: 510px;
  height: 510px;
  border: 1px solid var(--line);
  border-radius: 50%;
  left: 48%;
  top: 49%;
  transform: translate(-50%, -50%);
}
.spark {
  position: absolute;
  color: var(--gold);
}
.spark-a {
  right: 7%;
  top: 12%;
}
.spark-b {
  left: 3%;
  bottom: 16%;
  font-size: 24px;
}
.scroll-note {
  position: absolute;
  left: 0;
  bottom: 42px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.scroll-note span {
  display: inline-block;
  width: 50px;
  height: 1px;
  background: var(--line);
  margin-right: 14px;
  vertical-align: middle;
}

.tarot-art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(172, 147, 204, 0.26),
      transparent 26%
    ),
    linear-gradient(155deg, #282140, #0e0e1e 65%);
  border: 8px solid #17152a;
  outline: 1px solid rgba(197, 170, 116, 0.42);
  outline-offset: -15px;
}
.tarot-art::before,
.tarot-art::after {
  content: "";
  position: absolute;
  width: 170%;
  height: 42%;
  border: 1px solid rgba(197, 170, 116, 0.28);
  border-radius: 50%;
}
.tarot-art::before {
  top: 16%;
  transform: rotate(-20deg);
}
.tarot-art::after {
  bottom: -19%;
  background: linear-gradient(rgba(115, 91, 158, 0.25), transparent);
}
.art-1,
.art-7,
.art-13,
.art-19 {
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(210, 178, 111, 0.3),
      transparent 22%
    ),
    linear-gradient(155deg, #403049, #121326 67%);
}
.art-2,
.art-8,
.art-14,
.art-20 {
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(93, 133, 164, 0.3),
      transparent 25%
    ),
    linear-gradient(155deg, #1b3a48, #111326 70%);
}
.art-3,
.art-9,
.art-15,
.art-21 {
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(145, 73, 91, 0.26),
      transparent 24%
    ),
    linear-gradient(155deg, #442438, #141225 70%);
}
.art-mark {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 90px);
  color: var(--ink);
  text-shadow: 0 0 35px rgba(241, 233, 214, 0.4);
}
.orbit {
  position: absolute;
  border: 1px solid rgba(197, 170, 116, 0.42);
  border-radius: 50%;
}
.orbit-one {
  width: 54%;
  aspect-ratio: 1;
}
.orbit-two {
  width: 78%;
  aspect-ratio: 1;
}
.art-horizon {
  position: absolute;
  z-index: 1;
  bottom: 23%;
  width: 66%;
  height: 20%;
  background:
    linear-gradient(
      150deg,
      transparent 48%,
      rgba(197, 170, 116, 0.25) 49%,
      transparent 51%
    ),
    linear-gradient(
      30deg,
      transparent 48%,
      rgba(197, 170, 116, 0.2) 49%,
      transparent 51%
    );
}
.card-index {
  position: absolute;
  left: 25px;
  top: 25px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.art-name {
  position: absolute;
  bottom: 27px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  min-height: 570px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}
.feature-card .tarot-art {
  height: 290px;
  margin-bottom: 28px;
}
.feature-card > div:last-child {
  padding: 0 18px 18px;
}
.feature-card h3 {
  margin-bottom: 10px;
}
.feature-card p {
  min-height: 76px;
}
.journey {
  background: linear-gradient(
    90deg,
    rgba(45, 34, 74, 0.55),
    rgba(18, 17, 38, 0.8)
  );
  border-block: 1px solid var(--line);
}
.journey-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.journey-line::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--line);
}
.journey-line button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 38px 0 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.journey-line span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #17142b;
  color: var(--gold);
  font-size: 9px;
}
.journey-line strong {
  margin: 24px 0 10px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
}
.journey-line small {
  color: var(--muted);
  line-height: 1.6;
}
.spread-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.spread-preview {
  padding: 35px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.25s;
}
.spread-preview:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
}
.spread-preview > span {
  color: var(--gold);
  font-size: 10px;
}
.mini-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 160px;
}
.mini-layout i {
  display: grid;
  place-items: center;
  width: 43px;
  height: 72px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 9px;
  font-style: normal;
}
.mini-10 {
  position: relative;
  transform: scale(0.8);
  flex-wrap: wrap;
  max-width: 180px;
  margin: auto;
}
.mini-10 i {
  height: 50px;
  width: 30px;
}
.quote-block {
  display: grid;
  grid-template-columns: 150px 0.8fr 1fr;
  gap: 50px;
  align-items: center;
  margin-block: 60px 130px;
  padding-block: 70px;
  border-block: 1px solid var(--line);
}
.quote-symbol {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 45px;
  color: var(--gold);
}

.inner-hero,
.minor-hero,
.meanings-head,
.spreads-hero,
.history-hero {
  min-height: 700px;
  padding-top: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}
.inner-hero > div:first-child {
  max-width: 670px;
}
.major-stack {
  position: relative;
  width: 450px;
  height: 480px;
}
.major-stack .tarot-art {
  position: absolute;
  width: 230px;
  height: 390px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.major-stack .tarot-art:nth-child(1) {
  left: 0;
  top: 40px;
  transform: rotate(-12deg);
}
.major-stack .tarot-art:nth-child(2) {
  left: 110px;
  z-index: 2;
}
.major-stack .tarot-art:nth-child(3) {
  right: 0;
  top: 45px;
  transform: rotate(12deg);
}
.article-intro {
  padding-block: 100px;
  border-top: 1px solid var(--line);
}
.prose p {
  font-size: 15px;
  line-height: 1.9;
}
.prose.columns {
  columns: 2;
  column-gap: 70px;
}
.prose.columns p {
  break-inside: avoid;
  margin-bottom: 24px;
}
.arcana-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 18px;
}
.arcana-card .tarot-art {
  height: 390px;
  transition: transform 0.35s;
}
.arcana-card:hover .tarot-art {
  transform: translateY(-6px);
}
.arcana-card > div:last-child {
  position: relative;
  padding: 21px 0 0 38px;
}
.arcana-card > div > span {
  position: absolute;
  left: 10px;
  top: 21px;
  color: var(--gold);
  font-size: 15px;
}
.arcana-card h3 {
  margin-bottom: 5px;
  font-size: 19px;
}
.arcana-card p {
  font-size: 11px;
}
.path-block {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 90px;
  padding-block: 110px;
  border-top: 1px solid var(--line);
}
.path-block .link-row {
  grid-column: 2;
}
.link-row {
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
  padding-bottom: 90px;
}

.minor-hero {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.minor-hero .lead {
  margin-inline: auto;
}
.suit-orbit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  width: 100%;
  padding-top: 40px;
}
.suit-orbit div {
  display: grid;
  gap: 14px;
}
.suit-orbit span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 35px;
}
.suit-orbit small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.suit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.suit-card {
  position: relative;
  min-height: 420px;
  padding: 55px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(56, 45, 85, 0.35),
    rgba(255, 255, 255, 0.015)
  );
}
.suit-card .suit-mark {
  position: absolute;
  right: 45px;
  top: 35px;
  color: rgba(197, 170, 116, 0.18);
  font-size: 120px;
  font-family: var(--serif);
}
.suit-card p {
  max-width: 440px;
}
.suit-card dl {
  margin-top: 45px;
  display: flex;
  gap: 65px;
}
.suit-card dl div {
  display: grid;
  gap: 5px;
}
.suit-card dt {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.suit-card dd {
  margin: 0;
  font-family: var(--serif);
}
.structure {
  background: var(--indigo);
  border-block: 1px solid var(--line);
}
.rank-line {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 50px;
  margin-bottom: 55px;
}
.rank-line span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-right: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
}
.rank-line .court {
  border-color: rgba(197, 170, 116, 0.5);
  color: var(--gold);
}

.meanings-head {
  min-height: 590px;
  display: block;
  padding-top: 180px;
}
.meanings-head .lead {
  display: inline-block;
}
.search {
  float: right;
  width: 390px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.search input {
  flex: 1;
  width: 100px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.search small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.catalog {
  padding-bottom: 130px;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 50px;
  overflow-x: auto;
  padding-bottom: 5px;
}
.filters button {
  flex: 0 0 auto;
  padding: 12px 17px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}
.filters button.active {
  color: var(--night);
  background: var(--gold);
  border-color: var(--gold);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 18px;
}
.catalog-card {
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
}
.catalog-card .tarot-art {
  height: 340px;
  margin-bottom: 20px;
}
.catalog-card > span {
  color: var(--gold);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.catalog-card h3 {
  font-size: 18px;
  margin: 9px 0 6px;
}
.catalog-card p {
  min-height: 40px;
  font-size: 10px;
}
.catalog-card b {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.catalog-card b i {
  font-style: normal;
  color: var(--gold);
}
.cta {
  margin-bottom: 130px;
  padding: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  border: 1px solid var(--line);
  background: linear-gradient(
    120deg,
    rgba(73, 54, 105, 0.35),
    rgba(14, 13, 27, 0.3)
  );
}
.cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: 42px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(5, 4, 10, 0.75);
  backdrop-filter: blur(8px);
}
.card-modal {
  width: min(600px, 100%);
  height: 100%;
  padding: 45px 55px;
  overflow-y: auto;
  background: var(--indigo);
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.4);
  animation: slide-in 0.35s ease;
}
@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
}
.modal-close {
  display: block;
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.modal-art {
  float: right;
  width: 180px;
  height: 290px;
  margin: 25px 0 30px 35px;
}
.card-modal h2 {
  margin-bottom: 8px;
}
.keywords {
  color: var(--gold);
}
.meaning-list {
  clear: both;
  border-top: 1px solid var(--line);
}
.meaning-list div {
  padding-block: 23px;
  border-bottom: 1px solid var(--line);
}
.meaning-list h3 {
  margin-bottom: 7px;
  font-size: 16px;
}
.meaning-list p {
  margin: 0;
  font-size: 12px;
}

.spreads-hero {
  position: relative;
}
.spreads-hero > div:first-child {
  max-width: 660px;
}
.spreads-hero .spread-diagram {
  width: 450px;
}
.spread-library {
  padding-block: 100px;
}
.spread-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.spread-number {
  color: var(--gold);
  font-size: 10px;
}
.spread-row h2 {
  font-size: 40px;
  margin-bottom: 15px;
}
.spread-row p {
  max-width: 480px;
}
.spread-diagram {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.spread-diagram span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 118px;
  border: 1px solid var(--gold);
  background: rgba(48, 38, 71, 0.6);
  color: var(--gold);
  font-size: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
.diagram-5 {
  display: grid;
  grid-template-columns: repeat(3, 70px);
}
.diagram-5 span:nth-child(4) {
  grid-column: 1 / 2;
}
.diagram-5 span:nth-child(5) {
  grid-column: 3;
}
.diagram-cross {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 45px);
  gap: 8px;
}
.diagram-cross span {
  width: 45px;
  height: 76px;
}
.diagram-cross span:nth-child(n + 7) {
  grid-row: 2;
}
.notice {
  margin-block: 80px 120px;
  padding: 65px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 45px;
  border: 1px solid var(--line);
}
.notice > span {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 35px;
}
.notice h2 {
  font-size: 42px;
  margin-bottom: 10px;
}

.history-hero > div:first-child {
  max-width: 790px;
}
.archive-card {
  width: 260px;
  flex: 0 0 auto;
  transform: rotate(4deg);
}
.archive-card .tarot-art {
  height: 410px;
  filter: sepia(0.25) saturate(0.7);
}
.archive-card > span {
  display: block;
  padding: 12px 0;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.timeline-section {
  background: var(--indigo);
  border-block: 1px solid var(--line);
}
.history-copy {
  max-width: 850px;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 75px;
}
.timeline article {
  position: relative;
  padding: 35px 25px 0 0;
  border-top: 1px solid var(--line);
}
.timeline article > span {
  position: absolute;
  width: 9px;
  height: 9px;
  top: -5px;
  left: 0;
  border-radius: 50%;
  background: var(--gold);
}
.timeline h3 {
  font-size: 16px;
}
.timeline p {
  font-size: 10px;
  padding-right: 15px;
}
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.symbol-grid article {
  min-height: 240px;
  padding: 35px;
  border: 1px solid var(--line);
}
.symbol-grid span {
  display: block;
  color: var(--gold);
  font-size: 42px;
  margin-bottom: 30px;
}
.symbol-grid h3 {
  font-size: 18px;
}
.symbol-grid p {
  font-size: 11px;
}
.archetype {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  padding-block: 130px;
}
.archetype-art {
  display: flex;
}
.archetype-art .tarot-art {
  width: 260px;
  height: 430px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.archetype-art .tarot-art:last-child {
  margin: 80px 0 0 -45px;
}

.footer {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto 20px;
  padding: 65px 40px 30px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}
.footer-brand {
  color: var(--ink);
  font-family: var(--serif);
  letter-spacing: 0.2em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 15px 30px;
}
.footer-links button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.copyright {
  grid-column: 1/-1;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

@media (max-width: 1050px) {
  .nav {
    gap: 15px;
  }
  .nav-link {
    font-size: 10px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 170px;
  }
  .hero-cards {
    position: absolute;
    right: -110px;
    width: 510px;
    opacity: 0.42;
  }
  .hero-copy {
    max-width: 700px;
  }
  .hero-copy h1 {
    font-size: 70px;
  }
  .feature-grid,
  .spread-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card:last-child {
    grid-column: 1/-1;
  }
  .arcana-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .inner-hero,
  .history-hero {
    gap: 20px;
  }
  .major-stack {
    transform: scale(0.75);
  }
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 0;
  }
  .spreads-hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .spreads-hero .spread-diagram {
    align-self: center;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 36px, 620px);
  }
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }
  .menu {
    display: block;
  }
  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 16px 22px;
    border: 1px solid var(--line);
    background: #100e1e;
  }
  .nav.open {
    display: flex;
  }
  .nav-link {
    padding: 14px 0;
    text-align: left;
  }
  .nav-link.active::after {
    display: none;
  }
  h1,
  .hero-copy h1 {
    font-size: 47px;
  }
  .lead {
    font-size: 14px;
  }
  .section {
    padding-block: 85px;
  }
  .home-hero {
    min-height: 820px;
    padding-top: 130px;
    align-items: flex-start;
  }
  .hero-cards {
    width: 360px;
    height: 400px;
    right: -100px;
    bottom: 0;
    top: auto;
  }
  .hero-card {
    transform: scale(0.72);
    transform-origin: center;
  }
  .main-card {
    left: 32%;
    transform: translate(-50%, -50%) scale(0.72);
  }
  .left-card {
    display: none;
  }
  .right-card {
    right: -10%;
    transform: rotate(13deg) scale(0.65);
  }
  .hero-orbit {
    width: 340px;
    height: 340px;
  }
  .scroll-note {
    display: none;
  }
  .feature-grid,
  .spread-preview-grid,
  .suit-grid,
  .symbol-grid {
    grid-template-columns: 1fr;
  }
  .feature-card:last-child {
    grid-column: auto;
  }
  .journey-line {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .journey-line::before {
    width: 1px;
    height: auto;
    left: 21px;
    top: 20px;
    bottom: 20px;
  }
  .journey-line button {
    padding-left: 65px;
  }
  .journey-line span {
    left: 0;
  }
  .journey-line strong {
    margin-top: 3px;
  }
  .quote-block {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .quote-symbol {
    width: 70px;
    height: 70px;
  }
  .inner-hero,
  .minor-hero,
  .meanings-head,
  .spreads-hero,
  .history-hero {
    min-height: 640px;
    padding-top: 130px;
    display: block;
  }
  .major-stack {
    display: none;
  }
  .prose.columns {
    columns: 1;
  }
  .arcana-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
  }
  .arcana-card .tarot-art,
  .catalog-card .tarot-art {
    height: 270px;
  }
  .path-block {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 75px;
  }
  .path-block .link-row {
    grid-column: auto;
  }
  .suit-orbit {
    gap: 12px;
  }
  .suit-orbit span {
    width: 60px;
    height: 60px;
  }
  .suit-card {
    padding: 35px 28px;
  }
  .suit-card .suit-mark {
    font-size: 80px;
  }
  .search {
    float: none;
    width: 100%;
    margin-top: 30px;
  }
  .meanings-head {
    min-height: 680px;
  }
  .cta {
    padding: 40px 28px;
    flex-direction: column;
    align-items: flex-start;
  }
  .cta h2 {
    font-size: 32px;
  }
  .card-modal {
    padding: 35px 25px;
  }
  .modal-art {
    width: 130px;
    height: 220px;
    margin-left: 20px;
  }
  .spreads-hero .spread-diagram {
    width: 100%;
    margin-top: 25px;
  }
  .spread-row {
    grid-template-columns: 35px 1fr;
    gap: 20px;
  }
  .spread-row .spread-diagram {
    grid-column: 1/-1;
  }
  .spread-diagram span {
    width: 52px;
    height: 88px;
  }
  .notice {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
  .archive-card {
    display: none;
  }
  .timeline {
    grid-template-columns: 1fr;
  }
  .symbol-grid article {
    min-height: 200px;
  }
  .archetype {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-block: 90px;
  }
  .archetype-art {
    justify-content: center;
    transform: scale(0.8);
  }
  .footer {
    grid-template-columns: 1fr;
    padding: 45px 25px;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .copyright {
    grid-column: auto;
  }
}

/* SEO-friendly image presentation */
.optimized-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 8px solid #17152a;
  outline: 1px solid rgba(197, 170, 116, 0.42);
  outline-offset: -15px;
}
.hero-image-card {
  width: 265px;
  height: 455px;
  position: absolute;
  border: 1px solid rgba(197, 170, 116, 0.4);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(112, 88, 168, 0.12);
}
.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 760px) {
  .hero-image-card {
    width: 190px;
    height: 325px;
  }
  .hero-image-card.main-image {
    left: 32%;
    top: 48%;
  }
  .hero-image-card.moon-image {
    display: none;
  }
}

/* ===== FINAL VISUAL POLISH ===== */
:root {
  --gold-soft: #d7bd82;
  --purple: #8d78b8;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(28, 25, 50, 0.82);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
body {
  background: #080711;
  letter-spacing: 0.005em;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
}
.app {
  background:
    radial-gradient(circle at 80% 0%, rgba(106, 77, 157, 0.2), transparent 25%),
    radial-gradient(circle at 10% 65%, rgba(55, 39, 91, 0.14), transparent 30%),
    #080711;
}
.page-shell {
  width: min(1240px, calc(100% - 64px));
}
.site-header {
  height: 68px;
  border-radius: 12px;
  border-color: rgba(215, 189, 130, 0.18);
  background: rgba(9, 8, 17, 0.78);
  box-shadow: 0 15px 55px rgba(0, 0, 0, 0.32);
}
.brand {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.brand:hover {
  color: var(--gold-soft);
  transform: translateY(-1px);
}
.nav {
  align-items: center;
}
.nav-link {
  padding: 23px 0;
}
.nav-link.active::after {
  height: 2px;
  bottom: 12px;
  border-radius: 2px;
}
.button {
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(197, 170, 116, 0.1);
}
.button:hover {
  box-shadow: 0 15px 35px rgba(197, 170, 116, 0.18);
}
.button-quiet {
  box-shadow: none;
}

/* Breadcrumbs make the hierarchy and the required home path explicit. */
.breadcrumbs {
  padding-top: 112px;
  margin-bottom: -55px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #858197;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.breadcrumbs a {
  color: var(--gold-soft);
  transition: opacity 0.2s ease;
}
.breadcrumbs a:hover {
  opacity: 0.7;
}
.breadcrumbs span:last-child {
  color: #b8b2c6;
}

/* Inner-page hero alignment */
.inner-hero,
.minor-hero,
.meanings-head,
.spreads-hero,
.history-hero {
  min-height: 680px;
  padding-top: 165px;
}
.inner-hero > div:first-child,
.minor-hero > div:first-child,
.meanings-head > div:first-child,
.history-hero > div:first-child {
  position: relative;
  z-index: 2;
}
.title-block h1 {
  max-width: 900px;
}

/* Cards and sections */
.feature-card,
.spread-preview,
.arcana-card,
.suit-card,
.catalog-card {
  border-color: rgba(215, 189, 130, 0.14);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.012)
  );
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.feature-card:hover,
.arcana-card:hover,
.suit-card:hover,
.catalog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 189, 130, 0.35);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.065),
    rgba(255, 255, 255, 0.018)
  );
  box-shadow: var(--shadow);
}
.feature-card .tarot-art,
.arcana-card .tarot-art,
.catalog-card .tarot-art {
  border-radius: 2px;
}
.tarot-art {
  background-color: #151225;
}

/* Fix the journey links: the original CSS targeted buttons while markup uses anchors. */
.journey-line a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 38px 0 0;
  text-align: left;
  cursor: pointer;
}
.journey-line a:hover strong {
  color: var(--gold-soft);
}
.journey-line strong {
  transition: color 0.2s ease;
}

/* Search and filter controls */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s ease;
}
.filters button:hover,
.filters button.active {
  border-color: rgba(215, 189, 130, 0.55);
  background: rgba(197, 170, 116, 0.12);
  color: var(--ink);
}
.search {
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  color: var(--ink);
  padding: 14px 18px !important;
}
.search::placeholder {
  color: #777388;
}
.catalog-card {
  width: 100%;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  padding: 25px;
}
.catalog-card > b {
  color: var(--ink);
}
.catalog-card b i {
  transition: transform 0.2s ease;
}
.catalog-card:hover b i {
  transform: translateX(4px);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  padding-top: 50px;
}
.footer {
  border-radius: 14px;
  border-color: rgba(215, 189, 130, 0.14);
  background: rgba(12, 11, 22, 0.7);
  box-shadow: var(--shadow);
}
.footer-links a {
  color: var(--muted);
  font-size: 11px;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--gold-soft);
}
.footer-links {
  align-content: flex-start;
}

/* Modal */
.modal-backdrop[hidden] {
  display: none;
}
.modal-backdrop {
  align-items: stretch;
}
.card-modal {
  background: linear-gradient(160deg, #18152b, #0d0c18);
  border-left: 1px solid rgba(215, 189, 130, 0.2);
}
.modal-close {
  padding: 8px 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal-close:hover {
  color: var(--gold-soft);
}

.mini-10 .card {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 52px;

}

.mini-10 .card-1 {
  left: 86px;
  top: 70px;
}

.mini-10 .card-2 {
  left: 72px;
  top: 79px;

  width: 62px;
  height: 34px;
}

.mini-10 .card-3 {
  left: 86px;
  top: 137px;
}

.mini-10 .card-4 {
  left: 86px;
  top: 0;
}

.mini-10 .card-5 {
  left: 20px;
  top: 72px;
}

.mini-10 .card-6 {
  left: 143px;
  top: 72px;
}

.mini-10 .card-10 {
  left: 195px;
  top: -20px;
}

.mini-10 .card-9 {
  left: 195px;
  top: 38px;
}

.mini-10 .card-8 {
  left: 195px;
  top: 96px;
}

.mini-10 .card-7 {
  left: 195px;
  top: 154px;
}

.major-stack .tarot-art {
  overflow: hidden;
  border-radius: 12px;
}

.major-stack .tarot-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.archetype-art .tarot-art {
  overflow: hidden;
}

.archetype-art .tarot-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


.diagram-cross span {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 60px;
  height: 100px;

  box-sizing: border-box;
}

.diagram-cross .card-4 {
  left: 88px;
  top: -43px;
}

.diagram-cross .card-1 {
  left: 88px;
  top: 71px;
}

.diagram-cross .card-12 {
  left: 69px;
  top: 91px;

  width: 100px;
  height: 60px;
}

.diagram-cross .card-3 {
  left: 88px;
  top: 184px;
}

.diagram-cross .card-5 {
  left: 0;
  top: 71px;
}

.diagram-cross .card-6 {
  left: 178px;
  top: 71px;
}

.diagram-cross .card-10 {
  left: 251px;
  top: -58px;
}

.diagram-cross .card-9 {
  left: 251px;
  top: 46px;
}

.diagram-cross .card-8 {
  left: 251px;
  top: 150px;
}

.diagram-cross .card-7 {
  left: 251px;
  top: 254px;
}

@media (max-width: 1050px) {
  .page-shell {
    width: min(100% - 48px, 900px);
  }
  .site-header {
    width: calc(100% - 32px);
  }
  .nav {
    gap: 18px;
  }
  .nav-link {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  .page-shell {
    width: calc(100% - 32px);
  }
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    height: 60px;
    padding: 0 18px;
    border-radius: 10px;
  }
  .brand {
    font-size: 13px;
  }
  .nav {
    top: 68px;
    border-radius: 12px;
    padding: 12px 18px;
    background: rgba(13, 12, 24, 0.96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  }
  .nav-link {
    padding: 13px 0;
    font-size: 11px;
  }
  .breadcrumbs {
    padding-top: 92px;
    margin-bottom: -35px;
    font-size: 8px;
    gap: 7px;
  }
  .home-hero {
    min-height: 760px;
    padding-top: 125px;
  }
  h1,
  .hero-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
  }
  h2 {
    font-size: clamp(31px, 9vw, 45px);
  }
  .section {
    padding-block: 78px;
  }
  .feature-card {
    min-height: 0;
  }
  .feature-card .tarot-art {
    height: 250px;
  }
  .arcana-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arcana-card .tarot-art,
  .catalog-card .tarot-art {
    height: 220px;
  }
  .catalog-card {
    padding: 0 0 16px;
  }
  .catalog-card h3,
  .catalog-card p,
  .catalog-card > b,
  .catalog-card > span {
    margin-left: 14px;
    margin-right: 14px;
  }
  .filters {
    gap: 7px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 14px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .filters button {
    white-space: nowrap;
    padding: 9px 13px;
    font-size: 11px;
  }
  .search {
    width: 100% !important;
    margin: 0 0 18px !important;
  }
  .link-row {
    gap: 12px 22px;
  }
  .footer {
    width: calc(100% - 16px);
    margin-bottom: 8px;
    border-radius: 10px;
    padding: 40px 22px 24px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 20px;
  }
  .copyright {
    line-height: 1.6;
  }
}
@media (max-width: 480px) {
  .hero-cards {
    right: -145px;
    opacity: 0.35;
  }
  .hero-image-card {
    width: 170px;
    height: 290px;
  }
  .hero-image-card.main-image {
    left: 30%;
  }
  .hero-orbit {
    width: 290px;
    height: 290px;
  }
  .arcana-grid,
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .arcana-card .tarot-art,
  .catalog-card .tarot-art {
    height: 205px;
  }
  .art-name {
    font-size: 9px;
  }
  .catalog-card h3 {
    font-size: 16px;
  }
  .catalog-card p {
    font-size: 9px;
    min-height: 36px;
  }
  .modal-art {
    float: none;
    width: 145px;
    height: 230px;
    margin: 20px auto 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   Mobile-first refinement
   Удобная адаптация для телефонов и небольших планшетов
   ========================================================= */

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 40px, 720px);
  }

  .site-header {
    width: calc(100% - 28px);
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 760px;
    padding-top: 150px;
    align-items: center;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-cards {
    position: absolute;
    z-index: 1;
    right: -120px;
    top: 150px;
    width: 470px;
    height: 500px;
    opacity: 0.28;
    pointer-events: none;
  }

  .hero-orbit {
    width: 430px;
    height: 430px;
  }

  .feature-grid,
  .spread-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 28px;
  }

  .journey-line::before {
    display: none;
  }

  .quote-block {
    grid-template-columns: 100px 1fr;
    gap: 30px;
  }

  .quote-block > :last-child {
    grid-column: 2;
  }

  .inner-hero,
  .meanings-head,
  .spreads-hero,
  .history-hero {
    min-height: auto;
    padding-top: 170px;
    padding-bottom: 90px;
    gap: 55px;
  }

  .inner-hero,
  .spreads-hero,
  .history-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .major-stack {
    align-self: center;
    width: min(450px, 100%);
  }

  .spreads-hero .spread-diagram {
    width: 100%;
  }

  .prose.columns {
    columns: 1;
  }

  .arcana-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .suit-orbit {
    gap: 34px;
    flex-wrap: wrap;
  }

  .spread-row {
    grid-template-columns: 48px 1fr;
    gap: 24px;
  }

  .spread-row .spread-diagram {
    grid-column: 2;
    width: 100%;
  }

  .cta {
    padding: 50px;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 86px;
  }

  body {
    overflow-x: hidden;
  }

  .page-shell {
    width: calc(100% - 32px);
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    height: 60px;
    padding: 0 16px;
    border-radius: 12px;
  }

  .brand {
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .menu {
    display: block;
    width: 42px;
    min-height: 44px;
    padding: 7px 6px;
    cursor: pointer;
  }

  .menu span {
    width: 25px;
    margin: 5px auto;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(13, 12, 24, 0.97);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 11px;
  }

  .nav-link.active::after {
    left: auto;
    right: 0;
    width: 28px;
    bottom: 10px;
  }

  .breadcrumbs {
    padding-top: 92px;
    margin-bottom: -22px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  h1 {
    font-size: clamp(40px, 12vw, 58px);
    line-height: 1.02;
    margin-bottom: 22px;
  }

  h2 {
    font-size: clamp(30px, 9vw, 45px);
  }

  h3 {
    font-size: 21px;
  }

  p {
    font-size: 13px;
    line-height: 1.75;
  }

  .lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .section {
    padding-block: 72px;
  }

  .section-title {
    margin-bottom: 34px;
  }

  .section-intro {
    margin: -18px auto 38px;
  }

  .button {
    min-width: 0;
    min-height: 50px;
    padding: 15px 17px;
  }

  .home-hero {
    min-height: 720px;
    padding-top: 130px;
    padding-bottom: 90px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy .lead {
    margin-bottom: 28px;
  }

  .hero-cards {
    right: -190px;
    top: 180px;
    width: 420px;
    height: 450px;
    opacity: 0.2;
  }

  .hero-card {
    width: 190px;
    height: 325px;
  }

  .side-card {
    width: 155px;
    height: 265px;
  }

  .hero-orbit {
    width: 330px;
    height: 330px;
  }

  .scroll-note {
    display: none;
  }

  .feature-grid,
  .spread-preview-grid,
  .arcana-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
    padding: 10px;
  }

  .feature-card .tarot-art {
    height: min(62vw, 290px);
    margin-bottom: 22px;
  }

  .feature-card > div:last-child {
    padding: 0 14px 16px;
  }

  .feature-card p {
    min-height: 0;
  }

  .journey {
    overflow: hidden;
  }

  .journey-line {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .journey-line a,
  .journey-line button {
    padding-right: 0;
  }

  .journey-line strong {
    margin-top: 16px;
    font-size: 21px;
  }

  .quote-block {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-block: 30px 72px;
    padding-block: 55px;
  }

  .quote-block > :last-child {
    grid-column: auto;
  }

  .quote-symbol {
    width: 82px;
    height: 82px;
    font-size: 34px;
  }

  .inner-hero,
  .meanings-head,
  .spreads-hero,
  .history-hero {
    padding-top: 125px;
    padding-bottom: 65px;
    gap: 40px;
  }

  .title-block h1 {
    max-width: 100%;
  }

  .major-stack {
    width: 100%;
    height: 330px;
  }

  .major-stack .tarot-art {
    width: 145px;
    height: 245px;
  }

  .major-stack .tarot-art:nth-child(1) {
    left: 4%;
    top: 35px;
  }

  .major-stack .tarot-art:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
  }

  .major-stack .tarot-art:nth-child(3) {
    right: 4%;
    top: 35px;
  }

  .article-intro {
    padding-block: 65px;
  }

  .prose p {
    font-size: 14px;
    line-height: 1.8;
  }

  .arcana-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 12px;
  }

  .arcana-card .tarot-art,
  .catalog-card .tarot-art {
    height: clamp(190px, 48vw, 260px);
  }

  .arcana-card > div:last-child {
    padding: 16px 0 0 28px;
  }

  .arcana-card > div > span {
    top: 19px;
    font-size: 8px;
  }

  .arcana-card h3,
  .catalog-card h3 {
    font-size: 15px;
    line-height: 1.25;
  }

  .arcana-card p,
  .catalog-card p {
    font-size: 9px;
    line-height: 1.5;
  }

  .catalog-card {
    padding-bottom: 14px;
    border-radius: 6px;
  }

  .catalog-card h3,
  .catalog-card p,
  .catalog-card > b,
  .catalog-card > span {
    margin-left: 10px;
    margin-right: 10px;
  }

  .catalog-card .tarot-art {
    margin-bottom: 14px;
  }

  .catalog-card > b {
    font-size: 8px;
    gap: 6px;
  }

  .art-name {
    bottom: 19px;
    max-width: 75%;
    text-align: center;
    font-size: 8px;
  }

  .card-index {
    left: 17px;
    top: 17px;
    font-size: 8px;
  }

  .filters {
    margin-bottom: 24px;
    gap: 7px;
    padding-bottom: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filters button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 13px;
    font-size: 10px;
  }

  .search {
    width: 100% !important;
    min-height: 48px;
    margin: 0 0 16px !important;
    font-size: 14px !important;
  }

  .suit-orbit {
    gap: 18px;
    padding-top: 15px;
  }

  .suit-orbit div {
    min-width: 66px;
  }

  .suit-orbit span {
    width: 64px;
    height: 64px;
    font-size: 27px;
    margin-inline: auto;
  }

  .suit-orbit small {
    font-size: 8px;
    text-align: center;
  }

  .suit-card {
    min-height: auto;
    padding: 32px 26px;
  }

  .suit-card .suit-mark {
    right: 24px;
    top: 20px;
    font-size: 80px;
  }

  .suit-card dl {
    margin-top: 30px;
  }

  .link-row {
    gap: 14px 20px;
    padding-bottom: 55px;
  }

  .spread-library {
    padding-block: 60px;
  }

  .spread-row {
    grid-template-columns: 34px 1fr;
    gap: 14px;
    padding: 38px 0;
  }

  .spread-row h2 {
    font-size: 29px;
  }

  .spread-row .spread-diagram {
    grid-column: 2;
    min-height: 250px;
    margin-top: 48px;
  }

  .spread-diagram {
    gap: 8px;
  }

  .spread-diagram span {
    width: 49px;
    height: 82px;
    font-size: 9px;
  }

  .cta {
    margin-bottom: 72px;
    padding: 34px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .cta h2 {
    font-size: 30px;
  }

  .footer {
    width: calc(100% - 16px);
    margin-bottom: 8px;
    padding: 38px 20px 22px;
    border-radius: 12px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
  }

  .copyright {
    line-height: 1.6;
  }

  .modal-backdrop {
    align-items: flex-end;
  }

  .card-modal {
    width: 100%;
    max-height: 92dvh;
    height: auto;
    padding: 22px 20px 30px;
    border-top: 1px solid rgba(215, 189, 130, 0.2);
    border-left: 0;
    border-radius: 18px 18px 0 0;
    animation: slide-up 0.3s ease;
  }

  @keyframes slide-up {
    from {
      transform: translateY(100%);
    }
  }

  .modal-close {
    min-height: 44px;
    padding: 10px 0;
  }

  .modal-art {
    float: none;
    width: 135px;
    height: 215px;
    margin: 8px auto 24px;
  }

  .card-modal h2 {
    font-size: 31px;
  }

  .meaning-list div {
    padding-block: 18px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .site-header {
    width: calc(100% - 12px);
    padding-inline: 13px;
  }

  .brand {
    font-size: 12px;
  }

  .home-hero {
    min-height: 690px;
  }

  .hero-cards {
    right: -220px;
    top: 205px;
    opacity: 0.16;
  }

  .hero-orbit {
    width: 285px;
    height: 285px;
  }

  .feature-card .tarot-art {
    height: 235px;
  }

  .arcana-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 9px;
  }

  .arcana-card .tarot-art,
  .catalog-card .tarot-art {
    height: 175px;
  }

  .arcana-card > div:last-child {
    padding-left: 24px;
  }

  .arcana-card > div > span {
    font-size: 7px;
  }

  .arcana-card h3,
  .catalog-card h3 {
    font-size: 13px;
  }

  .catalog-card p {
    min-height: 0;
    margin-bottom: 9px;
  }

  .catalog-card > b {
    font-size: 7px;
  }

  .tarot-art {
    border-width: 6px;
    outline-offset: -12px;
  }

  .art-name {
    bottom: 15px;
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  .card-index {
    left: 12px;
    top: 12px;
  }

  .major-stack {
    height: 275px;
  }

  .major-stack .tarot-art {
    width: 118px;
    height: 200px;
  }

  .major-stack .tarot-art:nth-child(1) {
    left: 0;
  }

  .major-stack .tarot-art:nth-child(3) {
    right: 0;
  }

  .major-stack .tarot-art:nth-child(2) {
    left: 50%;
  }

  .suit-orbit {
    justify-content: space-between;
    gap: 8px;
  }

  .suit-orbit div {
    min-width: 58px;
  }

  .suit-orbit span {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .suit-orbit small {
    font-size: 7px;
  }

  .spread-row .spread-diagram {
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: 4px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .card-modal {
    max-height: 94dvh;
    padding-inline: 16px;
  }
}

@media (max-width: 360px) {
  .page-shell {
    width: calc(100% - 20px);
  }

  h1 {
    font-size: 38px;
  }

  .arcana-grid,
  .catalog-grid {
    gap: 18px 7px;
  }

  .arcana-card .tarot-art,
  .catalog-card .tarot-art {
    height: 155px;
  }

  .catalog-card h3,
  .arcana-card h3 {
    font-size: 12px;
  }

  .catalog-card > b {
    font-size: 6px;
  }
}
