/* Siebenschläfer — look carried over from the WordPress site (see
   docs/design.md). No build step: plain CSS, one local font family. */

@font-face {
    font-family: "Hanken Grotesk";
    src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Hanken Grotesk";
    src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Colours of the existing site */
    --ss-stone: #444444;   /* dark bands, header, footer, text on light bands */
    --ss-sand: #e0dad2;    /* warm bands */
    --ss-chalk: #f4f4f4;   /* pale bands (prices, forms) */
    --ss-snow: #ffffff;    /* text on dark bands */
    --ss-ash: #c2c2c2;     /* text links on dark bands: 5.4:1 on stone (live: #747474, 2.1:1) */

    /* Type: one family, wide tracking, light body (300; the live site uses 200) */
    --ss-font: "Hanken Grotesk", system-ui, sans-serif;
    --ss-track: 0.1em;
    --ss-track-wide: 0.15em;
    --ss-text: 0.9375rem;                         /* 15px */
    --ss-small: 0.75rem;                          /* 12px */
    --ss-h2: 1.375rem;                            /* 22px */
    --ss-h1: clamp(1.75rem, 4.15vw, 3.75rem);     /* 28–60px */

    /* Space */
    --ss-gutter: max(1.25rem, 8vw);
    --ss-band: clamp(4.5rem, 12vw, 10.5rem);
    --ss-measure: 44rem;                          /* about 75 characters per line */
    --ss-header: 6rem;
    --ss-ease: cubic-bezier(0.23, 1, 0.32, 1);

    /* Colours of the band an element sits in (buttons invert them) */
    --ss-fg: var(--ss-snow);
    --ss-bg: var(--ss-stone);
}

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

html {
    scroll-padding-top: var(--ss-header);
    background: var(--ss-stone);
}

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

body {
    margin: 0;
    font-family: var(--ss-font);
    font-size: var(--ss-text);
    font-weight: 300;
    line-height: 2;
    letter-spacing: var(--ss-track);
    color: var(--ss-snow);
    background: var(--ss-stone);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    text-wrap: balance;
}

h2 {
    font-size: var(--ss-h2);
    line-height: 1.5;
}

.heox-skip-link {
    position: absolute;
    left: -999rem;
    z-index: 30;
    padding: 0.5rem 1rem;
    background: var(--ss-snow);
    color: var(--ss-stone);
}

.heox-skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.heox-main {
    display: block;
    padding-top: var(--ss-header);
}

/* ---------- Link button: uppercase, dashed underline ---------- */

.ss-link {
    display: inline-block;
    padding: 0.7rem 0;
    border: 0;
    border-bottom: 1px dashed currentColor;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: var(--ss-track-wide);
    text-decoration: none;
    text-transform: uppercase;
    text-wrap: balance;
    cursor: pointer;
}

@media (hover: hover) {
    .ss-link:hover {
        border-bottom-style: solid;
    }
}

/* ---------- Button: the main action (enquiry), filled ---------- */

.ss-button,
.heox-enquiry__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.4rem;
    border: 1px solid var(--ss-fg);
    border-radius: 0;
    background: var(--ss-fg);
    color: var(--ss-bg);
    font: inherit;
    font-size: var(--ss-small);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: var(--ss-track-wide);
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 150ms ease-out, color 150ms ease-out;
}

@media (hover: hover) {
    .ss-button:hover,
    .heox-enquiry__submit:hover {
        background: transparent;
        color: var(--ss-fg);
    }
}

.ss-button:active,
.heox-enquiry__submit:active {
    transform: scale(0.98);
}

/* ---------- Header ---------- */

.ss-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    height: var(--ss-header);
    padding: 0 1.25rem;
    background: var(--ss-stone);
    font-size: var(--ss-small);
}

.ss-header__menu {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.875rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 800;
    letter-spacing: var(--ss-track-wide);
    text-transform: uppercase;
    cursor: pointer;
}

.ss-header__logo img {
    width: min(300px, 46vw);
}

.ss-header__menu img {
    width: 1.75rem;
    height: 1.75rem;
}

