/* ============================================================
   Palm Predictions - public stylesheet
   "Cosmic Astral": dark, glassmorphic, amber/orange keyed to the logo.
   All colours come from CSS custom properties set by the CMS.
   ============================================================ */

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

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

body.site {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .5em;
    color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
p  { margin: 0 0 1rem; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--primary); color: var(--on-primary);
    padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ---------------------------------------------------- layout */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}
.section { padding-block: clamp(3rem, 8vw, 5rem); position: relative; }
.section--tight { padding-block: clamp(2rem, 5vw, 3rem); }
.section--alt { background: var(--surface-alt); }

.eyebrow {
    font-family: var(--font-label);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: .75rem;
}
.lede { color: var(--text-muted); font-size: 1.05rem; max-width: 62ch; }
.text-muted { color: var(--text-muted); }
.center { text-align: center; }
/* Two forms have to be covered: .lede nested inside a .center block, and
   .lede.center on the same element. The descendant selector alone silently
   misses the latter, leaving a max-width paragraph flush left while its text
   centres inside it - which reads as "the subheading is off-centre". */
.center .lede,
.lede.center { margin-inline: auto; }

.section-head { margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .75rem; }

/* rich text from the CMS */
.rich > *:first-child { margin-top: 0; }
.rich > *:last-child  { margin-bottom: 0; }
.rich p, .rich li { color: var(--text-muted); }
.rich h2, .rich h3, .rich h4 { margin-top: 1.75rem; }
.rich ul, .rich ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.rich li { margin-bottom: .4rem; }
.rich img { border-radius: var(--radius); margin: 1.5rem 0; }
.rich blockquote {
    border-left: 3px solid var(--primary);
    padding: .5rem 0 .5rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.15rem;
}
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.rich th, .rich td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; }

/* ---------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-label);
    font-size: .875rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    padding: .95rem 1.75rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .25s, color .25s, box-shadow .25s, transform .15s;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover {
    background: var(--primary-light); color: var(--on-primary);
    box-shadow: 0 0 24px rgba(var(--primary-rgb), .45);
}
.btn--ghost {
    background: transparent; color: var(--text);
    border-color: var(--glass-border);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------- glass */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* ---------------------------------------------------- header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { max-height: 46px; width: auto; }
.brand__name {
    font-family: var(--font-heading);
    font-size: 1.3rem; font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
    font-family: var(--font-label);
    font-size: .875rem; font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-muted);
    transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--primary); }
.nav a.is-active { position: relative; }
.nav a.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; background: var(--primary); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
    display: none; background: none; border: 0; color: var(--text);
    cursor: pointer; padding: .35rem;
}

@media (max-width: 860px) {
    /* Absolute, not fixed: the header's backdrop-filter makes it a containing
       block for fixed children, which would leave the panel stranded on screen. */
    .nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
        padding: .5rem 1.25rem 1.5rem;
        max-height: calc(100vh - 78px); overflow-y: auto;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: .9rem 0; border-bottom: 1px solid var(--border); }
    .nav a:last-child { border-bottom: 0; }
    .nav a.is-active::after { display: none; }
    .nav-toggle { display: block; }
}

/* ---------------------------------------------------- hero */
.hero {
    position: relative;
    min-height: clamp(560px, 88vh, 900px);
    display: flex; align-items: center;
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img, .hero__bg video {
    width: 100%; height: 100%; object-fit: cover;
}
.hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--bg) 75%, transparent) 0%,
        color-mix(in srgb, var(--bg) 35%, transparent) 45%,
        var(--bg) 100%);
}
.hero__inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem); align-items: center;
    width: 100%;
    padding-block: 4rem;
}
.hero__copy h1 { margin-bottom: 1.25rem; }
.hero__copy .highlight {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
}

/* ---------------------------------------------------- palm form */
.palm-form { padding: clamp(1.5rem, 3vw, 2rem); }
.palm-form__steps { display: flex; gap: .5rem; margin-bottom: 1.75rem; }
.palm-form__steps span {
    flex: 1; height: 3px; border-radius: 3px;
    background: var(--border); transition: background .3s;
}
.palm-form__steps span.is-done { background: var(--primary); }

