/* The engraving preview module (ADR-0015). Loaded by its two views only, never
   by the shared bundle: a tenant without the module never asks for it. The five
   faces below belong to the module, so no FontPair uses them. Helvetica ships no
   file: it is the reader's own system face, with Arial where there is none. */

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto-400-xRBWAAv.woff2") format("woff2");
}

@font-face {
    font-family: 'Alice';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/alice-400-m6xN_8s.woff2") format("woff2");
}

@font-face {
    font-family: 'Aladin';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/aladin-400-T4bHtB3.woff2") format("woff2");
}

@font-face {
    font-family: 'Mouse Memoirs';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/mouse-memoirs-400-3cqGHRf.woff2") format("woff2");
}

@font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/dancing-script-400-ANssx1z.woff2") format("woff2");
}

.gravure-panel__meta {
    font-family: var(--ap-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ap-faint);
}

.gravure-panel__font {
    --bs-btn-padding-x: 1.125rem;
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-font-size: 0.85rem;
    --bs-btn-font-family: var(--ap-font-body);
    --bs-btn-color: var(--ap-muted);
    --bs-btn-bg: var(--ap-panel);
    --bs-btn-border-color: var(--ap-border);
    --bs-btn-hover-color: var(--ap-text);
    --bs-btn-hover-bg: var(--ap-panel);
    --bs-btn-hover-border-color: var(--ap-accent);
    --bs-btn-active-color: var(--ap-accent-text);
    --bs-btn-active-bg: rgba(var(--ap-accent-rgb), 0.12);
    --bs-btn-active-border-color: var(--ap-accent);
    --bs-btn-focus-box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--ap-accent) 25%, transparent);
    border-radius: var(--ap-radius-button);
}

.btn-check:checked + .gravure-panel__font {
    font-weight: 600;
}

.gravure-panel__plate {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7.5rem;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background:
        repeating-linear-gradient(90deg, rgba(var(--ap-accent-rgb), 0.05) 0 2px, transparent 2px 7px),
        color-mix(in srgb, var(--ap-accent) 22%, var(--ap-panel));
}

/* The block's plate is the whole right column; the product one is a strip under the fields. */
.gravure-panel__plate--demo {
    min-height: 18rem;
    padding: 3rem 2.5rem;
}

@media (min-width: 992px) {
    .gravure-panel__plate--demo {
        min-height: 26rem;
    }
}

/* With a photo the plate is a window onto the support, so the brushed fill and the
   frame go: the text is what is pressed onto the object, not engraved into a block. */
.gravure-panel__plate--photo {
    overflow: hidden;
    border-color: transparent;
    background: rgba(var(--ap-accent-rgb), 0.12);
}

/* Over a photograph the line needs its own footing, and the two corner labels a
   plate to sit on: both fixed, because a scrim over a photograph is theme-invariant. */
.gravure-panel__plate--photo .gravure-panel__line {
    position: relative;
    max-width: 70%;
    text-shadow: 0 1px 0 rgb(255 255 255 / 40%);
}

.gravure-panel__plate--photo .gravure-panel__meta {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgb(255 255 255 / 85%);
    color: #4a3a34;
}

.gravure-panel__line {
    color: var(--ap-accent-text);
    font-family: var(--ap-font-body);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.gravure-panel__line--empty {
    opacity: 0.45;
}

.gravure-panel__line[data-engraving-font="helvetica"] {
    font-family: Helvetica, Arial, sans-serif;
}

.gravure-panel__line[data-engraving-font="roboto"] {
    font-family: 'Roboto', sans-serif;
}

.gravure-panel__line[data-engraving-font="alice"] {
    font-family: 'Alice', serif;
}

.gravure-panel__line[data-engraving-font="aladin"] {
    font-family: 'Aladin', cursive;
    font-size: clamp(1.75rem, 6vw, 3rem);
}

.gravure-panel__line[data-engraving-font="valentine"] {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 7vw, 3.25rem);
    line-height: 1.15;
}

.gravure-panel__line[data-engraving-font="conte"] {
    font-family: 'Mouse Memoirs', cursive;
    font-size: clamp(1.75rem, 6vw, 3rem);
}
