/* Guest House "Elena", Belogradchik: a screen-printed travel poster of the rocks.
   The colours are measured in the owner's own photographs (CONTENT_SOURCE.md, "Design"). */

@font-face {
    font-family: "Yanone Kaffeesatz";
    src: url("/fonts/yanone-kaffeesatz.woff2") format("woff2");
    font-weight: 200 700;
    font-display: swap;
}

@font-face {
    font-family: "Lora";
    src: url("/fonts/lora.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

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

:root {
    --sky-top: #5b99d3;
    --sky: #6ca5d6;
    --sky-low: #bfd3de;
    --sky-wash: #e3edf3;
    --far: #8d7f93;
    --rock-lit: #e58a4f;
    --rock: #c2562f;
    --rock-mid: #b9502c;
    --rock-deep: #9f4122;
    --rock-shade: #4f241b;
    --pine: #15241b;
    --pine-deep: #0e1811;
    --pine-soft: #24382b;
    --lime: #f7f8f6;
    --lime-shade: #e9ece7;
    --ink: #0e2238;
    --ink-soft: #3a4c60;
    --sun: #f6b27c;
    --room-yellow: #d6b83a;
    --room-green: #9fad55;
    --room-brown: #76573c;
    --cloth: #c4202f;
    --display: "Yanone Kaffeesatz", "Arial Narrow", "Roboto Condensed", sans-serif;
    --text: "Lora", Georgia, "Times New Roman", serif;
    --wrap: 1180px;
    --pad: clamp(16px, 4vw, 40px);
    --radius: 14px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.68;
}

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

img {
    height: auto;
    display: block;
}

a {
    color: var(--rock-deep);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--rock-shade);
}

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

.band-pine :focus-visible,
.callband :focus-visible,
.foot :focus-visible,
.band-rock :focus-visible {
    outline-color: #fff;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 0.98;
    margin: 0 0 0.45em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    line-height: 0.9;
}

h2 {
    font-size: clamp(2.4rem, 5.6vw, 4.1rem);
}

h3 {
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 600;
    line-height: 1.05;
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

address {
    font-style: normal;
}

.wrap {
    width: min(100% - 2 * var(--pad), var(--wrap));
    margin-inline: auto;
}

.measure {
    max-width: 62ch;
}

.lead {
    font-size: clamp(1.12rem, 1.7vw, 1.3rem);
    line-height: 1.55;
    max-width: 58ch;
}

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

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 60;
    background: var(--ink);
    color: #fff;
    padding: 0.6em 1em;
    border-radius: 8px;
}

.skip:focus {
    top: 12px;
    color: #fff;
}

/* ---- the trail blaze: white, a band of colour, white. The mark of the eco-trails, and only of them. ---- */

.blaze {
    display: inline-block;
    flex: none;
    width: 1.75em;
    height: 1.12em;
    border-radius: 2px;
    background: linear-gradient(#fff 0 27%, var(--c, var(--rock)) 27% 73%, #fff 73%);
    box-shadow: 0 0 0 1px rgb(14 34 56 / 0.3);
    vertical-align: -0.12em;
}

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

.top {
    position: relative;
    z-index: 40;
    background: rgb(247 248 246 / 0.9);
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    backdrop-filter: blur(10px) saturate(1.3);
    border-bottom: 1px solid rgb(14 34 56 / 0.12);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    padding-block: 0.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    text-decoration: none;
    margin-right: auto;
}

/* the mark of the original site, in its own pixels (60 x 57), never enlarged */
.brand-mark {
    width: 44px;
    height: auto;
    flex: none;
}

.brand-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 2.15rem;
    line-height: 0.9;
    letter-spacing: 0.005em;
}

.brand-kind {
    font-family: var(--display);
    font-size: 1rem;
    line-height: 1;
    color: var(--ink-soft);
}

/* on a narrow phone the first row holds the name, the language and the phone number */
@media (max-width: 479px) {
    .brand-kind {
        display: none;
    }

    .top-row {
        gap: 0.3rem 0.6rem;
    }

    .call {
        font-size: 1.2rem;
        padding-inline: 0.75rem;
    }
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--ink);
    color: #fff;
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.5rem 0.9rem 0.42rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    background: var(--rock-deep);
    color: #fff;
}

