/* Guest house "Reni", Apriltsi.
   Two looks, one per season of the house's price list. "summer" is the default (also without scripts):
   the gold plate of the old header at full bleed with the logo's own ink. "winter" is dusk under the
   ridge: the blue of the far ridge in the photo from the terrace, with the gold as lamp light.
   /js/season.js sets <html data-season="…">. Every colour that changes is a custom property. */

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

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

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

:root {
    --display: "Alice", Georgia, "Times New Roman", serif;
    --text-face: "Andika", "Segoe UI", Verdana, sans-serif;

    /* measured on the original: logo ink, header plate, lawn (bbq2.jpg), far ridge (7.jpg) */
    --logo-ink: #500000;
    --plate: #e4c270;
    --lawn: #3f6b22;
    --ridge: #2f4e6d;

    --bg: #fcf6e3;
    --bg-alt: #f4e6ba;
    --bg-raised: #fffdf6;
    --text: #2c1410;
    --text-soft: #5e4036;
    --heading: #500000;
    --link: #7a1212;
    --line: #dcc68c;

    --header-bg: rgba(228, 194, 112, 0.92);
    --header-text: #3a0000;
    --header-chip: #f3dc9d;
    --header-line: #cfa955;

    --hero-bg: radial-gradient(90% 120% at 88% 8%, #f3dea2 0%, rgba(243, 222, 162, 0) 58%), linear-gradient(175deg, #e8c877 0%, #ddb661 100%);
    --hero-text: #3a0d08;
    --hero-soft: #5a2a1c;
    --hero-heading: #500000;
    --hero-card: #f3dc9d;

    --btn-bg: #500000;
    --btn-text: #fbe9b4;
    --btn-ghost: #500000;
    --flag-bg: #500000;
    --flag-text: #fbe9b4;

    --summer: #3f6b22;
    --winter: #2f4e6d;
    --now-dot: #500000;

    --panel-summer: #3f6b22;
    --panel-winter: #2f4e6d;
    --panel-text: #f7f9ee;

    --cta-bg: #500000;
    --cta-text: #f6e7c1;
    --cta-heading: #f6d98a;
    --cta-btn-bg: #e4c270;
    --cta-btn-text: #3a0000;

    --foot-bg: #e4c270;
    --foot-text: #3a0d08;
    --foot-link: #500000;
    --foot-line: #c79f4c;

    --field-bg: #fffdf6;
    --field-line: #b99a55;
    --focus: #500000;
    --shadow: 0 18px 40px -22px rgba(80, 0, 0, 0.45);

    /* the lightbox: dark in both looks, in the logo's ink with the gold of the plate */
    --lb-bg: rgba(24, 6, 4, 0.96);
    --lb-text: #f6ecd0;
    --lb-accent: #e4c270;
    --lb-accent-soft: rgba(228, 194, 112, 0.22);
}

:root[data-season="winter"] {
    --bg: #0e1926;
    --bg-alt: #132335;
    --bg-raised: #172839;
    --text: #ecf0f4;
    --text-soft: #b7c3cf;
    --heading: #f4dfa3;
    --link: #f0cf7e;
    --line: #2b4159;

    --header-bg: rgba(14, 25, 38, 0.9);
    --header-text: #f4dfa3;
    --header-chip: #21364c;
    --header-line: #24384d;

    --hero-bg: radial-gradient(90% 120% at 88% 0%, #2c4d6f 0%, rgba(44, 77, 111, 0) 60%), linear-gradient(175deg, #182c41 0%, #101e2d 100%);
    --hero-text: #e6edf3;
    --hero-soft: #b9c8d6;
    --hero-heading: #f4dfa3;
    --hero-card: #1c3147;

    --btn-bg: #e4c270;
    --btn-text: #2a0a00;
    --btn-ghost: #f4dfa3;
    --flag-bg: #e4c270;
    --flag-text: #2a0a00;

    --summer: #9cc76a;
    --winter: #8fb3d6;
    --now-dot: #f4dfa3;

    --panel-summer: #274719;
    --panel-winter: #1f3b58;

    --cta-bg: #e4c270;
    --cta-text: #3a0d08;
    --cta-heading: #500000;
    --cta-btn-bg: #500000;
    --cta-btn-text: #fbe9b4;

    --foot-bg: #09121b;
    --foot-text: #cfd8e1;
    --foot-link: #f0cf7e;
    --foot-line: #1f3246;

    --field-bg: #101e2d;
    --field-line: #4d6680;
    --focus: #f6d98a;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--text-face);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-synthesis: none;
}

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

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 400;
    color: var(--heading);
    line-height: 1.08;
    letter-spacing: -0.012em;
    margin: 0 0 0.6em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.6rem, 7.4vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.022em;
}

h2 {
    font-size: clamp(1.9rem, 4.6vw, 3.1rem);
}

h3 {
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}

p {
    margin: 0 0 1em;
}

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

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

address {
    font-style: normal;
}

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

.wrap {
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto;
}

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

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 50;
    padding: 0.7rem 1rem;
    border-radius: 0 0 12px 12px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 700;
}

