/* Debar guest house, Arbanasi: walnut timber, lime plaster and the stone wall of the village, with the
   house's own pale yellow lettering on the timber. Vollkorn (display) + Open Sans (text). One light theme;
   the timber bands are dark. */

@font-face {
    font-family: "Vollkorn";
    src: url("/fonts/vollkorn.woff2") format("woff2");
    font-weight: 400 900;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("/fonts/open-sans.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
}

:root {
    --walnut: #2b1e14;
    --walnut-2: #3a2a1c;
    --walnut-3: #4b3624;
    --on-walnut: #f3ead9;
    --on-walnut-soft: #d9ccb4;
    --yellow: #feff99;
    --lime: #faf6ee;
    --plaster: #f1e9da;
    --sheet: #fffdf8;
    --ink: #2a2119;
    --muted: #5c5044;
    --line: #e2d6c0;
    --tile: #a5461f;
    --tile-deep: #8a3816;
    --vine: #4f5f26;
    --stone: #b6a487;
    --radius: 18px;
    --radius-lg: 28px;
    --display: "Vollkorn", Georgia, "Times New Roman", serif;
    --text: "Open Sans", "Segoe UI", Arial, sans-serif;
    --wrap: 1180px;
    --lb-bg: rgba(27, 18, 11, .95);
    --lb-accent: #feff99;
    --lb-accent-soft: rgba(254, 255, 153, .18);
}

*,
*::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(--lime);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--text);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

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

.dark :focus-visible,
.top :focus-visible,
.foot :focus-visible {
    outline-color: var(--yellow);
}

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

h1 {
    font-weight: 900;
    font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem);
}

h2 {
    font-weight: 800;
    font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
}

h3 {
    font-weight: 700;
    font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem);
}

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(--yellow);
    color: var(--walnut);
    font-weight: 700;
    border-radius: 10px;
}

.skip:focus {
    top: 12px;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    font: 700 .8rem/1.2 var(--text);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tile-deep);
}

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

.lead {
    font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem);
    line-height: 1.6;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--tile);
    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: var(--tile-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(43, 30, 20, .6);
}

.btn svg {
    flex: none;
}

.btn-yellow {
    background: var(--yellow);
    color: var(--walnut);
}

.btn-yellow:hover {
    background: #fff;
    color: var(--walnut);
}

.btn-line {
    background: transparent;
    border-color: currentColor;
    color: var(--tile-deep);
}

.btn-line:hover {
    background: var(--tile-deep);
    border-color: var(--tile-deep);
    color: #fff;
}

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

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

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

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(43, 30, 20, .94);
    color: var(--on-walnut);
    border-bottom: 1px solid rgba(254, 255, 153, .14);
}

@supports (backdrop-filter: blur(8px)) {
    .top {
        background: rgba(43, 30, 20, .86);
        backdrop-filter: blur(10px) saturate(1.2);
    }
}

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

.brand {
    display: block;
    margin-right: auto;
    border-radius: 6px;
}

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

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--walnut);
    font-weight: 700;
    font-size: .98rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease;
}

.call:hover {
    background: #fff;
}

.lang {
    display: flex;
    gap: 2px;
    font-size: .85rem;
    font-weight: 700;
}

.lang a,
.lang span {
    padding: 6px 9px;
    border-radius: 8px;
    color: var(--on-walnut);
    text-decoration: none;
}

.lang span {
    background: rgba(254, 255, 153, .14);
    color: var(--yellow);
}

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

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    order: 5;
}

.nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--on-walnut);
    text-decoration: none;
    font-weight: 600;
    font-size: .98rem;
}

.nav a:hover {
    background: rgba(255, 255, 255, .08);
}

.nav a[aria-current] {
    background: rgba(254, 255, 153, .14);
    color: var(--yellow);
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(243, 234, 217, .35);
    border-radius: 999px;
    background: transparent;
    color: var(--on-walnut);
    font: 600 .95rem/1 var(--text);
    cursor: pointer;
}

