/* „Къщата с маковете“ — a poppy meadow on a Rhodope night.
   Linen pages, spruce-night bands, poppy red from the logo and the house's own curtains.
   Fonts: El Messiri (display), Bellota Text (text), Bad Script (guestbook notes). All SIL OFL 1.1. */

@font-face {
    font-family: "El Messiri";
    src: url("/fonts/el-messiri.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
    /* no ѝ (U+045D) in El Messiri: it falls back to Bellota Text */
    unicode-range: U+0000-045C, U+045E-FFFF;
}

@font-face {
    font-family: "Bellota Text";
    src: url("/fonts/bellota-text.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Bellota Text";
    src: url("/fonts/bellota-text-bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

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

@font-face {
    font-family: "Bad Script";
    src: url("/fonts/bad-script.woff2") format("woff2");
    font-display: swap;
}

:root {
    --night: #0d211d;
    --spruce: #14302a;
    --ridge: #1d4038;
    --ridge-2: #285247;
    --linen: #faf3e8;
    --sheet: #fffaf2;
    --sand: #f1e4d0;
    --line: #e2d3bd;
    --ink: #211915;
    --ink-soft: #57483f;
    --poppy: #e0302c;
    --poppy-deep: #c42228;
    --poppy-text: #a81c24;
    --poppy-lit: #ff8a7a;
    --orange: #e98a2e;
    --meadow: #9cc46a;
    --stem: #4f7a35;
    --on-dark: #f6ecdc;
    --on-dark-soft: #c9d3c8;
    --radius: 22px;
    --radius-lg: 34px;
    --shadow: 0 18px 50px -24px rgb(33 25 21 / .45);
    --display: "El Messiri", "Bellota Text", Georgia, serif;
    --text: "Bellota Text", "Segoe UI", system-ui, sans-serif;
    --script: "Bad Script", "Bellota Text", cursive;
    --wrap: 1200px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--linen);
    color: var(--ink);
    font-family: var(--text);
    font-size: clamp(1.03rem, .98rem + .25vw, 1.15rem);
    line-height: 1.65;
    overflow-x: hidden;
}

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

img {
    height: auto;
}

a {
    color: var(--poppy-text);
    text-underline-offset: .18em;
    text-decoration-thickness: 1px;
}

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

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

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

h1 {
    font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);
}

h2 {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.3rem);
}

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

p {
    margin: 0 0 1em;
}

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

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

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--linen);
    border-radius: 10px;
}

.skip:focus {
    top: 12px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    margin: 0 0 1rem;
    font-family: var(--text);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--poppy-text);
}

.eyebrow::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #1b0d0b 0 28%, var(--poppy) 30%);
}

.lead {
    font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem);
    color: var(--ink-soft);
    max-width: 62ch;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    padding: .85em 1.4em;
    border: 2px solid var(--poppy-deep);
    border-radius: 999px;
    background: var(--poppy-deep);
    color: #fff;
    font: 700 1rem/1.2 var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.btn:hover {
    background: #a51a20;
    border-color: #a51a20;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -14px rgb(196 34 40 / .9);
}

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

.btn-ghost {
    background: transparent;
    border-color: currentColor;
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--linen);
}

.dark .btn-ghost {
    color: var(--on-dark);
}

.dark .btn-ghost:hover {
    background: var(--on-dark);
    border-color: var(--on-dark);
    color: var(--night);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(250 243 232 / .86);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid rgb(33 25 21 / .08);
}

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

.brand {
    flex: none;
    border-radius: 12px;
}

.brand img {
    width: 126px;
    height: auto;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    margin-left: auto;
}