.ss-header__logo {
    display: block;
}

.ss-header__cta {
    justify-self: end;
}

/* ---------- Menu (native popover) ---------- */

.ss-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: var(--ss-header) var(--ss-gutter) 3rem;
    border: 0;
    overflow: auto;
    background: var(--ss-stone);
    color: var(--ss-snow);
}

.ss-nav::backdrop {
    background: var(--ss-stone);
}

/* open: pages on the left, contact at the bottom right (display only
   while open, otherwise the closed popover would show) */
.ss-nav:popover-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    align-items: end;
    gap: 2.5rem clamp(2rem, 6vw, 6rem);
}

.ss-nav__close {
    position: absolute;
    top: 2.1rem;
    left: 1.25rem;
    font-size: var(--ss-small);
}

.ss-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--ss-h2);
    font-weight: 400;
    line-height: 2.2;
    text-transform: uppercase;
}

.ss-nav__list a {
    text-decoration: none;
}

.ss-nav__list a[aria-current="page"] {
    border-bottom: 1px dashed currentColor;
}

.ss-nav__lang {
    position: absolute;
    top: 2.1rem;
    right: 1.25rem;
    font-size: var(--ss-small);
}

.ss-nav__contact {
    margin: 0;
    font-style: normal;
    line-height: 2.2;
}

.ss-nav__contact p {
    margin: 0;
}

.ss-nav__label {
    font-size: var(--ss-small);
    font-weight: 800;
    letter-spacing: var(--ss-track-wide);
    text-transform: uppercase;
}

.ss-nav__contact a {
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ss-nav__phone {
    font-size: var(--ss-h2);
    font-weight: 400;
}

@media (hover: hover) {
    .ss-nav__list a:hover,
    .ss-nav__contact a:hover {
        border-bottom: 1px dashed currentColor;
    }
}

/* ---------- Bands ---------- */

.ss-band--dark {
    background: var(--ss-stone);
    color: var(--ss-snow);
}

.ss-band--light {
    --ss-fg: var(--ss-stone);
    --ss-bg: var(--ss-sand);
    background: var(--ss-sand);
    color: var(--ss-stone);
}

.ss-band--pale {
    --ss-fg: var(--ss-stone);
    --ss-bg: var(--ss-chalk);
    background: var(--ss-chalk);
    color: var(--ss-stone);
}

/* A block without its own background (faq, form) continues the band above
   it; the overlap hides the hairline gap browsers leave between them. */
.ss-band--faq,
.ss-band--enquiry {
    margin-top: -1px;
}

/* ---------- Hero ---------- */

.ss-hero {
    padding: 3.75rem 0 3.5rem;
}

.ss-hero__image {
    position: relative;
    margin-inline: var(--ss-gutter);
}

/* The first line of the H1 sits on the lower edge of the image. A shade in
   the band colour keeps it readable on bright images (snow, white rooms:
   white on white measured 1.4:1). On dark images it is barely visible. */
.ss-hero__image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: calc(var(--ss-h1) * 3.25);
    background: linear-gradient(to top, rgb(68 68 68 / 0.62), rgb(68 68 68 / 0.52) 32%, transparent);
    pointer-events: none;
}

/* The image gives way on low screens so the title stays in the first
   screen: header, top padding and the part of the title below the image. */
.ss-hero__image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 12rem;
    max-height: calc(100svh - var(--ss-header) - 3.75rem - var(--ss-h1) * 1.75 - 2rem);
    object-fit: cover;
}

.ss-hero__title {
    position: relative;
    margin: calc(var(--ss-h1) * -1.25) var(--ss-gutter) 0 calc(var(--ss-gutter) * 2.05);
    font-size: var(--ss-h1);
    line-height: 1.5;
}

.ss-hero--plain .ss-hero__title {
    margin-top: 3rem;
}

.ss-hero__title span {
    display: block;
}

.ss-hero__down {
    display: block;
    width: 3rem;
    margin: 1rem auto 0;
}

/* ---------- Section ---------- */

.ss-section__body {
    padding: var(--ss-band) var(--ss-gutter);
}

