/* Sous l'Abricotier: apricot in full sun, under its leaves.
   Apricot ground, kernel-brown ink, cream for reading, garden green for the table d'hôtes.
   Caprasimo (display) + Nunito (text). One theme. */

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

@font-face {
    font-family: "Nunito";
    src: url("../fonts/nunito.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    --apricot: #ee9a3a;
    --apricot-lit: #f6b25a;
    --apricot-deep: #cc6600;   /* the page colour of the original site */
    --gold: #df9f00;           /* the hover colour of the original */
    --kernel: #2e0e04;         /* ink */
    --kernel-2: #3a1206;
    --brown: #651b03;          /* the footer bar of the original */
    --rust: #93320c;           /* the menu column of the original */
    --night: #240b03;
    --cream: #fdf0dc;
    --sheet: #fffaf1;
    --blush: #f9d9ae;
    --leaf: #2f4a1c;
    --leaf-deep: #22370f;
    --leaf-light: #b8d27a;
    --link: #8f3f00;
    --radius: 26px;
    --radius-s: 14px;
    --display: "Caprasimo", "Cooper Black", Georgia, serif;
    --text: "Nunito", "Segoe UI", system-ui, sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--kernel);
    font-family: var(--text);
    font-size: 1.0625rem;
    font-weight: 450;
    line-height: 1.65;
    overflow-x: clip;
}

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

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

h1 {
    font-size: clamp(2.9rem, 1.2rem + 7vw, 6.4rem);
    line-height: 0.94;
}

h2 {
    font-size: clamp(1.95rem, 1.2rem + 2.8vw, 3.3rem);
}

h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--link);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--kernel);
}

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

sup {
    font-size: 0.6em;
    line-height: 0;
}

.wrap {
    width: min(1200px, 100%);
    margin-inline: auto;
    padding-inline: 20px;
}

.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;
    border-radius: 999px;
    background: var(--kernel);
    color: var(--cream);
    font-weight: 800;
}

.skip:focus {
    top: 12px;
    color: var(--cream);
}

/* ---- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

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

.btn-ink {
    background: var(--kernel);
    color: var(--cream);
}

.btn-ink:hover {
    background: var(--brown);
    color: var(--cream);
}

.btn-line {
    border-color: var(--kernel);
    color: var(--kernel);
}

.btn-line:hover {
    background: var(--kernel);
    color: var(--cream);
}

.btn-cream {
    background: var(--cream);
    color: var(--kernel);
}

.btn-cream:hover {
    background: var(--apricot);
    color: var(--kernel);
}

/* ---- header */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 240, 220, 0.9);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    border-bottom: 1px solid rgba(46, 14, 4, 0.1);
}

.top-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "brand nav lang call";
    align-items: center;
    gap: 8px 22px;
    padding-block: 8px;
}

.brand {
    grid-area: brand;
    display: block;
    border-radius: 8px;
}

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

.nav {
    grid-area: nav;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 22px;
}

.nav a {
    padding: 6px 1px;
    border-bottom: 3px solid transparent;
    color: var(--kernel);
    font-weight: 750;
    text-decoration: none;
}

.nav a:hover {
    border-bottom-color: var(--apricot);
}

.nav a[aria-current] {
    border-bottom-color: var(--apricot-deep);
}

.lang {
    grid-area: lang;
    display: flex;
    gap: 2px;
    font-size: 0.86rem;
    font-weight: 800;
}

.lang a,
.lang span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--kernel);
    text-decoration: none;
}

.lang span[aria-current] {
    background: var(--blush);
}

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

.call {
    grid-area: call;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--kernel);
    color: var(--cream);
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.call:hover {
    background: var(--brown);
    color: var(--cream);
}

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

    html {
        scroll-padding-top: 16px;
    }

    /* logo and call button on the first line, then the links and the language switch in one flow */
    .top-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 14px;
    }

    .top-row::after {
        content: "";
        order: 2;
        flex-basis: 100%;
    }

    .brand {
        order: 0;
        margin-right: auto;
    }

    .brand img {
        height: 54px;
    }

    .call {
        order: 1;
        padding: 10px 15px;
    }

    .nav {
        display: contents;
    }

    .nav a {
        order: 3;
        padding-block: 3px;
    }

    .lang {
        order: 4;
        margin-left: auto;
    }
}

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

    .nav a {
        font-size: 0.98rem;
    }

    .call {
        padding: 9px 13px;
        font-size: 0.97rem;
    }
}

/* ---- hero */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 104px);
    background:
        radial-gradient(90% 70% at 88% 6%, var(--apricot-lit) 0%, rgba(246, 178, 90, 0) 62%),
        linear-gradient(180deg, var(--apricot) 0%, #e98d2d 100%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
}

