/* Le Nid des Huppes: Atlantic limestone. Cream of the farmhouse stone, the navy of the Atlantic, the
   orange of the hoopoe and of the original's header band. Fraunces for display, Figtree for text. */

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

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

:root {
    --cream: #f6efe4;
    --paper: #fffaf2;
    --sand: #ead9c0;
    --navy: #14263f;
    --navy-2: #1d3352;
    --text: #1f2a37;
    --muted: #55606e;
    --orange: #e07a1f;
    --orange-text: #a24c0a;
    --peach: #f6b77a;
    --sage: #3d5e54;
    --on-navy: #f6efe4;
    --on-navy-muted: #c9d3df;
    --radius: 22px;
    --shadow: 0 18px 40px -18px rgba(20, 38, 63, .45);
    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

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

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

a {
    color: var(--orange-text);
    text-underline-offset: .18em;
}

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

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

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

h1 {
    font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.6rem);
}

h2 {
    font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0 0 1em;
}

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

.skip {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 50;
    padding: .6rem 1rem;
    background: var(--navy);
    color: var(--on-navy);
    border-radius: 10px;
}

.skip:focus {
    top: 1rem;
}

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

.kicker {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange-text);
    margin-bottom: .8rem;
}

.lead {
    font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
    max-width: 38em;
}

/* ---- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 48px;
    padding: .75rem 1.4rem;
    border: 2px solid var(--orange);
    border-radius: 999px;
    background: var(--orange);
    color: var(--navy);
    font: 700 1rem/1.2 var(--body);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(224, 122, 31, .8);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--on-navy);
    border-color: rgba(246, 239, 228, .55);
}

.btn-ghost:hover {
    background: rgba(246, 239, 228, .1);
    box-shadow: none;
}

.btn-light {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--on-navy);
}

.text-link {
    font-weight: 700;
}

/* ---- header */

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 239, 228, .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(20, 38, 63, .1);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.4rem;
    padding: .7rem 0;
}

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

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
    margin-left: auto;
}