.ss-section__media + .ss-section__body {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.ss-section__body > * + * {
    margin-top: 1.5rem;
}

.ss-text {
    max-width: var(--ss-measure);
}

.ss-text p,
.ss-text ul {
    margin: 0;
}

.ss-text > * + * {
    margin-top: 1.25rem;
}

/* Lists keep the "//" of the old site as their marker; it is decoration,
   so screen readers get an empty alternative text. */
.ss-text ul,
.heox-faq__answer ul,
.ss-prices__note ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ss-text li,
.heox-faq__answer li,
.ss-prices__note li {
    position: relative;
    padding-left: 1.9em;
}

.ss-text li::before,
.heox-faq__answer li::before,
.ss-prices__note li::before {
    content: "//";
    content: "//" / "";
    position: absolute;
    left: 0;
}

.ss-text li + li {
    margin-top: 0.35rem;
}

.ss-text strong {
    font-weight: 600;
}

/* links in running text: dashed underline, like the link buttons */
.ss-text a,
.heox-faq__answer a,
.ss-prices__note a {
    text-decoration: underline dashed 1px;
    text-underline-offset: 0.35em;
}

.ss-text a {
    color: var(--ss-ash);
    font-weight: 400;
}

.ss-band--light .ss-text a,
.ss-band--pale .ss-text a {
    color: inherit;
    font-weight: 600;
}

@media (hover: hover) {
    .ss-text a:hover,
    .heox-faq__answer a:hover,
    .ss-prices__note a:hover {
        text-decoration-style: solid;
    }
}

.ss-section__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2.5rem;
    margin-bottom: 0;
}

.ss-section__media figure {
    margin: 0;
}

.ss-section__media img {
    width: 100%;
}

/* one image with text: wide image inside the gutters */
.ss-section--single .ss-section__media {
    padding: var(--ss-band) var(--ss-gutter) 0;
}

/* one image without text: edge to edge */
.ss-section--bleed .ss-section__media img {
    height: min(75vh, 60vw);
    min-height: 16rem;
    object-fit: cover;
}

/* two images: overlapping collage, the Sterndl sits on its edge */
.ss-section--duo .ss-section__media {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    padding: var(--ss-band) var(--ss-gutter) 0;
}

.ss-section--duo figure:first-child {
    grid-column: 2 / 8;
    grid-row: 1;
    z-index: 1;
}

.ss-section--duo figure:last-child {
    grid-column: 7 / 11;
    grid-row: 1;
    margin-bottom: 14%;
}

.ss-section--duo figure:last-child img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.ss-section--duo .ss-section__media::after {
    content: "";
    grid-column: 11;
    grid-row: 1;
    align-self: center;
    width: 1.5rem;
    aspect-ratio: 1;
    margin-left: -0.75rem;
    background: url("../img/icon-stern.png") center / contain no-repeat;
    z-index: 2;
}

.ss-band--light .ss-section--duo .ss-section__media::after,
.ss-band--pale .ss-section--duo .ss-section__media::after {
    filter: invert(0.73);
}

.ss-section--duo .ss-section__body:has(.ss-section__buttons:only-child) {
    padding-top: 1.5rem;
}

.ss-section--duo .ss-section__buttons:only-child {
    justify-content: center;
}

/* one portrait image: beside the text */
.ss-section--side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 36vw);
    gap: 0 clamp(2rem, 6vw, 6rem);
    align-items: center;
    padding: var(--ss-band) var(--ss-gutter);
}

.ss-section--side .ss-section__body {
    padding: 0;
}

/* three and more: gallery. Rows of three, the last row fills the width;
   four images make two rows of two. */
.ss-section--grid .ss-section__body {
    padding-bottom: 0;
}

.ss-section--grid .ss-section__media {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: clamp(2.5rem, 5vw, 4.5rem) var(--ss-gutter) var(--ss-band);
}

.ss-section--grid .ss-section__media:first-child {
    padding-top: var(--ss-band);
}

.ss-section--grid figure {
    flex: 1 1 calc(33.333% - 0.5rem);
    height: clamp(9rem, 24vw, 24rem);
}