.nav a {
    padding: .45em .8em;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 700;
    font-size: .98rem;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.nav a:hover {
    background: var(--sand);
}

.nav a[aria-current="page"] {
    background: var(--ink);
    color: var(--linen);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    font-weight: 700;
    font-size: .85rem;
}

.lang a,
.lang span {
    padding: .4em .7em;
    color: var(--ink);
    text-decoration: none;
}

.lang span {
    background: var(--sand);
}

.lang a:hover {
    background: var(--sheet);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .6em 1.05em;
    border-radius: 999px;
    background: var(--poppy-deep);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.call:hover {
    background: #a51a20;
    transform: translateY(-1px);
}

@media (max-width: 1080px) {
    .top-row {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        margin: 0;
        justify-content: center;
        padding-top: 4px;
        border-top: 1px solid rgb(33 25 21 / .08);
    }

    .top-actions {
        margin-left: auto;
    }
}

@media (max-width: 700px) {
    .top {
        position: relative;
    }

    .brand img {
        width: 100px;
    }

    .nav a {
        padding: .38em .62em;
        font-size: .93rem;
    }

    .call {
        padding: .55em .85em;
        font-size: .95rem;
    }
}

@media (max-width: 400px) {
    .top-row {
        gap: 8px;
    }

    .brand img {
        width: 86px;
    }

    .call {
        padding: .5em .7em;
        font-size: .9rem;
    }

    .call svg {
        display: none;
    }

    .lang a,
    .lang span {
        padding: .38em .55em;
    }
}

/* ---- dark bands ---- */

.dark {
    background: var(--spruce);
    color: var(--on-dark);
}

.dark a:not(.btn) {
    color: var(--on-dark);
}

.dark .eyebrow {
    color: var(--meadow);
}

.dark .lead {
    color: var(--on-dark-soft);
}

/* ---- home hero: the meadow ---- */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 60% 50% at 78% 18%, rgb(233 138 46 / .16), transparent 70%),
        linear-gradient(180deg, var(--night) 0%, var(--spruce) 62%, #18382f 100%);
    padding: clamp(40px, 6vw, 84px) 0 clamp(150px, 17vw, 250px);
}

.hero-ridges {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    height: 60%;
    z-index: -1;
}

.hero-ridges path:nth-child(1) {
    fill: #17362f;
}

.hero-ridges path:nth-child(2) {
    fill: #1b3e35;
}

.hero-ridges path:nth-child(3) {
    fill: #20463c;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.hero h1 {
    margin-bottom: .35em;
    font-size: clamp(2.7rem, 1.5rem + 5.4vw, 6.2rem);
    line-height: .98;
}

.hero h1 .red {
    display: block;
    color: var(--poppy-lit);
}

.hero .lead {
    margin-bottom: 1.6rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--on-dark-soft);
    font-size: .95rem;
}

.hero-meta strong {
    color: var(--on-dark);
    font-family: var(--display);
    font-size: 1.45rem;
    margin-right: .25em;
}

.gable {
    position: relative;
    margin: 0;
    aspect-ratio: 5 / 4.6;
}

.gable-photo {
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%);
    overflow: hidden;
    background: var(--ridge);
}

.gable-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 60%;
}

.gable-line {
    position: absolute;
    inset: -14px;
    width: calc(100% + 28px);
    height: calc(100% + 28px);
    overflow: visible;
    pointer-events: none;
}

.gable-line path {
    fill: none;
    stroke: var(--on-dark);
    stroke-width: 3;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.gable-tag {
    position: absolute;
    left: -6px;
    bottom: 18%;
    z-index: 2;
    padding: .55em 1em;
    border-radius: 14px;
    background: var(--linen);
    color: var(--ink);
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.25;
    box-shadow: var(--shadow);
}

.gable-tag b {
    display: block;
    font-family: var(--display);
    font-size: 1.6rem;
    color: var(--poppy-text);
}

.meadow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: clamp(170px, 21vw, 300px);
    z-index: 3;
    pointer-events: none;
}

.meadow .grass-back {
    fill: #2c5a3a;
}

.meadow .grass-front {
    fill: #3d6f3a;
}

.meadow .stem {
    fill: none;
    stroke: var(--stem);
    stroke-width: 3;
    stroke-linecap: round;
}

.meadow .leaf {
    fill: #4a7834;
}

.meadow .p1 {
    fill: #b81f22;
}

.meadow .p2 {
    fill: var(--poppy);
}

.meadow .p3 {
    fill: #8f171b;
}

.meadow .core {
    fill: #1b0d0b;
}

.meadow .core-ring {
    fill: none;
    stroke: #3a1412;
    stroke-width: 1.5;
    stroke-dasharray: 2 3;
}

.meadow .bud {
    fill: #5f8f3e;
}

.meadow .bud-tip {
    fill: none;
    stroke: var(--poppy);
    stroke-width: 3;
    stroke-linecap: round;
}

.meadow .bloom {
    transform-box: fill-box;
    transform-origin: 50% 80%;
}