.nav a {
    padding: .5rem .8rem;
    border-radius: 999px;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.nav a:hover {
    background: rgba(20, 38, 63, .07);
}

.nav a[aria-current="page"] {
    background: var(--navy);
    color: var(--on-navy);
}

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

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

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

.call {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: var(--orange);
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    text-decoration: none;
    filter: brightness(1.05);
}

@media (max-width: 880px) {
    .top-row {
        gap: .5rem .8rem;
    }

    .brand img {
        width: 170px;
    }

    .call {
        margin-left: auto;
    }

    .nav {
        order: 5;
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .nav a {
        padding: .45rem .6rem;
    }

    .lang {
        order: 4;
    }
}

/* ---- hero */

.hero {
    position: relative;
    overflow: hidden;
    color: var(--on-navy);
    background:
        radial-gradient(60rem 30rem at 85% 110%, rgba(224, 122, 31, .55), transparent 60%),
        radial-gradient(40rem 26rem at 10% -10%, rgba(61, 94, 84, .6), transparent 65%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(5rem, 4rem + 4vw, 8rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: center;
}

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

.hero h1 em {
    display: block;
    font-style: italic;
    font-weight: 500;
    color: var(--peach);
}

.hero .kicker {
    color: var(--peach);
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.8rem;
}

.page-hero .hero-actions .btn-ghost {
    color: var(--navy);
    border-color: rgba(20, 38, 63, .35);
}

.page-hero .hero-actions .btn-ghost:hover {
    background: rgba(20, 38, 63, .06);
}

.hero-photos {
    position: relative;
    min-height: 500px;
}

.polaroid {
    margin: 0;
    padding: 10px 10px 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.polaroid img {
    border-radius: 2px;
    width: 100%;
}

.polaroid figcaption {
    padding-top: .5rem;
    font-family: var(--display);
    font-style: italic;
    color: var(--navy);
    text-align: center;
}

.hero-photos .polaroid {
    position: absolute;
    width: min(320px, 70%);
    animation: drop .6s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-photos .tilt-l {
    top: 0;
    left: 0;
    rotate: -6deg;
}

.hero-photos .tilt-l figcaption {
    text-align: left;
    padding-left: .4rem;
}

.hero-photos .tilt-r {
    right: 0;
    bottom: 0;
    rotate: 5deg;
    animation-delay: .1s;
    z-index: 1;
}

@keyframes drop {
    from {
        translate: 0 -24px;
    }
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 60px;
    fill: var(--cream);
}

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

    .hero-photos {
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        align-items: start;
    }

    .hero-photos .polaroid {
        position: static;
        width: auto;
    }

    .hero-photos .tilt-r {
        margin-top: 1.5rem;
    }
}

/* ---- facts */

.facts {
    padding: 1rem 0 0;
}

.facts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.facts-row p {
    margin: 0;
    padding: 1.3rem 1.4rem;
    background: var(--paper);
    border-radius: var(--radius);
    border: 1px solid rgba(20, 38, 63, .08);
    color: var(--muted);
}

.facts-row strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem);
    line-height: 1;
    color: var(--orange-text);
    margin-bottom: .35rem;
}

@media (max-width: 720px) {
    .facts-row {
        grid-template-columns: 1fr;
    }
}

/* ---- bands */

.band {
    padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0;
}

.band-tight {
    padding-top: 2.5rem;
}

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

/* ---- room cards (home) */

.room-cards {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.2rem;
    margin-top: 2rem;
}

.room-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--on-navy);
    text-decoration: none;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.room-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: scale .6s ease;
}

.room-card:hover img {
    scale: 1.04;
}

.room-card-body {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    gap: .2rem;
    padding: 3rem 1.3rem 1.2rem;
    background: linear-gradient(to top, rgba(20, 38, 63, .95) 20%, rgba(20, 38, 63, .75) 60%, transparent);
}

.room-name {
    font-family: var(--display);
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    font-weight: 600;
}

.room-facts {
    color: var(--on-navy-muted);
    font-size: .95rem;
}

.tag {
    justify-self: start;
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 999px;
    background: var(--peach);
    color: var(--navy);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.room-card.room-vague {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.room-card.room-voyage {
    grid-column: 2;
    grid-row: 1;
}

.room-card.room-dune {
    grid-column: 2;
    grid-row: 2;
}

.room-card.room-vague img {
    aspect-ratio: auto;
    min-height: 100%;
}

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

    .room-card.room-vague,
    .room-card.room-voyage,
    .room-card.room-dune {
        grid-column: auto;
        grid-row: auto;
    }

    .room-card.room-vague img {
        aspect-ratio: 4 / 3;
    }
}

/* ---- around: the rings */

.around {
    padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0;
    background:
        radial-gradient(30rem 20rem at 90% 10%, rgba(255, 250, 242, .7), transparent 70%),
        var(--sand);
}

.around-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: center;
}

.places {
    list-style: none;
    margin: 1.2rem 0;
    padding: 0;
    display: grid;
    gap: .55rem;
    counter-reset: place;
}

.places li {
    position: relative;
    padding-left: 2.2rem;
    counter-increment: place;
}

.places li::before {
    content: counter(place);
    position: absolute;
    left: 0;
    top: .1rem;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: var(--navy);
    color: var(--on-navy);
    font-size: .8rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.places strong {
    color: var(--navy);
}

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

.around-note {
    font-size: .9rem;
    color: #4a5462;
}

.rings {
    width: 100%;
    height: auto;
    overflow: visible;
    font-family: var(--body);
}

.ring-lines circle {
    stroke: var(--navy);
    stroke-width: 2;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    opacity: .7;
}

.ring-lines circle:nth-child(1) {
    stroke-dasharray: .006 .01;
    opacity: .55;
}

.ring-km text {
    font-size: 18px;
    font-weight: 800;
    fill: var(--orange-text);
    letter-spacing: .04em;
}

.ring-places circle {
    fill: var(--orange);
    stroke: var(--paper);
    stroke-width: 3;
}

.ring-places text {
    font-size: 21px;
    font-weight: 700;
    fill: var(--navy);
    paint-order: stroke;
    stroke: var(--sand);
    stroke-width: 6px;
    stroke-linejoin: round;
}

.nest circle {
    fill: var(--orange);
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .ring-lines circle:not(:nth-child(1)) {
            stroke-dasharray: 1;
            animation: draw linear both;
            animation-timeline: view();
            animation-range: entry 10% cover 45%;
        }

        .ring-lines circle:nth-child(1) {
            animation: fade linear both;
            animation-timeline: view();
            animation-range: entry 20% cover 45%;
        }

        .ring-places g,
        .ring-km text {
            animation: fade linear both;
            animation-timeline: view();
            animation-range: entry calc(25% + var(--d, 0) * 3%) cover 50%;
        }
    }
}

@keyframes draw {
    from {
        stroke-dashoffset: 1;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }
}

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

    .rings {
        max-width: 560px;
        margin-inline: auto;
    }
}

/* ---- stay */

.stay {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 1rem 3rem;
    align-items: start;
}

.stay-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.stay-list li {
    padding: 1.3rem 1.5rem 1.2rem 4.2rem;
    background: var(--paper);
    border-radius: var(--radius);
    position: relative;
    border: 1px solid rgba(20, 38, 63, .08);
}

.stay-list li::before {
    content: "";
    position: absolute;
    left: 1.4rem;
    top: 1.45rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50% 50% 50% 0;
    background: var(--orange);
    rotate: -45deg;
}

