/*
Theme Name: Silke Lieser
Author: Simon Baumeister
Description: Unfolding Potential, Einblicke und Kontakt auf der Simon-Baumeister-Grundlage.
Template: sb-base
Version: 0.4.6
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: silke-lieser
*/

@font-face {
    font-family: "Signature Headlines";
    src: url("assets/fonts/SignatureHeadlines2.ttf") format("truetype");
    font-style: normal; font-weight: 700; font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("assets/fonts/Montserrat-Light.ttf") format("truetype");
    font-style: normal; font-weight: 300; font-display: swap;
}
:root {
    --sb-paper: #f8f8f8;
    --sb-ink: #242422;
    --sb-body: "Montserrat", sans-serif;
    --sb-heading: "Signature Headlines", sans-serif;
    --sb-gutter: clamp(1.5rem, 6vw, 7rem);
    --sl-admin-height: 0px;
    --sl-copy-size: clamp(16px, 1.25vw, 18px);
    --sl-small-size: 14px;
}
html { min-height: 0; }
body { position: relative; font-weight: 300; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
body.admin-bar { --sl-admin-height: 32px; }
.sb-site:not(.sl-home) { min-height: calc(100svh - var(--sl-admin-height)); display: flex; flex-direction: column; }
.sl-home { min-height: 100svh; }
.sl-hero h1, .sb-page h1 { font-family: var(--sb-heading); font-weight: 700; text-transform: uppercase; }
.sl-brand, .sl-contact h2 { font-family: var(--sb-body); font-size: 24px; font-weight: 300; line-height: 1.2; text-transform: uppercase; letter-spacing: .18em; }
.sl-site-header { position: absolute; z-index: 5; inset: 0 0 auto; padding: 28px 40px; }
.sl-brand { display: inline-block; text-decoration: none; }
.sl-hero { position: relative; display: grid; place-items: center; min-height: calc(100svh - var(--sl-admin-height)); padding: 130px 32px; isolation: isolate; }
.sl-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("assets/images/birds-desktop.webp") no-repeat right bottom / contain; pointer-events: none; }
.sl-hero__copy { width: min(100%, 850px); text-align: center; }
.sl-hero h1 { margin: 0; font-size: clamp(50px, 4.7vw, 80px); line-height: 1.07; letter-spacing: .008em; }
.sl-hero__subline { max-width: 45ch; margin: 38px auto 0; }
.sl-subline--split span { display: block; white-space: nowrap; }
.sl-gallery { margin-inline: 24px; }
.sl-gallery__viewport { --sl-gallery-visible: var(--sl-gallery-desktop-count, 4); container-type: inline-size; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; scroll-snap-type: x mandatory; }
.sl-gallery__viewport::-webkit-scrollbar { display: none; }
.sl-gallery__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.sl-gallery__track { display: flex; width: max-content; }
.sl-gallery__item { flex: 0 0 calc(100cqi / var(--sl-gallery-visible)); width: calc(100cqi / var(--sl-gallery-visible)); aspect-ratio: 4 / 3; margin: 0; scroll-snap-align: start; overflow: hidden; }
.sl-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; user-select: none; }
.sl-gallery__controls { display: flex; align-items: center; justify-content: flex-end; gap: 2px; padding-top: 8px; }
.sl-gallery__controls[hidden] { display: none; }
.sl-gallery__controls button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: #62665c; font: 300 var(--sl-small-size)/1.2 var(--sb-body); cursor: pointer; }
.sl-gallery__controls button:hover { color: var(--sb-ink); background: #e9ebe5; border-radius: 5px; }
.sl-gallery__controls .sl-gallery__previous, .sl-gallery__controls .sl-gallery__next { font-size: 22px; }
.sl-contact { padding: clamp(90px, 9vw, 150px) 24px 110px; text-align: center; }
.sl-contact h2 { margin: 0; }
.sl-contact__role { margin: 12px 0 0; }
.sl-contact address { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 48px; margin-top: 32px; font-style: normal; }
.sl-contact address a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.sl-contact address a:hover { text-decoration: underline; }
.sl-contact__website { display: inline-block; margin-top: 16px; }
.sl-hero__subline, .sl-contact__role, .sl-contact address, .sl-contact__website { font: 300 var(--sl-copy-size)/1.65 var(--sb-body); letter-spacing: -.015em; }
.sl-hero__description { max-width: 60ch; margin: 30px auto 0; font: 300 var(--sl-small-size)/1.75 var(--sb-body); letter-spacing: .015em; }
.sb-legal { justify-content: center; padding: 0 24px 32px; gap: 26px; font-size: var(--sl-small-size); font-weight: 300; color: #62665c; }
.sb-legal a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.sb-legal a:hover { text-decoration: underline; }
.sb-page { flex: 1; width: 100%; font-weight: 300; }
.sb-page h1 { line-height: 1.15; }
.sb-page h2 { margin-top: 2rem; font-size: 1.1rem; font-weight: 300; }
.sb-page address { font-style: normal; }
.sl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sl-gallery__viewport:focus-visible, .sl-gallery__controls button:focus-visible { outline: 2px solid var(--sb-ink); outline-offset: 4px; }

@media (max-width: 782px) {
    body.admin-bar { --sl-admin-height: 46px; }
}
@media (min-width: 1280px) {
    .sl-gallery__viewport { --sl-gallery-visible: var(--sl-gallery-wide-count, 5); }
}
@media (max-width: 700px) {
    :root { --sl-copy-size: clamp(12px, 3.85vw, 15px); --sl-small-size: 12px; }
    .sl-site-header { padding: 24px; text-align: center; }
    .sl-brand, .sl-contact h2 { font-size: 20px; }
    .sl-hero {
        height: calc(100svh - var(--sl-admin-height));
        height: calc(100dvh - var(--sl-admin-height));
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(76px, 1fr) auto minmax(0, 1fr);
        row-gap: 24px;
        padding: 0 24px;
        overflow: hidden;
    }
    .sl-hero__copy { grid-area: 2 / 1; }
    .sl-hero::before {
        position: relative;
        inset: auto;
        grid-area: 3 / 1;
        align-self: stretch;
        justify-self: stretch;
        margin-inline: -24px;
        background-image: url("assets/images/birds-mobile.webp");
        background-size: auto 168%;
    }
    .sl-hero h1 { font-size: clamp(41px, 11.2vw, 62px); }
    .sl-hero__subline { max-width: 30ch; margin-top: 29px; }
    .sl-hero__subline.sl-subline--split { max-width: 100%; }
    .sl-hero__description { max-width: 37ch; margin-top: 24px; }
    .sl-gallery { margin-inline: 16px; }
    .sl-gallery__viewport { --sl-gallery-visible: 1; }
    .sl-gallery__controls { justify-content: space-between; }
    .sl-contact { padding: 84px 24px 74px; }
    .sl-contact address { flex-direction: column; gap: 5px; margin-top: 24px; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .sl-site-header { padding-block: 18px; }
    .sl-hero { padding-block: 100px 72px; }
    .sl-hero h1 { font-size: 44px; }
    .sl-hero__subline { margin-top: 24px; }
    .sl-hero__description { margin-top: 16px; }
}
@media (max-width: 700px) and (max-height: 500px) and (orientation: landscape) {
    .sl-hero { padding-block: 0; row-gap: 12px; grid-template-rows: minmax(64px, 1fr) auto minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .sl-gallery__viewport { scroll-behavior: auto; }
}
@media print {
    .sl-site-header, .sl-gallery__controls, .sb-skip, #wpadminbar { display: none; }
    .sl-hero { min-height: 0; padding-block: 50px; }
    .sl-hero::before { display: none; }
    .sl-gallery__viewport { overflow: visible; }
    .sl-gallery__track { width: 100%; flex-wrap: wrap; }
    .sl-gallery__item { width: 25%; flex-basis: 25%; }
    .sl-gallery__item[aria-hidden="true"] { display: none; }
    .sl-contact { padding-block: 50px; }
}