.skip:focus {
    top: 0;
}

.lead {
    font-size: clamp(1.1rem, 1.9vw, 1.3rem);
    line-height: 1.55;
    max-width: 38em;
}

/* the logo: its own maroon ink in summer, the same pixels in pale gold in winter */
.in-winter,
:root[data-season="winter"] .in-summer {
    display: none;
}

:root[data-season="winter"] .in-winter {
    display: block;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.4rem;
    border: 2px solid var(--btn-bg);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

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

.btn-call {
    font-size: 1.1rem;
    white-space: nowrap;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    color: var(--header-text);
    border-bottom: 1px solid var(--header-line);
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    backdrop-filter: blur(10px) saturate(1.3);
}

.top-row {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    min-height: 72px;
}

.brand {
    flex: none;
    order: 1;
    display: block;
    padding-block: 0.4rem;
}

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

.top-panel {
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    margin-inline: 0.5rem auto;
}

.nav a {
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    color: var(--header-text);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current] {
    background: var(--header-chip);
}

.lang {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.9rem;
    font-weight: 700;
}

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

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

.lang a:hover {
    text-decoration: underline;
}

.season-switch {
    display: flex;
    padding: 3px;
    border: 1.5px solid var(--header-line);
    border-radius: 999px;
}

.season-switch[hidden] {
    display: none;
}

.season-switch button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.62rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--header-text);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.season-switch button[aria-pressed="true"] {
    background: var(--btn-bg);
    color: var(--btn-text);
}

.call {
    order: 3;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.58rem 0.95rem;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    text-decoration: none;
}

.menu-btn {
    display: none;
}