.lang {
    display: inline-flex;
    gap: 0.15rem;
    font-family: var(--display);
    font-size: 1.15rem;
    line-height: 1;
}

.lang a,
.lang span {
    padding: 0.4rem 0.5rem 0.3rem;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}

.lang span {
    background: var(--ink);
    color: #fff;
}

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

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.25rem;
    flex-basis: 100%;
    font-family: var(--display);
    font-size: 1.28rem;
    line-height: 1;
    margin-inline: -0.55rem;
}

.nav a {
    color: var(--ink);
    text-decoration: none;
    padding: 0.5rem 0.55rem 0.42rem;
    border-radius: 8px;
    border-bottom: 3px solid transparent;
}

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

.nav a[aria-current] {
    border-bottom-color: var(--rock);
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

@media (min-width: 1000px) {
    .top {
        position: sticky;
        top: 0;
    }

    .nav {
        flex-basis: auto;
        order: 2;
        margin-inline: 0;
    }

    .brand {
        order: 1;
    }

    .lang {
        order: 3;
    }

    .call {
        order: 4;
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.7rem 1.25rem 0.6rem;
    border-radius: 999px;
    border: 2px solid var(--ink);
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, background-color 0.15s;
}

.btn:hover {
    background: var(--rock-deep);
    border-color: var(--rock-deep);
    color: #fff;
    transform: translateY(-2px);
}

.btn-line {
    background: transparent;
    color: var(--ink);
}

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

.btn-light {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--pine);
}

.btn-light:hover {
    background: var(--sun);
    border-color: var(--sun);
    color: var(--pine);
}

/* ---- the poster: sky, the hill with the tower, the rocks, the pines ---- */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 38%, var(--sky-low) 100%);
    color: var(--ink);
}

.hero-text {
    position: relative;
    z-index: 2;
    padding-top: clamp(1.6rem, 4.5vw, 3.6rem);
}

.hero h1 {
    margin: 0;
    font-size: inherit;
    line-height: 1;
}

.hero-kind,
.hero-name,
.hero-town {
    display: block;
}

.hero-kind {
    font-weight: 400;
    font-size: clamp(1.9rem, 5.2vw, 3.6rem);
    line-height: 1;
}

.hero-name {
    font-size: clamp(6.2rem, 25vw, 17.5rem);
    line-height: 0.78;
    letter-spacing: -0.012em;
    margin-left: -0.04em;
}

.hero-town {
    font-weight: 400;
    font-size: clamp(1.9rem, 5.2vw, 3.6rem);
    line-height: 1;
    margin-top: -0.12em;
}

.hero-side {
    margin-top: 1.2rem;
    max-width: 30rem;
}

.hero-side p {
    font-size: clamp(1.08rem, 1.5vw, 1.22rem);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@media (min-width: 860px) {
    .hero-text {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 27rem);
        gap: 2rem;
        align-items: end;
    }

    .hero-side {
        margin: 0 0 0.9rem;
    }
}

.hero-sky {
    position: relative;
    z-index: 1;
    height: clamp(240px, 39.1vw, 780px);
    margin-top: calc(-1 * clamp(18px, 7vw, 120px));
    pointer-events: none;
}

.skyline {
    display: block;
    width: 100%;
    height: 100%;
}

.sky-far {
    fill: var(--far);
}

.rock-lit {
    fill: var(--rock-lit);
}

.rock-mid {
    fill: var(--rock-mid);
}

.rock-shade {
    fill: var(--rock-shade);
}

.sky-pine {
    fill: var(--pine);
}

/* ---- inner pages: the title under the same sky, the hill and the pines below it ---- */

.page-hero {
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 45%, var(--sky-low) 100%);
    overflow: hidden;
}

.page-hero .wrap {
    padding-top: clamp(1.8rem, 5vw, 3.6rem);
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    margin-bottom: 0.25em;
}

.page-sky {
    height: clamp(96px, 16.6vw, 330px);
    margin-top: calc(-1 * clamp(10px, 4vw, 70px));
    pointer-events: none;
}

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

.band {
    padding-block: clamp(3rem, 8vw, 6.5rem);
}

