/* Eco Hotel Makrelov, Smolyan. Rhodope night in the inks of the hotel's own logo (the starry blue plate,
   the neon-ice letters, the three red stars), with a day theme of moonlit snow and spruce ink.
   Header, footer and the .night bands stay night in both themes; the rest follows the theme. */

@font-face {
    font-family: "Philosopher";
    src: url("/fonts/philosopher-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Philosopher";
    src: url("/fonts/philosopher-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Alegreya Sans";
    src: url("/fonts/alegreya-sans.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Alegreya Sans";
    src: url("/fonts/alegreya-sans-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Alegreya Sans";
    src: url("/fonts/alegreya-sans-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    /* night, fixed: header, footer, .night bands, heroes at night */
    --n-0: #050d24;
    --n-1: #081433;
    --n-2: #0c1d47;
    --n-3: #14306a;
    --n-text: #e8eefb;
    --n-muted: #b4c3e0;
    --n-ice: #8fd8ff;
    --n-ice-2: #3fa9e8;
    --n-line: rgba(143, 216, 255, 0.2);
    --star: #e5333c;
    --star-text: #ff6b73;

    /* theme: night (default) */
    --bg: var(--n-1);
    --bg-2: var(--n-2);
    --surface: #10255a;
    --surface-2: #163068;
    --text: var(--n-text);
    --muted: var(--n-muted);
    --link: var(--n-ice);
    --accent: var(--n-ice);
    --on-accent: var(--n-1);
    --line: var(--n-line);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --glow: 0 0 0 1px rgba(143, 216, 255, 0.25), 0 18px 50px -18px rgba(63, 169, 232, 0.55);

    --sky-top: #050d24;
    --sky-mid: #0b1c4a;
    --sky-low: #183a7c;
    --ridge-far: #0f2a63;
    --ridge-mid: #0b2152;
    --ridge-near: var(--bg);
    --ridge-line: rgba(143, 216, 255, 0.75);
    --stars: 1;

    --radius: 22px;
    --radius-s: 12px;
    --wrap: 1180px;
    --display: "Philosopher", "Georgia", serif;
    --body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

    --lb-bg: rgba(5, 13, 36, 0.96);
    --lb-text: #e8eefb;
    --lb-accent: #8fd8ff;
    --lb-accent-soft: rgba(143, 216, 255, 0.18);
}

:root[data-theme="light"] {
    --bg: #eef3fb;
    --bg-2: #e2eaf6;
    --surface: #ffffff;
    --surface-2: #f6f9fd;
    --text: #13283d;
    --muted: #42546b;
    --link: #0f5a99;
    --accent: #0f5a99;
    --on-accent: #ffffff;
    --line: rgba(19, 40, 61, 0.14);
    --shadow: 0 24px 50px -28px rgba(19, 40, 61, 0.35);
    --glow: 0 0 0 1px rgba(15, 90, 153, 0.18), 0 18px 40px -22px rgba(15, 90, 153, 0.45);

    --sky-top: #9cc6ec;
    --sky-mid: #c9e0f5;
    --sky-low: #eef3fb;
    --ridge-far: #b5c9de;
    --ridge-mid: #8faac4;
    --ridge-near: var(--bg);
    --ridge-line: rgba(19, 40, 61, 0.45);
    --stars: 0;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
    display: block;
}

a {
    color: var(--link);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.top :focus-visible,
.foot :focus-visible,
.night :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible {
    outline-color: var(--n-ice);
}

:root[data-theme="light"] .hero :focus-visible,
:root[data-theme="light"] .page-hero :focus-visible {
    outline-color: #0f5a99;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.6rem);
}

h2 {
    font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
}

h3,
.h3 {
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(var(--wrap), 100% - 32px);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--n-ice);
    color: var(--n-1);
    font-weight: 700;
    border-radius: 10px;
}

.skip:focus {
    top: 12px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 10px;
    flex: none;
    background:
        radial-gradient(circle at 5px 5px, var(--star) 3.4px, transparent 3.8px),
        radial-gradient(circle at 17px 5px, var(--star) 3.4px, transparent 3.8px),
        radial-gradient(circle at 29px 5px, var(--n-ice-2) 3.4px, transparent 3.8px);
}

.lead {
    font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
    color: var(--muted);
    max-width: 46rem;
}

.motto {
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: 50px;
    padding: 0.7em 1.4em;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font: 700 1.05rem/1.2 var(--body);
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 2px var(--line);
}

.btn-ghost:hover {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.night .btn,
.hero .btn,
.page-hero .btn {
    background: var(--n-ice);
    color: var(--n-1);
}

.night .btn-ghost,
.hero .btn-ghost,
.page-hero .btn-ghost {
    background: transparent;
    color: var(--n-text);
    box-shadow: inset 0 0 0 2px var(--n-line);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.6rem;
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 20, 51, 0.9);
    color: var(--n-text);
    border-bottom: 1px solid var(--n-line);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-block: 8px;
}

.brand {
    flex: none;
    margin-right: auto;
    border-radius: 10px;
}

.brand img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(143, 216, 255, 0.25));
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--n-ice);
    color: var(--n-1);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 22px -4px rgba(143, 216, 255, 0.6);
}

.call:hover {
    background: #fff;
}

.tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang {
    display: flex;
    border: 1px solid var(--n-line);
    border-radius: 999px;
    padding: 3px;
}

.lang a,
.lang span {
    min-width: 40px;
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--n-text);
    text-decoration: none;
}

.lang span[aria-current] {
    background: rgba(143, 216, 255, 0.18);
    color: var(--n-ice);
}

.lang a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.theme,
.menu-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--n-line);
    border-radius: 999px;
    background: transparent;
    color: var(--n-text);
    font: 700 0.95rem var(--body);
    cursor: pointer;
}