.ss-section--grid .ss-section__media:has(figure:nth-child(4):last-child) figure {
    flex-basis: calc(50% - 0.5rem);
}

.ss-section--grid figure a,
.ss-section--grid figure picture {
    display: block;
    height: 100%;
}

.ss-section--grid .ss-section__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (hover: hover) {
    .ss-section--grid figure a {
        overflow: hidden;
    }

    .ss-section--grid figure img {
        transition: transform 300ms var(--ss-ease);
    }

    .ss-section--grid figure a:hover img {
        transform: scale(1.03);
    }
}

/* enlarged gallery image (assets/js/site.js) */
.ss-zoom {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 4.5rem 1rem 1.5rem;
    border: 0;
    background: rgb(68 68 68 / 0.97);
    color: var(--ss-snow);
}

.ss-zoom[open] {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    align-items: center;
    gap: 0.5rem;
}

.ss-zoom::backdrop {
    background: var(--ss-stone);
}

.ss-zoom__image {
    grid-column: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ss-zoom__close {
    position: absolute;
    top: 1.5rem;
    right: 1.25rem;
    font-size: var(--ss-small);
}

.ss-zoom__nav {
    width: 3rem;
    height: 3rem;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.ss-zoom__nav::before {
    content: "";
    display: block;
    width: 0.9rem;
    height: 0.9rem;
    margin: auto;
    border: solid currentColor;
    border-width: 0 0 1px 1px;
    transform: rotate(45deg);
}

.ss-zoom__nav--next {
    grid-column: 3;
}

.ss-zoom__nav--next::before {
    transform: rotate(-135deg);
}

/* image as background */
.ss-section--background {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(100vh, 62rem);
    color: var(--ss-snow);
    isolation: isolate;
}

.ss-section--background .ss-section__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.ss-section--background .ss-section__media figure,
.ss-section--background .ss-section__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ss-section--background .ss-section__media figure + figure {
    display: none;
}

/* Stronger towards the lower edge, where the text stands: white text on
   a snow image needs it (flat 45 % measured 2.9:1), dark images hardly
   change. */
.ss-section--background .ss-section__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(68 68 68 / 0.72), rgb(68 68 68 / 0.72) 35%, rgb(68 68 68 / 0.45) 80%);
}

.ss-section--background .ss-section__body {
    padding-bottom: clamp(4rem, 10vw, 9rem);
}

.ss-section--background .ss-text a {
    color: inherit;
}

/* ---------- Enquiry as a conversation (pilot, ADR 004) ---------- */

/* The offer above the form and, once started, the lead-bot widget. Same
   width and gutter as the form below. */
.ss-assistant {
    max-width: calc(70rem + 2 * var(--ss-gutter));
    padding: 0 var(--ss-gutter) 3rem;
}

.ss-assistant:not(:has(> :not([hidden], script))) {
    display: none;
}

.ss-assistant__offer {
    display: flex;
    gap: clamp(1rem, 4vw, 3rem);
    align-items: center;
    padding: 2rem 0;
    border-block: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}

.ss-assistant__offer[hidden] {
    display: none;
}

/* The dormouse waves (the image animates itself); text and button stand
   to its right at every width. */
.ss-assistant__offer img {
    flex: none;
    width: clamp(7rem, 22vw, 13rem);
    height: auto;
}

.ss-assistant__offer p {
    max-width: 32rem;
    margin: 0;
}

.ss-assistant__offer p + p {
    margin-top: 1.25rem;
}

.ss-assistant__text {
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    line-height: 1.4;
}

.ss-assistant__form {
    padding-bottom: 0.35em;
    border-bottom: 1px dashed currentColor;
    color: inherit;
    font-size: var(--ss-small);
    font-weight: 800;
    letter-spacing: var(--ss-track-wide);
    text-decoration: none;
    text-transform: uppercase;
}

@media (hover: hover) {
    .ss-assistant__form:hover {
        border-bottom-style: solid;
    }
}

/* With the widget script the link folds the form out and in. */
.ss-assistant__form[aria-expanded]::after {
    content: "";
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    margin-left: 0.7em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.2em) rotate(45deg);
    transition: transform 200ms ease-out;
}