.band-tight {
    padding-block: clamp(2.2rem, 5vw, 4rem);
}

.band-pine {
    background: var(--pine);
    color: #e6ece4;
}

.band-pine h2,
.band-pine h3 {
    color: #fff;
}

.band-pine a:not(.btn) {
    color: var(--sun);
}

.band-rock {
    background: var(--rock-deep);
    color: #fff;
}

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

.band-sky {
    background: var(--sky-wash);
}

.band-head {
    display: grid;
    gap: 0.5rem 3rem;
    margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.band-head h2 {
    margin: 0;
}

.band-head p {
    margin: 0;
    max-width: 56ch;
}

@media (min-width: 860px) {
    .band-head {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        align-items: end;
    }
}

/* ---- pictures ---- */

.photo {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--lime-shade);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.photo:hover img,
.photo:focus-visible img {
    transform: scale(1.04);
}

.photo-large img {
    max-width: 1024px;
    height: auto;
}

/* the plan of the town is shown whole, on its own white */
.photo[href$="map-location.webp"] {
    background: #fff;
}

.photo[href$="map-location.webp"] img {
    object-fit: contain;
}

/* a single picture fills the strip */
.strip li:only-child {
    grid-column: 1 / -1;
}

/* ---- the three rooms, each in its own colour ---- */

.rooms {
    display: grid;
    gap: 1rem;
}

@media (min-width: 900px) {
    .rooms {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    .room:nth-child(2) {
        margin-top: 2.6rem;
    }

    .room:nth-child(3) {
        margin-top: 5.2rem;
    }
}

.room {
    display: flex;
    flex-direction: column;
    border-radius: calc(var(--radius) + 6px);
    background: var(--c);
    color: var(--ink);
    overflow: hidden;
}

.room-brown {
    color: #fff;
}

.room .photo {
    border-radius: 0;
    aspect-ratio: 4 / 3;
}

.room-body {
    padding: 1.2rem 1.3rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.room h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(2.2rem, 3.6vw, 2.9rem);
    font-weight: 700;
    color: inherit;
    margin-bottom: 0.2em;
}

.room-kind {
    font-family: var(--display);
    font-size: 1.45rem;
    line-height: 1.1;
    margin-bottom: 0.7rem;
}

.room ul {
    padding-left: 1.1em;
    margin-bottom: 0;
}

.room li + li {
    margin-top: 0.2em;
}

.band-pine .room a.more,
.room a.more {
    color: inherit;
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
    align-self: flex-start;
}

.in-every {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: clamp(1.6rem, 4vw, 2.6rem) 0 0;
    font-family: var(--display);
    font-size: 1.4rem;
    line-height: 1.1;
}

.in-every li {
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 999px;
    padding: 0.4rem 0.9rem 0.3rem;
}

.in-every li:first-child {
    border: 0;
    padding-left: 0;
    color: #fff;
    font-weight: 600;
}

.band:not(.band-pine) .in-every li {
    border-color: rgb(14 34 56 / 0.3);
}

.band:not(.band-pine) .in-every li:first-child {
    color: var(--ink);
}

/* ---- the shared places: a bento of photos ---- */

.bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: calc(var(--radius) + 6px);
    overflow: hidden;
    box-shadow: 0 1px 0 rgb(14 34 56 / 0.08), 0 14px 30px -22px rgb(14 34 56 / 0.5);
}

.tile .photo {
    border-radius: 0;
    aspect-ratio: 16 / 10;
    flex: none;
}

.tile-body {
    padding: 1.1rem 1.25rem 1.3rem;
}

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

.tile-body p {
    margin: 0;
}

.tile-cloth {
    background: var(--cloth);
    color: #fff;
}

.tile-cloth h3 {
    color: #fff;
}

.tile-ink {
    background: var(--ink);
    color: #e8eef4;
}

.tile-ink h3 {
    color: #fff;
}

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

    .tile {
        grid-column: span 3;
    }

    .tile-wide {
        grid-column: span 6;
        flex-direction: row;
    }

    .tile-wide .photo {
        flex: 0 0 58%;
        aspect-ratio: auto;
        min-height: 20rem;
    }

    .tile-wide .tile-body {
        align-self: center;
        padding: 1.6rem 1.8rem;
    }
}