.theme[hidden],
.menu-toggle[hidden] {
    display: none;
}

.theme svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.theme .theme-moon {
    fill: currentColor;
    stroke: none;
    display: none;
}

:root[data-theme="light"] .theme .theme-sun {
    display: none;
}

:root[data-theme="light"] .theme .theme-moon {
    display: block;
}

.theme:hover,
.menu-toggle:hover {
    border-color: var(--n-ice);
    color: var(--n-ice);
}

.menu-toggle {
    padding: 0 14px;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-bars {
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-bars {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
}

.nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 4px 12px;
    border-radius: 999px;
    color: var(--n-text);
    font-weight: 700;
    text-decoration: none;
}

.nav a:hover {
    color: var(--n-ice);
    background: rgba(143, 216, 255, 0.08);
}

.nav a[aria-current="page"] {
    color: var(--n-ice);
    background: rgba(143, 216, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(143, 216, 255, 0.35);
}

@media (max-width: 899px) {
    .has-menu .nav {
        display: none;
        flex-direction: column;
        padding: 8px 0 12px;
        border-top: 1px solid var(--n-line);
    }

    .has-menu .nav.is-open {
        display: flex;
    }

    .has-menu .nav a {
        min-height: 48px;
        font-size: 1.15rem;
    }
}

@media (max-width: 599px) {
    .brand img {
        height: 40px;
    }

    .top-row {
        gap: 8px 8px;
    }

    .menu-toggle {
        padding: 0;
        width: 44px;
    }

    .menu-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .call {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
        min-height: 42px;
    }

    .tools {
        order: 2;
    }

    .nav {
        order: 4;
    }
}

@media (min-width: 900px) {
    .top-row {
        padding-block: 10px 6px;
    }

    .brand img {
        height: 58px;
    }

    .menu-toggle {
        display: none !important;
    }

    .nav {
        justify-content: center;
        padding-top: 6px;
        border-top: 1px solid var(--n-line);
    }
}

/* ---- the sky: heroes ---- */

.sky {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--n-text);
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
}

.sky::before,
.sky::after {
    content: "";
    position: absolute;
    inset: 0 0 18% 0;
    z-index: -1;
    background: url("/img/stars-a.svg") 0 0 / 800px 600px repeat;
    opacity: var(--stars);
    transition: opacity 0.6s ease;
}

.sky::after {
    background-image: url("/img/stars-b.svg");
    background-position: 230px 90px;
    animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: calc(var(--stars) * 0.15); }
    to { opacity: var(--stars); }
}

:root[data-theme="light"] .sky {
    color: #13283d;
}

:root[data-theme="light"] .top {
    background: rgba(8, 20, 51, 0.97);
}

.ridges {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: -1;
    width: 100%;
    height: clamp(120px, 22vw, 300px);
    pointer-events: none;
}