.ss-assistant__form[aria-expanded="true"]::after {
    transform: translateY(0.1em) rotate(-135deg);
}

/* The form below the offer, once it is folded out. */
.ss-band:has(.ss-assistant__form[aria-expanded]) .heox-block--enquiry-form {
    padding-top: 1rem;
}

/* Narrow screens: the dormouse beside text and button, the link to the
   form on its own line below, so it does not break into three. */
@media (max-width: 40rem) {
    .ss-assistant__offer {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }

    .ss-assistant__offer > div {
        display: contents;
    }

    .ss-assistant__offer img {
        grid-row: 1 / span 2;
    }

    .ss-assistant__offer p + p {
        margin-top: 0;
    }

    .ss-assistant__offer p:last-child {
        grid-column: 1 / -1;
    }
}

.ss-assistant__back {
    margin: 1.5rem 0 0;
}

.ss-assistant__back button {
    padding: 0 0 0.35em;
    border: 0;
    border-bottom: 1px dashed currentColor;
    background: none;
    color: inherit;
    font: inherit;
    font-size: var(--ss-small);
    font-weight: 800;
    letter-spacing: var(--ss-track-wide);
    text-transform: uppercase;
    cursor: pointer;
}

.ss-assistant lead-bot {
    display: block;
}

/* ---------- Enquiry form: one age field per child ---------- */

.ss-ages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 1.75rem 2.5rem;
}

.ss-ages p {
    margin: 0;
}

/* ---------- Enquiry form: partner houses for a larger party (ADR 005) ---------- */

.ss-partners p {
    max-width: var(--ss-measure);
}

.ss-partners__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 !important;
}

.ss-partners__options label {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.4rem;
    border: 1px solid currentColor;
    font-size: var(--ss-small);
    font-weight: 800;
    letter-spacing: var(--ss-track-wide);
    text-transform: uppercase;
    cursor: pointer;
}

/* The radio stays in the page for keyboard and screen reader, the label
   shows the choice. */
.ss-partners__options input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.ss-partners__options label:has(input:checked) {
    background: var(--ss-fg);
    color: var(--ss-bg);
}

.ss-partners__options label:has(input:focus-visible) {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.ss-partners__note {
    font-size: var(--ss-small);
}

/* ---------- FAQ / accordion (heox faq block) ---------- */

.ss-band--faq,
.ss-band--prices {
    padding: 0 var(--ss-gutter) var(--ss-band);
}

/* the section above introduces the list: keep them close */
.ss-band:has(+ .ss-band--faq) .ss-section__body,
.ss-band:has(+ .ss-band--prices) .ss-section__body,
.ss-band:has(+ .ss-band--enquiry-form) .ss-section__body {
    padding-bottom: 3rem;
}

.heox-faq__item,
.ss-prices__season {
    border-bottom: 1px solid currentColor;
}

.heox-faq__question,
.ss-prices__title {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding: 1.1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.heox-faq__question::-webkit-details-marker,
.ss-prices__title::-webkit-details-marker {
    display: none;
}

.heox-faq__question::before,
.ss-prices__title::before {
    content: "";
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: translateY(-0.2rem) rotate(45deg);
    transition: transform 200ms var(--ss-ease);
}

.heox-faq__item[open] .heox-faq__question::before,
.ss-prices__season[open] .ss-prices__title::before {
    transform: translateY(0.1rem) rotate(-135deg);
}

.heox-faq__answer {
    max-width: calc(var(--ss-measure) + 1.8rem);
    padding: 0 0 1.5rem 1.8rem;
}

.heox-faq__answer p {
    margin: 0;
}

.heox-faq__answer > * + * {
    margin-top: 1rem;
}

.heox-faq__answer strong {
    font-weight: 600;
}

/* ---------- Price table ---------- */

.ss-prices__body {
    max-width: 58rem;
    padding: 0 0 2rem 1.8rem;
}

.ss-prices__note {
    margin-bottom: 1rem;
}

.ss-prices__note p {
    margin: 0;
}

.ss-prices__note strong {
    font-weight: 600;
}

.ss-prices__note a,
.heox-faq__answer a {
    color: inherit;
}

.ss-prices__table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}

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

.ss-prices__table th,
.ss-prices__table td {
    padding: 0.8rem 0 0.8rem 1.5rem;
    border-bottom: 1px solid rgb(68 68 68 / 0.25);
    font-weight: 300;
    text-align: right;
    vertical-align: baseline;
}

.ss-band--dark .ss-prices__table th,
.ss-band--dark .ss-prices__table td {
    border-bottom-color: rgb(255 255 255 / 0.3);
}

.ss-prices__table th:first-child {
    padding-left: 0;
    text-align: left;
}

.ss-prices__table thead th {
    font-size: var(--ss-small);
    font-weight: 800;
    letter-spacing: var(--ss-track-wide);
    text-transform: uppercase;
    vertical-align: bottom;
}

.ss-prices__table tbody tr:last-child > * {
    border-bottom: 0;
}

.ss-prices__table td:nth-child(2) {
    font-weight: 500;
}

/* ---------- Closing band: the way to the enquiry ---------- */

.ss-closing {
    padding: clamp(3.5rem, 8vw, 7rem) var(--ss-gutter);
}

.ss-closing__text {
    max-width: var(--ss-measure);
    margin: 1rem 0 0;
}

.ss-closing__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2.5rem;
    margin: 2rem 0 0;
}