@media (min-width: 1000px) {
    .tile {
        grid-column: span 2;
    }

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

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

    .tile-tall .photo {
        flex: 1;
        aspect-ratio: auto;
        min-height: 16rem;
    }
}

/* ---- around the house: the quote, the places, the trails ---- */

.quote {
    margin: 0 0 clamp(2rem, 5vw, 3.5rem);
    max-width: 62rem;
}

.quote p {
    font-style: italic;
    font-size: clamp(1.3rem, 3vw, 2.3rem);
    line-height: 1.34;
    margin-bottom: 0.6em;
}

.quote footer {
    font-family: var(--display);
    font-size: 1.4rem;
}

.around {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

@media (min-width: 900px) {
    .around {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    }
}

.around .photo {
    box-shadow: 0 30px 50px -30px rgb(0 0 0 / 0.6);
}

.places {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-family: var(--display);
    font-size: 1.32rem;
    line-height: 1.1;
}

.places a {
    display: block;
    padding: 0.42rem 0.85rem 0.32rem;
    border: 1px solid rgb(255 255 255 / 0.55);
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
}

.places a:hover {
    background: #fff;
    color: var(--rock-shade);
}

.blazes {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    display: grid;
    gap: 0.5rem;
    font-family: var(--display);
    font-size: 1.4rem;
    line-height: 1.1;
}

.blazes li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

@media (min-width: 560px) {
    .blazes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- the way here: three routes from Sofia ---- */

.routes {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 0.9rem;
}

.route {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem 1.5rem;
    padding: 1rem 1.2rem 1.1rem;
    background: #fff;
    border-radius: var(--radius);
    border-left: 8px solid var(--rock);
}

.route-km {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 4.2rem);
    line-height: 0.9;
    white-space: nowrap;
}

.route-km small {
    font-size: 0.45em;
    font-weight: 400;
}

.route-way {
    margin: 0;
    align-self: center;
}

@media (min-width: 700px) {
    .route {
        grid-template-columns: 11rem minmax(0, 1fr);
    }
}

.facts {
    display: grid;
    gap: 1rem 2rem;
    margin: 0;
}

.facts div {
    border-top: 2px solid var(--ink);
    padding-top: 0.6rem;
}

.facts dt {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
}

.facts dd {
    margin: 0.2rem 0 0;
}

@media (min-width: 760px) {
    .facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---- the house page ---- */

.split {
    display: grid;
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: start;
}

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

    .split-flip > :first-child {
        order: 2;
    }
}

.roomcard {
    border-radius: calc(var(--radius) + 8px);
    background: #fff;
    color: var(--ink);
    overflow: hidden;
    box-shadow: 0 1px 0 rgb(14 34 56 / 0.08), 0 14px 30px -22px rgb(14 34 56 / 0.5);
}

.roomcard + .roomcard {
    margin-top: 1.4rem;
}

.roomcard-head {
    background: var(--c);
    color: var(--ink);
    padding: 1.3rem 1.5rem 1.1rem;
}

.roomcard-brown .roomcard-head {
    color: #fff;
}

.roomcard-head h2 {
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.1em;
    font-size: clamp(2.5rem, 5vw, 3.6rem);
}

.roomcard-head p {
    margin: 0;
    font-family: var(--display);
    font-size: 1.5rem;
    line-height: 1.1;
}

.roomcard-body {
    padding: 1.3rem 1.5rem 1.5rem;
    display: grid;
    gap: 1.2rem;
}

@media (min-width: 700px) {
    .roomcard-body > ul:first-child {
        columns: 2;
        column-gap: 3rem;
    }
}

.roomcard-body ul {
    margin: 0;
}

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

.strip .photo {
    aspect-ratio: 4 / 3;
}

@media (min-width: 560px) {
    .strip-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

.note {
    border-left: 8px solid var(--rock);
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
}

.note h2,
.note h3 {
    margin-bottom: 0.3em;
}

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

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

.gallery-group + .gallery-group {
    margin-top: clamp(2.2rem, 5vw, 3.6rem);
}

.gallery-group h2 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: clamp(2rem, 4.4vw, 3rem);
}

/* a dab of the wall colour beside the name of a room */
.swatch {
    display: inline-block;
    flex: none;
    width: 0.62em;
    height: 0.62em;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 1px rgb(14 34 56 / 0.3);
}

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

.grid .photo {
    aspect-ratio: 4 / 3;
}

@media (min-width: 700px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.8rem;
    }
}

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