.ridge-far { fill: var(--ridge-far); }
.ridge-mid { fill: var(--ridge-mid); }
.ridge-near { fill: var(--ridge-near); }

.ridge-line {
    fill: none;
    stroke: var(--ridge-line);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: draw 2.6s 0.3s cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

/* home hero */

.hero {
    padding: clamp(36px, 7vw, 90px) 0 clamp(120px, 20vw, 260px);
}

.hero-grid {
    display: grid;
    gap: 36px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5rem);
    margin-bottom: 0.3em;
}

.hero h1 .h1-small {
    display: block;
    font-size: 0.42em;
    letter-spacing: 0.02em;
    color: var(--n-ice);
    margin-bottom: 0.35em;
}

:root[data-theme="light"] .hero h1 .h1-small {
    color: #0f5a99;
}

.hero .motto {
    font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
    line-height: 1.3;
    margin-bottom: 0.9em;
    color: var(--n-text);
}

.hero .motto::before,
.hero .motto::after {
    color: var(--n-ice);
}

.hero-text p.lead {
    color: var(--n-muted);
}

:root[data-theme="light"] .hero .motto,
:root[data-theme="light"] .hero-text p.lead,
:root[data-theme="light"] .page-hero .lead {
    color: #13283d;
}

:root[data-theme="light"] .hero .btn,
:root[data-theme="light"] .page-hero .btn {
    background: #0f5a99;
    color: #fff;
}

:root[data-theme="light"] .hero .btn-ghost,
:root[data-theme="light"] .page-hero .btn-ghost {
    background: rgba(255, 255, 255, 0.55);
    color: #13283d;
    box-shadow: inset 0 0 0 2px rgba(19, 40, 61, 0.3);
}

.hero-text > * {
    animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-text > :nth-child(2) { animation-delay: 0.12s; }
.hero-text > :nth-child(3) { animation-delay: 0.24s; }
.hero-text > :nth-child(4) { animation-delay: 0.36s; }
.hero-text > :nth-child(5) { animation-delay: 0.48s; }

@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.daynight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.2rem;
    min-height: 44px;
    padding: 6px 16px 6px 8px;
    border: 1px solid rgba(143, 216, 255, 0.35);
    border-radius: 999px;
    background: rgba(8, 20, 51, 0.45);
    color: var(--n-text);
    font: 700 1rem var(--body);
    cursor: pointer;
}

.daynight[hidden] {
    display: none;
}

.daynight-dial {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0 22%, transparent 23%), radial-gradient(circle at 62% 40%, var(--n-1) 0 36%, transparent 37%), #f2f6ff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}

:root[data-theme="light"] .daynight {
    background: rgba(255, 255, 255, 0.7);
    color: #13283d;
    border-color: rgba(19, 40, 61, 0.25);
}

:root[data-theme="light"] .daynight-dial {
    background: radial-gradient(circle, #ffd25a 0 40%, rgba(255, 196, 64, 0.35) 41% 60%, transparent 61%);
    box-shadow: none;
}

.daynight:hover {
    border-color: var(--n-ice);
}

.arch {
    position: relative;
    justify-self: center;
    width: min(420px, 100%);
    margin: 0;
    animation: rise-in 1.1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.arch-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px var(--radius) var(--radius);
    overflow: hidden;
    box-shadow: 0 0 0 6px rgba(143, 216, 255, 0.12), 0 0 0 1px rgba(143, 216, 255, 0.5), 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 90px -20px rgba(63, 169, 232, 0.6);
}

:root[data-theme="light"] .arch-frame {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(19, 40, 61, 0.2), 0 40px 70px -34px rgba(19, 40, 61, 0.5);
}

.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arch .day,
:root[data-theme="light"] .arch .night {
    display: none;
}

:root[data-theme="light"] .arch .day {
    display: block;
}

.arch figcaption {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--n-1);
    color: var(--n-text);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 0 0 1px var(--n-line), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.arch figcaption .day-cap,
:root[data-theme="light"] .arch figcaption .night-cap {
    display: none;
}

:root[data-theme="light"] .arch figcaption .day-cap {
    display: inline;
}

.arch-stars {
    position: absolute;
    top: -14px;
    right: 8%;
    display: flex;
    gap: 6px;
}

.arch-stars svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 8px rgba(229, 51, 60, 0.6));
}

@media (min-width: 860px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 56px;
    }
}

/* inner page hero */

