/* Warm cast shadows matching the pots' studio light from the upper left.
   Relative units preserve the effect on desktop and mobile typography. */
:root {
    --title-cast-shadow:
        0.025em 0.015em 0.025em rgb(44 32 20 / 14%),
        0.10em 0.045em 0.075em rgb(44 32 20 / 12%),
        0.23em 0.08em 0.15em rgb(44 32 20 / 10%);
    --button-cast-shadow:
        2px 1px 3px rgb(44 32 20 / 14%),
        6px 3px 8px rgb(44 32 20 / 12%),
        12px 5px 16px rgb(44 32 20 / 10%);
}

/* Override the older embossed shadows and mobile-specific shadow resets. */
:is(h1, h2, h3, h4, h5, h6, [role="heading"]) {
    text-shadow: var(--title-cast-shadow) !important;
}

/* Introductory copy and secondary labels share the headings' light. */
.eyebrow,
.story-eyebrow,
.lede,
.subtitle,
.launch-origin,
.card-detail,
.page-intro > p,
.shop-intro > p,
.story-step > p,
.story-finale > p,
.faq-intro > p:not(.faq-contact),
.order-panel > div > h2 + p,
.house-text > h1 + p,
.text-link,
.story-skip {
    text-shadow: var(--title-cast-shadow);
}

/* Cover links styled as buttons as well as native and dynamic controls.
   The transparent hit areas over the jars must stay visually invisible.
   Keep a separate ring so selected flavor swatches remain distinguishable. */
:is(button:not(.jar-controls button), .button, .button-secondary, .launch-link, [role="button"],
    input[type="submit"], input[type="button"], input[type="reset"]) {
    border-radius: 999px !important;
    box-shadow: var(--control-ring, 0 0 0 0 transparent),
                var(--button-cast-shadow) !important;
}

:is(button:not(.jar-controls button), .button, .button-secondary, .launch-link, [role="button"],
    input[type="submit"], input[type="button"], input[type="reset"]):active {
    --button-cast-shadow:
        1px 1px 2px rgb(44 32 20 / 14%),
        3px 2px 5px rgb(44 32 20 / 12%);
}

.story-choices button {
    --control-ring: inset 0 0 0 1px rgb(255 255 255 / 15%);
}
.story-choices button:hover {
    --control-ring: inset 0 0 0 2px rgb(255 255 255 / 60%);
}
.story-choices button[aria-pressed="true"] {
    --control-ring: 0 0 0 2px var(--cream), 0 0 0 4px var(--cocoa);
}