@media (prefers-reduced-motion: no-preference) {
    .meadow .stem {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: grow 1.1s cubic-bezier(.3, .7, .3, 1) var(--d) forwards;
    }

    .meadow .leaf {
        opacity: 0;
        animation: fade .6s ease calc(var(--d) + .5s) forwards;
    }

    .meadow .bloom {
        transform: scale(0);
        animation: bloom .9s cubic-bezier(.2, 1.4, .4, 1) calc(var(--d) + .85s) forwards;
    }

    .meadow .plant {
        animation: sway var(--sway) ease-in-out calc(var(--d) + 1.8s) infinite alternate;
    }

    .gable-line path {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: grow 1.8s cubic-bezier(.6, 0, .2, 1) .2s forwards;
    }

    .gable-photo {
        animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both;
    }

    .hero-copy > * {
        animation: rise .9s cubic-bezier(.2, .8, .2, 1) both;
    }

    .hero-copy > :nth-child(2) {
        animation-delay: .08s;
    }

    .hero-copy > :nth-child(3) {
        animation-delay: .16s;
    }

    .hero-copy > :nth-child(4) {
        animation-delay: .24s;
    }

    .hero-copy > :nth-child(5) {
        animation-delay: .32s;
    }
}

@keyframes grow {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fade {
    to {
        opacity: 1;
    }
}

@keyframes bloom {
    to {
        transform: scale(1);
    }
}

@keyframes sway {
    from {
        transform: rotate(-1.6deg);
    }

    to {
        transform: rotate(1.8deg);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .gable {
        width: min(100%, 520px);
        margin-inline: auto;
    }
}

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

.band {
    padding-block: clamp(64px, 9vw, 120px);
}

.band-tight {
    padding-block: clamp(44px, 6vw, 80px);
}

.band-sheet {
    background: var(--sheet);
}

.band-sand {
    background: var(--sand);
}

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

/* the poppy story */

.story {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 6vw, 90px);
    align-items: center;
}

.story-art {
    position: relative;
    max-width: 440px;
    margin-inline: auto;
}

.story-art svg {
    width: 100%;
    height: auto;
}

.story blockquote {
    margin: 0 0 1.2em;
    font-family: var(--display);
    font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.45rem);
    line-height: 1.22;
    font-weight: 500;
}

.story blockquote em {
    color: var(--poppy-text);
    font-style: normal;
    font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .story-art .petal {
            transform-box: fill-box;
            transform-origin: 50% 100%;
            animation: bloom linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 40%;
        }

        .reveal {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 28%;
        }
    }
}

@media (max-width: 760px) {
    .story {
        grid-template-columns: 1fr;
    }

    .story-art {
        max-width: 190px;
    }
}

/* the house: a bento grid */

.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(210px, auto);
    gap: 16px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--spruce);
    color: var(--on-dark);
    isolation: isolate;
    min-height: 240px;
}

.tile > a:first-child {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

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

.tile-body {
    position: relative;
    padding: 22px 24px 22px;
    background: linear-gradient(180deg, transparent, rgb(13 33 29 / .82) 38%, rgb(13 33 29 / .94));
}

.tile-body h3 {
    margin-bottom: .2em;
}

.tile-body p {
    margin: 0;
    color: var(--on-dark-soft);
    font-size: .98rem;
}

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

.tile-low img {
    object-position: 50% 80%;
}

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

.tile-number {
    justify-content: space-between;
    padding: 26px;
    background: var(--poppy-deep);
}

.tile-number .big {
    font-family: var(--display);
    font-size: clamp(4rem, 3rem + 4vw, 7rem);
    line-height: .9;
    font-weight: 700;
}

.tile-number p {
    margin: 0;
    font-size: 1.05rem;
}

.tile-more {
    justify-content: center;
    background: var(--ridge);
}

.tile-more .ticks {
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5em 1.4em;
}

@media (max-width: 560px) {
    .tile-more .ticks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 560px) {
    .bento {
        grid-template-columns: 1fr;
    }

    .tile-wide {
        grid-column: auto;
    }
}

/* two kinds of stay */

.stay {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 32px);
}

.stay-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--sheet);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.stay-card figure {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.stay-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stay-body {
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 3vw, 34px);
}