.hero h1 span {
    display: block;
}

.hero h1 .h1-place {
    margin-top: 0.18em;
    color: var(--brown);
    font-size: 0.5em;
    line-height: 1.05;
}

.lead {
    max-width: 34em;
    font-size: clamp(1.12rem, 1rem + 0.5vw, 1.32rem);
    font-weight: 600;
    line-height: 1.55;
}

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

.hero-address {
    margin-top: 22px;
    font-weight: 700;
}

.nw {
    white-space: nowrap;
}

.hero-visual {
    position: relative;
    justify-self: end;
    width: min(460px, 100%);
    padding-top: 70px;
}

.hero-photo {
    position: relative;
    z-index: 1;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 8px solid var(--cream);
    /* 999px radii would be scaled down together and square the lower corners: % of width / height */
    border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
    box-shadow: 0 34px 60px -30px rgba(46, 14, 4, 0.6);
}

.hero-photo a,
.hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-photo img {
    object-fit: cover;
    object-position: 46% 50%;
}

.hero-visual .branch-hero {
    position: absolute;
    z-index: 2;
    top: -40px;
    right: -26%;
    width: 150%;
    pointer-events: none;
}

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

    .hero-visual {
        justify-self: center;
        width: min(420px, 86%);
        padding-top: 56px;
    }

    .hero-visual .branch-hero {
        top: -24px;
        right: -30%;
        width: 155%;
    }
}

/* ---- the branch */

.branch {
    display: block;
    overflow: visible;
    --wood: #4a2410;
    --leaf: #4c7a26;
    --leaf-2: #3b631d;
    --rib: #24400f;
    --blush: #e4572a;
    --hi: #fff1cf;
    --unripe: #9fbd4c;
    --line: #4a2410;
}

.branch-shadow {
    --wood: #a4500f;
    --leaf: #a4500f;
    --leaf-2: #a4500f;
    --rib: transparent;
    --blush: transparent;
    --hi: transparent;
    --unripe: #a4500f;
    --line: transparent;
    opacity: 0.5;
    mix-blend-mode: multiply;
    transform: translate(30px, 50px);
}

.branch .wd {
    fill: none;
    stroke: var(--wood);
    stroke-linecap: round;
}

.branch .lf {
    fill: var(--leaf);
    stroke: var(--line);
    stroke-width: 2.2;
    stroke-linejoin: round;
}

.branch g:nth-of-type(even) > .leaf .lf {
    fill: var(--leaf-2);
}

.branch .rib {
    fill: none;
    stroke: var(--rib);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.branch-shadow .fb {
    fill: #a4500f;
}

.branch .blush {
    fill: var(--blush);
    opacity: 0.42;
}

.branch .crease {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.8;
    stroke-linecap: round;
    opacity: 0.5;
}

.branch .hi {
    fill: var(--hi);
    opacity: 0.85;
}

.branch .unripe {
    fill: var(--unripe);
    opacity: 0;
}

.branch .outline {
    fill: none;
    stroke: var(--line);
    stroke-width: 2.4;
}

@media (prefers-reduced-motion: no-preference) {
    .branch-hero .leaf {
        animation: unfold 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
        animation-delay: var(--d, 0s);
    }

    .branch-hero .unripe {
        animation: ripen 1.5s ease-in both;
        animation-delay: var(--d, 1s);
    }

    .branch-hero .branch-sway {
        transform-box: view-box;
        transform-origin: 100% 0;
        animation: sway 8s ease-in-out 2.6s infinite alternate both;
    }

    .branch-hero .branch-shadow {
        animation: sway-shadow 8s ease-in-out 2.6s infinite alternate both;
    }

    .hero-text > * {
        animation: rise 0.8s cubic-bezier(0.2, 0.8, 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;
    }
}

@keyframes unfold {
    from {
        opacity: 0;
        transform: scale(0.15) rotate(-24deg);
    }
}

@keyframes ripen {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

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

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

@keyframes sway-shadow {
    from {
        transform: translate(26px, 46px) rotate(-1.2deg);
    }

    to {
        transform: translate(36px, 54px) rotate(1.6deg);
    }
}

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

/* ---- sections */

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 32px;
    margin-bottom: 28px;
}

.section-head h2 {
    margin: 0;
}

.section-head p {
    max-width: 30em;
    margin: 0;
    font-weight: 600;
}

.more {
    margin: 26px 0 0;
    font-weight: 800;
}

.big-text {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
    line-height: 1.6;
}

/* welcome */

.welcome {
    padding-block: clamp(56px, 8vw, 112px);
}

.welcome-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.perks {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    font-weight: 650;
}

.perks li {
    position: relative;
    padding-left: 34px;
}

.perks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 32%, #ffdc94 0%, #ffb24e 50%, #ef7b23 100%);
    box-shadow: inset 0 0 0 2px var(--kernel-2);
}

.welcome-pictures {
    position: relative;
    padding-bottom: 70px;
}

.montage {
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    padding: 10px;
    background: var(--sheet);
    border-radius: var(--radius-s);
    box-shadow: 0 24px 50px -28px rgba(46, 14, 4, 0.5);
    transform: rotate(1.6deg);
}

.montage img {
    border-radius: 6px;
}

.castle {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
    width: 236px;
    max-width: 52%;
    padding: 8px 8px 4px;
    background: var(--sheet);
    border-radius: 6px;
    box-shadow: 0 20px 40px -22px rgba(46, 14, 4, 0.6);
    transform: rotate(-4deg);
}

.castle figcaption {
    padding: 6px 2px 2px;
    font-size: 0.9rem;
    font-weight: 750;
    text-align: center;
}

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

/* rooms strip */

.rooms-strip {
    padding-block: clamp(56px, 7vw, 96px);
    background: var(--blush);
}

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

.room-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--sheet);
    border-radius: var(--radius);
    color: var(--kernel);
    text-decoration: none;
    box-shadow: 0 20px 40px -30px rgba(46, 14, 4, 0.55);
    transition: transform 0.2s ease;
}