.step-head { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.step-num {
    width: 26px; height: 26px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), .18);
    color: var(--primary);
    font-family: var(--font-label); font-size: .7rem; font-weight: 700;
}
.step-head h3 { margin: 0; font-size: 1.15rem; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label, .field > .label {
    font-family: var(--font-label);
    font-size: .7rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-muted);
}
.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=date], .field input[type=url], .field select, .field textarea {
    width: 100%;
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body); font-size: .95rem;
    padding: .75rem .9rem;
    transition: border-color .2s, box-shadow .2s;
    color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .18);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.dropzone {
    display: block; text-align: center; cursor: pointer;
    border: 2px dashed rgba(var(--primary-rgb), .35);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    transition: border-color .25s, background .25s;
}
.dropzone:hover, .dropzone.is-dragover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .06);
}
.dropzone input { display: none; }
.dropzone .material-symbols-outlined { font-size: 2.5rem; color: rgba(var(--primary-rgb), .6); }
.dropzone__label { display: block; font-family: var(--font-label); font-size: .85rem; margin-top: .5rem; }
.dropzone__hint  { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .25rem; }
.dropzone__preview { max-height: 190px; width: auto; margin: 0 auto; border-radius: var(--radius); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--secondary-rgb), .5);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-label); font-size: .78rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--secondary); color: var(--text); }
.chip:has(input:checked) {
    background: var(--secondary); border-color: var(--secondary);
    color: #fff;
}
.chip:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

.form-status {
    margin-top: 1rem; padding: .85rem 1rem;
    border-radius: var(--radius); font-size: .9rem;
    display: none;
}
.form-status.is-visible { display: block; }
.form-status--error   { background: rgba(255, 180, 171, .12); border: 1px solid var(--error); color: var(--error); }
.form-status--success { background: rgba(110, 231, 168, .12); border: 1px solid var(--success); color: var(--success); }
.form-status--loading { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-muted); }

/* ---------------------------------------------------- cards + grids */
.grid { display: grid; gap: 1.5rem; }
/* Grid items default to min-width:auto, which lets a wide child stretch its
   whole column and push the page sideways rather than scrolling inside it. */
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1024px) {
    .grid--4, .grid--5, .grid--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .grid--3, .grid--4, .grid--5, .grid--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .grid--2, .grid--3, .grid--4, .grid--5, .grid--6 { grid-template-columns: 1fr; }
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
a.card:hover, .card--link:hover {
    border-color: rgba(var(--primary-rgb), .5);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p  { color: var(--text-muted); font-size: .92rem; margin: 0; }
.card__icon {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(var(--primary-rgb), .12);
    color: var(--primary);
    margin-bottom: 1rem;
}

/* zodiac */
.zodiac-card { text-align: center; text-decoration: none; display: block; }
.zodiac-card__glyph {
    font-family: var(--font-heading);
    font-size: 2rem; line-height: 1;
    color: var(--primary);
    margin-bottom: .75rem;
    display: block;
}
.zodiac-card img { width: 48px; height: 48px; object-fit: contain; margin: 0 auto .75rem; }
.zodiac-card h3 { font-size: 1.05rem; margin-bottom: .2rem; color: var(--text); }
.zodiac-card small { color: var(--text-muted); font-size: .75rem; font-family: var(--font-label); }

.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.spec-list li {
    display: flex; justify-content: space-between; gap: 1rem;
    padding-bottom: .75rem; border-bottom: 1px solid var(--border);
    font-size: .92rem;
}
.spec-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list .k { color: var(--text-muted); font-family: var(--font-label); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.spec-list .v { color: var(--text); font-weight: 600; text-align: right; }

/* gemstones */
.gem-card { text-decoration: none; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.gem-card__media { aspect-ratio: 1; background: var(--surface-alt); overflow: hidden; }
.gem-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gem-card:hover .gem-card__media img { transform: scale(1.06); }
.gem-card__body { padding: 1.1rem 1.25rem 1.35rem; }
.gem-card__body h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.gem-card__price { color: var(--primary); font-family: var(--font-label); font-weight: 700; font-size: .9rem; }
.gem-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.gem-strip img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); width: 100%; }
@media (max-width: 560px) { .gem-strip { grid-template-columns: repeat(3, 1fr); } }

/* split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media img, .split__media video { border-radius: var(--radius-lg); width: 100%; }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split--flip .split__media { order: 0; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; text-align: center; }
.stat__value { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); color: var(--primary); line-height: 1; }
.stat__label { font-family: var(--font-label); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-top: .5rem; }

/* faq */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
    cursor: pointer; list-style: none;
    padding: 1.25rem 2.5rem 1.25rem 0;
    font-family: var(--font-heading); font-size: 1.08rem; font-weight: 600;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: .25rem; top: 50%;
    transform: translateY(-50%); font-size: 1.5rem; color: var(--primary);
    transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item__body { padding-bottom: 1.25rem; color: var(--text-muted); }

/* cta */
.cta-banner {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 30% 20%, rgba(var(--primary-rgb), .16), transparent 55%),
        radial-gradient(circle at 75% 80%, rgba(var(--secondary-rgb), .16), transparent 55%),
        var(--surface);
    border: 1px solid var(--glass-border);
    position: relative; overflow: hidden;
}
.cta-banner h2 { margin-bottom: .75rem; }
.cta-banner p { color: var(--text-muted); max-width: 55ch; margin-inline: auto; }
.cta-banner .btn { margin-top: 1.5rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.75rem; }
.contact-detail .material-symbols-outlined { color: var(--primary); }
.contact-detail h4 { margin: 0 0 .25rem; font-size: .95rem; font-family: var(--font-label); letter-spacing: .06em; text-transform: uppercase; }
.contact-detail p, .contact-detail a { color: var(--text-muted); font-size: .95rem; margin: 0; }
.contact-detail a:hover { color: var(--primary); }
.map-embed { border: 0; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); margin-top: 1.5rem; }