.stay-count {
    display: flex;
    align-items: baseline;
    gap: .4em;
    margin: 0 0 .4em;
    font-family: var(--display);
    color: var(--poppy-text);
    font-size: 1.25rem;
    font-weight: 700;
}

.stay-count b {
    font-size: 3.4rem;
    line-height: 1;
}

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

.ticks li {
    position: relative;
    padding-left: 1.6em;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: .7em;
    height: .7em;
    border-radius: 50%;
    background: radial-gradient(circle, #1b0d0b 0 26%, var(--poppy) 28%);
}

.stay-body .btn {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 760px) {
    .stay {
        grid-template-columns: 1fr;
    }
}

/* large figures on the poppy band */

.band-red {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 120%, rgb(255 255 255 / .1) 0 30%, transparent 31%),
        radial-gradient(circle at 92% -20%, rgb(0 0 0 / .12) 0 26%, transparent 27%),
        var(--poppy-deep);
    color: #fff;
}

.band-red .eyebrow {
    color: #fff;
}

.band-red .eyebrow::before {
    background: radial-gradient(circle, #1b0d0b 0 30%, #fff 32%);
}

.band-red a:not(.btn) {
    color: #fff;
}

.figures {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgb(255 255 255 / .35);
}

.figures li {
    padding: 22px 16px 6px 0;
    border-right: 1px solid rgb(255 255 255 / .22);
    padding-left: 16px;
    container-type: inline-size;
}

.figures li:first-child {
    padding-left: 0;
}

.figures li:last-child {
    border-right: 0;
}

.figures b {
    display: block;
    font-family: var(--display);
    font-size: clamp(2.2rem, 26cqi, 3.8rem);
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.figures b small {
    font-size: .45em;
    margin-left: .1em;
}

.figures span {
    display: block;
    margin-top: .4em;
    font-size: .98rem;
    line-height: 1.35;
}

@media (max-width: 960px) {
    .figures {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .figures li:nth-child(3n) {
        border-right: 0;
    }

    .figures li:nth-child(3n + 1) {
        padding-left: 0;
    }

    .figures li:nth-child(n + 4) {
        border-top: 1px solid rgb(255 255 255 / .22);
    }
}

@media (max-width: 520px) {
    .figures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .figures li:nth-child(n) {
        border-right: 1px solid rgb(255 255 255 / .22);
        padding-left: 16px;
        border-top: 0;
    }

    .figures li:nth-child(2n) {
        border-right: 0;
    }

    .figures li:nth-child(2n + 1) {
        padding-left: 0;
    }

    .figures li:nth-child(n + 3) {
        border-top: 1px solid rgb(255 255 255 / .22);
    }
}

.road-note {
    margin: 26px 0 0;
    max-width: 70ch;
    color: #fff;
}

/* guestbook */

.guestbook {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 34px);
    align-items: start;
}

.note {
    position: relative;
    margin: 0;
    padding: 30px 28px 24px;
    background:
        repeating-linear-gradient(180deg, transparent 0 33px, rgb(168 28 36 / .1) 33px 34px),
        var(--sheet);
    border-radius: 6px 6px 20px 6px;
    box-shadow: var(--shadow);
    transform: rotate(var(--r, -1deg));
    transition: transform .3s ease;
}

.note:nth-child(2) {
    --r: 1.2deg;
    margin-top: 28px;
}

.note:nth-child(3) {
    --r: -.6deg;
}

.note:hover {
    transform: rotate(0deg) translateY(-4px);
}

.note::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 84px;
    height: 24px;
    transform: translateX(-50%) rotate(-3deg);
    background: rgb(233 138 46 / .45);
    border-radius: 3px;
}

.note blockquote {
    margin: 0 0 1em;
    font-family: var(--script);
    font-size: 1.28rem;
    line-height: 34px;
    color: #3a2420;
}

.note blockquote p {
    margin: 0 0 .5em;
}

.note figcaption {
    font-size: .92rem;
    color: var(--ink-soft);
    line-height: 1.4;
}

.note figcaption b {
    color: var(--ink);
}

.translated {
    margin-top: 22px;
    font-size: .92rem;
    color: var(--ink-soft);
}

@media (max-width: 900px) {
    .guestbook {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-inline: auto;
    }

    .note:nth-child(2) {
        margin-top: 0;
    }
}

/* sideways photo strip */

.strip {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0 0 14px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--ridge-2) transparent;
}