.page-hero {
    padding: clamp(40px, 7vw, 84px) 0 clamp(110px, 16vw, 200px);
}

.page-hero h1 {
    max-width: 18ch;
}

.page-hero .lead {
    color: var(--n-muted);
}

.page-hero .eyebrow,
.hero .eyebrow {
    color: var(--n-muted);
}

:root[data-theme="light"] .page-hero .eyebrow,
:root[data-theme="light"] .hero .eyebrow {
    color: #42546b;
}

.page-hero > .wrap > * {
    animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.page-hero > .wrap > :nth-child(2) { animation-delay: 0.1s; }
.page-hero > .wrap > :nth-child(3) { animation-delay: 0.2s; }

/* ---- sections ---- */

.band {
    padding: clamp(56px, 8vw, 110px) 0;
}

.band-tight {
    padding: clamp(36px, 5vw, 64px) 0;
}

.band-alt {
    background: var(--bg-2);
}

.night {
    background: radial-gradient(120% 140% at 85% 0%, var(--n-3) 0%, var(--n-1) 55%, var(--n-0) 100%);
    color: var(--n-text);
    --text: var(--n-text);
    --muted: var(--n-muted);
    --link: var(--n-ice);
    --accent: var(--n-ice);
    --on-accent: var(--n-1);
    --line: var(--n-line);
    --surface: rgba(255, 255, 255, 0.05);
}

.night a {
    color: var(--n-ice);
}

.section-head {
    max-width: 48rem;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head p {
    color: var(--muted);
}

.prose {
    max-width: 44rem;
}

.prose p,
.prose li {
    color: var(--text);
}

.split {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .split-rev {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.photo {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.photo img {
    width: 100%;
}

.ticks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4em;
    display: grid;
    gap: 10px;
}

.ticks li {
    position: relative;
    padding-left: 32px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.3em;
    width: 18px;
    height: 18px;
    background: var(--accent);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.chips {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4em;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chips li {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    font-weight: 700;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-s);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
}

.doc-link:hover {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.doc-link svg {
    width: 28px;
    height: 28px;
    flex: none;
    color: var(--accent);
}

.doc-link small {
    display: block;
    font-weight: 400;
    color: var(--muted);
}

/* ---- figures: only numbers the original states ---- */

.figures {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--n-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--n-line);
}

.figures li {
    padding: 26px 20px 22px;
    background: var(--n-1);
    container-type: inline-size;
}

.figures strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(2.4rem, 26cqi, 3.6rem);
    line-height: 1;
    color: var(--n-ice);
    text-shadow: 0 0 24px rgba(63, 169, 232, 0.55);
}

.figures span {
    display: block;
    margin-top: 8px;
    color: var(--n-muted);
    line-height: 1.3;
}

/* ---- bento ---- */

.bento {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    padding: 22px;
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    text-decoration: none;
    background: var(--n-2);
    box-shadow: var(--shadow);
}

.tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 13, 36, 0.05) 10%, rgba(5, 13, 36, 0.6) 48%, rgba(5, 13, 36, 0.95) 100%);
}

.tile:hover img {
    transform: scale(1.04);
}

.tile h3 {
    margin: 0 0 4px;
    color: #fff;
}

.tile p {
    margin: 0;
    color: #dbe5f7;
    line-height: 1.4;
}

.tile .tile-go {
    margin-top: 12px;
    font-weight: 700;
    color: var(--n-ice);
}

.tile-text {
    background: radial-gradient(120% 120% at 100% 0%, #1d468f 0%, var(--n-2) 60%);
    justify-content: space-between;
}

.tile-text::after {
    display: none;
}

.tile-text svg {
    flex: none;
    width: 56px;
    height: 56px;
    color: var(--n-ice);
}

@media (min-width: 700px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .bento {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 250px;
    }

    .tile {
        min-height: 0;
    }

    .tile-wide {
        grid-column: span 2;
    }

    .tile-tall {
        grid-row: span 2;
    }
}

/* ---- trail of years ---- */

.trail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    counter-reset: none;
}

.trail li {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    padding: 0 0 30px;
}

.trail li::before {
    content: "";
    position: absolute;
    left: 47px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--accent), transparent);
    opacity: 0.5;
}

.trail li:last-child::before {
    display: none;
}