/* gallery */
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-alt); }
.gallery-item img, .gallery-item video { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0 0;
    padding: .75rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    font-size: .85rem;
}

/* alerts */
.alert {
    padding: 1rem 1.25rem; border-radius: var(--radius);
    margin-bottom: 1.25rem; font-size: .93rem;
    border: 1px solid;
}
.alert--success { background: rgba(110, 231, 168, .1); border-color: var(--success); color: var(--success); }
.alert--error   { background: rgba(255, 180, 171, .1); border-color: var(--error);   color: var(--error); }

/* ---------------------------------------------------- footer */
.site-footer {
    background: var(--surface-alt);
    border-top: 1px solid var(--glass-border);
    padding-block: clamp(3rem, 6vw, 4rem) 1.5rem;
    margin-top: auto;
}
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
    font-family: var(--font-label); font-size: .78rem;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 1.1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a { color: var(--text-muted); font-size: .92rem; }
.footer-links a:hover { color: var(--primary); }
.social-row { display: flex; gap: .65rem; margin-top: 1.25rem; }
.social-row a {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: all .25s;
}
.social-row a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: space-between; align-items: center;
    font-size: .82rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* ---------------------------------------------------- reading result */
.reading {
    max-width: 780px; margin-inline: auto;
    padding: clamp(1.75rem, 4vw, 2.5rem);
}
/* The reading is rendered from Markdown to real HTML, so no pre-wrap here -
   combining it with generated <p> tags double-spaced every paragraph. */
.reading__body { color: var(--text-muted); font-size: 1.02rem; line-height: 1.75; }
.reading__body h2,
.reading__body h3,
.reading__body h4 {
    color: var(--primary);
    font-size: 1.15rem;
    margin: 2rem 0 .6rem;
}
.reading__body > *:first-child { margin-top: 0; }
.reading__body p { margin: 0 0 1.15rem; }
.reading__body ul { padding-left: 1.25rem; margin: 0 0 1.15rem; }
.reading__body li { margin-bottom: .45rem; }
.reading__body strong { color: var(--text); }
.reading__body hr { border: 0; border-top: 1px solid var(--border); margin: 1.75rem 0; }
.reading__meta {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    padding-bottom: 1.5rem; margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-label); font-size: .78rem;
    text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted);
}
.reading__palm { max-width: 240px; border-radius: var(--radius); margin-bottom: 1.5rem; }