.strip li {
    flex: 0 0 clamp(220px, 30vw, 360px);
    scroll-snap-align: start;
    position: relative;
}

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

.strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s ease;
}

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

.strip-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

/* call band with the host */

.cta {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 60px);
    align-items: center;
    padding: clamp(28px, 5vw, 64px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse at 100% 0%, rgb(224 48 44 / .32), transparent 60%),
        var(--night);
    color: var(--on-dark);
}

.cta h2 {
    margin-bottom: .3em;
}

.cta p {
    color: var(--on-dark-soft);
}

.cta a:not(.btn) {
    color: var(--on-dark);
}

.big-phone {
    display: inline-block;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
    line-height: 1.1;
    white-space: nowrap;
    text-decoration: none;
}

.cta .big-phone {
    color: #fff;
}

.cta-side {
    display: grid;
    gap: 14px;
    justify-items: start;
}

@media (max-width: 760px) {
    .cta {
        grid-template-columns: 1fr;
    }
}

/* ---- inner pages ---- */

.page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(44px, 7vw, 96px) 0 clamp(70px, 9vw, 120px);
    background: linear-gradient(180deg, var(--night), var(--spruce));
    color: var(--on-dark);
}

.page-hero .lead {
    color: var(--on-dark-soft);
}

.page-hero .eyebrow {
    color: var(--meadow);
}

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

.page-ridge {
    position: absolute;
    inset: auto 0 -1px;
    width: 100%;
    height: clamp(50px, 7vw, 100px);
    z-index: -1;
}

.page-ridge path {
    fill: var(--linen);
}

.page-poppy {
    position: absolute;
    right: max(16px, calc((100% - var(--wrap)) / 2));
    bottom: 10px;
    width: clamp(90px, 14vw, 190px);
    height: auto;
    z-index: -1;
    opacity: .95;
}

@media (max-width: 640px) {
    .page-poppy {
        width: 70px;
        opacity: .5;
    }
}

.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}

.subnav a {
    display: inline-block;
    padding: .45em 1em;
    border: 1px solid rgb(246 236 220 / .4);
    border-radius: 999px;
    color: var(--on-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
}

.subnav a:hover {
    background: rgb(246 236 220 / .12);
}

/* rooms */

.unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(26px, 5vw, 70px);
    align-items: start;
}

.unit + .unit {
    margin-top: clamp(56px, 8vw, 110px);
    padding-top: clamp(56px, 8vw, 110px);
    border-top: 1px solid var(--line);
}

.unit-photos {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.unit-photos li {
    grid-column: span 2;
}

.unit-photos li:first-child {
    grid-column: span 6;
}

.unit-photos li:nth-child(2),
.unit-photos li:nth-child(3) {
    grid-column: span 3;
}

.unit-photos a {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    height: 100%;
}

.unit-photos img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s ease;
}

.unit-photos li:first-child img {
    aspect-ratio: 16 / 9;
}

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

.unit-count {
    display: inline-flex;
    align-items: baseline;
    gap: .35em;
    margin: 0 0 .6em;
    padding: .3em .9em;
    border-radius: 999px;
    background: var(--sand);
    font-weight: 700;
    color: var(--poppy-text);
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 26px;
    margin: 1.6em 0 0;
}

.facts h3 {
    font-family: var(--text);
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--poppy-text);
    margin-bottom: .6em;
}

.facts .ticks {
    margin: 0;
    font-size: .98rem;
}

.massage {
    margin-top: 1.8em;
    padding: 22px 24px;
    border-radius: var(--radius);
    background: var(--spruce);
    color: var(--on-dark);
}

.massage h3 {
    margin-bottom: .4em;
}

.massage ul {
    margin: 0 0 .6em;
    padding-left: 1.2em;
}

.massage p {
    margin: 0;
    color: var(--on-dark-soft);
    font-size: .95rem;
}

.massage a {
    color: var(--on-dark);
}

