/* Ferme Auberge de Jameysse – "braise et châtaigne".
   Hearth night, the red of the original lettering, flour cream, the green of the chestnut hills.
   Besley (display) + Gantari (text), self-hosted. The signature: the stone arch of the wood-fired oven
   (templates/_partials/oven.svg.twig), its stones set one by one as it scrolls in, embers breathing. */

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

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

@font-face {
    font-family: "Gantari";
    src: url("/fonts/gantari.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --night: #24150e;
    --night-2: #33200f;
    --night-3: #432a17;
    --red: #89181c;
    --red-deep: #5e1013;
    --ember: #e8873a;
    --ember-soft: #f6b46e;
    --cream: #f6eedc;
    --cream-2: #efe3c8;
    --sheet: #fffaf0;
    --ink: #2a1c14;
    --muted: #5b4637;
    --green: #33502a;
    --green-2: #26401f;
    --sun: #f3dfae;
    --line: #dccaa6;
    --on-dark: #f8efdf;
    --on-dark-muted: #e2d2b8;
    --radius: 22px;
    --display: "Besley", Georgia, "Times New Roman", serif;
    --text: "Gantari", "Segoe UI", system-ui, sans-serif;
    --lb-bg: rgba(26, 14, 9, 0.96);
    --lb-text: #f8efdf;
    --lb-accent: #f6b46e;
    --lb-accent-soft: rgba(246, 180, 110, 0.18);
    color-scheme: light;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--red-deep);
}

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

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

h1 {
    font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem);
    font-weight: 750;
}

h3,
.h3 {
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
    font-weight: 700;
    font-family: var(--display);
}

h1 em,
h2 em {
    font-style: italic;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

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

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

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--night);
    color: var(--on-dark);
    border-radius: 8px;
}

.skip:focus {
    top: 1rem;
    color: var(--on-dark);
}

/* ---- header ---- */
.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 238, 220, 0.9);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-bottom: 1px solid rgba(137, 24, 28, 0.16);
}

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

.brand {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
    line-height: 0;
}

.brand img {
    width: clamp(220px, 30vw, 360px);
    height: auto;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px -8px rgba(137, 24, 28, 0.7);
    transition: transform 0.2s, background-color 0.2s;
}

.call:hover {
    color: #fff;
    background: var(--red-deep);
    transform: translateY(-1px);
}

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

.lang a,
.lang span {
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
}

.lang span {
    background: var(--night);
    color: var(--on-dark);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    width: 100%;
    order: 3;
}

.nav a {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nav a:hover {
    background: var(--cream-2);
    color: var(--ink);
}

@media (max-width: 420px) {
    .nav {
        gap: 0.2rem;
    }

    .nav a {
        padding: 0.35rem 0.6rem;
        font-size: 0.97rem;
    }
}

.nav a[aria-current] {
    background: var(--night);
    color: var(--on-dark);
}

@media (min-width: 1000px) {
    .nav {
        width: auto;
        order: 0;
    }

    .brand {
        margin-right: 0;
    }

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

/* ---- buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 700 1rem/1.2 var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-fire {
    background: var(--red);
    color: #fff;
}

.btn-fire:hover {
    background: var(--red-deep);
    color: #fff;
}

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

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

/* ---- hero ---- */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    min-height: min(88vh, 820px);
    padding-block: 7rem 3.5rem;
    background-color: var(--night);
    color: var(--on-dark);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% 70%;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(36, 21, 14, 0.15) 0%, rgba(36, 21, 14, 0.55) 45%, rgba(36, 21, 14, 0.94) 100%),
        linear-gradient(90deg, rgba(36, 21, 14, 0.75) 0%, rgba(36, 21, 14, 0) 70%);
}

.hero-inner {
    max-width: 1180px;
}

