/* Shared page styles and layouts for the homepage and show pages. */
body.home-body {
    --home-paper: #fff7ed;
    --home-ink: #463c40;
    --home-red: #ab263b;
    --home-muted: #715c70;
    margin: 0;
    max-width: none;
    height: auto;
    background: var(--home-paper);
    color: var(--home-ink);
    font: 16px/1.45 Arial, Helvetica, sans-serif;
}

.home-page, .home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page {
    --home-section-nav-height: 3.5rem;
    --home-section-nav-paper: #f6e5d8;
    --home-wave-height: 22px;
    --home-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12Q90 0 180 10T360 12T540 10T720 12T900 10T1080 12T1260 10T1440 12V24H0Z'/%3E%3C/svg%3E");
    overflow: clip;
    background: radial-gradient(ellipse at 85% 50%, #fceee780, transparent 65%);
}
.home-page .home-shell { width: min(100%, 1240px); margin-inline: auto; padding-inline: 40px; }
.home-page a { color: var(--home-red); }
.home-page a:hover { color: #7e1629; }
.home-page a:focus-visible { outline: 3px solid #ac5262; outline-offset: 5px; }
.home-page img { max-width: 100%; }
.home-page [id] { scroll-margin-top: calc(var(--home-section-nav-height) + var(--home-wave-height) + 1rem); }
.home-page [align="justify"] { text-align: left; }

.home-skip-link {
    position: absolute;
    top: 8px;
    left: 16px;
    z-index: 20;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--home-paper);
    transform: translateY(-160%);
}
.home-skip-link:focus { transform: translateY(0); }

.home-topbar { position: relative; z-index: 1; }
.home-page .home-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 106px; }
.home-logo { display: block; flex: 0 1 330px; }
.home-logo img { display: block; width: 100%; height: auto; }
.home-page .mainNav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 28px;
    height: auto;
}
.home-page .mainNav a, .home-page .mainNav .nav_current {
    display: inline-block;
    height: auto;
    padding: 10px 0;
    border: 0;
    background: none;
    color: var(--home-red);
    font-size: 16px;
    font-weight: 600;
    font-variant: normal;
    text-shadow: none;
    white-space: nowrap;
}
.home-page .mainNav a:hover { background: none; text-decoration: underline; text-underline-offset: 6px; }
.home-page .mainNav .short_menu { display: inline; }
.home-page .mainNav .long_menu { display: none; }

.home-hero { position: relative; height: clamp(280px, 31vw, 460px); background: #a74641; }
.home-hero > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }
.home-hero::before, .home-section-nav::before, .home-section-nav::after, .home-footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: var(--home-wave-height);
    mask: var(--home-wave) center / 100% 100% no-repeat;
    pointer-events: none;
}
.home-hero::before { top: -1px; transform: rotate(180deg); background: var(--home-paper); }

.home-section-nav {
    position: sticky;
    z-index: 5;
    top: 0;
    background: var(--home-section-nav-paper);
}
.home-section-nav::before, .home-section-nav::after { background: var(--home-section-nav-paper); }
.home-section-nav::before { top: calc(1px - var(--home-wave-height)); }
.home-section-nav::after { bottom: calc(1px - var(--home-wave-height)); transform: rotate(180deg); }
.home-section-nav-inner {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    width: min(100%, 35rem);
    min-height: var(--home-section-nav-height);
    margin-inline: auto;
    padding-inline: .5rem;
}
.home-section-link {
    display: grid;
    place-items: center;
    padding: .5rem .125rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}
.home-section-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.home-page .home-section-link:focus-visible { outline-offset: -4px; }