.trail .year {
    font-family: var(--display);
    font-size: 1.9rem;
    line-height: 1.2;
    color: var(--accent);
    text-align: center;
}

.trail h3 {
    margin-bottom: 0.25em;
    font-size: 1.3rem;
}

.trail p {
    margin: 0;
    color: var(--muted);
}

@media (min-width: 900px) {
    .trail-row {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 24px;
    }

    .trail-row li {
        grid-template-columns: 1fr;
        align-content: start;
        gap: 6px;
        padding: 0;
    }

    .trail-row li::before {
        left: 70px;
        right: -24px;
        top: 22px;
        bottom: auto;
        width: auto;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), transparent);
    }

    .trail-row .year {
        text-align: left;
    }
}

/* ---- documents: a sideways strip of scans ---- */

.strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 300px);
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    list-style: none;
    margin: 0;
}

.strip > li {
    scroll-snap-align: start;
}

.doc {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
}

.doc a.doc-scan {
    display: grid;
    place-items: center;
    padding: 18px;
    background: #f3f1ea;
    aspect-ratio: 4 / 3.4;
}

.doc a.doc-scan img {
    max-height: 100%;
    width: auto;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.doc figcaption {
    padding: 14px 18px 18px;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--text);
}

.doc figcaption strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.doc figcaption .doc-text {
    color: var(--muted);
}

.docs-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

/* ---- gallery ---- */

.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
}

.gallery li {
    border-radius: var(--radius-s);
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: 4 / 3;
}

.gallery li.tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery a {
    display: block;
    height: 100%;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery a:hover img {
    transform: scale(1.05);
}

@media (min-width: 700px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (min-width: 1100px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- the EU notice ---- */

.eu {
    display: grid;
    gap: 28px;
    padding: clamp(20px, 3vw, 36px);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.eu figure {
    margin: 0;
}

.eu figure a {
    display: block;
    border-radius: var(--radius-s);
    overflow: hidden;
}

.eu figure img {
    width: 100%;
    max-width: 531px;
}

.eu figcaption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--muted);
}

.eu dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.eu dt {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.eu dd {
    margin: 0;
}

@media (min-width: 860px) {
    .eu {
        grid-template-columns: minmax(0, 360px) 1fr;
    }
}

/* ---- call band ---- */

.callband {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.callband::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("/img/stars-a.svg") 120px 40px / 800px 600px repeat;
    opacity: 0.55;
}

.callband-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

.callband .motto {
    font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 0.4em;
    color: #fff;
}

.big-phones {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.big-phones a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 14px 20px;
    border-radius: var(--radius-s);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px var(--n-line);
    color: var(--n-text);
    text-decoration: none;
}

.big-phones a:hover {
    box-shadow: inset 0 0 0 2px var(--n-ice);
}

.big-phones span {
    color: var(--n-muted);
    font-size: 0.95rem;
}

.big-phones strong {
    font-family: var(--display);
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
    color: var(--n-ice);
    white-space: nowrap;
}

@media (min-width: 900px) {
    .callband-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 56px;
    }
}

/* ---- rooms ---- */

.facts {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    list-style: none;
    padding: 0;
    margin: 0 0 1.6em;
}

.facts li {
    padding: 20px;
    border-radius: var(--radius-s);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    container-type: inline-size;
}

.facts strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.8rem, 18cqi, 2.6rem);
    line-height: 1;
    color: var(--accent);
    margin-bottom: 6px;
}

.facts span {
    color: var(--muted);
    line-height: 1.35;
    display: block;
}

.amenities {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.amenities li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-s);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    line-height: 1.3;
}