.room-card:hover {
    color: var(--kernel);
    transform: translateY(-4px);
}

.room-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.room-card-name {
    padding: 18px 20px 4px;
    font-family: var(--display);
    font-size: 1.35rem;
    line-height: 1.1;
}

.room-card-text {
    padding: 4px 20px 22px;
    font-size: 0.98rem;
}

@media (max-width: 980px) {
    .room-cards {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(78%, 300px);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 14px;
        margin-inline: -20px;
        padding-inline: 20px;
        scroll-padding-inline: 20px;
    }

    .room-cards li {
        scroll-snap-align: start;
    }
}

/* table d'hôtes */

.table-band {
    padding-block: clamp(56px, 8vw, 110px);
    background:
        radial-gradient(70% 90% at 0% 0%, rgba(184, 210, 122, 0.16) 0%, rgba(184, 210, 122, 0) 60%),
        linear-gradient(160deg, var(--leaf) 0%, var(--leaf-deep) 100%);
    color: var(--cream);
}

.table-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.table-band h2 {
    color: var(--cream);
}

.table-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.15rem;
}

.figure {
    font-family: var(--display);
    font-size: clamp(3.6rem, 2rem + 6vw, 6.4rem);
    line-height: 0.9;
}

.table-band .figure {
    color: var(--apricot);
}

.link-cream {
    color: var(--cream);
    font-weight: 800;
}

.link-cream:hover {
    color: var(--leaf-light);
}

.table-photo {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
    transform: rotate(-1.4deg);
}

.table-band :focus-visible,
.call-band :focus-visible,
.foot :focus-visible {
    outline-color: var(--cream);
}

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

/* surroundings bento */

.around {
    padding-block: clamp(56px, 8vw, 110px);
}

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

.tile {
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--radius);
}

.tile p {
    margin: 0;
}

.tile h3 {
    margin-bottom: 10px;
}

.tile-village {
    grid-column: span 3;
    background: var(--blush);
}

.tile-coast {
    grid-column: span 3;
    background: var(--rust);
    color: var(--cream);
}

.tile-reserve {
    grid-column: span 2;
    background: var(--apricot);
}

.tile-reserve .figure {
    margin-bottom: 12px;
    font-size: clamp(3rem, 2rem + 3vw, 4.4rem);
    color: var(--kernel);
}

.tile-castles {
    grid-column: span 4;
    position: relative;
    overflow: hidden;
    background: var(--kernel-2);
    color: var(--cream);
}

.tile-castles::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26px;
    background:
        linear-gradient(var(--apricot-deep), var(--apricot-deep)) bottom / 100% 12px no-repeat,
        repeating-linear-gradient(90deg, var(--apricot-deep) 0 22px, transparent 22px 40px) top / 100% 14px no-repeat;
    opacity: 0.55;
}

.tile-castles p {
    padding-bottom: 26px;
}

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

    .tile-village,
    .tile-coast,
    .tile-reserve,
    .tile-castles {
        grid-column: auto;
    }
}

/* call band */