/* ---------- Enquiry form ---------- */

.heox-block--enquiry-form {
    padding: 0 var(--ss-gutter) var(--ss-band);
}

.heox-enquiry {
    display: grid;
    gap: 3rem;
    max-width: 70rem;
}

.heox-enquiry__group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.heox-enquiry__group legend {
    margin-bottom: 1.5rem;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    text-transform: uppercase;
}

.heox-enquiry__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1.75rem 2.5rem;
}

.heox-enquiry p {
    margin: 0;
}

.heox-enquiry__field label {
    display: block;
    font-size: var(--ss-small);
    font-weight: 800;
    letter-spacing: var(--ss-track-wide);
    text-transform: uppercase;
}

.heox-enquiry input:not([type="checkbox"]),
.heox-enquiry textarea {
    width: 100%;
    padding: 0.5rem 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: var(--ss-track);
}

.heox-enquiry__field--wide {
    grid-column: 1 / -1;
}

/* the date picker icon follows the band: light icon on dark bands */
.heox-enquiry input[type="date"] {
    min-height: 2.6rem;
    color-scheme: light;
}

.ss-band--dark .heox-enquiry input[type="date"] {
    color-scheme: dark;
}

.heox-enquiry__note {
    font-size: var(--ss-small);
}

.heox-enquiry__field--check {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.heox-enquiry__field--check label {
    font-size: var(--ss-text);
    font-weight: 300;
    letter-spacing: var(--ss-track);
    text-transform: none;
}

.heox-enquiry__field--check a {
    text-decoration: underline dashed 1px;
    text-underline-offset: 0.35em;
}

.heox-enquiry__field--check input {
    flex: none;
    width: 1rem;
    height: 1rem;
    accent-color: var(--ss-stone);
}

.heox-enquiry__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem 2rem;
}

/* honeypot of the form guard: off screen, not display:none */
.uniform__potty {
    position: absolute;
    left: -9999px;
}

/* State of the last attempt: what went wrong, above the form and at the
   field. The mark is a bar in the text colour, no signal red: the form
   sits on tinted bands. */
.heox-enquiry__notice,
.heox-enquiry__errors,
.heox-enquiry__success {
    max-width: 70rem;
    margin: 0 0 3rem;
    padding: 1.25rem 1.5rem;
    border-left: 0.25rem solid currentColor;
    font-weight: 500;
}

.heox-enquiry__errors p {
    margin: 0 0 0.5rem;
}

.heox-enquiry__errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.heox-enquiry__errors a {
    text-decoration: underline dashed 1px;
    text-underline-offset: 0.35em;
}