.jump {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-family: var(--display);
    font-size: 1.3rem;
    line-height: 1.1;
}

.jump a {
    display: block;
    padding: 0.42rem 0.85rem 0.32rem;
    border: 1px solid rgb(14 34 56 / 0.45);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    background: rgb(247 248 246 / 0.6);
}

.jump a:hover {
    background: var(--ink);
    color: #fff;
}

/* ---- landmarks: the overview ---- */

.pcards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.pcard {
    display: flex;
}

.pcard > a {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    border-radius: calc(var(--radius) + 6px);
    overflow: hidden;
    box-shadow: 0 1px 0 rgb(14 34 56 / 0.08), 0 14px 30px -22px rgb(14 34 56 / 0.5);
    transition: transform 0.2s;
}

.pcard > a:hover {
    transform: translateY(-4px);
    color: var(--ink);
}

.pcard img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.pcard-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.25rem 1.3rem;
}

.pcard h3 {
    font-size: clamp(1.9rem, 3.2vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.15em;
}

.pcard-where {
    font-family: var(--display);
    font-size: 1.3rem;
    line-height: 1.1;
    color: var(--rock-deep);
    margin-bottom: 0.6rem;
}

.pcard-text {
    margin-bottom: 0.9rem;
}

.pcard-more {
    margin-top: auto;
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

/* a landmark with no photo of the owner's: its name carries the card */
.pcard-plain > a,
.pcard-plain > a:hover {
    background: var(--ink);
    color: #e8eef4;
    justify-content: flex-end;
    min-height: 15rem;
}

.pcard-plain:nth-child(even) > a,
.pcard-plain:nth-child(even) > a:hover {
    background: var(--rock-deep);
    color: #fff;
}

.pcard-plain h3 {
    color: #fff;
    font-size: clamp(2.3rem, 4vw, 3rem);
}

.pcard-plain .pcard-where {
    color: var(--sun);
}

.pcard-plain:nth-child(even) .pcard-where {
    color: #fff;
}

@media (min-width: 640px) {
    .pcards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .pcard {
        grid-column: span 2;
    }

    /* the first two of a group lead it, side by side */
    .pcard:nth-child(-n + 2) {
        grid-column: span 3;
    }

    .pcard:nth-child(-n + 2) img {
        aspect-ratio: 16 / 9;
    }

    /* after the two leaders the cards run three to a row: a last card takes what is left of its row */
    .pcard:last-child:nth-child(3n) {
        grid-column: span 6;
    }

    .pcard:last-child:nth-child(3n + 1) {
        grid-column: span 4;
    }
}

/* ---- landmarks: a page for each ---- */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    font-family: var(--display);
    font-size: 1.25rem;
    line-height: 1.1;
    margin-bottom: 0.7rem;
}

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

.crumbs a::after {
    content: "/";
    display: inline-block;
    margin-left: 0.5rem;
    text-decoration: none;
}

.place-layout {
    display: grid;
    gap: clamp(1.6rem, 4vw, 3.5rem);
    align-items: start;
}

@media (min-width: 960px) {
    .place-layout {
        grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
    }

    .place-side {
        position: sticky;
        top: 5.5rem;
    }
}

.place-body {
    max-width: 44rem;
}

.place-body h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-top: 1.5em;
}

.place-body > p:first-of-type {
    font-size: clamp(1.1rem, 1.6vw, 1.22rem);
}

.place-figure {
    margin-bottom: 1.6rem;
}

.place-figure .photo-large img {
    width: 100%;
    max-width: none;
    max-height: 30rem;
    object-fit: cover;
}

.place-photos {
    margin-top: 2rem;
}

.place-side {
    display: grid;
    gap: 1.2rem;
}

.place-side h2 {
    font-size: 2rem;
}