.menu-btn[hidden] {
    display: none;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.menu-bars {
    position: relative;
}

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

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

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

@media (min-width: 1000px) {
    .top-row {
        flex-wrap: nowrap;
    }

    .nav {
        width: auto;
        order: 0;
        margin-right: 6px;
    }

    .brand {
        margin-right: auto;
    }

    .brand img {
        height: 60px;
    }

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

/* the menu script collapses the navigation on narrow screens; without it the links simply wrap */
@media (max-width: 999.98px) {
    .js-menu .nav {
        display: none;
        padding: 6px 0 4px;
    }

    .js-menu .nav.open {
        display: flex;
    }

    .js-menu .nav a {
        width: 100%;
        border-radius: 12px;
        padding: 12px 14px;
    }
}

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

    .call {
        padding: 8px 12px;
        font-size: .9rem;
    }

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

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

/* ---- dark timber sections ---- */

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

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

.dark h1,
.dark h2,
.dark h3 {
    color: #fff8e6;
}

/* the stone wall as a band between sections */
.wall-band {
    height: 34px;
    background: url("/img/stone-wall.svg") 0 0 / 300px auto repeat-x;
    border-block: 4px solid var(--walnut-3);
    box-shadow: inset 0 -8px 12px -8px rgba(43, 30, 20, .55);
}

/* ---- home: the gate in the wall ---- */

.hero {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--walnut);
    color: var(--on-walnut);
}

.hero-text {
    padding: 40px 0 44px;
}

.hero-text .wrap {
    max-width: 640px;
}

.hero h1 {
    color: #fff8e6;
    margin-bottom: .25em;
}

.hero h1 .where {
    display: block;
    font-weight: 500;
    font-style: italic;
    font-size: .5em;
    color: var(--yellow);
    letter-spacing: 0;
    margin-top: .2em;
}

.hero .lead {
    color: var(--on-walnut);
    max-width: 34em;
}

.gate {
    position: relative;
    min-height: 360px;
    padding: 34px 9% 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(180deg, rgba(43, 30, 20, .1), rgba(43, 30, 20, .35)),
        url("/img/stone-wall.svg") 0 0 / 300px auto;
    overflow: hidden;
}

.gate::after {
    /* the shade of the eaves on the top of the wall */
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 22px;
    background: linear-gradient(180deg, rgba(43, 30, 20, .45), transparent);
    pointer-events: none;
}

.gate-roof {
    position: relative;
    z-index: 2;
    height: 34px;
    margin: 0 -7%;
    border-radius: 6px 6px 0 0;
    background:
        radial-gradient(circle at 50% 120%, transparent 55%, rgba(0, 0, 0, .18) 56%) 0 0 / 26px 34px,
        repeating-linear-gradient(90deg, #b5532b 0 22px, #8f3c1a 22px 26px);
    box-shadow: 0 10px 14px -6px rgba(0, 0, 0, .55);
}

.gate-way {
    position: relative;
    aspect-ratio: 4 / 3.2;
    border: 10px solid var(--walnut-2);
    border-bottom: 0;
    background: var(--walnut);
    perspective: 1100px;
    overflow: hidden;
}

.gate-way > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leaf {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background:
        linear-gradient(180deg, transparent 15%, #1d140d 15% 18.5%, transparent 18.5% 78%, #1d140d 78% 81.5%, transparent 81.5%),
        repeating-linear-gradient(90deg, #6a4527 0 30px, #5a391f 30px 33px, #4a2e18 33px 34px);
    box-shadow: inset 0 0 0 4px #3b2615;
}

.leaf-l {
    left: 0;
    transform-origin: left center;
    transform: rotateY(72deg);
}

.leaf-r {
    right: 0;
    transform-origin: right center;
    transform: rotateY(-72deg);
}

.leaf .ring {
    position: absolute;
    top: 46%;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 4px solid #1d140d;
    border-radius: 50%;
    box-shadow: 0 2px 0 rgba(255, 255, 255, .12);
}

.leaf .ring::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -14px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: #1d140d;
    border-radius: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .leaf-l {
        animation: gate-left 1.8s cubic-bezier(.55, .05, .25, 1) .5s both;
    }

    .leaf-r {
        animation: gate-right 1.8s cubic-bezier(.55, .05, .25, 1) .62s both;
    }

    .gate-way > img {
        animation: gate-light 2.2s ease .5s both;
    }

    .hero-text > .wrap > * {
        animation: rise .8s ease both;
    }

    .hero-text > .wrap > :nth-child(2) {
        animation-delay: .12s;
    }

    .hero-text > .wrap > :nth-child(3) {
        animation-delay: .24s;
    }

    .hero-text > .wrap > :nth-child(4) {
        animation-delay: .36s;
    }
}

@keyframes gate-left {
    from {
        transform: rotateY(0);
    }
}

@keyframes gate-right {
    from {
        transform: rotateY(0);
    }
}

@keyframes gate-light {
    from {
        filter: brightness(.45) saturate(.6);
        transform: scale(1.08);
    }
}

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

@media (min-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        min-height: min(80vh, 760px);
    }

    .hero-text {
        display: flex;
        align-items: center;
        padding: 64px 0;
    }

    .hero-text .wrap {
        width: auto;
        margin: 0 48px 0 max(16px, calc((100vw - var(--wrap)) / 2));
    }

    .gate {
        min-height: 100%;
        padding: 56px 12% 0;
    }

    .gate-way {
        aspect-ratio: 4 / 3.7;
    }
}

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

.band {
    padding: clamp(56px, 4rem + 3vw, 112px) 0;
}

.band-tight {
    padding: clamp(40px, 2.5rem + 2vw, 72px) 0;
}

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

.section-head {
    max-width: 760px;
    margin-bottom: 36px;
}

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

.dark .section-head p {
    color: var(--on-walnut-soft);
}

/* welcome text beside the figures */
.welcome {
    display: grid;
    gap: 40px;
}

.welcome-text p {
    max-width: 38em;
}

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

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

.figures b {
    display: block;
    font: 900 clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem)/1 var(--display);
    color: var(--tile);
    letter-spacing: -.03em;
}

.figures b small {
    font-size: .45em;
    font-weight: 700;
    letter-spacing: 0;
    margin-left: 2px;
}

.figures span {
    display: block;
    margin-top: 8px;
    font-size: .95rem;
    line-height: 1.45;
    color: var(--muted);
}

@media (min-width: 900px) {
    .welcome {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 64px;
        align-items: center;
    }
}

/* the view: a sideways strip of the owner's photos */
.strip {
    list-style: none;
    margin: 0;
    padding: 4px 16px 18px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 440px);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--yellow) transparent;
}

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

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

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

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