.heox-enquiry__error {
    display: block;
    margin-top: 0.5rem;
    font-size: var(--ss-small);
    font-weight: 500;
}

.heox-enquiry [aria-invalid="true"]:not([type="checkbox"]) {
    border-bottom-width: 3px;
}

.heox-enquiry__field--check {
    flex-wrap: wrap;
}

.heox-enquiry__field--check .heox-enquiry__error {
    flex-basis: 100%;
    margin-top: 0;
}

/* ---------- Footer ---------- */

.ss-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 2rem;
    padding: 4.5rem var(--ss-gutter);
    background: var(--ss-stone);
    color: var(--ss-snow);
    font-size: 0.8125rem;
    line-height: 2;
}

.ss-footer__logo {
    grid-column: 1 / -1;
}

.ss-footer__logo img {
    width: 16.5rem;
}

.ss-footer p,
.ss-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ss-footer p + p {
    margin-top: 0.75rem;
}

.ss-footer a {
    text-decoration: none;
}

.ss-footer__title,
.ss-footer__contact {
    font-weight: 500;
}

.ss-footer__partner {
    justify-self: end;
    align-self: center;
}

.ss-footer__partner img {
    width: 9.5rem;
}

@media (hover: hover) {
    .ss-footer a:hover {
        text-decoration: underline;
    }
}

/* ---------- Error page (template markup) ---------- */

.page--error {
    padding: var(--ss-band) var(--ss-gutter);
}

.page--error > * + * {
    margin-top: 1.5rem;
}

.page--error p {
    margin-bottom: 0;
}

.ss-error__pages {
    margin-bottom: 0;
    padding: 0;
    list-style: none;
    font-weight: 400;
    text-transform: uppercase;
    columns: 2 14rem;
    max-width: var(--ss-measure);
}

.ss-error__pages a {
    display: inline-block;
    padding-block: 0.4rem;
    text-decoration: none;
}

@media (hover: hover) {
    .ss-error__pages a:hover {
        text-decoration: underline dashed 1px;
        text-underline-offset: 0.35em;
    }
}

/* ---------- Small screens ---------- */

@media (max-width: 48rem) {
    :root {
        --ss-header: 4.5rem;
    }

    .ss-header {
        gap: 0.75rem;
        padding-inline: 1rem;
    }

    .ss-header__logo img {
        width: min(300px, 34vw);
    }

    .ss-header__cta {
        min-height: 2.5rem;
        padding-inline: 0.55rem;
        font-size: 0.6875rem;
        letter-spacing: 0.1em;
    }

    .ss-prices__body {
        padding-left: 0;
    }

    .ss-prices__table th,
    .ss-prices__table td {
        padding-left: 0.75rem;
    }

    .ss-nav {
        padding-top: calc(var(--ss-header) + 1.75rem);
    }

    .ss-nav:popover-open {
        grid-template-columns: minmax(0, 1fr);
    }

    .ss-nav__contact {
        font-size: 0.8125rem;
    }

    .ss-nav__phone {
        font-size: 1.125rem;
    }

    .ss-header__menu span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .ss-hero__title {
        margin-left: calc(var(--ss-gutter) * 1.6);
    }

    .ss-section--duo figure:first-child {
        grid-column: 1 / 9;
    }

    .ss-section--duo figure:last-child {
        grid-column: 7 / 13;
    }

    .ss-section--duo .ss-section__media::after {
        display: none;
    }

    .ss-section--side {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ss-section--grid figure,
    .ss-section--grid .ss-section__media:has(figure:nth-child(4):last-child) figure {
        flex-basis: calc(50% - 0.5rem);
    }

    .ss-zoom[open] {
        grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
        padding-inline: 0.25rem;
    }

    .ss-footer {
        grid-template-columns: 1fr 1fr;
    }

    /* links at least 44px high */
    .ss-footer li a,
    .ss-footer__contact a {
        display: inline-block;
        padding-block: 0.75rem;
    }

    .ss-footer li,
    .ss-footer__contact {
        line-height: 1.6;
    }

    .ss-footer__partner {
        justify-self: start;
    }
}