.amenities svg {
    width: 26px;
    height: 26px;
    flex: none;
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pets {
    display: grid;
    gap: 20px;
    align-items: center;
    padding: clamp(22px, 4vw, 40px);
    border-radius: var(--radius);
}

.pets svg {
    width: 90px;
    height: 90px;
    color: var(--n-ice);
}

.pets h2 {
    margin-bottom: 0.3em;
}

@media (min-width: 700px) {
    .pets {
        grid-template-columns: auto 1fr;
        gap: 32px;
    }
}

/* ---- services ---- */

.service {
    display: grid;
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
    padding-block: clamp(28px, 4vw, 48px);
    border-top: 1px solid var(--line);
}

.service:first-child {
    border-top: 0;
    padding-top: 0;
}

.service .num {
    font-family: var(--display);
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.duo-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.duo-photos li {
    border-radius: var(--radius-s);
    overflow: hidden;
    aspect-ratio: 1;
}

.duo-photos li:first-child:nth-last-child(odd),
.duo-photos li.wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.duo-photos a {
    display: block;
    height: 100%;
}

.duo-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.duo-photos a:hover img {
    transform: scale(1.05);
}

@media (min-width: 900px) {
    .service {
        grid-template-columns: 1fr 1fr;
    }

    .service:nth-child(even) > :first-child {
        order: 2;
    }
}

.spa-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4em;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.spa-list li {
    padding: 12px 14px;
    border-radius: var(--radius-s);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    font-weight: 700;
    line-height: 1.25;
}

/* ---- region ---- */

.sights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4em;
    display: grid;
    gap: 8px;
    counter-reset: sight;
}

.sights li {
    counter-increment: sight;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.sights li::before {
    content: counter(sight, decimal-leading-zero);
    font-family: var(--display);
    color: var(--accent);
}

.distances {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.distances li {
    padding: 16px;
    border-radius: var(--radius-s);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    container-type: inline-size;
}

.distances strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.6rem, 20cqi, 2.2rem);
    line-height: 1.05;
    color: var(--accent);
}

.distances span {
    color: var(--muted);
}

/* ---- contact ---- */

.contact-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    padding: clamp(22px, 3.5vw, 36px);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}

.contact-list {
    margin: 0;
    display: grid;
    gap: 18px;
}

.contact-list dt {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-list dd {
    margin: 2px 0 0;
}

.contact-list .big-phone {
    font-family: var(--display);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    text-decoration: none;
    white-space: nowrap;
}

.coords {
    font-variant-numeric: tabular-nums;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.contact-form textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}

.contact-form ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: var(--star-text);
}

:root[data-theme="light"] .contact-form ul {
    color: #b3121b;
}

.form-hint {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: var(--radius-s);
    background: rgba(143, 216, 255, 0.12);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.contact-sent strong {
    display: block;
}

/* ---- footer ---- */

.foot {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 64px 0 24px;
    background: linear-gradient(180deg, var(--n-1), var(--n-0));
    color: var(--n-text);
    border-top: 1px solid var(--n-line);
}

.foot-sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("/img/stars-b.svg") 0 0 / 800px 600px repeat;
    opacity: 0.6;
}

.foot a {
    color: var(--n-ice);
}

.foot h2 {
    font-size: 1.2rem;
    margin-bottom: 0.8em;
    color: #fff;
}

.foot p,
.foot address {
    color: var(--n-muted);
    font-style: normal;
}

.foot-grid {
    display: grid;
    gap: 36px;
}

.foot-logo {
    width: 240px;
    margin-bottom: 14px;
}

.foot .foot-motto {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--n-text) !important;
}

.foot-phones,
.foot-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
    display: grid;
    gap: 8px;
}

.foot-phones span {
    display: inline-block;
    min-width: 5.5em;
    color: var(--n-muted);
}

.foot-phones a {
    font-weight: 700;
    white-space: nowrap;
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--n-line);
    font-size: 0.95rem;
}

.foot-bottom p {
    margin: 0;
}

.foot-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

@media (min-width: 760px) {
    .foot-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }
}

@media (min-width: 1100px) {
    .foot-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
    }
}

/* ---- 404 ---- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px 160px;
    text-align: center;
}

.not-found > div {
    max-width: 36rem;
}

.not-found img {
    margin: 0 auto 26px;
    width: min(300px, 80%);
}

.not-found p {
    color: var(--n-muted);
}

:root[data-theme="light"] .not-found p {
    color: #42546b;
}

.not-found a:not(.btn) {
    color: var(--n-ice);
}

:root[data-theme="light"] .not-found a:not(.btn) {
    color: #0f5a99;
}

.not-found [lang="en"] {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--n-line);
}

/* ---- scroll reveal (finished state without support) ---- */

@supports (animation-timeline: view()) {
    .rise {
        animation: rise-in linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }
}

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

    .ridge-line {
        stroke-dashoffset: 0;
    }
}

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

/* a service whose photos need the whole width */
@media (min-width: 900px) {
    .service.service-full {
        grid-template-columns: 1fr;
    }

    .service.service-full > :first-child {
        order: 0;
        max-width: 48rem;
    }
}