.home-page .home-main { padding-top: 24px; }
.home-introduction { padding: 0 24px; }
.home-page .home-intro { padding: 0; }
.home-intro h1 {
    margin: 0 auto 20px;
    padding: 0;
    color: var(--home-muted);
    font: 400 clamp(20px, 1.9vw, 24px)/1.4 Arial, Helvetica, sans-serif;
    text-align: center;
}
.home-intro h1 strong { font-weight: inherit; }
.home-page .home-intro > div, .home-page .home-intro > p { max-width: 940px; }
.home-page .home-intro > div:has(> .galerie_nc) { max-width: none; }
.home-feature-photo {
    --home-feature-wave-height: clamp(22px, 3vw, 42px);
    width: 100vw;
    height: clamp(160px, 32vw, 420px);
    margin-inline: calc(50% - 50vw);
    margin-bottom: 26px;
    background: #a5524f;
    /* Extend the top wave with a solid mask and cut the bottom wave from it. */
    mask:
        var(--home-wave) top / 100% var(--home-feature-wave-height) no-repeat,
        linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--home-feature-wave-height) + 1px) no-repeat,
        var(--home-wave) bottom / 100% var(--home-feature-wave-height) no-repeat;
    mask-composite: add, subtract;
}
.home-feature-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 58%; }