.strip-hint {
    font-size: .9rem;
    color: var(--on-walnut-soft);
}

@media (min-width: 1212px) {
    .strip {
        padding-inline: calc((100vw - var(--wrap)) / 2);
        scroll-padding-inline: calc((100vw - var(--wrap)) / 2);
    }
}

/* the house: a bento of its places */
.bento {
    display: grid;
    gap: 14px;
}

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

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

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(27, 18, 11, 0) 25%, rgba(27, 18, 11, .82) 72%, rgba(27, 18, 11, .94));
}

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

.tile h3 {
    color: #fff8e6;
    margin-bottom: .3em;
}

.tile p {
    margin: 0;
    color: #f3ead9;
    font-size: .98rem;
    line-height: 1.5;
    max-width: 30em;
}

.tile .go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-weight: 700;
    color: var(--yellow);
}

.tile:hover .go {
    text-decoration: underline;
}

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

    .tile {
        min-height: 0;
    }

    .tile-a {
        grid-column: span 4;
        grid-row: span 2;
    }

    .tile-b {
        grid-column: span 2;
        grid-row: span 2;
    }

    .tile-c {
        grid-column: span 3;
    }

    .tile-d {
        grid-column: span 3;
    }
}

/* extras: stones laid in the wall */
.stones {
    list-style: none;
    margin: 0;
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-radius: var(--radius-lg);
    background: #ddd2bb;
}

.stones li {
    padding: 12px 18px;
    background: #c9b998;
    color: #2a2119;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.35;
    border-radius: 22px 14px 26px 12px / 16px 24px 12px 20px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), inset 0 -3px 0 rgba(43, 30, 20, .12);
    flex: 1 1 auto;
}

.stones li:nth-child(3n + 2) {
    background: #d6c8aa;
    border-radius: 14px 26px 12px 22px / 22px 12px 24px 14px;
}

.stones li:nth-child(4n + 3) {
    background: #bcaa88;
    border-radius: 26px 12px 20px 16px / 12px 20px 16px 26px;
}

.stones li:nth-child(5n + 1) {
    background: #cdbf9f;
}

/* the call band */
.call-band {
    position: relative;
    overflow: hidden;
}

.call-band .wrap {
    display: grid;
    gap: 24px;
    align-items: center;
}

.call-band h2 {
    margin-bottom: .3em;
}

.call-band p {
    color: var(--on-walnut-soft);
    max-width: 36em;
}

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

.phones a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 16px;
    background: var(--walnut-2);
    border: 1px solid rgba(254, 255, 153, .18);
    color: var(--yellow);
    font: 800 clamp(1.3rem, 1.1rem + .9vw, 1.75rem)/1.2 var(--display);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease;
}

.phones a:hover {
    background: var(--walnut-3);
    transform: translateX(4px);
}

.phones svg {
    flex: none;
    color: var(--on-walnut-soft);
}

@media (min-width: 900px) {
    .call-band .wrap {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 56px;
    }
}

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

.page-hero {
    padding: clamp(44px, 3rem + 2vw, 88px) 0 clamp(36px, 2rem + 2vw, 64px);
}

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