@media (max-width: 1180px) {
    .top-row {
        flex-wrap: wrap;
        min-height: 64px;
    }

    .brand img {
        height: 48px;
    }

    .call {
        order: 2;
        margin-left: auto;
        padding: 0.55rem 0.8rem;
        font-size: 0.88rem;
    }

    .menu-btn {
        order: 3;
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 1.5px solid var(--header-line);
        border-radius: 12px;
        background: transparent;
        color: var(--header-text);
        cursor: pointer;
    }

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

    .top-panel {
        order: 4;
        flex: 0 0 100%;
        flex-wrap: wrap;
        gap: 0.6rem 1rem;
        padding-bottom: 0.8rem;
    }

    .nav {
        flex: 0 0 100%;
        margin-inline: -0.5rem 0;
    }

    /* with the script the panel stays closed until the menu button opens it */
    .js .top:not(.open) .top-panel {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-row {
        gap: 0.5rem;
    }

    .brand img {
        height: 42px;
    }

    .call {
        gap: 0.35rem;
        padding: 0.5rem 0.7rem;
        font-size: 0.84rem;
    }

    .menu-btn {
        width: 42px;
        height: 42px;
    }
}

/* ---- hero with the year ring ---- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
    color: var(--hero-text);
    padding-block: clamp(2.2rem, 5.5vw, 4.6rem) clamp(2.8rem, 6.5vw, 5.4rem);
}

.hero h1 {
    color: var(--hero-heading);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas: "head ring" "rest ring";
    column-gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-head {
    grid-area: head;
    align-self: end;
}

.hero-head h1 {
    margin-bottom: 0.45em;
}

.hero-head .lead {
    margin-bottom: 0;
}

.hero-rest {
    grid-area: rest;
    align-self: start;
}

.hero .ring {
    grid-area: ring;
    align-self: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.ring {
    position: relative;
    width: min(100%, 540px);
    aspect-ratio: 1;
    margin-inline: auto;
}

.ring-photo {
    position: absolute;
    inset: 17.5%;
    width: 65%;
    height: 65%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 30px 60px -30px rgba(40, 0, 0, 0.7);
}

.ring-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ring-arc {
    fill: none;
    stroke-width: 9;
    stroke-linecap: round;
    transition: stroke-width 0.35s ease;
}

.ring-summer {
    stroke: var(--summer);
    stroke-width: 17;
}

.ring-winter {
    stroke: var(--winter);
}

:root[data-season="winter"] .ring-summer {
    stroke-width: 9;
}

:root[data-season="winter"] .ring-winter {
    stroke-width: 17;
}

.ring-months text {
    font-family: var(--text-face);
    font-size: 14px;
    font-weight: 700;
    text-anchor: middle;
    fill: var(--hero-soft);
}

.ring-months .is-now {
    fill: var(--hero-heading);
    font-size: 16px;
}

.ring-now-dot {
    fill: var(--now-dot);
    stroke: var(--hero-card);
    stroke-width: 2.5;
}

.ring-now-halo {
    fill: none;
    stroke: var(--now-dot);
    stroke-width: 1.5;
}

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

.season {
    display: grid;
    align-content: start;
    gap: 0.1rem;
    padding: 0.85rem 1rem 0.95rem 1.1rem;
    border-left: 7px solid var(--winter);
    border-radius: 14px;
    background: var(--hero-card);
    color: var(--hero-text);
}

.season-summer {
    border-left-color: var(--summer);
}

.season-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.season-flag {
    padding: 0.05rem 0.55rem 0.1rem;
    border-radius: 999px;
    background: var(--flag-bg);
    color: var(--flag-text);
    font-size: 0.78rem;
}

.season-dates {
    color: var(--hero-soft);
    font-size: 0.93rem;
}

.season-price {
    font-size: 0.93rem;
    line-height: 1.35;
}

.season-price strong {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    line-height: 1.15;
    color: var(--hero-heading);
}

@media (max-width: 900px) {
    /* on a phone the house comes right after the headline */
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "head" "ring" "rest";
    }

    .hero .ring {
        width: min(100%, 440px);
        margin-block: 1.4rem 0;
    }
}

@media (max-width: 460px) {
    .seasons {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ---- inner page head ---- */

.page-head {
    background: var(--hero-bg);
    color: var(--hero-text);
    padding-block: clamp(2rem, 5vw, 3.8rem) clamp(2.2rem, 5vw, 4rem);
}

.page-head h1 {
    color: var(--hero-heading);
    font-size: clamp(2.5rem, 6.5vw, 4.6rem);
    margin-bottom: 0.35em;
}

.page-head .lead {
    margin-bottom: 0;
}

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

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

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

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

.band-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.band-head h2 {
    margin: 0;
    max-width: 16em;
}

.more {
    font-weight: 700;
}

.prose {
    max-width: 44em;
}

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

/* the house in tiles of different shapes */
.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.6vw, 1.25rem);
}

.tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: var(--bg-raised);
    box-shadow: var(--shadow);
}

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

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

.tile-body {
    position: relative;
    flex: 1;
    padding: 1.15rem 1.4rem 1.4rem;
    background: var(--bg-raised);
}

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

.tile-body p {
    margin: 0;
    color: var(--text-soft);
}

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

.tile-wide img {
    aspect-ratio: 16 / 9;
}

.tile-narrow {
    grid-column: span 5;
}

.tile-narrow img {
    aspect-ratio: 5 / 4;
}

.facts {
    list-style: none;
    margin: clamp(1.2rem, 2.4vw, 1.8rem) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.facts li {
    padding: 0.5rem 1.05rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.97rem;
}

@media (max-width: 760px) {
    .tile-wide,
    .tile-narrow {
        grid-column: 1 / -1;
    }

    .tile-narrow img {
        aspect-ratio: 16 / 10;
    }
}

/* summer and winter side by side */
.pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.6vw, 1.25rem);
}

