/* ==========================================================================
   Lair — stylesheet
   Controls are left as native browser elements. This file does layout, width
   and type size only; it does not restyle their appearance.
   ========================================================================== */

:root {

    --paper: #F5EEDF;

    /* Sampled from the logo artwork, used only on the button hover. */
    --pink: #F175AD;
    --red:  #EE2426;

    /* Fluid type scale. Each value interpolates between a phone-safe minimum
       and a desktop maximum, so no text drops below a readable size. */
    --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
    --step-0:  clamp(1rem, 0.95rem + 0.30vw, 1.125rem);
    --step-1:  clamp(1.125rem, 1.05rem + 0.40vw, 1.375rem);

    --gap: clamp(1rem, 3vw, 1.5rem);

    /* Width of the reading column, and of the controls inside it. */
    --measure: 34rem;
    --control: 22rem;
}

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

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

body {
    margin: 0;
    background-color: var(--paper);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: var(--step-0);
    line-height: 1.5;
}

.page {
    max-width: var(--measure);
    margin-inline: auto;
    padding: clamp(1.5rem, 5vw, 3rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
    text-align: center;
}

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


/* --- logo ---------------------------------------------------------------- */

.logo {
    margin: 0 0 var(--gap);
    font-size: inherit;
    font-weight: inherit;
}

.logo-mark svg {
    display: block;
    width: min(100%, 20rem);
    height: auto;
    margin-inline: auto;
    overflow: visible;
}


/* --- opening copy -------------------------------------------------------- */

.copy-text {
    margin: 0 0 0.5rem;
    font-weight: bold;
    font-size: var(--step-1);
    line-height: 1.35;
}

.copy-text--sub {
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}


/* --- booking form -------------------------------------------------------- */

.booking {
    margin: 0 0 clamp(1.75rem, 5vw, 2.5rem);
}

.field {
    margin-bottom: 1.125rem;
}

.field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: var(--step--1);
    line-height: 1.35;
}

/* Selects, textarea and button share one width and stay centred in the
   column. font-size must not drop below 16px or iOS Safari zooms the whole
   page when a field takes focus. */
.field-control,
.booking-button {
    display: block;
    width: min(100%, var(--control));
    min-height: 2.75rem;
    margin-inline: auto;
    font-family: inherit;
    font-size: 1rem;
}

select.field-control {
    text-align: center;
    text-align-last: center;
}

.field-control--text {
    min-height: 6rem;
    resize: vertical;
    line-height: 1.5;
}

.booking-button {
    margin-top: 1.5rem;
    background-color: var(--paper);
    font-size: var(--step-0);
    cursor: pointer;
}

.booking-button:hover,
.booking-button:focus-visible {
    background-color: var(--pink);
    color: var(--red);
}

.booking-status {
    min-height: 1.25rem;
    margin: 0.75rem 0 0;
    font-size: var(--step--1);
}


/* --- what's included ----------------------------------------------------- */

.details {
    margin: 0 0 clamp(1.5rem, 4vw, 2rem);
}

.details p {
    margin: 0 0 0.35rem;
    font-size: var(--step-0);
    line-height: 1.35;
}

.details .details-heading {
    margin-bottom: 0.5rem;
}

.star-list {
    margin: 0 0 0.9rem;
    padding: 0;
    list-style: none;
    text-align: left;
    font-size: var(--step-0);
}

.star-list li {
    position: relative;
    margin-bottom: 0.3rem;
    padding-left: 1.35em;
    line-height: 1.3;
}

.star-list li::before {
    content: "\272D";
    position: absolute;
    left: 0;
}


/* --- read more ----------------------------------------------------------- */

.more {
    margin: 0;
}

.more summary {
    display: inline-block;
    font-size: var(--step-0);
    text-decoration: underline;
    cursor: pointer;
    list-style: none;
}

.more summary::-webkit-details-marker {
    display: none;
}

.more summary::before {
    content: "+ ";
}

.more[open] summary::before {
    content: "\2212 ";
}

.more-body {
    margin-top: 0.75rem;
    text-align: left;
    font-size: var(--step-0);
}

.more-body p {
    margin: 0 0 0.6rem;
    line-height: 1.4;
}


/* --- viewport adjustments ------------------------------------------------ */

/* Phones held sideways: trade vertical padding for content. */
@media (max-height: 480px) {
    .page {
        padding-top: 1.25rem;
        padding-bottom: 1.75rem;
    }
    .logo-mark svg {
        width: min(100%, 13rem);
    }
}

/* Large monitors: let the column breathe slightly rather than grow wide. */
@media (min-width: 90rem) {
    :root {
        --measure: 38rem;
    }
}