.place-facts {
    display: grid;
    gap: 0.7rem;
    margin: 0;
}

.place-facts div {
    border-top: 1px solid rgb(14 34 56 / 0.2);
    padding-top: 0.6rem;
}

.place-facts dt {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink-soft);
}

.place-facts dd {
    margin: 0.1rem 0 0;
}

.stay {
    background: var(--pine);
    color: #e6ece4;
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem 1.4rem;
}

.stay h2 {
    color: #fff;
    margin-bottom: 0.3em;
}

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

.place-nav {
    background: var(--sky-wash);
    padding-block: clamp(1.4rem, 3vw, 2.2rem);
}

.place-nav-row {
    display: grid;
    gap: 1rem;
    align-items: center;
    justify-items: start;
}

.place-step {
    display: grid;
    gap: 0.1rem;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--display);
    line-height: 1.05;
}

.place-step span {
    font-size: 1.2rem;
    color: var(--ink-soft);
}

.place-step strong {
    font-size: 1.7rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.16em;
}

.place-step:hover strong {
    color: var(--rock-deep);
}

@media (min-width: 760px) {
    .place-nav-row {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .place-step-next {
        justify-self: end;
        text-align: right;
    }
}

/* ---- eco-trails: a line in the colour of the trail, a dot for every stop ---- */

.trail {
    display: grid;
    gap: 1.2rem clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.3rem, 3vw, 2rem);
    background: #fff;
    border-radius: calc(var(--radius) + 6px);
    border-top: 10px solid var(--c);
    box-shadow: 0 1px 0 rgb(14 34 56 / 0.08), 0 14px 30px -22px rgb(14 34 56 / 0.5);
}

.trail + .trail {
    margin-top: 1.2rem;
}

.trail h2 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    margin-bottom: 0;
}

/* the marker strip of the old site, at half its own size */
.trail-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.trail-mark {
    width: 62px;
    height: auto;
    flex: none;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgb(14 34 56 / 0.3);
}

/* the two scans of the leaflet with the maps: shown whole, never wider than they are */
.leaflets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.4rem;
    justify-items: center;
}

.leaflets figure {
    margin: 0;
    max-width: 620px;
}

.leaflets .photo {
    background: #fff;
    box-shadow: 0 1px 0 rgb(14 34 56 / 0.08), 0 14px 30px -22px rgb(14 34 56 / 0.5);
}

.leaflets .photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.leaflets .photo:hover img,
.leaflets .photo:focus-visible img {
    transform: none;
}

.leaflets figcaption {
    font-family: var(--display);
    font-size: 1.35rem;
    line-height: 1.15;
    margin-top: 0.6rem;
}

@media (min-width: 860px) {
    .leaflets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.trail-no {
    font-family: var(--display);
    font-size: 1.4rem;
    line-height: 1.1;
    color: var(--ink-soft);
    margin: 0 0 0.2rem;
}

.trail dl {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.3rem 1rem;
    margin: 0.8rem 0 0;
}

.trail dt {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.35;
}

.trail dd {
    margin: 0;
}

.stops {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.5rem;
    border-left: 6px solid var(--c);
    counter-reset: stop;
}

.stops li {
    position: relative;
    padding-block: 0.32rem;
    counter-increment: stop;
}

.stops li::before {
    content: counter(stop);
    position: absolute;
    left: calc(-1.5rem - 3px);
    top: 0.42rem;
    transform: translateX(-50%);
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--c);
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-align: center;
    color: var(--ink);
}

@media (min-width: 860px) {
    .trail {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }
}

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

.duo {
    display: grid;
    gap: 1.2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .duo {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }
}

.card {
    background: #fff;
    border-radius: calc(var(--radius) + 6px);
    padding: clamp(1.3rem, 3vw, 2rem);
    box-shadow: 0 1px 0 rgb(14 34 56 / 0.08), 0 14px 30px -22px rgb(14 34 56 / 0.5);
}

.big-phone {
    display: inline-block;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.9rem, 9vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

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

.contact-list {
    display: grid;
    gap: 0.9rem;
    margin: 1.2rem 0 0;
}

.contact-list div {
    border-top: 1px solid rgb(14 34 56 / 0.2);
    padding-top: 0.7rem;
}

.contact-list dt {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink-soft);
}