.call-band {
    padding-block: clamp(56px, 7vw, 96px);
    background:
        radial-gradient(60% 80% at 100% 100%, rgba(204, 102, 0, 0.35) 0%, rgba(204, 102, 0, 0) 70%),
        var(--kernel-2);
    color: var(--cream);
}

.call-band h2 {
    color: var(--cream);
}

.call-band-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px 64px;
}

.call-band-langs {
    color: var(--blush);
    font-weight: 700;
}

.call-band-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.call-band-list span {
    display: block;
    color: var(--blush);
    font-weight: 700;
    font-size: 0.95rem;
}

.big-phone {
    font-family: var(--display);
    font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem);
    line-height: 1.1;
    color: var(--apricot);
    text-decoration: none;
    white-space: nowrap;
}

.big-phone:hover {
    color: var(--cream);
}

.big-mail {
    color: var(--cream);
    font-weight: 800;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.big-mail:hover {
    color: var(--apricot);
}

@media (max-width: 820px) {
    .call-band-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- page head (inner pages) */

.page-head {
    position: relative;
    overflow: hidden;
    padding-block: clamp(48px, 7vw, 92px) clamp(40px, 5vw, 64px);
    background:
        radial-gradient(80% 90% at 92% 0%, var(--apricot-lit) 0%, rgba(246, 178, 90, 0) 62%),
        var(--apricot);
}

.page-head .wrap {
    position: relative;
    z-index: 1;
}

.page-head h1 {
    max-width: 12em;
    font-size: clamp(2.6rem, 1.4rem + 5vw, 5.2rem);
}

.page-head .lead {
    max-width: 36em;
}

.branch-head {
    position: absolute;
    top: -60px;
    right: -60px;
    width: min(560px, 60vw);
    pointer-events: none;
}

.crumbs {
    margin-bottom: 14px;
    font-weight: 700;
}

.crumbs a {
    color: var(--kernel);
}

@media (max-width: 820px) {
    .page-head {
        padding-top: 150px;
    }

    .branch-head {
        top: -70px;
        right: -24%;
        width: 92vw;
    }
}

/* in-page chips */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.chips a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(253, 240, 220, 0.75);
    color: var(--kernel);
    font-weight: 750;
    text-decoration: none;
}

.chips a:hover {
    background: var(--kernel);
    color: var(--cream);
}

/* ---- rooms page */

.room {
    padding-block: clamp(48px, 6vw, 84px);
    border-bottom: 2px dashed rgba(46, 14, 4, 0.16);
}

.room:nth-of-type(even) {
    background: var(--sheet);
}

.room-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.room-info {
    position: sticky;
    top: 110px;
}

.room-info h2 {
    font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem);
}

.room-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 20px;
    padding: 0;
    list-style: none;
}

.room-facts li {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--blush);
    font-weight: 750;
    font-size: 0.95rem;
}

.room-facts li.no {
    background: transparent;
    box-shadow: inset 0 0 0 2px rgba(46, 14, 4, 0.3);
}

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

.album li:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.album a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-s);
}

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

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

.album-wide {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

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

    .room-info {
        position: static;
    }

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

.house-head {
    padding-block: clamp(48px, 6vw, 80px) 0;
}

/* ---- prices page */

.prices {
    padding-block: clamp(48px, 6vw, 84px);
}

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

.price-card {
    padding: clamp(22px, 3vw, 36px);
    background: var(--sheet);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px -32px rgba(46, 14, 4, 0.55);
}

.price-card h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
}

.price-card-wide {
    grid-column: 1 / -1;
}

.price-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.price-list > li {
    padding-block: 16px;
    border-top: 2px dotted rgba(46, 14, 4, 0.22);
}

.price-list > li:first-child {
    border-top: 0;
    padding-top: 4px;
}

.price-item {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: 1.08rem;
}

.price-rows {
    display: grid;
    gap: 4px;
    margin: 0;
}

.price-rows div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-rows dt {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-rows dt::after {
    content: "";
    flex: 1;
    border-bottom: 2px dotted rgba(46, 14, 4, 0.28);
    transform: translateY(-4px);
}

.price-rows dd {
    margin: 0;
    font-family: var(--display);
    font-size: 1.45rem;
    line-height: 1.1;
    white-space: nowrap;
}

.price-note {
    margin: 8px 0 0;
    font-size: 0.96rem;
    font-weight: 650;
    color: var(--brown);
}

.price-card-green {
    background: var(--leaf);
    color: var(--cream);
}

.price-card-green h2 {
    color: var(--cream);
}

.price-card-green .price-rows dt::after {
    border-color: rgba(253, 240, 220, 0.4);
}

.price-card-green .price-note {
    color: var(--leaf-light);
}

.price-card-green a {
    color: var(--cream);
}

.price-card-green .price-list > li {
    border-color: rgba(253, 240, 220, 0.3);
}

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

.services li {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--blush);
    font-weight: 750;
}

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