.panel {
    --focus: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 28px;
    background: var(--panel-winter);
    color: var(--panel-text);
}

.panel-summer {
    background: var(--panel-summer);
}

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

.panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(1.3rem, 2.6vw, 2rem);
    background: var(--panel-winter);
}

.panel-summer .panel-body {
    background: var(--panel-summer);
}

.panel h3 {
    color: #ffffff;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.panel ul {
    margin: 0 0 1.2rem;
    padding-left: 1.15rem;
}

.panel-price {
    margin: auto 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.panel-price strong {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.1;
    color: #ffffff;
}

@media (max-width: 760px) {
    .pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* where the house is */
.where-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(1.6rem, 4vw, 3.5rem);
    align-items: center;
}

.distances {
    list-style: none;
    margin: 1.6rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
}

.distances li {
    padding-top: 0.6rem;
    border-top: 2px solid var(--heading);
    line-height: 1.35;
}

.distances strong {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    line-height: 1.1;
    color: var(--heading);
    white-space: nowrap;
}

.where-address {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.map-fig {
    margin: 0;
    max-width: 500px;
    justify-self: end;
}

.map-fig img {
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.contact-grid .map-fig {
    justify-self: start;
}

figcaption {
    padding-top: 0.5rem;
    color: var(--text-soft);
    font-size: 0.93rem;
    line-height: 1.45;
}

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

    .map-fig {
        justify-self: start;
    }
}

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

    .distances li {
        display: flex;
        align-items: baseline;
        gap: 0.8rem;
    }

    .distances strong {
        flex: 0 0 4.2em;
    }

    .trails li {
        display: block;
    }
}

/* the sights around the town */
.sights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
}

.sights li {
    padding: 0.95rem 0;
    border-top: 1px solid var(--line);
}

.sights strong {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--heading);
}

.sights span {
    color: var(--text-soft);
}

@media (max-width: 700px) {
    .sights {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* the town page: two columns of text, the trails, the sights one under another */
.pair-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(1.5rem, 4vw, 3.5rem);
}

.trails strong {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    white-space: normal;
    margin-bottom: 0.2em;
}

.trails li:first-child strong {
    font-size: clamp(2.6rem, 6vw, 4rem);
    line-height: 0.95;
}

/* the sights: cards on the town page, a smaller row of them on the page of each sight */
.place-grid,
.place-row,
.photo-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(0.8rem, 1.6vw, 1.25rem);
}

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

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

.photo-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block: clamp(1.4rem, 3vw, 2.2rem);
}

.photo-row figure {
    margin: 0;
}

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

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

.photo-row a:hover img {
    transform: scale(1.04);
}

.place-card {
    position: relative;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: var(--bg-raised);
    box-shadow: var(--shadow);
}

.place-grid .place-card:nth-child(-n + 2) {
    grid-column: span 3;
}

.place-row .place-card {
    grid-column: auto;
}

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

.place-grid .place-card:nth-child(-n + 2) img {
    aspect-ratio: 16 / 10;
}

.place-card:hover img {
    transform: scale(1.035);
}

.place-card-body {
    flex: 1;
    padding: 1.1rem 1.35rem 1.35rem;
    background: var(--bg-raised);
}

.place-card h3 {
    margin-bottom: 0.25em;
}

.place-row h3 {
    font-size: 1.3rem;
}

.place-card h3 a {
    color: var(--heading);
    text-decoration: none;
}

/* the whole card is the link */
.place-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.place-card:hover h3 a {
    text-decoration: underline;
}