.contact-list dd {
    margin: 0.1rem 0 0;
    overflow-wrap: anywhere;
}

.contact-form {
    display: grid;
    gap: 0.9rem;
}

.contact-form > div {
    display: grid;
    gap: 0.25rem;
}

.contact-form label {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: var(--lime);
    border: 2px solid rgb(14 34 56 / 0.35);
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 9rem;
}

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

.contact-form ::placeholder {
    color: #55657a;
    opacity: 1;
}

.contact-form ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #a3141f;
    font-size: 0.95rem;
}

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

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

.contact-sent {
    background: #dfeedd;
    border-left: 8px solid #2e7d3a;
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
    color: #12301a;
}

.contact-sent strong {
    display: block;
}

/* ---- the call band and the footer, in the pines ---- */

.callband {
    background: var(--pine);
    color: #e6ece4;
    padding-block: clamp(2.4rem, 6vw, 4.2rem);
}

.callband h2 {
    color: #fff;
    margin-bottom: 0.2em;
}

.callband p {
    margin: 0;
    max-width: 44ch;
}

.callband-row {
    display: grid;
    gap: 1.4rem 3rem;
    align-items: center;
}

.callband-actions {
    display: grid;
    gap: 0.8rem;
    justify-items: start;
}

.callband .big-phone {
    color: var(--sun);
}

.callband .big-phone:hover {
    color: #fff;
}

@media (min-width: 900px) {
    .callband-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.foot {
    background: var(--pine-deep);
    color: #cdd6cc;
    padding-block: clamp(2.2rem, 5vw, 3.4rem) 1.4rem;
    font-size: 0.98rem;
}

.foot a {
    color: #fff;
}

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

.foot h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4em;
}

.foot-grid {
    display: grid;
    gap: 1.6rem 2.5rem;
}

@media (min-width: 640px) {
    .foot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .foot-grid {
        grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr));
    }
}

.foot-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    margin-bottom: 0.5rem;
}

.foot-logo {
    width: 60px;
    height: auto;
    flex: none;
}

.foot-phone {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

.foot-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.2rem;
}

.foot-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(255 255 255 / 0.18);
    font-size: 0.9rem;
}

.foot-bottom p {
    margin: 0;
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 40%, var(--sky-low) 100%);
}

.not-found-text {
    width: min(100% - 2 * var(--pad), 44rem);
    margin-inline: auto;
    padding-top: clamp(2rem, 8vw, 5rem);
}

.not-found-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.not-found-brand img {
    width: 60px;
    height: auto;
    flex: none;
}

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

.not-found .btn {
    color: #fff;
}

.not-found [lang="en"] {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 2px solid var(--ink);
}

.not-found [lang="en"] h2 {
    font-size: 2.2rem;
}

.not-found-sky {
    width: 100%;
    height: clamp(200px, 39.1vw, 620px);
    object-fit: cover;
    object-position: center bottom;
}

/* ---- motion: the poster is printed layer by layer when the page opens ---- */

@media (prefers-reduced-motion: no-preference) {
    .hero .sky-far {
        animation: layer 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both;
        --from: 60px;
    }

    .hero .sky-rock {
        animation: layer 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
        --from: 130px;
    }

    .hero .sky-pine {
        animation: layer 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both;
        --from: 70px;
    }

    .hero .hero-name {
        animation: name 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
    }

    @keyframes layer {
        from {
            transform: translateY(var(--from));
            opacity: 0;
        }
    }

    @keyframes name {
        from {
            transform: translateY(0.12em);
            opacity: 0;
        }
    }

    @supports (animation-timeline: view()) {
        .route {
            animation: route linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }

        @keyframes route {
            from {
                border-left-width: 0;
                transform: translateX(-18px);
                opacity: 0.3;
            }
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

/* the lightbox in the colours of the site: the pines at night, the sunlit rock for focus and hover */
.lightbox {
    --lb-bg: rgb(10 18 13 / 0.96);
    --lb-text: #eef2ec;
    --lb-accent: #f6b27c;
    --lb-accent-soft: rgb(246 178 124 / 0.22);
}