/* ---------------------------------------------------- page header */
.page-hero {
    padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(ellipse at 50% -20%, rgba(var(--primary-rgb), .12), transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.breadcrumbs {
    font-family: var(--font-label); font-size: .75rem;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin-inline: .5rem; opacity: .5; }

/* ---------------------------------------------------- misc */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
}
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

body.has-particles::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent),
        radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.35), transparent),
        radial-gradient(2px 2px at 40% 80%, rgba(var(--primary-rgb),.35), transparent),
        radial-gradient(1px 1px at 85% 20%, rgba(255,255,255,.4), transparent);
    background-size: 550px 550px, 400px 400px, 700px 700px, 300px 300px;
    opacity: .5;
}
/* Lift page content above the fixed starfield layer.
   The header is deliberately excluded: it needs to keep `position: sticky` and
   its own high z-index, and listing it here silently overrode both - which
   un-stuck the header and let `main` paint over the open mobile menu. */
main, .site-footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Zodiac glyphs must render as text, not colour emoji, to pick up the theme. */
.zodiac-card__glyph { font-variant-emoji: text; }

/* ---------------------------------------------- reading: submitted details */
.reading__top {
    display: grid; grid-template-columns: auto 1fr;
    gap: 1.75rem; align-items: start;
    margin-bottom: 1.75rem;
}
@media (max-width: 620px) { .reading__top { grid-template-columns: 1fr; } }

.reading__palm-wrap { margin: 0; }
.reading__palm-wrap figcaption {
    margin-top: .5rem;
    font-family: var(--font-label); font-size: .7rem;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted);
}

.submitted { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; align-self: center; }
.submitted dt {
    font-family: var(--font-label); font-size: .7rem;
    letter-spacing: .09em; text-transform: uppercase;
    color: var(--text-muted); margin: 0;
}
.submitted dd { margin: 0; font-weight: 600; color: var(--text); font-size: .93rem; }

/* ------------------------------------------------------- recommendations */
.recs { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.recs__title { font-size: 1.6rem; margin-bottom: 1.5rem; }

.recs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.recs__grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1.25rem;
}
@media (max-width: 720px) { .recs__grid { grid-template-columns: 1fr; } }

.rec-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
}
.rec-card--feature {
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--primary-rgb), .14), transparent 65%),
        var(--glass-bg);
    border-color: rgba(var(--primary-rgb), .35);
}
.rec-card--soft { background: rgba(255, 255, 255, .03); }

.rec-card__head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.rec-card__head h3 {
    margin: 0; font-size: .78rem; font-family: var(--font-label);
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
    font-weight: 600;
}
.rec-card__head .material-symbols-outlined { color: var(--primary); font-size: 20px; }

.rec-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* The stone name and its shop caption share one block, so the rule underneath
   sits below both instead of being nudged into place with negative margins. */
.rec-card__stone {
    margin-bottom: 1.15rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--border);
}
.rec-card__hero {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.75rem; line-height: 1.2;
    color: var(--primary);
    margin: 0;
}
.rec-card .spec-list li { font-size: .88rem; }

/* -------------------------------------------------- reading: PDF download */
.reading__download {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
    margin-top: 2.5rem; padding: 1.4rem 1.5rem;
    border: 1px solid rgba(var(--primary-rgb), .35);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb), .12), transparent 70%),
        var(--glass-bg);
}
.reading__download h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.reading__download p  { margin: 0; font-size: .88rem; }

/* Recommended stone linked to the partner shop */
a.rec-card__hero--link {
    display: inline-flex; align-items: center; gap: .45rem;
    text-decoration: none;
    transition: color .2s, gap .2s;
}
a.rec-card__hero--link:hover { color: var(--primary-light); gap: .7rem; }
a.rec-card__hero--link .material-symbols-outlined { font-size: 1.05rem; opacity: .65; }

.rec-card .rec-card__shop {
    display: block;
    margin: .2rem 0 0;
    font-family: var(--font-label);
    font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-muted);
}
.spec-list .v a { border-bottom: 1px solid rgba(var(--primary-rgb), .4); }
.spec-list .v a:hover { border-bottom-color: var(--primary); }

/* -------------------------------------------------- partner shop links */
.gem-link {
    color: var(--primary);
    border-bottom: 1px solid rgba(var(--primary-rgb), .4);
    transition: color .2s, border-color .2s;
}
.gem-link:hover { color: var(--primary-light); border-bottom-color: var(--primary-light); }

/* The zodiac card is no longer a single anchor, so the hover lift and the
   inner link need their own rules. */