.page-hero .lead {
    max-width: 40em;
    color: var(--on-walnut);
    margin: 0;
}

.prose {
    max-width: 44em;
}

.split {
    display: grid;
    gap: 32px;
    align-items: start;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 56px;
    }

    .split-wide {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    }
}

.framed {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 40px -28px rgba(43, 30, 20, .7);
}

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

.framed:hover img {
    transform: scale(1.03);
}

figure {
    margin: 0;
}

figcaption {
    margin-top: 8px;
    font-size: .9rem;
    color: var(--muted);
}

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

/* photo grids (rooms, gallery, Arbanasi): portraits take two rows */
.photos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 132px;
    grid-auto-flow: dense;
    gap: 10px;
}

.photos li {
    grid-row: span 1;
}

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

.photos li.port {
    grid-row: span 2;
}

.photos a {
    display: block;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: var(--plaster);
}

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

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

@media (min-width: 640px) {
    .photos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 120px;
    }
}

@media (min-width: 1000px) {
    .photos {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: 118px;
    }
}

.split .photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .split .photos {
        grid-auto-rows: 160px;
    }
}

.gallery-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.gallery-nav a {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(254, 255, 153, .35);
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
}

.gallery-nav a:hover {
    background: rgba(254, 255, 153, .12);
}

.gallery-part + .gallery-part {
    margin-top: 56px;
}

.gallery-part h2 {
    font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
}

/* prices on request */
.offers {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.offers li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 18px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.offers strong {
    font: 700 1.25rem/1.25 var(--display);
}

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

.offers em {
    font-style: normal;
    font-weight: 700;
    color: var(--tile-deep);
    white-space: nowrap;
}

/* contact */
.contact-cards {
    display: grid;
    gap: 16px;
}

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

.card h2 {
    font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
}

.light-phones a {
    background: var(--plaster);
    border-color: var(--line);
    color: var(--tile-deep);
}

.light-phones a:hover {
    background: #eadfca;
}

.light-phones svg {
    color: var(--muted);
}

.facts {
    margin: 0;
}

.facts div + div {
    margin-top: 14px;
}

.facts dt {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.facts dd {
    margin: 2px 0 0;
    font-size: 1.08rem;
}

.map-thumb {
    display: block;
    max-width: 480px;
    margin-top: 18px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
}

@media (min-width: 900px) {
    .contact-cards {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 24px;
        align-items: start;
    }
}

/* the platform contact form */
.contact-form > div {
    margin-bottom: 16px;
}

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

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

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

.contact-form textarea::placeholder {
    color: #776a5c;
}

.contact-form ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: #9b1c1c;
}

.form-hint {
    margin-top: 12px;
    font-size: .9rem;
    color: var(--muted);
}

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #e8f0d6;
    color: #2c3a0e;
}

.contact-sent strong {
    display: block;
}

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

.foot {
    background: var(--walnut);
    color: var(--on-walnut-soft);
    font-size: .98rem;
}

.foot .wall-band {
    border-top: 0;
}

.foot-grid {
    display: grid;
    gap: 32px;
    padding: 52px 0 32px;
}

.foot h2 {
    margin: 0 0 8px;
    font: 700 .8rem/1.2 var(--text);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--on-walnut);
}

.foot h2:not(:first-child) {
    margin-top: 22px;
}

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

.foot-logo {
    width: min(100%, 420px);
    margin-bottom: 18px;
}

.foot-about p {
    max-width: 30em;
}

.foot-phone {
    font-weight: 700;
    font-size: 1.08rem;
    text-decoration: none;
}

.foot-phone:hover {
    text-decoration: underline;
}

.plain {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

.plain li + li {
    margin-top: 4px;
}

.foot-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(243, 234, 217, .14);
    font-size: .88rem;
}

.foot-bottom p {
    margin: 0;
}

@media (min-width: 900px) {
    .foot-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: 48px;
    }
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background:
        linear-gradient(180deg, rgba(43, 30, 20, .92), rgba(43, 30, 20, .97)),
        url("/img/stone-wall.svg") 0 0 / 300px auto;
    color: var(--on-walnut);
}

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

.not-found img {
    margin-bottom: 28px;
}

.not-found h1 {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    color: #fff8e6;
}

.not-found h2 {
    margin-top: 36px;
    font-size: 1.5rem;
    color: #fff8e6;
}

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

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

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 55%;
        }

        .figures li {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }

        .stones li {
            animation: stone-in linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 80%;
        }
    }
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
}

@keyframes stone-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !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;
    }
}

.after-figures {
    margin-top: 24px;
}