.hero h1 {
    max-width: 14ch;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 em {
    color: var(--ember-soft);
}

.kicker {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

.lead {
    max-width: 58ch;
    font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
}

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

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

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

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

@media (prefers-reduced-motion: no-preference) {
    .hero-inner > * {
        animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .hero-inner > :nth-child(2) { animation-delay: 0.12s; }
    .hero-inner > :nth-child(3) { animation-delay: 0.24s; }
    .hero-inner > :nth-child(4) { animation-delay: 0.36s; }

    .hero-img {
        animation: settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
}

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

@keyframes settle {
    from { transform: scale(1.08); }
    to { transform: none; }
}

/* ---- page hero (inner pages) ---- */
.page-hero {
    position: relative;
    padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4.5rem, 9vw, 7.5rem);
    background-color: var(--night);
    background-image:
        radial-gradient(60% 90% at 85% 110%, rgba(232, 135, 58, 0.45), transparent 70%),
        radial-gradient(40% 60% at 10% 0%, rgba(137, 24, 28, 0.55), transparent 70%);
    color: var(--on-dark);
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(40px, 7vw, 90px);
    background: var(--cream);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 60 C120 20 220 10 340 38 S560 90 700 50 S940 0 1060 30 S1170 60 1200 48 V90 H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 60 C120 20 220 10 340 38 S560 90 700 50 S940 0 1060 30 S1170 60 1200 48 V90 H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.page-hero:has(+ .hearth-page)::after {
    background: var(--night);
}

.page-hero:has(+ .hearth-page) {
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

.page-hero h1 em {
    color: var(--ember-soft);
}

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

/* ---- bands ---- */
.band {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.eyebrow {
    margin-bottom: 0.6rem;
    color: var(--red);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-head {
    max-width: 62ch;
    margin-bottom: 2.4rem;
}

.h-small {
    font-size: 1.1rem;
    font-family: var(--text);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* intro */
.intro-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.intro-text h2 {
    color: var(--red);
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.6rem;
}

.facts span {
    padding: 0.55rem 1rem;
    border-radius: 14px;
    background: var(--sheet);
    border: 1px solid var(--line);
}

.facts strong {
    font-family: var(--display);
    color: var(--red);
}

.photo-stack {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    margin: 0;
    padding: 1rem 0 0;
    list-style: none;
}

.photo-stack figure,
.framed {
    margin: 0;
    padding: 10px 10px 8px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 40px -18px rgba(42, 28, 20, 0.55);
    width: max-content;
    max-width: 100%;
}

.photo-stack img,
.framed img {
    display: block;
    border-radius: 3px;
}

.photo-stack figcaption,
.framed figcaption,
.season figcaption {
    width: 0;
    min-width: 100%;
}

.photo-stack figcaption,
.framed figcaption {
    padding-top: 0.4rem;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.ps-a {
    transform: rotate(-3deg);
    z-index: 1;
}

.ps-b {
    margin-left: -18px;
    margin-bottom: -22px;
    transform: rotate(4deg);
    z-index: 2;
}

.photo-stack li {
    min-width: 0;
    transition: transform 0.3s;
}

.ps-b {
    flex: none;
}

.intro {
    overflow-x: clip;
}

.photo-stack li:hover {
    transform: rotate(0) scale(1.03);
}

@media (min-width: 860px) {
    .intro-grid {
        grid-template-columns: 1.15fr 1fr;
        gap: 4rem;
    }
}

/* the farmyard */
@media (min-width: 900px) {
    .yard .wrap {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .yard .section-head {
        margin-bottom: 0;
    }

    .animals {
        justify-content: center;
        max-width: 300px;
        justify-self: center;
    }
}

.yard {
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(243, 223, 174, 0.14), transparent 60%),
        var(--green);
    color: var(--on-dark);
}

.yard .eyebrow {
    color: var(--sun);
}

.yard h2 {
    color: #fff;
}

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

.animals li {
    padding: 7px;
    background: var(--sheet);
    border-radius: 14px;
    box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s;
}

.animals li:nth-child(odd) {
    transform: rotate(-2.5deg);
}

.animals li:nth-child(even) {
    transform: rotate(2deg) translateY(8px);
}

.animals li:hover {
    transform: rotate(0) translateY(-4px);
}

.animals a,
.animals img {
    display: block;
    border-radius: 9px;
}

/* the hearth: the signature */
.hearth {
    position: relative;
    background:
        radial-gradient(50% 70% at 28% 70%, rgba(232, 135, 58, 0.28), transparent 70%),
        linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
    color: var(--on-dark);
}

.hearth .eyebrow {
    color: var(--ember-soft);
}

.hearth h2 {
    color: #fff;
}

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

.hearth-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hearth-art {
    view-timeline: --oven block;
}

.oven-art {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin-inline: auto;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}

.oven-stones path {
    stroke: rgba(36, 21, 14, 0.35);
    stroke-width: 1.5;
}

@media (min-width: 860px) {
    .hearth-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 4rem;
    }
}

.oven-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.8rem;
    padding: 0;
    list-style: none;
}

.oven-list li {
    padding: 0.5rem 1.05rem;
    border: 1px solid rgba(246, 180, 110, 0.5);
    border-radius: 999px;
    background: rgba(232, 135, 58, 0.12);
    color: var(--on-dark);
    font-family: var(--display);
    font-style: italic;
    font-size: 1.2rem;
}

.hearth .framed {
    transform: rotate(-2deg);
}

@media (prefers-reduced-motion: no-preference) {
    .flame {
        transform-box: fill-box;
        transform-origin: 50% 100%;
        animation: flicker 1.6s ease-in-out infinite alternate;
        animation-delay: calc(var(--d) * -1);
    }

    .ember {
        animation: breathe 2.8s ease-in-out infinite alternate;
        animation-delay: calc(var(--d) * -1);
    }

    @supports (animation-timeline: view()) {
        .oven-stones path {
            animation: set-stone linear both;
            animation-timeline: --oven;
            animation-range: entry calc(10% + var(--i) * 2.5%) cover calc(30% + var(--i) * 1.5%);
        }

        .oven-fire {
            animation: light-up linear both;
            animation-timeline: --oven;
            animation-range: cover 25% cover 45%;
        }
    }
}

@keyframes flicker {
    0% { transform: scaleY(0.88) scaleX(1); opacity: 0.85; }
    50% { transform: scaleY(1.06) scaleX(0.95); opacity: 1; }
    100% { transform: scaleY(0.95) scaleX(1.04); opacity: 0.9; }
}

@keyframes breathe {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

@keyframes set-stone {
    from { opacity: 0; transform: translateY(-34px); }
    to { opacity: 1; transform: none; }
}

@keyframes light-up {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* specialities: the slate */
.slate-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.slate-grid h2 {
    color: var(--red);
}

.slate {
    margin: 0;
    padding: clamp(1.6rem, 4vw, 2.6rem);
    border: 10px solid #7a5a3a;
    border-radius: 14px;
    background:
        radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, 0.06), transparent 60%),
        #2b2926;
    color: #f4efe6;
    list-style: none;
    counter-reset: dish;
    box-shadow: 0 30px 50px -28px rgba(42, 28, 20, 0.8);
    transform: rotate(1deg);
}

.slate li {
    counter-increment: dish;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-block: 0.7rem;
    border-bottom: 1px dashed rgba(244, 239, 230, 0.3);
    font-family: var(--display);
    font-style: italic;
    font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
}

.slate li:last-child {
    border-bottom: 0;
}

.slate li::before {
    content: counter(dish, decimal-leading-zero);
    color: var(--ember-soft);
    font-family: var(--text);
    font-style: normal;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

@media (min-width: 860px) {
    .slate-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
    }
}

/* seasons */
.seasons {
    padding-top: 0;
}

.season-grid {
    display: grid;
    gap: 1.25rem;
}

.season {
    display: grid;
    gap: 1.4rem;
    align-items: center;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    border-radius: var(--radius);
}

.season figure {
    margin: 0;
    padding: 9px 9px 7px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 36px -18px rgba(42, 28, 20, 0.6);
    width: max-content;
    max-width: 100%;
}

.season img {
    display: block;
    border-radius: 3px;
}

.season figcaption {
    padding-top: 0.35rem;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.season h3 {
    margin-bottom: 0.35rem;
}

.season p {
    margin: 0;
    font-size: 1.12rem;
}

.summer {
    background: linear-gradient(135deg, var(--sun), #f7e9c6);
    color: var(--ink);
}

.summer figure {
    transform: rotate(-2.5deg);
}

.winter {
    background:
        radial-gradient(80% 100% at 100% 100%, rgba(232, 135, 58, 0.35), transparent 70%),
        var(--red-deep);
    color: var(--on-dark);
}

.winter h3 {
    color: #fff;
}

.winter figure {
    transform: rotate(2deg);
}

@media (min-width: 700px) {
    .season {
        grid-template-columns: auto 1fr;
    }
}

@media (min-width: 1000px) {
    .season-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* take-away */
.takeaway {
    padding-top: 0;
}

.takeaway-inner {
    padding: clamp(1.6rem, 4vw, 2.6rem);
    border-left: 8px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--sheet);
}

.takeaway-inner h2 {
    color: var(--red);
}

.takeaway-inner p:last-child {
    max-width: 62ch;
    margin: 0;
}

/* partners */
.partners {
    padding-block: 3rem;
    background: var(--sheet);
    border-top: 1px solid var(--line);
}

.labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.6rem 2.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.labels img {
    display: block;
    width: auto;
    max-height: 92px;
}

.label-access {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
}

.label-access img {
    width: 48px;
}

/* access: the route */
.route-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 860px) {
    .route-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
}

.route {
    position: relative;
    margin: 0;
    padding: 0 0 0 2.6rem;
    list-style: none;
}

.route::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    top: 0.8rem;
    bottom: 3.6rem;
    border-left: 4px dashed var(--red);
}

.route-stop {
    position: relative;
    padding: 1.4rem 1.6rem;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

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

.route-dot {
    position: absolute;
    left: -2.6rem;
    top: 1.55rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--cream);
    border: 5px solid var(--red);
}

.route-end {
    background: var(--night);
    color: var(--on-dark);
    border-color: var(--night);
}

.route-end h2 {
    color: #fff;
}

.route-end .route-dot {
    background: var(--ember);
    border-color: var(--night);
    box-shadow: 0 0 0 5px var(--ember);
}

.route-end address {
    margin-bottom: 1.2rem;
    font-style: normal;
}

.route-way {
    padding: 1.6rem 0 1.6rem 0.4rem;
}

.route-km {
    display: block;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(3rem, 2rem + 4vw, 4.6rem);
    line-height: 1;
    color: var(--red);
}

.route-way p {
    margin: 0.2rem 0 0;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.3rem;
}

.route-side .framed {
    transform: rotate(2deg);
    margin-bottom: 1.6rem;
}

.access-note {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
}

.access-note img {
    width: 48px;
}

/* contact */
.duo {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .duo {
        grid-template-columns: 1fr 1.2fr;
    }
}

.card {
    padding: clamp(1.4rem, 4vw, 2.4rem);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.card h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
    color: var(--red);
}

.card-dark {
    background:
        radial-gradient(70% 70% at 100% 100%, rgba(232, 135, 58, 0.3), transparent 70%),
        var(--night);
    border-color: var(--night);
    color: var(--on-dark);
}

.card-dark .eyebrow {
    color: var(--ember-soft);
}

.card-dark a {
    color: var(--ember-soft);
}

.card-dark a:hover {
    color: #fff;
}

.big-phone-line {
    margin-bottom: 1.6rem;
}

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

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

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

.contact-list dt {
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
}

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

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

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(137, 24, 28, 0.2);
}

.contact-form ul {
    margin: 0.3rem 0 0;
    padding-left: 1.1rem;
    color: var(--red);
}

.form-hint {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-sent {
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: #e6efd9;
    color: var(--green-2);
}

.contact-sent strong {
    display: block;
}

/* call band */
.call-band {
    padding-block: clamp(3rem, 7vw, 5rem);
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(232, 135, 58, 0.35), transparent 70%),
        var(--red);
    color: #fff;
}

.call-inner {
    display: grid;
    gap: 1.6rem;
    align-items: center;
}

.call-band h2 {
    color: #fff;
}

.call-band p {
    max-width: 56ch;
    margin: 0;
    color: #fff;
}

.call-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.6rem;
}

.call-band .big-phone {
    color: #fff;
}

.call-band .big-phone:hover {
    color: var(--sun);
}

.call-band .btn-ghost {
    color: #fff;
}

.call-band .btn-ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--red);
}

@media (min-width: 900px) {
    .call-inner {
        grid-template-columns: 1.3fr 1fr;
    }

    .call-actions {
        justify-content: flex-end;
    }
}

/* footer */
.foot {
    padding-top: 3.5rem;
    background: var(--night);
    color: var(--on-dark-muted);
}

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

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

.foot h2 {
    margin-bottom: 0.7rem;
    font-family: var(--text);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ember-soft);
}

.foot-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 760px) {
    .foot-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

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

@media (min-width: 1100px) {
    .foot-grid {
        grid-template-columns: 1.5fr 1fr 1fr 0.7fr;
    }

    .foot-brand {
        grid-column: auto;
    }
}

.foot-logo {
    width: min(100%, 360px);
    margin-bottom: 0.8rem;
}

.foot address {
    font-style: normal;
}

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

.foot-small {
    font-size: 0.92rem;
}

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

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

.foot-bottom {
    margin-top: 2.5rem;
    padding-block: 1.2rem 1.6rem;
    border-top: 1px solid rgba(248, 239, 223, 0.15);
    font-size: 0.9rem;
}

.foot-bottom p {
    margin: 0;
}

/* scroll reveal: finished state without support */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .reveal {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 28%;
        }
    }
}

/* 404 */
.not-found {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem 1.25rem;
    background:
        radial-gradient(60% 50% at 50% 100%, rgba(232, 135, 58, 0.35), transparent 70%),
        var(--night);
    color: var(--on-dark);
    text-align: center;
}

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

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

.not-found h1 {
    font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
    color: #fff;
}

.not-found h2 {
    margin-top: 2.5rem;
    font-size: 1.6rem;
    color: #fff;
}

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

@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;
    }
}