@media (max-width: 860px) {
    .unit {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .facts {
        grid-template-columns: 1fr;
    }
}

/* prices */

.season-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.season-table caption {
    text-align: left;
    padding: 0 0 12px;
    color: var(--ink-soft);
    font-size: .95rem;
}

.season-table th,
.season-table td {
    padding: 18px 20px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.season-table tbody tr:last-child th,
.season-table tbody tr:last-child td {
    border-bottom: 0;
}

.season-table thead th {
    background: var(--spruce);
    color: var(--on-dark);
    font-family: var(--display);
    font-size: 1.3rem;
    line-height: 1.2;
}

.season-table thead th span {
    display: block;
    margin-top: .3em;
    font-family: var(--text);
    font-size: .88rem;
    font-weight: 400;
    color: var(--on-dark-soft);
}

.season-table tbody th {
    font-family: var(--display);
    font-size: 1.2rem;
}

.season-table tbody th span {
    display: block;
    font-family: var(--text);
    font-weight: 400;
    font-size: .9rem;
    color: var(--ink-soft);
}

.price {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--poppy-text);
    white-space: nowrap;
}

.ask {
    color: var(--ink-soft);
    font-style: italic;
}

.table-scroll {
    overflow-x: auto;
}

@media (max-width: 640px) {
    .season-table thead {
        display: none;
    }

    .season-table,
    .season-table tbody,
    .season-table tr,
    .season-table th,
    .season-table td {
        display: block;
    }

    .season-table tbody th {
        background: var(--sand);
    }

    .season-table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .season-table td::before {
        content: attr(data-season);
        font-weight: 700;
        font-size: .92rem;
        flex: 1 1 140px;
    }
}

.price-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.panel {
    padding: 24px 26px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.panel h2,
.panel h3 {
    font-size: 1.4rem;
}

.panel dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin: 0;
}

.panel dt {
    font-weight: 700;
}

.panel dd {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 460px) {
    .panel dl {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .panel dd {
        margin-bottom: .6em;
    }
}

@media (max-width: 760px) {
    .price-notes {
        grid-template-columns: 1fr;
    }
}

.rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rules li {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--spruce);
    color: var(--on-dark);
}

.rules li:first-child {
    grid-column: 1 / -1;
}

.rules h3 {
    font-size: 1.35rem;
}

.rules p {
    color: var(--on-dark-soft);
    margin-bottom: .6em;
}

.rules p:last-child {
    margin-bottom: 0;
}

.rules a {
    color: var(--on-dark);
}

@media (max-width: 860px) {
    .rules {
        grid-template-columns: 1fr;
    }
}

/* documents written as text (the privacy policy) */

.doc {
    max-width: 780px;
    margin-inline: auto;
    padding: clamp(26px, 5vw, 60px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.doc h2 {
    margin-top: 1.6em;
    font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
}

.doc h2:first-of-type {
    margin-top: 0;
}

.doc ul,
.doc ol {
    padding-left: 1.3em;
}

.doc li {
    margin-bottom: .4em;
}

.doc-note {
    max-width: 780px;
    margin: 0 auto 22px;
    padding: 14px 18px;
    border-left: 4px solid var(--poppy);
    background: var(--sand);
    border-radius: 0 12px 12px 0;
    font-size: .95rem;
}

/* gallery */

.gallery-group + .gallery-group {
    margin-top: clamp(48px, 7vw, 90px);
}

.gallery-group h2 {
    display: flex;
    align-items: baseline;
    gap: .5em;
}

.gallery-group h2 span {
    font-family: var(--text);
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink-soft);
}

.gallery {
    columns: 3 260px;
    column-gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery li {
    position: relative;
    break-inside: avoid;
    margin-bottom: 14px;
}

.gallery a {
    display: block;
    overflow: hidden;
    border-radius: 18px;
}

.gallery img {
    width: 100%;
    transition: transform .5s ease;
}

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

/* the area */

.area-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(26px, 5vw, 70px);
    align-items: start;
}

.vazov {
    margin: 0;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--spruce);
    color: var(--on-dark);
}

.vazov blockquote {
    margin: 0 0 .8em;
    font-family: var(--display);
    font-size: clamp(1.3rem, 1.1rem + .9vw, 1.8rem);
    line-height: 1.3;
}

.vazov figcaption {
    color: var(--meadow);
    font-weight: 700;
}

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

.trail > li {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 72ch);
    gap: clamp(16px, 4vw, 56px);
    padding: clamp(26px, 4vw, 44px) 0 clamp(26px, 4vw, 44px) 34px;
    border-left: 2px solid var(--line);
}

