@font-face {
    font-family: NewZen;
    src: url('../fonts/tarot-new-zen-regular.0caf9f164f69.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: NewZen;
    src: url('../fonts/tarot-new-zen-bold.97497f22a83a.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    scroll-behavior: smooth;
}

.page-tarot {
    --shell: min(82rem, calc(100% - 4rem));
    --display: NewZen, system-ui, sans-serif;
    font: 100%/1.55 NewZen, system-ui, sans-serif;
}

.page-tarot .tarot-page, .page-tarot .collection-nav {
    --ink: #15111b;
    --ink-light: #211825;
    --panel: #271d2b;
    --paper: #fff2dc;
    --muted: #d0bcc7;
    --gold: #ebc88e;
    --rule: #503b4e;
    color: var(--paper);
}

.tarot-page { background: var(--ink); }
.tarot-page [hidden] { display: none !important; }
.tarot-page button, .tarot-page input { font: inherit; }
.tarot-page button { cursor: pointer; }
.tarot-page img { display: block; max-width: 100%; }
.tarot-page img[data-src]:not([src]) { display: none; }
.tarot-page :is(button, a, input):focus-visible, .collection-nav a:focus-visible { outline: 2px solid #ffeabb; outline-offset: 5px; }
:where(.tarot-page) :is(h1, h2, h3, h4, p) { margin: 0; }
.tarot-page .shell, .collection-nav .shell { width: var(--shell); margin-inline: auto; }
.collection-nav .shell, .collection-links, .hero-actions, .search-field, .group-heading { flex-direction: row; }
.collection-nav { background: #211827; border-bottom: 1px solid var(--rule); }
.collection-nav .shell { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .15rem 1.25rem; padding-block: .3rem; }
.collection-nav a { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--muted); font-size: .92rem; text-decoration: none; }
.collection-nav a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.collection-nav .collection-title { color: var(--gold); font: 1.2rem/1.15 var(--display); }
.collection-links { display: flex; gap: 1.5rem; }
.tarot-crumb ol { display: flex; flex-wrap: wrap; gap: .25rem .65rem; padding: .65rem 0; margin: 0; list-style: none; color: var(--muted); font-size: .83rem; }
.tarot-crumb a { text-decoration: underline; text-underline-offset: .2em; }
.tarot-crumb li + li::before { content: '›'; margin-right: .65rem; color: var(--gold); }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--rule);
    background: radial-gradient(ellipse at 74% 48%, #452b45 0, #281b31 43%, #191320 76%);
}
.hero-texture { position: absolute; z-index: -1; inset: 0 0 0 34%; opacity: .36; mask-image: linear-gradient(90deg, transparent, #000 44%); pointer-events: none; }
.hero-texture img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero .shell {
    min-height: 37rem;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: clamp(1.5rem, 4vw, 4.5rem);
    align-items: center;
    padding-block: 3.8rem 4.25rem;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--gold); font-size: .83rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero h1, .card-hero h1 { font: 700 clamp(4.25rem, 8vw, 8.25rem)/.98 var(--display); letter-spacing: -.04em; }
.hero h1 { margin-block: 1.25rem 1.45rem; }
.hero h1 em { color: var(--gold); }
.hero-copy > p:not(.eyebrow) { max-width: 34ch; font-size: clamp(1.12rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; padding: .63rem 1.3rem; border: 1px solid var(--gold); border-radius: 3px; background: var(--gold); color: #241826; font-weight: 700; text-decoration: none; transition: background-color .18s, color .18s; }
.button:hover { background: #ffe2ae; }
.button-quiet { background: transparent; color: var(--paper); border-color: #9f7a93; }
.button-quiet:hover { background: #4b2f45; }
.button:disabled { opacity: .65; cursor: default; }

.hero-art { position: relative; min-height: clamp(18rem, 35vw, 33rem); display: grid; place-items: center; overflow: visible; }
.hero-art::before, .hero-art::after { content: ''; position: absolute; width: 87%; height: 95%; border: 1px solid #d7a77e42; border-radius: 50%; pointer-events: none; }
.hero-art::after { width: 95%; height: 80%; transform: rotate(-18deg); border-color: #d7a77e2c; }
.hero-art::before { animation: tarot-illuminate 3.3s ease-out both; box-shadow: 0 0 4rem #c397663d, inset 0 0 2.5rem #c3976621; }
.hero-card { position: absolute; bottom: 13%; width: 34%; max-width: 14.6rem; aspect-ratio: .58; display: grid; place-items: center; padding: .24rem; border: 1px solid #f8d6a5; border-radius: .58rem; background: #e1bb82; box-shadow: 0 20px 30px #120b16c4; }
.hero-card img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: .36rem; }
.hero-card:nth-child(1) { left: 14%; transform: rotate(-15deg) translateY(5%); }
.hero-card:nth-child(2) { right: 14%; transform: rotate(15deg) translateY(6%); }
.hero-card:nth-child(3) { width: 38%; max-width: 16rem; z-index: 1; bottom: 14%; transform: rotate(-2deg); }
.hero-card { animation: tarot-arrive .9s cubic-bezier(.21,.72,.26,1) backwards; }
.hero-card:nth-child(2) { animation-delay: .15s; }
.hero-card:nth-child(3) { animation-delay: .24s; }
@keyframes tarot-arrive {
    from { opacity: 0; translate: 0 1.4rem; scale: .94; }
    to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes tarot-illuminate {
    from { opacity: .2; scale: .94; }
    40% { opacity: 1; }
    to { opacity: .68; scale: 1; }
}
.hero-star { position: absolute; color: var(--gold); line-height: 1; font-family: var(--display); }
.hero-star:first-of-type { top: 11%; left: 15%; font-size: 1.4rem; }
.hero-star:last-of-type { right: 12%; bottom: 10%; font-size: 1.1rem; }

.draw-dialog {
    width: min(49rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    color: var(--paper);
    border: 1px solid #a88373;
    border-radius: 1.25rem;
    background: radial-gradient(ellipse at 19% 48%, #4b2f4e 0%, #261c30 44%, #181321 93%);
    box-shadow: 0 24px 90px #100819c9;
    overscroll-behavior: contain;
}
.draw-dialog[open] { animation: tarot-dialog-in .28s ease-out both; }
.draw-dialog::backdrop { background: #0e0918cf; backdrop-filter: blur(5px); }
.draw-close { position: absolute; z-index: 2; top: .75rem; right: .75rem; }
.draw-close button {
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 1px solid #a284965e;
    border-radius: 50%;
    background: #201728;
    color: var(--paper);
    font-size: 1.7rem;
    line-height: 1;
}
.draw-close button:hover { background: #432d46; }
.draw-layout {
    display: grid;
    grid-template-columns: minmax(10rem, .84fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.2rem, 4vw, 2.75rem);
    padding: clamp(2rem, 5vw, 3.6rem);
}
.draw-stage {
    position: relative;
    display: grid;
    place-items: center;
    perspective: 900px;
    min-width: 0;
}
.draw-stage::before {
    content: '';
    position: absolute;
    width: 110%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid #c4968870;
    box-shadow: 0 0 0 .65rem #dcac8b13, inset 0 0 3rem #c3976638;
    transform: rotate(-18deg) scaleY(.85);
}
.draw-turn {
    position: relative;
    width: min(85%, 14.5rem);
    aspect-ratio: .63;
    transform: rotateZ(-7deg);
    transform-style: preserve-3d;
}
.draw-dialog.is-revealed .draw-turn {
    transform: rotateY(180deg);
    animation: tarot-deal .84s cubic-bezier(.21,.72,.26,1) both;
}
.draw-turn > div {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    backface-visibility: hidden;
    border: 2px solid var(--gold);
    border-radius: .58rem;
    background: #332341;
    box-shadow: 0 18px 32px #100918a6;
}
.draw-turn img { width: 100%; height: 100%; object-fit: contain; }
.draw-back img { object-fit: cover; }
.draw-front { transform: rotateY(180deg); }
.draw-dialog.has-art-fallback .draw-turn { transform: none; }
.draw-copy h2 {
    margin-block: .35rem .65rem;
    font: 700 clamp(2rem, 4.7vw, 3.4rem)/1.03 var(--display);
    letter-spacing: -.03em;
    text-wrap: balance;
}
.draw-copy .draw-reading, .draw-followup p { color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.draw-copy .hero-actions { margin-top: 1.35rem; }
.draw-copy .button { padding-inline: .8rem; }
.draw-reward {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    margin-top: 1rem;
    color: var(--gold);
    padding: .8rem .95rem;
    background: #251c2b;
    border: 1px solid #9f825663;
    border-radius: .6rem;
}
.draw-reward strong { font-size: 1.18rem; }
.draw-reward span { color: var(--muted); font-size: .88rem; }
.draw-reward.is-awarded { animation: tarot-reward-in .65s ease-out both; }
.draw-reward.is-awarded img { animation: tarot-bulb-in .7s cubic-bezier(.2,.75,.26,1) both; }
.draw-followup:not(:target) { display: none; }
.draw-followup {
    margin-block: 1.6rem 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--rule);
    border-radius: .62rem;
    background: var(--panel);
    scroll-margin-top: 1rem;
}
.draw-followup h2 { color: var(--suit, var(--gold)); font-size: 1.65rem; margin-bottom: .4rem; }
@keyframes tarot-dialog-in { from { opacity: .72; transform: translateY(.5rem); } }
@keyframes tarot-deal {
    from { transform: translateY(15%) rotateZ(-9deg); }
    35% { transform: translateY(-4%) rotateY(12deg) rotateZ(-3deg); }
    to { transform: rotateY(180deg); }
}
@keyframes tarot-reward-in {
    from { opacity: .45; translate: 0 .5rem; box-shadow: 0 0 1.5rem #efc98e71; }
}
@keyframes tarot-bulb-in {
    0% { opacity: .5; transform: translateY(.65rem) scale(.72); }
    58% { transform: translateY(-.16rem) scale(1.14); }
    100% { transform: none; }
}

.deck-nav { border-bottom: 1px solid var(--rule); background: #201725; }
.deck-nav .shell { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.deck-nav a { display: grid; gap: .15rem; align-content: center; min-height: 5.25rem; padding: .75rem clamp(.75rem, 1.6vw, 1.6rem); border-inline-start: 1px solid var(--rule); text-decoration: none; }
.deck-nav a:last-child { border-inline-end: 1px solid var(--rule); }
.deck-nav a:hover { background: #2d2033; }
.deck-nav b { color: var(--paper); font: 400 clamp(1.04rem, 1.7vw, 1.35rem)/1.25 var(--display); }
.deck-nav small { color: var(--muted); font-size: .84rem; }

.deck { padding-block: 4rem 5rem; }
.deck-intro, .editorial-heading { display: grid; grid-template-columns: 1fr minmax(14rem, 23rem); align-items: end; gap: 1rem 2rem; margin-bottom: 2.4rem; }
.deck-intro h2, .guide h2, .editorial-heading h2 { font: 400 clamp(2.65rem, 5.4vw, 4.6rem)/1 var(--display); letter-spacing: -.045em; }
.deck-intro p, .editorial-heading p { margin-top: .65rem; color: var(--muted); max-width: 53ch; }
.search-tools { padding: .25rem 0; }
.search-tools label { display: block; font-size: .9rem; margin-bottom: .45rem; color: var(--muted); }
.search-field { display: flex; overflow: hidden; border: 1px solid #7b5a74; border-radius: .32rem; background: #201925; }
.search-field:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.search-field input { width: 100%; min-width: 0; padding: .72rem .85rem; border: 0; background: transparent; color: var(--paper); outline: none; }
.search-field input::placeholder { color: #b6a2b4; }
.search-field button { background: #302335; color: var(--paper); border: 0; border-left: 1px solid var(--rule); padding: .4rem .7rem; }
#search-status { font-size: .83rem; margin-top: .35rem; }
.deck-group { padding-top: 1.65rem; border-top: 1px solid var(--rule); scroll-margin-top: .75rem; }
.deck-group + .deck-group { margin-top: 3.65rem; }
.group-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.3rem; }
.group-heading h3 { color: var(--suit, var(--gold)); font: 400 clamp(1.95rem, 4vw, 3rem)/1.12 var(--display); letter-spacing: -.035em; }
.group-heading h3 a { text-decoration-color: #866579; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.group-heading h3 a:hover { text-decoration-color: currentColor; }
.group-heading h2 { font: 400 clamp(1.9rem, 3.7vw, 2.85rem)/1.12 var(--display); letter-spacing: -.035em; }
.group-heading p { color: var(--muted); max-width: 49ch; }
.card-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 1.05rem; }
.tile { min-width: 0; }
.tile a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--rule); border-radius: .38rem; overflow: hidden; background: #211926; text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s; }
.tile a:hover { border-color: var(--suit, var(--gold)); background: #312235; transform: translateY(-3px); }
.tile-art { display: grid; place-items: center; min-width: 0; height: auto; aspect-ratio: 1 / 1.1; padding: 9%; background: radial-gradient(ellipse at 55% 20%, #493146, #2e2137 52%, #231b2a 100%); }
.tile-art img { width: auto; max-width: 86%; height: 100%; min-height: 0; aspect-ratio: .58; object-fit: contain; filter: drop-shadow(0 6px 8px #100c16a6); }
.tile-copy { flex: 1; padding: .85rem; }
.tile-copy :is(h3,h4) { font: 400 1.17rem/1.2 var(--display); overflow-wrap: anywhere; }
.tile-copy p { margin-top: .45rem; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.empty-result { color: var(--muted); border: 1px solid var(--rule); padding: 1rem; }

.major { --suit: #f1cf9f; }
.wands { --suit: #ffb6a1; }
.cups { --suit: #f4b1d5; }
.swords { --suit: #bfcef3; }
.pentacles { --suit: #c8d7a0; }

.guide { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #22182a; padding-block: clamp(2.8rem, 6vw, 5.5rem); scroll-margin-top: .75rem; }
.guide .shell { display: grid; grid-template-columns: .75fr 1fr; gap: 2rem 4.6rem; }
.guide h2 { margin-bottom: 1rem; }
.guide p { color: var(--muted); }
.guide p + p { margin-top: 1rem; }
.guide-steps { list-style: none; padding: 0; margin: 0; }
.guide-steps li { padding: .8rem 0; border-top: 1px solid var(--rule); }
.guide-steps b { color: var(--gold); }
.source-line { font-size: .9rem; }
.source-line a, .inline-link { color: var(--gold); text-decoration: underline; text-underline-offset: .19em; }

.card-hero { border-bottom: 1px solid var(--rule); background: radial-gradient(ellipse at 23% 47%, #422b46, #211729 55%, #1b1520 78%); }
.card-hero .shell { display: grid; grid-template-columns: minmax(15rem, 25rem) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.75rem); }
.card-portrait { position: relative; display: grid; place-items: center; padding: 1rem; }
.card-portrait::before { content: ''; position: absolute; inset: 0;
    border: 1px solid #94748665; border-radius: 50%; transform: rotate(-19deg) scale(1.05,.82);
    animation: tarot-orbit-in 1.35s ease-out backwards; }
.card-portrait img { position: relative; width: min(75%, 17rem); height: auto; border-radius: .5rem; box-shadow: 0 18px 42px #100917bb;
    animation: tarot-portrait-in .85s cubic-bezier(.21,.72,.26,1) backwards; }
@keyframes tarot-portrait-in {
    from { opacity: .7; transform: translateY(.8rem) rotate(-2deg) scale(.96); }
}
@keyframes tarot-orbit-in {
    from { opacity: .15; transform: rotate(-28deg) scale(.89,.71); }
}
.card-hero h1 { font-size: clamp(3.25rem, 7.25vw, 6.5rem); margin-block: .85rem 1.1rem; }
.card-hero .eyebrow { color: var(--suit); }
.card-deck-link { text-decoration: none; }
.card-deck-link:hover { text-decoration: underline; }
.card-tagline { font: 400 italic clamp(1.45rem, 2.6vw, 2.2rem)/1.22 var(--display); color: var(--suit); margin-bottom: 1.2rem; }
.card-meaning { color: var(--muted); max-width: 57ch; font-size: 1.12rem; }
.card-essay { padding-block: 3rem 1rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.1rem; }
.card-essay article, .card-prompt { padding: clamp(1.15rem, 3vw, 2rem); border: 1px solid var(--rule); border-radius: .38rem; }
.card-essay h2 { font: 400 1.9rem/1.17 var(--display); margin-block: .4rem .7rem; }
.card-essay p { max-width: 61ch; color: var(--muted); }
.card-essay .eyebrow { color: var(--suit); }
.card-prompt { background: #271c2e; }
.card-prompt p:last-child { font: 400 italic clamp(1.28rem, 2.25vw, 1.65rem)/1.4 var(--display); color: var(--paper); }
.course-section { padding-block: 3rem; }
.course-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.85rem, 2vw, 1.5rem); }
.course {
    --card-metal: color-mix(in srgb, var(--suit, var(--gold)) 44%, #c9a37b);
    --card-edge: color-mix(in srgb, var(--card-metal) 38%, #332639);
    position: relative;
    isolation: isolate;
    padding: .9rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-edge);
    border-radius: .94rem;
    background: radial-gradient(ellipse at 50% 2%, color-mix(in srgb, var(--suit, var(--gold)) 12%, #2b1d31), #211926 67%);
    box-shadow: 0 10px 22px #10091450;
    transition: translate .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.course::before {
    content: '';
    position: absolute;
    inset: .29rem;
    z-index: -1;
    border: 1px solid color-mix(in srgb, var(--card-metal) 32%, transparent);
    border-radius: .68rem;
    pointer-events: none;
}
.course:is(:hover, :focus-within) {
    translate: 0 -3px;
    border-color: var(--card-metal);
    box-shadow: 0 15px 30px #0e081876;
}
.course-crest {
    display: grid;
    grid-template-columns: minmax(1rem, 2.65rem) .65rem minmax(1rem, 2.65rem);
    gap: .5rem;
    place-content: center;
    align-items: center;
    min-height: 1rem;
    margin: .1rem 0 .55rem;
    color: var(--card-metal);
}
.course-crest::before, .course-crest::after {
    content: '';
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
}
.course-crest::after { transform: scaleX(-1); }
.course-crest span {
    width: .62rem;
    height: .62rem;
    border: 1px solid currentColor;
    background: radial-gradient(circle, currentColor 0 22%, transparent 32%);
    transform: rotate(45deg);
}
.course-window {
    position: relative;
    margin-inline: .28rem;
    padding: 3px;
    aspect-ratio: 1.6;
    border-radius: 48% 48% .55rem .55rem / 18% 18% .55rem .55rem;
    background: linear-gradient(135deg, #796079, var(--card-metal) 45%, #664b59 76%, var(--card-metal));
}
.course-window > div {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 35%, #463353, #251b30 66%);
}
.course-window > div::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px #fff3cb3a, inset 0 -18px 30px #170c2154;
    background: linear-gradient(114deg, #f6dfb125, transparent 35%, transparent 74%, #2c173a32);
}
.course-window .course-image { width: 100%; height: 100%; object-fit: cover; }
.course-content {
    padding: 1rem .55rem .45rem;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}
.course h3 { font: 400 clamp(1.32rem, 2vw, 1.82rem)/1.16 var(--display); letter-spacing: -.022em; overflow-wrap: anywhere; }
.course p { margin-block: .75rem 1.15rem; color: var(--muted); }
.course .course-context { font-size: .88rem; margin-block: .55rem 0; color: var(--suit, var(--gold)); }
.course-context a { text-decoration: underline; text-underline-offset: .18em; }
.course .inline-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .5em;
    min-height: 2.75rem;
    font-weight: 700;
}
.course .inline-link::after { content: '→' / ''; text-decoration: none; }
.course .course-image { transition: scale .5s cubic-bezier(.21,.72,.26,1); }
.course:is(:hover, :focus-within) .course-image { scale: 1.045; }
.course-window > div::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 38%, #fff0cb55 50%, transparent 63%);
    translate: -100% 0;
    transition: translate .68s ease-out;
}
.course:is(:hover, :focus-within) .course-window > div::before { translate: 100% 0; }
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .course-crest span {
            animation: tarot-crest-reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 28%;
        }
    }
}
@keyframes tarot-crest-reveal {
    from { rotate: -28deg; opacity: .6; }
    to { rotate: 0deg; opacity: 1; }
}
.card-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding-block: .5rem 4rem; }
.card-neighbors a { display: grid; gap: .3rem; min-width: 0; border-top: 1px solid var(--rule); padding-top: .8rem; text-decoration: none; }
.card-neighbors a:last-child { text-align: right; }
.card-neighbors a:hover span { color: var(--suit); }
.card-neighbors span { font: 1.25rem/1.2 var(--display); }
.card-neighbors small { color: var(--muted); }

@media (max-width: 67rem) {
    .card-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
    .hero .shell { min-height: 32rem; }
}
@media (max-width: 53rem) {
    .page-tarot { --shell: calc(100% - 2.25rem); }
    .card-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .hero .shell { grid-template-columns: 1fr .95fr; min-height: 29rem; gap: .75rem; }
    .hero h1 { font-size: clamp(3.5rem, 10vw, 6rem); }
    .hero-card { bottom: 19%; }
    .hero-card:nth-child(3) { bottom: 20%; }
    .course-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 39rem) {
    .collection-links { gap: .8rem; }
    .collection-links a { font-size: .85rem; }
    .hero .shell { grid-template-columns: 1fr; gap: .2rem; padding-block: 2.3rem .65rem; }
    .hero-texture { inset: 30% 0 0; mask-image: linear-gradient(180deg, transparent, #000 70%); }
    .hero h1 { margin-block: .8rem 1.1rem; }
    .hero-art { min-height: clamp(16rem, 72vw, 23rem); max-width: 30rem; width: 100%; margin-inline: auto; }
    .hero-card { bottom: 13%; }
    .hero-card:nth-child(3) { bottom: 15%; }
    .hero-actions { margin-top: 1.25rem; }
    .hero-copy > p:not(.eyebrow) { font-size: 1.11rem; }
    .deck-nav .shell { grid-template-columns: repeat(3, minmax(0,1fr)); padding-block: .4rem; gap: .25rem; }
    .deck-nav a, .deck-nav a:last-child { min-height: 3rem; border: 0; padding: .45rem .55rem; }
    .deck-nav small { display: none; }
    .deck-intro, .editorial-heading, .guide .shell, .card-essay { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; }
    .tile-copy p { font-size: .91rem; }
    .deck { padding-block: 2.5rem 3rem; }
    .guide .shell { gap: .9rem; }
    .card-hero .shell { grid-template-columns: 1fr; gap: 1.5rem; }
    .card-portrait { grid-row: 2; }
    .card-portrait img { width: min(55%, 13rem); }
    .card-portrait::before { inset: 0 12%; }
    .course-list { grid-template-columns: 1fr; }
    .draw-dialog { width: min(27rem, calc(100% - 1.25rem)); }
    .draw-layout { grid-template-columns: 1fr; padding: 2.7rem 1.25rem 1.2rem; gap: 1rem; }
    .draw-turn { width: clamp(6.4rem, 27vw, 9.5rem); }
    .draw-stage::before { width: min(66%, 12rem); }
    .draw-copy .hero-actions { margin-top: 1rem; }
}
@media (max-width: 22.5rem) {
    .hero h1 { font-size: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    .tarot-page *, .tarot-page *::before, .tarot-page *::after { transition: none !important; animation: none !important; }
    .course:is(:hover, :focus-within) { translate: none; }
    .course:is(:hover, :focus-within) .course-image { scale: none; }
}
html:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) {
    scroll-behavior: auto;
}
html:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .tarot-page :is(.hero-card, .draw-dialog[open], .draw-dialog.is-revealed .draw-turn, .draw-reward.is-awarded, .draw-reward.is-awarded img, .card-portrait img),
html:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .tarot-page :is(.hero-art, .card-portrait)::before {
    animation: none;
}
html:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .course {
    translate: none;
    transition: none;
}
html:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .course-image {
    scale: none;
    transition: none;
}
html:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .course-window > div::before {
    transition: none;
}
html:is(.reduced-motion, .client-reduced-motion, .a11y-reduce-motion, .a11y-pause-motion) .course-crest span {
    animation: none;
}