.home-section + .home-section { margin-top: clamp(26px, 4vw, 44px); }
.home-section-heading {
    margin-bottom: 14px;
    color: var(--home-red);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.home-page .home-section-title :is(h1, h2, h3, p) { margin: 0; padding: 0; border: 0; color: inherit; font: inherit; }

.home-services, .home-artists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.home-services { row-gap: 18px; }
.home-card, .home-reference {
    position: relative;
    display: flow-root;
    isolation: isolate;
    min-width: 0;
}
.home-card { padding: 25px; }
.home-card:nth-child(even) { --home-card-flip-x: -1; }
.home-card:nth-child(n+3) { --home-card-flip-y: -1; }
.home-card::before, .home-card::after {
    content: "";
    position: absolute;
    border-radius: 31px 24px 35px 20px / 23px 28px 21px 30px;
    transform: scale(var(--home-card-flip-x, 1), var(--home-card-flip-y, 1));
    pointer-events: none;
}
.home-card::before {
    z-index: -2;
    inset: 0;
    background: linear-gradient(133deg, #d9ad97, #e9c8b4 45%, #d7aaa2 75%, #ead1c0);
}
.home-card::after {
    z-index: -1;
    inset: 1px 2.5px 2px 1.5px;
    background: linear-gradient(115deg, #fff8ee, #faebe5);
}

/* Draw the outline separately so it does not crop the editable zone. */
@supports (clip-path: shape(from 0 0, curve to 100% 100% with 90% 0 / 100% 50%, close)) {
    .home-card {
        --home-card-edge: shape(
            from 24px 9px,
            curve to 31% 5px with 11% 2px / 21% 9px,
            curve to 62% 4px with 43% 5px / 53% 0px,
            curve to calc(100% - 26px) 8px with 76% 10px / 87% 1px,
            curve to calc(100% - 5px) 31px with calc(100% - 12px) 10px / calc(100% - 4px) 18px,
            curve to calc(100% - 8px) 60% with calc(100% - 2px) 29% / calc(100% - 11px) 44%,
            curve to calc(100% - 5px) calc(100% - 26px) with calc(100% - 7px) 73% / 100% 84%,
            curve to calc(100% - 26px) calc(100% - 5px) with calc(100% - 6px) calc(100% - 12px) / calc(100% - 12px) calc(100% - 5px),
            curve to 55% calc(100% - 7px) with 87% calc(100% - 5px) / 68% calc(100% - 3px),
            curve to 23px calc(100% - 6px) with 37% calc(100% - 12px) / 15% calc(100% - 2px),
            curve to 5px calc(100% - 29px) with 10px calc(100% - 8px) / 4px calc(100% - 16px),
            curve to 7px 48% with 2px 78% / 11px 65%,
            curve to 5px 30px with 5px 32% / 2px 21%,
            curve to 24px 9px with 6px 16px / 13px 12px,
            close
        );
    }
    .home-card::before, .home-card::after {
        border-radius: 0;
        clip-path: var(--home-card-edge);
    }
}
.home-page h2 { margin: 0 0 10px; padding: 0; border: 0; color: var(--home-red); font: 700 21px/1.25 Arial, Helvetica, sans-serif; font-variant: normal; }
.home-card p { margin: 0 0 12px; }
.home-card b { font-weight: 500; }
.home-card a { font-weight: 600; }
.home-page :is(.home-card, .home-artist) img {
    height: auto;
    margin: 0 22px 14px 0;
    border: solid #fff9f2;
    border-width: 3px 5px 5px 3px;
    border-radius: 22% 9% 19% 12% / 11% 8% 12% 7%;
    box-shadow: 1px 4px 8px #6543382c;
    object-fit: cover;
    transform: rotate(-2.75deg);
}
.home-page :is(.home-card, .home-artist).img_right img {
    margin: 0 0 14px 22px;
    border-width: 4px 3px 4px 5px;
    border-radius: 11% 16% 9% 18% / 8% 10% 6% 12%;
    transform: rotate(2.5deg);
}
.home-page .home-card img { width: 36%; max-width: 180px; aspect-ratio: 3 / 4; }

.home-agenda-slot { margin: 26px 0 22px; }

.home-artists { padding: 0 16px; }
.home-artist { display: flow-root; min-width: 0; padding: 18px 8px; }
.home-page .home-artist img { width: 32%; max-width: 170px; aspect-ratio: 1; }
.home-artist:has(> .noContent:only-child) { padding-block: 0; }
.home-references {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(22px, 2.4vw, 32px);
    padding: 18px 4px 0;
}
.home-reference {
    --home-note-tilt: -1.4deg;
    --home-tape-tilt: -6deg;
    --home-tape-color: #e4bc92d4;
    padding: clamp(23px, 2.4vw, 30px);
    color: var(--home-ink);
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.home-reference:nth-child(2) {
    --home-note-tilt: .9deg;
    --home-tape-tilt: 5deg;
    --home-tape-color: #e7b1bbd4;
}
.home-reference:nth-child(3) {
    --home-note-tilt: -.8deg;
    --home-tape-tilt: -4deg;
    --home-tape-color: #d5b8d1d4;
}
.home-reference::before, .home-reference::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.home-reference::before {
    z-index: -1;
    inset: 0;
    border-radius: 2px 3px 1px 2px;
    background: linear-gradient(155deg, #fff, #fffdfa);
    box-shadow: 0 1px 3px #54362d1c, 2px 7px 18px #54362d19;
    transform: rotate(var(--home-note-tilt));
}
.home-reference::after {
    inset-block-start: -12px;
    inset-inline-start: 50%;
    width: clamp(66px, 7.5vw, 94px);
    height: 25px;
    background: repeating-linear-gradient(125deg, #fff8ef33 0 1px, transparent 1px 4px), var(--home-tape-color);
    clip-path: polygon(0 0, 100% 0, 96% 18%, 100% 33%, 96% 50%, 100% 68%, 97% 84%, 100% 100%, 0 100%, 4% 82%, 0 65%, 4% 49%, 0 32%, 3% 16%);
    transform: translateX(-50%) rotate(var(--home-tape-tilt));
}
.home-reference h2 { font-size: 1.2rem; margin-bottom: 8px; }
.home-reference p { margin: 0; }
.home-reference p + p { margin-top: 6px; }

.second-page .mainNav .nav_current { text-decoration: underline; text-underline-offset: .35em; }
.second-breadcrumb { margin-bottom: 16px; color: var(--home-muted); font-size: .875rem; overflow-wrap: anywhere; }
.second-page .home-intro h1, .second-page-title {
    margin: 0 0 18px;
    padding: 0;
    color: var(--home-red);
    font: 700 clamp(1.5rem, 3vw, 2rem)/1.25 Arial, Helvetica, sans-serif;
}
.home-introduction:has(.home-intro h1) > .second-page-title { display: none; }
.second-page .home-intro ul { margin-inline: 0; padding-inline-start: 1.5rem; }
.second-page :is(iframe, video) { max-width: 100%; }
.second-section { margin-top: clamp(26px, 4vw, 44px); }
.second-practical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
    align-items: start;
    gap: clamp(16px, 2.5vw, 28px);
}
.second-facts, .second-downloads { overflow-wrap: anywhere; }
.second-facts h2:empty { display: none; }
.second-downloads { width: min(100%, 20rem); }
.second-downloads > :is(h1, h2, h3) { margin-bottom: 12px; }
.second-downloads a[href] + br { display: none; }
.second-downloads a[href] {
    --ticket-stub-width: 56px;
    --ticket-stub-color: #eed4df;
    --ticket-edge: #d3a9b9;
    --ticket-angle: .9deg;
    position: relative;
    isolation: isolate;
    display: block;
    align-content: center;
    min-height: 62px;
    margin-bottom: 12px;
    padding: 8px calc(var(--ticket-stub-width) + 14px) 8px 14px;
    border-radius: 9px 11px 8px 10px;
    font-weight: 700;
    text-decoration: none;
    filter: drop-shadow(1px 3px 4px #6940391a);
    transform: rotate(var(--ticket-angle));
}
.second-downloads a:is([href$=".pdf" i], [href*=".pdf?" i], [href*=".pdf#" i]) {
    --ticket-stub-color: #f4d4ba;
    --ticket-edge: #d8ac95;
    --ticket-angle: -1.2deg;
}
.second-downloads a[href]::before, .second-downloads a[href]::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.second-downloads a[href]::before {
    z-index: -1;
    inset: 0;
    border: 1px solid var(--ticket-edge);
    border-radius: inherit;
    background: linear-gradient(to left, var(--ticket-stub-color) var(--ticket-stub-width), #fffdf9 var(--ticket-stub-width));
    mask:
        radial-gradient(circle at calc(100% - var(--ticket-stub-width)) 0, transparent 5px, #000 5.5px),
        radial-gradient(circle at calc(100% - var(--ticket-stub-width)) 100%, transparent 5px, #000 5.5px);
    mask-composite: intersect;
}
.second-downloads a[href]::after {
    inset-block: 6px;
    inset-inline-end: 0;
    width: var(--ticket-stub-width);
    border-inline-start: 1px dashed var(--ticket-edge);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ab263b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4'/%3E%3C/svg%3E") center / 28px 28px no-repeat;
}
.second-downloads a[href]:hover { text-decoration: underline; text-underline-offset: .2em; }
.second-testimonials {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 385px), 1fr));
    justify-items: start;
    row-gap: 34px;
}
.second-testimonials > .home-reference { width: min(100%, 750px); }
body:not(:has(#liquidEditor #edition)) .second-page .second-section[data-empty],
body:not(:has(#liquidEditor #edition)) .second-page [data-section-zones] > [data-empty] { display: none; }

.home-footer {
    --home-footer-paper: #f8ebdf;
    position: relative;
    margin-top: 42px;
    padding-top: 30px;
    background: var(--home-footer-paper);
    color: var(--home-ink);
    font-size: 1rem;
    line-height: 1.55;
}
.home-footer::before { top: calc(1px - var(--home-wave-height)); background: var(--home-footer-paper); }
.home-footer-tagline {
    max-width: 50ch;
    margin: 0 auto 22px;
    color: #655159;
    text-align: center;
}
.home-footer-tagline strong { display: block; margin-bottom: 2px; color: var(--home-red); font-size: 1.5rem; line-height: 1.22; }
.home-footer-tagline p { margin: 4px 0 0; }
.home-footer-details {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 20px clamp(18px, 3vw, 34px);
    max-width: 1040px;
    margin-inline: auto;
    padding-block: 22px;
    border-block: 1px solid #e4cfc1;
}
.home-footer-details > * { min-width: 0; }
.home-footer-details > * + * { padding-inline-start: clamp(18px, 2.4vw, 28px); border-inline-start: 1px solid #e4cfc1; }
.home-footer-details h1, .home-footer-details h2 {
    margin: 0 0 8px;
    padding: 0;
    color: var(--home-red);
    font: 700 1.125rem/1.25 Arial, Helvetica, sans-serif;
}
.home-footer-info { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.home-footer-info address { font-style: normal; }
.home-footer-info p { margin: 0; }
.home-footer-info p + p { margin-top: 5px; }
.home-footer-info a { text-decoration: underline; text-underline-offset: .2em; }
.home-footer-info .share-icon { display: none; }
.home-footer-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-footer-share-links a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #c99893;
    border-radius: 11px;
    background: #fff8ef;
}
.home-footer-share-links svg { width: 21px; height: 21px; fill: currentColor; }
.home-footer-share-links a:hover { background: var(--home-red); color: #fff8ef; border-color: var(--home-red); }
.home-signature { margin: 15px auto 20px; color: #655159; text-align: center; font-size: .8125rem; }
.home-footer-art {
    display: block;
    width: min(100%, 2171px);
    height: auto;
    margin-inline: auto;
    /* Frame the silhouettes inside the transparent PNG. */
    aspect-ratio: 2171 / 318;
    object-fit: cover;
    object-position: center 84%;
}

@media (max-width: 1000px) {
    .home-page .home-shell { padding-inline: 28px; }
    .home-page .home-topbar-inner { gap: 24px; }
    .home-logo { flex-basis: 280px; }
    .home-page .mainNav { gap: 4px 18px; }
    .home-page .mainNav a, .home-page .mainNav .nav_current { font-size: 15px; }
    .home-introduction { padding-inline: 0; }
    .home-card { padding: 20px; }
    .home-page :is(.home-card, .home-artist) img { margin-right: 16px; }
    .home-page :is(.home-card, .home-artist).img_right img { margin-left: 16px; }
    .home-artists { padding-inline: 0; }
}

@media (max-width: 720px) {
    .home-page .home-shell { padding-inline: 20px; }
    .home-page .home-topbar-inner { flex-direction: column; gap: 4px; padding-top: 10px; padding-bottom: 12px; }
    .home-logo { flex: none; width: 270px; max-width: 85%; }
    .home-page .mainNav { width: 100%; justify-content: center; gap: 0 22px; }
    .home-page .mainNav a, .home-page .mainNav .nav_current { padding-block: 8px; font-size: 14px; }
    .home-hero { height: clamp(250px, 48vw, 340px); }
    .home-hero > img { object-position: 46% 42%; }
    .home-intro h1 { font-size: 20px; }
    .home-section-link { font-size: .875rem; }
    .home-services, .home-artists { grid-template-columns: minmax(0, 1fr); }
    .home-page .home-card img { max-width: 165px; }
    .home-page .home-artist img { width: 29%; max-width: 145px; }
    .home-artists > .home-artist { padding-inline: 4px; }
    .home-references { grid-template-columns: minmax(0, 1fr); row-gap: 34px; }
    .home-footer-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-footer-details > .home-footer-share {
        grid-column: 1 / -1;
        padding: 17px 0 0;
        border-inline-start: 0;
        border-top: 1px solid #e4cfc1;
    }
}

@media (max-width: 440px) {
    .home-page .home-shell { padding-inline: 16px; }
    .home-page .mainNav { column-gap: 18px; }
    .home-section-nav-inner { padding-inline: 0; }
    .home-section-nav-inner:has(> :nth-child(3):last-child) {
        grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr);
    }
    .home-card { padding: 19px 17px; }
    .home-page h2 { font-size: 20px; }
    .home-footer-details { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .home-footer-details > * + * { padding: 16px 0 0; border-inline-start: 0; border-top: 1px solid #e4cfc1; }
}

@media (prefers-reduced-motion: no-preference) {
    html:has(body.home-body) { scroll-behavior: smooth; }
    .second-downloads a[href] { transition: transform 160ms ease; }
    .second-downloads a[href]:hover { transform: translateY(-2px); }
}

@media print {
    .home-page .home-shell { width: 100%; padding-inline: 0; }
    .home-page .mainNav, .home-section-nav, .home-skip-link { display: none; }
    .home-hero { height: 200px; }
    .home-card, .home-artist, .home-agenda-slot, .home-references { break-inside: avoid; }
    .home-footer { background: none; }
    .home-footer::before, .home-footer-art { display: none; }
}