.trail > li::before {
    content: "";
    position: absolute;
    left: -11px;
    top: clamp(34px, 4.6vw, 54px);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #1b0d0b 0 26%, var(--poppy) 28%);
    box-shadow: 0 0 0 5px var(--sheet);
}

.trail-mark {
    font-family: var(--display);
    font-weight: 700;
    color: var(--poppy-text);
    line-height: 1;
}

.trail-mark b {
    display: block;
    font-size: clamp(2.2rem, 1.7rem + 1.8vw, 3.2rem);
    white-space: nowrap;
}

.trail-mark span {
    font-family: var(--text);
    font-size: .9rem;
    color: var(--ink-soft);
}

.trail h3 {
    margin-bottom: .4em;
}

@media (max-width: 760px) {
    .area-intro {
        grid-template-columns: 1fr;
    }

    .trail > li {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(22px, 4vw, 48px);
    align-items: start;
}

.contact-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--sheet);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.contact-card.dark {
    background: var(--spruce);
    border-color: var(--spruce);
}

.contact-card .big-phone {
    color: var(--poppy-text);
}

.contact-card.dark .big-phone {
    color: #fff;
}

.contact-list {
    display: grid;
    gap: 16px;
    margin: 1.4em 0 0;
}

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

.contact-list dd {
    margin: .2em 0 0;
    overflow-wrap: anywhere;
}

.host {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 1.6em;
    padding-top: 1.4em;
    border-top: 1px solid rgb(246 236 220 / .2);
    color: var(--on-dark-soft);
}

.host svg {
    flex: none;
    width: 46px;
    height: 46px;
}

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .8em 1em;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--poppy-text);
    outline: 3px solid rgb(233 138 46 / .5);
    outline-offset: 1px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 170px;
}

.contact-form ul {
    margin: 4px 0 0;
    padding-left: 1.1em;
    color: var(--poppy-text);
    font-size: .92rem;
}

.contact-form .btn {
    justify-self: start;
}

.form-hint {
    margin: 0;
    font-size: .9rem;
    color: var(--ink-soft);
}

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #e5f0da;
    color: #1f3a12;
}

.contact-sent strong {
    display: block;
}

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

.distances li {
    padding: 18px;
    border-radius: 18px;
    background: var(--sheet);
    border: 1px solid var(--line);
}

.distances b {
    display: block;
    font-family: var(--display);
    font-size: 2rem;
    line-height: 1;
    color: var(--poppy-text);
}

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

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

.foot {
    position: relative;
    margin-top: clamp(40px, 6vw, 80px);
    padding: clamp(50px, 6vw, 80px) 0 28px;
    background: var(--night);
    color: var(--on-dark-soft);
}

.foot-ridge {
    position: absolute;
    left: 0;
    right: 0;
    top: -60px;
    width: 100%;
    height: 61px;
    fill: var(--night);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}

.foot h2 {
    font-family: var(--text);
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--meadow);
    margin-bottom: 1em;
}

.foot a {
    color: var(--on-dark);
}

.foot p,
.foot address {
    margin: 0 0 .6em;
    font-style: normal;
    font-size: .98rem;
}

.plaque {
    display: inline-block;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--linen);
}

.plaque img {
    width: 180px;
}

.foot-phone {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
    white-space: nowrap;
    text-decoration: none;
}

.foot-nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .35em;
    font-size: .98rem;
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgb(246 236 220 / .14);
    font-size: .9rem;
}

.foot-bottom p {
    margin: 0;
}

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

@media (max-width: 520px) {
    .foot-grid {
        grid-template-columns: 1fr;
    }
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background:
        radial-gradient(ellipse at 50% 120%, rgb(224 48 44 / .18), transparent 60%),
        var(--linen);
    text-align: center;
}

.not-found > div {
    max-width: 560px;
}

.not-found img {
    margin: 0 auto 26px;
}

.not-found h1 {
    font-size: clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
}

.not-found h2 {
    font-size: 1.6rem;
    margin-top: 1.6em;
}

.not-found .btn {
    margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---- 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;
    }
}

.lightbox {
    --lb-bg: rgb(9 22 19 / .96);
    --lb-text: #f6ecdc;
    --lb-accent: #e98a2e;
    --lb-accent-soft: rgb(224 48 44 / .35);
}

a[href^="tel:"] {
    white-space: nowrap;
}