.zodiac-card__main { display: block; text-decoration: none; }
.zodiac-card:has(.zodiac-card__main:hover) {
    border-color: rgba(var(--primary-rgb), .5);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.zodiac-card__stone {
    margin: .9rem 0 0;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-label);
    font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted);
}

/* --------------------------------------------- contextual internal links */
.in-link {
    color: var(--text);
    border-bottom: 1px solid rgba(var(--primary-rgb), .45);
    transition: color .2s, border-color .2s;
}
.in-link:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* --------------------------------------------------- related links block */
.related-card { display: flex; flex-direction: column; text-decoration: none; }
.related-card h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.related-card p  { flex: 1; font-size: .85rem; }
.related-card__go {
    display: inline-flex; align-items: center; gap: .3rem;
    margin-top: 1rem;
    font-family: var(--font-label); font-size: .72rem;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary);
}
.related-card__go .material-symbols-outlined { font-size: 15px; transition: transform .2s; }
.related-card:hover .related-card__go .material-symbols-outlined { transform: translateX(3px); }

.breadcrumbs span[aria-current] { color: var(--text); }

/* Contextual links inside intro copy sit on the muted lede colour */
.lede .in-link { color: var(--text); }

/* Gemstone showcase image - a cut-out PNG, so it gets a soft aura behind it
   rather than a card, and no border-radius to clip against. */
.gem-showcase__image { position: relative; }
.gem-showcase__image::before {
    content: "";
    position: absolute; inset: -8% -4%;
    background:
        radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), .16), transparent 62%),
        radial-gradient(circle at 30% 70%, rgba(var(--secondary-rgb), .13), transparent 60%);
    filter: blur(14px);
    pointer-events: none;
}
.gem-showcase__image img {
    position: relative;
    width: 100%; height: auto;
    border-radius: 0;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55));
}

/* ============================================================
   Hero - stacked layout
   Centred copy with the form running full width beneath it.
   ============================================================ */
.hero--stacked { min-height: 0; }

.hero--stacked .hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(1.1rem, 2.2vw, 1.6rem);
    padding-block: clamp(1.6rem, 3.5vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
}

.hero--stacked .hero__copy {
    text-align: center;
    max-width: 740px;
    margin-inline: auto;
}
.hero--stacked .hero__copy .eyebrow { margin-bottom: .5rem; }
.hero--stacked .hero__copy h1 { margin-bottom: .5rem; }
.hero--stacked .hero__copy .lede {
    margin-inline: auto;
    margin-bottom: 0;
    max-width: 56ch;
    font-size: .96rem;
}
.hero--stacked .hero__form { width: 100%; }

/* ------------------------------------------------ horizontal form
   Compact by design: four stages have to sit in one row without the card
   growing taller than the copy above it, so spacing is tuned down and the
   labels are kept on a single line. */
.palm-form--horizontal { padding: clamp(.85rem, 1.4vw, 1.05rem); }

.palm-form--horizontal .palm-form__steps { margin-bottom: .8rem; gap: .35rem; }

.palm-form--horizontal .palm-form__grid {
    display: grid;
    /* Column 3 is widest: "General / International" is the longest chip label
       and the chips do not wrap mid-label, so it needs headroom for a font
       fallback that measures wider than the loaded face. */
    grid-template-columns: 0.82fr 1fr 1.2fr 0.98fr;
    gap: clamp(.7rem, 1.2vw, 1rem);
    align-items: stretch;
}
.palm-form--horizontal .palm-step { min-width: 0; display: flex; flex-direction: column; }

/* A hairline between stages reads cleaner than a full border. */
.palm-form--horizontal .palm-step + .palm-step {
    border-left: 1px solid var(--border);
    padding-left: clamp(.7rem, 1.2vw, 1rem);
}

.palm-form--horizontal .step-head { margin-bottom: .5rem; gap: .4rem; }
.palm-form--horizontal .step-head h3 { font-size: .88rem; }
.palm-form--horizontal .step-num {
    width: 18px; height: 18px; font-size: .58rem;
    background: transparent;
    border: 1px solid rgba(var(--primary-rgb), .45);
}