.place-card:has(a:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.place-card p {
    margin: 0;
    color: var(--text-soft);
}

.place-card .sight-where {
    margin-bottom: 0.4rem;
}

.sight-where {
    color: var(--text-soft);
    font-weight: 700;
}

/* the page of a sight */
.crumbs ol {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.crumbs li + li::before {
    content: "/";
    margin-right: 0.55rem;
    opacity: 0.6;
}

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

.split.place-split {
    align-items: start;
}

.place-split .photo {
    max-width: 600px;
}

.place-facts-title {
    margin-top: 1.4em;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
}

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

@media (max-width: 760px) {
    .pair-text {
        grid-template-columns: minmax(0, 1fr);
    }

    .pair-text p {
        margin-bottom: 1em;
    }

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

    .place-grid .place-card,
    .place-grid .place-card:nth-child(-n + 2) {
        grid-column: auto;
    }

    .place-grid .place-card:nth-child(-n + 2) img {
        aspect-ratio: 4 / 3;
    }

    .photo-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .place-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* text beside a photo */
.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.split + .split {
    margin-top: clamp(2.2rem, 5vw, 4rem);
}

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

.photo {
    margin: 0;
}

.photo img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

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

.photo-stack figure {
    margin: 0;
}

.photo-stack img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 18px;
}

.marks {
    margin: 0 0 1em;
    padding-left: 1.2rem;
}

.marks li {
    margin-bottom: 0.3em;
}

.marks li::marker {
    color: var(--heading);
}

@media (max-width: 800px) {
    .split {
        grid-template-columns: minmax(0, 1fr);
    }

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

/* a row of photos that scrolls sideways */
.strip {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 1rem;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 400px);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--heading) transparent;
}

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

.strip figure {
    margin: 0;
}

.strip img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 18px;
}

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

.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: clamp(0.9rem, 2vw, 1.4rem);
}

.gallery figure {
    margin: 0;
}

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

.gallery img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.strip a,
.photo-stack a,
.photo a,
.map-fig a {
    display: block;
    overflow: hidden;
    border-radius: 18px;
}

.strip img,
.photo-stack img {
    transition: transform 0.45s ease;
}

.photo a,
.map-fig a {
    border-radius: 24px;
}

/* ---- prices ---- */

.year-strip {
    list-style: none;
    margin: 0 0 clamp(1.4rem, 3vw, 2.2rem);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
}

.year-strip li {
    --focus: #ffffff;
    position: relative;
    padding: 1.6rem 0.2rem 0.55rem;
    border-radius: 10px;
    background: var(--panel-winter);
    color: var(--panel-text);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.year-strip .is-summer {
    background: var(--panel-summer);
}

.year-strip .is-now {
    outline: 3px solid var(--heading);
    outline-offset: 2px;
}

.year-strip .is-now::before {
    content: "";
    position: absolute;
    top: 0.6rem;
    left: 50%;
    width: 0.6rem;
    height: 0.6rem;
    margin-left: -0.3rem;
    border-radius: 50%;
    background: #ffffff;
}

.price-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.6vw, 1.25rem);
}

.price-card {
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-radius: 28px;
    background: var(--panel-winter);
    color: var(--panel-text);
}

.price-card.is-summer {
    background: var(--panel-summer);
}

.price-card h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.2em;
    color: #ffffff;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.price-card .season-flag {
    background: #ffffff;
    color: #1d2a1a;
    font-family: var(--text-face);
    font-weight: 700;
    letter-spacing: 0;
}

.price-card p {
    margin: 0;
}

.price-card .amount {
    margin-top: 1.1rem;
    font-family: var(--display);
    font-size: clamp(2.8rem, 8vw, 4.6rem);
    line-height: 1;
    color: #ffffff;
}

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

.notes li {
    padding-top: 0.9rem;
    border-top: 2px solid var(--heading);
}