/* ---- surroundings page */

.place {
    padding-block: clamp(48px, 6vw, 84px);
}

.place:nth-of-type(even) {
    background: var(--sheet);
}

.place-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(22px, 4vw, 56px);
    align-items: start;
    max-width: 980px;
}

.place-grid img {
    border-radius: 50%;
    box-shadow: 0 0 0 8px var(--blush);
}

.place-text {
    max-width: 40em;
}

.place-text h2 {
    font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem);
}

.place-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--kernel-2);
    color: var(--cream);
    font-weight: 800;
    font-size: 0.95rem;
}

.animals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 1em;
    padding: 0;
    list-style: none;
}

.animals li {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--blush);
    font-weight: 700;
    font-size: 0.95rem;
}

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

    .place-grid img {
        width: 140px;
    }
}

/* ---- contact page */

.contact {
    padding-block: clamp(48px, 6vw, 84px);
}

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

.card {
    padding: clamp(22px, 3vw, 36px);
    background: var(--sheet);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px -32px rgba(46, 14, 4, 0.55);
}

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

.contact-list dt {
    color: var(--brown);
    font-weight: 800;
    font-size: 0.95rem;
}

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

.contact-list .big-phone {
    color: var(--kernel);
}

.contact-list .big-phone:hover {
    color: var(--apricot-deep);
}

.big-mail-ink {
    font-weight: 800;
    font-size: 1.12rem;
    overflow-wrap: anywhere;
}

.plans-title {
    margin-top: clamp(40px, 5vw, 64px);
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
}

.hosts {
    font-family: var(--display);
    font-size: 1.35rem;
    line-height: 1.2;
}

.plans {
    display: grid;
    grid-template-columns: minmax(0, 350fr) minmax(0, 500fr);
    gap: 16px;
    margin-top: 28px;
}

.plans figure {
    margin: 0;
}

.plans a {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-s);
    background: #fff;
}

.plans figcaption {
    padding-top: 8px;
    font-weight: 750;
    font-size: 0.95rem;
}

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

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

/* contact form */

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid rgba(46, 14, 4, 0.35);
    border-radius: var(--radius-s);
    background: #fff;
    color: var(--kernel);
    font: inherit;
}

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

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

.contact-form .btn {
    justify-self: start;
    border: 0;
    background: var(--kernel);
    color: var(--cream);
    cursor: pointer;
}

.contact-form .btn:hover {
    background: var(--brown);
}

.contact-form ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: #9b1c00;
    font-weight: 700;
}

.form-hint {
    margin: 0;
    font-size: 0.92rem;
}

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: var(--radius-s);
    background: var(--leaf);
    color: var(--cream);
}

.contact-sent strong {
    display: block;
}

/* ---- footer */

.foot {
    padding-top: clamp(48px, 6vw, 76px);
    background: var(--night);
    color: var(--cream);
}

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

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

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

.foot h2 {
    margin-bottom: 12px;
    font-family: var(--text);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    color: var(--apricot);
}

.foot-brand img {
    width: 150px;
    margin-bottom: 16px;
}

.foot address {
    font-style: normal;
}

.foot-phone {
    font-weight: 800;
    white-space: nowrap;
}

.foot-small {
    color: var(--blush);
    font-size: 0.95rem;
}

.foot-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.foot-nav li {
    margin-bottom: 4px;
}

.foot-bottom {
    margin-top: 40px;
    padding-block: 22px;
    border-top: 1px solid rgba(253, 240, 220, 0.16);
    font-size: 0.92rem;
}

.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 {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    background:
        radial-gradient(80% 60% at 80% 0%, var(--apricot-lit) 0%, rgba(246, 178, 90, 0) 62%),
        var(--apricot);
}

.not-found > div {
    width: min(620px, 100%);
    padding: clamp(26px, 5vw, 48px);
    background: var(--cream);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -30px rgba(46, 14, 4, 0.6);
}

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

.not-found h1 {
    font-size: clamp(2.2rem, 1.4rem + 4vw, 3.6rem);
}

.not-found h2 {
    font-size: 1.7rem;
}

.not-found [lang="en"] {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 2px dashed rgba(46, 14, 4, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !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: rgba(36, 11, 3, 0.94);
    --lb-text: #fdf0dc;
    --lb-accent: #ee9a3a;
    --lb-accent-soft: rgba(238, 154, 58, 0.25);
}