.palm-form--horizontal .field { margin-bottom: .4rem; }
.palm-form--horizontal .field:last-child { margin-bottom: 0; }
.palm-form--horizontal .field label,
.palm-form--horizontal .field > .label { font-size: .58rem; letter-spacing: .08em; }
.palm-form--horizontal .field { gap: .22rem; }
/* Tap targets stay usable: this keeps inputs at ~34px, the practical floor. */
.palm-form--horizontal .field input { padding: .42rem .6rem; font-size: .84rem; }

/* Paired fields stack inside a quarter-width column. */
.palm-form--horizontal .field-row { grid-template-columns: 1fr; gap: 0; }

.palm-form--horizontal .dropzone {
    flex: 1; padding: .7rem .55rem; min-height: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.palm-form--horizontal .dropzone .material-symbols-outlined { font-size: 1.6rem; }
.palm-form--horizontal .dropzone__label { font-size: .74rem; margin-top: .25rem; }
.palm-form--horizontal .dropzone__hint  { font-size: .62rem; line-height: 1.35; margin-top: .15rem; }
.palm-form--horizontal .dropzone__preview { max-height: 104px; }

/* Chips stay on one line each and wrap as a group.
   Sized to match the input height in the columns beside them, so all four
   stages share a rhythm instead of the chip columns looking undersized. */
.palm-form--horizontal .chips { gap: .4rem; }
.palm-form--horizontal .chip {
    font-size: .76rem; padding: .46rem .8rem; gap: .35rem;
    white-space: nowrap;
}
.palm-form--horizontal .palm-step--context .chips,
.palm-form--horizontal .palm-step--focus .chips { margin-top: .1rem; }

/* Columns 3 and 4 carry only chips, so they can run a larger type size than
   the label/input columns without unbalancing the row. */
.palm-form--horizontal .palm-step--context .chip,
.palm-form--horizontal .palm-step--focus .chip {
    font-size: .88rem;
    padding: .52rem .9rem;
    gap: .4rem;
}
.palm-form--horizontal .palm-step--context .step-head h3,
.palm-form--horizontal .palm-step--focus .step-head h3 { font-size: .95rem; }

/* Email and submit share the foot of the card. */
.palm-form--horizontal .palm-form__submit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .7rem;
    align-items: end;
    margin-top: .8rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.palm-form--horizontal .palm-form__submit .field { margin-bottom: 0; }
.palm-form--horizontal .palm-form__submit .btn {
    padding: .58rem 1.25rem; font-size: .75rem; white-space: nowrap;
}

@media (max-width: 1080px) {
    .palm-form--horizontal .palm-form__grid { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
    /* With two per row, only the right-hand one keeps a vertical rule. */
    .palm-form--horizontal .palm-step + .palm-step { border-left: 0; padding-left: 0; }
    .palm-form--horizontal .palm-step:nth-child(2n) {
        border-left: 1px solid var(--border);
        padding-left: 1rem;
    }
    .palm-form--horizontal .palm-step:nth-child(n+3) {
        border-top: 1px solid var(--border);
        padding-top: 1rem;
    }
    .palm-form--horizontal .field-row { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .palm-form--horizontal .dropzone { min-height: 140px; }
}

/* Any touch device gets comfortable controls, not just narrow ones - a tablet
   at 768px is still a finger, and the dense desktop sizing is only appropriate
   for a mouse pointer. */
@media (pointer: coarse) {
    .palm-form--horizontal .field { margin-bottom: .7rem; }
    .palm-form--horizontal .field label { font-size: .64rem; }
    .palm-form--horizontal .field input { padding: .62rem .75rem; font-size: .92rem; }
    .palm-form--horizontal .chip { font-size: .82rem; padding: .55rem .9rem; }
    .palm-form--horizontal .palm-step--context .chip,
    .palm-form--horizontal .palm-step--focus .chip { font-size: .9rem; padding: .58rem .95rem; }
    .palm-form--horizontal .palm-form__submit .btn { padding: .8rem 1.4rem; font-size: .8rem; }
}

/* Touch widths: the layout stacks, so the space saved by a tight desktop grid
   is not needed here - controls go back to a comfortable size to tap. */
@media (max-width: 700px) {
    .palm-form--horizontal { padding: 1.1rem; }
    .palm-form--horizontal .palm-form__grid { grid-template-columns: 1fr; }
    .palm-form--horizontal .palm-step:nth-child(2n) { border-left: 0; padding-left: 0; }
    .palm-form--horizontal .palm-step:nth-child(n+3) { padding-top: 0; }
    .palm-form--horizontal .palm-step + .palm-step {
        border-top: 1px solid var(--border);
        padding-top: 1rem;
    }
    .palm-form--horizontal .field { margin-bottom: .8rem; }
    .palm-form--horizontal .field label { font-size: .66rem; }
    .palm-form--horizontal .field input { padding: .65rem .8rem; font-size: .95rem; }
    .palm-form--horizontal .chip { font-size: .72rem; padding: .45rem .75rem; }
    .palm-form--horizontal .field-row { grid-template-columns: 1fr; gap: 0; }
    .palm-form--horizontal .palm-form__submit { grid-template-columns: 1fr; gap: 1rem; }
    .palm-form--horizontal .palm-form__submit .btn {
        justify-content: center; padding: .85rem 1.5rem; font-size: .82rem;
    }
}

/* The column variant keeps the original single-column stack. */
.palm-form--column .palm-form__grid { display: block; }
.palm-form--column .palm-step + .palm-step { margin-top: 1.75rem; }
.palm-form--column .palm-form__submit { margin-top: 1.25rem; }
.palm-form--column .palm-form__submit .btn { width: 100%; justify-content: center; }

/* ------------------------------------------- zodiac birthstone card */
.stone-card { margin-top: 1.25rem; padding: 1.15rem; }
.stone-card__title {
    margin: 0 0 .9rem;
    font-family: var(--font-label);
    font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 600;
}
.stone-card__body {
    display: flex; align-items: center; gap: 1rem;
    text-decoration: none;
    padding: .75rem;
    margin: -.25rem;
    border-radius: var(--radius);
    transition: background .2s, transform .2s;
}
a.stone-card__body:hover { background: rgba(var(--primary-rgb), .07); transform: translateY(-2px); }

.stone-card__figure {
    flex: none;
    width: 84px; height: 84px;
    display: grid; place-items: center;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 50% 45%, rgba(var(--primary-rgb), .18), transparent 65%),
        rgba(255, 255, 255, .03);
}
.stone-card__figure img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .55));
}
.stone-card__placeholder { font-size: 2.1rem; color: rgba(var(--primary-rgb), .55); }