@media (max-width: 760px) {
    .year-strip {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .price-pair,
    .notes {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1.6rem, 4vw, 3.5rem);
    align-items: start;
}

.big-phones {
    margin: 0 0 1.4rem;
}

.big-phone {
    display: block;
    width: fit-content;
    font-family: var(--display);
    font-size: clamp(1.9rem, 5.4vw, 2.9rem);
    line-height: 1.25;
    color: var(--heading);
    text-decoration: none;
    white-space: nowrap;
}

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

.contact-list {
    margin: 0 0 1.6rem;
}

.contact-list div {
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
}

.contact-list dt {
    font-weight: 700;
}

.contact-list dd {
    margin: 0;
}

.card {
    padding: clamp(1.3rem, 3vw, 2.2rem);
    border-radius: 28px;
    background: var(--bg-raised);
    box-shadow: var(--shadow);
}

.card h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

.contact-form > div {
    margin-bottom: 1rem;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1.5px solid var(--field-line);
    border-radius: 14px;
    background: var(--field-bg);
    color: var(--text);
    font: inherit;
}

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

.contact-form ::placeholder {
    color: var(--text-soft);
    opacity: 1;
}

.contact-form ul {
    margin: 0 0 0.4rem;
    padding: 0;
    list-style: none;
    font-weight: 700;
}

.form-hint {
    margin: 0.9rem 0 0;
    color: var(--text-soft);
    font-size: 0.93rem;
}

.contact-sent {
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: var(--panel-summer);
    color: var(--panel-text);
}

.contact-sent strong {
    display: block;
}

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

/* ---- call band and footer ---- */

.cta {
    --focus: var(--cta-heading);
    background: var(--cta-bg);
    color: var(--cta-text);
    padding-block: clamp(2.4rem, 6vw, 4.4rem);
}

.cta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.cta h2 {
    color: var(--cta-heading);
    margin-bottom: 0.3em;
}

.cta p {
    margin: 0;
    max-width: 34em;
}

.cta-actions {
    display: grid;
    gap: 0.2rem;
    justify-items: start;
}

.cta-phone {
    font-family: var(--display);
    font-size: clamp(1.6rem, 4.4vw, 2.3rem);
    line-height: 1.25;
    color: var(--cta-heading);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-on-cta {
    margin-top: 0.9rem;
    border-color: var(--cta-btn-bg);
    background: var(--cta-btn-bg);
    color: var(--cta-btn-text);
}

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

.foot {
    --focus: var(--foot-link);
    background: var(--foot-bg);
    color: var(--foot-text);
    padding-block: clamp(2.2rem, 5vw, 3.6rem) 1.4rem;
}

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

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 1.8rem clamp(1.5rem, 4vw, 3rem);
}

.foot-brand img {
    margin-bottom: 0.9rem;
}

.foot-brand p {
    max-width: 22em;
}

.foot h2 {
    margin-bottom: 0.5em;
    color: var(--foot-link);
    font-size: 1.3rem;
    letter-spacing: 0;
}

.foot p {
    margin-bottom: 0.6em;
}

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

.foot-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 1.5rem;
}

.foot-nav li {
    margin-bottom: 0.25rem;
}

.foot-bottom {
    margin-top: 1.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--foot-line);
    font-size: 0.93rem;
}

.foot-bottom p {
    margin: 0;
}

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

    .foot-brand {
        grid-column: 1 / -1;
    }
}

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

/* ---- page not found ---- */

.not-found {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
    background: var(--hero-bg);
    color: var(--hero-text);
}

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

.not-found img {
    margin-bottom: 1.6rem;
}

.not-found h1 {
    font-size: clamp(2.2rem, 7vw, 3.6rem);
    color: var(--hero-heading);
}

.not-found h2 {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--header-line);
    color: var(--hero-heading);
    font-size: 1.7rem;
}

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

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

/* ---- motion: one moment when the home page opens, the year draws itself round the house ---- */

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

    .ring-photo {
        animation: ring-photo 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .ring-arc {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        animation: ring-draw 1s cubic-bezier(0.6, 0.1, 0.2, 1) 0.3s forwards;
    }

    .ring-winter {
        animation-duration: 1.3s;
        animation-delay: 1.15s;
    }

    .ring-months text {
        opacity: 0;
        animation: ring-fade 0.35s ease forwards;
        animation-delay: calc(0.4s + var(--i) * 0.17s);
    }

    .ring-now {
        opacity: 0;
        animation: ring-fade 0.4s ease 2.5s forwards;
    }

    .ring-now-halo {
        transform-box: fill-box;
        transform-origin: center;
        animation: ring-pulse 1.6s ease-out 2.9s 3;
    }

    .year-strip li {
        opacity: 0;
        animation: ring-fade 0.3s ease forwards;
        animation-delay: calc(var(--i) * 0.05s);
    }
}

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

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

@keyframes ring-photo {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes ring-pulse {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(1.9);
        opacity: 0;
    }
}

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

@media print {
    .top,
    .cta,
    .season-switch,
    .menu-btn {
        display: none;
    }
}

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