.stay-list h3 {
    margin-bottom: .3rem;
}

.stay-list p {
    margin: 0;
}

.stay-end {
    grid-column: 1 / -1;
    font-family: var(--display);
    font-style: italic;
    font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem);
    color: var(--sage);
    max-width: 36em;
    margin-top: 1.5rem;
}

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

/* ---- call band */

.call-band {
    background: var(--orange);
    color: var(--navy);
    padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0;
}

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

.call-band p {
    margin: 0;
}

.call-band-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.call-band-phones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.4rem;
}

.big-phone {
    font-family: var(--display);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
}

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

/* ---- inner pages */

.page-hero {
    padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 1rem;
    background:
        radial-gradient(40rem 18rem at 100% 0, rgba(224, 122, 31, .18), transparent 70%),
        var(--cream);
}

.room-jump {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.5rem;
}

.room-jump a {
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 2px solid var(--navy);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.room-jump a:hover {
    background: var(--navy);
    color: var(--on-navy);
}

.room-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: clamp(1.5rem, 1rem + 3vw, 4rem);
    align-items: start;
}

.room-size {
    font-family: var(--display);
    font-size: 2.4rem;
    line-height: 1;
    color: var(--orange-text);
}

.room-facts-list {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .4rem;
}

.room-facts-list li {
    padding-left: 1.4rem;
    position: relative;
}

.room-facts-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: var(--orange);
}

.room-photos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .9rem;
}

.room-photos .polaroid {
    padding: 6px;
    transition: rotate .3s ease, translate .3s ease;
}

.room-photos .polaroid:nth-child(odd) {
    rotate: -1.2deg;
}

.room-photos .polaroid:nth-child(even) {
    rotate: 1.4deg;
}

.room-photos .polaroid:hover {
    rotate: 0deg;
    translate: 0 -4px;
}

.room-photos .room-photo-main {
    grid-column: span 2;
    grid-row: span 2;
}

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

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

/* ---- the price grid (a document) */

.doc {
    max-width: 860px;
}

.doc-figure {
    margin: 1.5rem 0;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.doc-figure figcaption {
    padding-top: .6rem;
    font-size: .9rem;
    color: var(--muted);
}

.doc-text {
    background: var(--paper);
    border-radius: var(--radius);
    border: 1px solid rgba(20, 38, 63, .1);
    padding: 1rem 1.4rem;
}

.doc-text summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
    min-height: 32px;
}

.doc-text h3 {
    margin-top: 1.2rem;
    font-size: 1.15rem;
}

/* ---- contact */

.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
    border: 1px solid rgba(20, 38, 63, .08);
    box-shadow: 0 10px 30px -22px rgba(20, 38, 63, .5);
}

.big-phone-line {
    display: grid;
    gap: .3rem;
    margin-bottom: 1.5rem;
}

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

.contact-list dt {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--orange-text);
}

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

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

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: .3rem;
    color: var(--navy);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .8rem .9rem;
    margin-bottom: 1rem;
    border: 2px solid rgba(20, 38, 63, .25);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 122, 31, .3);
}

.contact-form ul {
    margin: 0 0 .5rem;
    padding: 0;
    list-style: none;
    color: #9b1c1c;
    font-weight: 700;
}

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

.contact-sent {
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: #e2efe9;
    color: #1d3c33;
}

.contact-sent strong {
    display: block;
}

/* ---- footer */

.foot {
    background: var(--navy);
    color: var(--on-navy-muted);
    padding: 3.5rem 0 1.5rem;
}

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

.foot h2 {
    font-family: var(--body);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--on-navy);
    margin-bottom: .8rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 2rem;
}

.foot-logo {
    width: 240px;
    margin-bottom: .6rem;
}

.foot-kind {
    color: var(--peach);
    font-weight: 700;
    margin-bottom: .5rem;
}

.foot address {
    font-style: normal;
}

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

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

.foot-links {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .4rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.badges a {
    display: grid;
    place-items: center;
    padding: 6px;
    background: #fff;
    border-radius: 10px;
}

.foot-bottom {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(246, 239, 228, .15);
    font-size: .9rem;
}

.foot-bottom p {
    margin: 0;
}

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

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

/* ---- 404 */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
    text-align: center;
}

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

.not-found img {
    width: 260px;
    margin: 0 auto 2rem;
}

.not-found [lang="en"] {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(20, 38, 63, .15);
}

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

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

.lightbox {
    --lb-bg: rgba(12, 22, 38, .94);
    --lb-text: #f6efe4;
    --lb-accent: #f6b77a;
    --lb-accent-soft: rgba(246, 183, 122, .18);
}

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