.stone-card__text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.stone-card__name {
    font-family: var(--font-heading);
    font-size: 1.4rem; line-height: 1.15;
    color: var(--primary);
}
.stone-card__shop {
    display: inline-flex; align-items: center; gap: .3rem;
    font-family: var(--font-label);
    font-size: .66rem; letter-spacing: .09em; text-transform: uppercase;
    color: var(--text-muted);
}
.stone-card__shop .material-symbols-outlined { font-size: .92rem; opacity: .7; }
a.stone-card__body:hover .stone-card__shop { color: var(--primary); }

/* -------------------------------------------- gemstone directory grid */
.stone-grid__note { margin-bottom: 2rem; font-size: .9rem; }

.stone-tile {
    display: flex; flex-direction: column;
    padding: 0; overflow: hidden;
    text-decoration: none;
}
.stone-tile__media {
    display: grid; place-items: center;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at 50% 45%, rgba(var(--primary-rgb), .12), transparent 65%),
        var(--surface-alt);
    overflow: hidden;
}
.stone-tile__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
a.stone-tile:hover .stone-tile__media img { transform: scale(1.07); }
.stone-tile__placeholder { font-size: 2.4rem; color: rgba(var(--primary-rgb), .45); }

.stone-tile__body {
    display: flex; flex-direction: column; gap: .2rem;
    padding: .9rem 1rem 1.05rem;
    flex: 1;
}
.stone-tile__name {
    font-family: var(--font-heading);
    font-size: 1.02rem; line-height: 1.25;
    color: var(--text);
}
.stone-tile__sign {
    font-family: var(--font-label);
    font-size: .64rem; letter-spacing: .09em; text-transform: uppercase;
    color: var(--text-muted);
}
.stone-tile__go {
    margin-top: auto; padding-top: .6rem;
    display: inline-flex; align-items: center; gap: .3rem;
    font-family: var(--font-label);
    font-size: .64rem; letter-spacing: .09em; text-transform: uppercase;
    color: var(--primary);
}
.stone-tile__go .material-symbols-outlined { font-size: .9rem; opacity: .75; }
