/* ==========================================================================
   Gratienne — the pages beside the film

   The configurator, the card's page, /open, the page for guests, the couple's
   panel, the book, the magazine and the legal pages. They speak the film's
   language: #F5F5F5 ground, one black, one gold, the three faces with their
   one job each, a hairline instead of a filled button. Tokens are site.css's.
   ========================================================================== */

/* ------------------------------------------------------------- 1. Frame */

/* The sticky header already stands in the flow, so the page reserves no height of its own above it: every page's first
   block opens with the one --page-top (site.css), the same air on every page and every width. */
.page {
    min-height: 70vh;
}

.brand--page {
    position: sticky;
}

/* Wide frame, narrow content ("rama szeroka, treść wąska"): every page is held to the
   home page's margins — the header's gutter alone, no narrower column centred in the middle. */
.page__inner {
    width: 100%;
    padding: var(--page-top) var(--gutter) clamp(3rem, 8vw, 7rem);
}

/* A page of one form, one notice or one text: the frame stays the home page's, its content keeps a reading measure that
   starts at the frame's left margin, under the header's wordmark. */
.page__inner--measure > * {
    max-width: var(--measure);
}

.page__head {
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

    .page__head .label {
        display: block;
        margin-bottom: 1.2rem;
    }

    .page__head .text {
        max-width: 36rem;
        margin-top: 1.5rem;
    }

.page__title {
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-title);
    line-height: 1.06;
    letter-spacing: var(--display-tracking);
    text-wrap: balance;
}

.section {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    border-top: 1px solid var(--rule);
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

    .section:first-child {
        border-top: 0;
        margin-top: 0;
        padding-top: 0;
    }

.section__title {
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-subtitle);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.prose p + p {
    margin-top: 1em;
}

.muted {
    color: var(--ink-soft);
}

/* ------------------------------------------------------------- 2. Forms */

.form {
    display: grid;
    /* Held to its column: a long address shown in a form (the withdrawal's receipt) breaks inside it rather than
       widening every field past the screen's gutter. */
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    overflow-wrap: anywhere;
}

.form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.6rem;
    /* A short field beside a tall one (the language beside the case's inscription and its preview) keeps its label,
       field and hint together at the top instead of spreading them down the row. */
    align-items: start;
}

    /* Two fields that belong together side by side — the wedding's day and hour, design and answers' date, town and
       country (the settings) —, one column on a phone. */
    .form__row--pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

.field {
    display: grid;
    gap: var(--label-gap);
}

    .field > label,
    .field > .field__label {
        font-family: var(--sans);
        font-weight: var(--sans-weight);
        font-size: var(--caps-size);
        letter-spacing: var(--caps-tracking);
        text-transform: uppercase;
    }

    /* A count the house's stepper stands over (ui.js, site.css) keeps the stepper's numeral, never this line. */
    .field input:not([type="checkbox"]):not([type="radio"]):not(.stepper__value),
    .field select,
    .field textarea {
        width: 100%;
        min-height: 2.75rem;
        padding: var(--field-air) 0 0.6rem;
        border: 0;
        border-bottom: 1px solid var(--ink);
        border-radius: 0;
        background: transparent;
        font-family: var(--serif);
        font-size: var(--type-lede);
        color: var(--ink);
        /* The line warms to gold as the field is taken, never snaps. */
        transition: border-color 0.45s var(--slow), box-shadow 0.45s var(--slow);
    }

    .field textarea {
        min-height: 9rem;
        padding: 0.8rem;
        border: 1px solid var(--rule);
        line-height: 1.55;
        resize: vertical;
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
        outline: none;
        border-color: var(--gold);
    }

    /* A field waiting for its box (the card's health field until its consent is ticked) keeps a faint line, never the
       system's grey. */
    .field input:disabled:not([type="checkbox"]):not([type="radio"]) {
        border-color: var(--rule);
        color: var(--ink-soft);
        cursor: default;
    }

    /* A choice in a form's field (ui.js over the select) is the field's own line with the house's chevron at its end. */
    .field .choice > input.choice__input:not([type="checkbox"]):not([type="radio"]) {
        padding-right: 1.75rem;
        background: var(--choice-chevron);
        cursor: pointer;
    }

    .field .choice--long > input.choice__input:not([type="checkbox"]):not([type="radio"]) {
        cursor: text;
    }

    /* A field of one's own words with the usual ones offered under it (ui.js, suggest) keeps the field's own line and
       text cursor, the chevron at its end saying a list is there too. */
    .field .choice--suggest > input:not([type="checkbox"]):not([type="radio"]) {
        padding-right: 1.75rem;
        background: var(--choice-chevron);
    }

    /* On a phone the keyboard takes the lower half: the list stays short enough to be read above it, and scrolls. */
    .choice--suggest > .choice__list {
        max-height: min(17rem, 38svh);
    }

    .field [aria-invalid="true"] {
        border-color: var(--ink);
        box-shadow: inset 0 -2px 0 var(--ink);
    }

    /* A box is marked by its whole frame in ink — the heavier foot is a written line's mark, and on a box it reads as a
       stray stripe. */
    .field textarea[aria-invalid="true"] {
        box-shadow: none;
    }

/* A group of radios or boxes is a fieldset with its legend, read out as one question; it looks like any other field. */
.field--group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

    .field--group > legend {
        padding: 0;
        margin-bottom: 0.5rem;
    }

.field__hint {
    font-size: var(--type-small);
    color: var(--ink-soft);
}

/* A value that can no longer change is said as words under its label, never as a field that looks editable but does
   not answer; the reason stands under it as the field's hint. */
.field__read {
    margin: 0;
    font-family: var(--serif);
    font-size: var(--type-lede);
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* The declarations exactly as the configurator sets them (configurator.css, .home-configurator__checks), so every
   order's ticks look alike: the same grid, air and pointer. */
.checks {
    display: grid;
    gap: 1.1rem;
}

.check {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    font-size: var(--type-body);
    line-height: 1.5;
    cursor: pointer;
}

    /* The box is the house's own (site.css, „Boxes and rounds”); here it only stands level with the first line. */
    .check input {
        margin: 0.2rem 0 0;
    }

    /* A word under the box's own words — what a guest may answer to a field the settings ask —, the field's hint in size and ink; the box's name stays its words alone, the hint its description. */
    .check__hint {
        display: block;
        margin-top: 0.15rem;
        font-size: var(--type-small);
        line-height: 1.45;
        color: var(--ink-soft);
    }

/* A box's refusal („Zaznacz to pole, aby przejść dalej.”) stands close under its words, never the holder's gap away:
   ui.js writes it after the label, inside the holder's grid, so its margin takes the gap back — the same 0.3rem as
   site.css's label.check + .field__error wherever a box stands (the declarations, a form's own boxes). */
.checks > label.check + .field__error {
    margin-top: calc(0.3rem - 1.1rem);
}

.form > label.check + .field__error {
    margin-top: calc(0.3rem - 1.6rem);
}

/* Without the script a file field keeps the browser's input (ui.js lays the house's file over it): its button at
   least in the house's quiet hand, a hairline frame and small capitals, never the system's grey key. */
.field input[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font: var(--sans-weight) var(--caps-size)/1.2 var(--sans);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    cursor: pointer;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.6rem;
}

    .choice-row label {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        font-size: var(--type-body);
    }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 3.2rem;
    padding: 0 2rem;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--ground);
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    /* A label a phone breaks into two lines stays centred in its slab. */
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s var(--slow);
}

    .button:hover {
        opacity: 0.82;
    }

    .button:disabled {
        opacity: 0.4;
        cursor: default;
    }

.button--quiet {
    background: transparent;
    color: var(--ink);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
}

.notice {
    padding: 1rem 1.2rem;
    border-left: 2px solid var(--gold);
    background: rgba(var(--gold-rgb), 0.08);
    font-size: var(--type-body);
}

.notice--error {
    border-left-color: var(--error);
    background: rgba(155, 44, 44, 0.05);
}

/* What a page answers arrives as the field's messages do (site.css, message-in); the panel's own notice draws its
   hairline instead (below, notice-in). */
@media (prefers-reduced-motion: no-preference) {
    .notice[role] {
        animation: message-in 0.8s var(--slow) both;
    }
}

/* ------------------------------------------------------------- 3. Card */

/* The card's page, its error and its not-found stand left in the frame's reading measure (pages.css 1), under the
   header's wordmark, never centred in the middle of the page. */
.card-page {
    text-align: left;
}

/* The couple's card standing in its plinth beside the words (film.js's cardPage()):
   on a wide screen alone, in the frame's right part and held beside the content as it scrolls; on a narrower one the
   words stand alone, so the code's field stays in the first screen. It is a quiet picture with no edge: what the lens
   leaves at the sides fades into the paper, and it appears only once its first frame is drawn. */
.card-stage {
    display: none;
}

@media (min-width: 64rem) {
    .card-frame {
        display: grid;
        /* The stage keeps room for the card standing in its plinth: on a tablet held upright the words' measure would give it
           a sliver and the card would stand a hundred pixels tall. */
        grid-template-columns: minmax(0, var(--measure)) minmax(20rem, 1fr);
        column-gap: clamp(3rem, 7vw, 8rem);
        align-items: start;
    }

    .card-stage {
        display: block;
        position: sticky;
        top: calc(var(--header) + 1.5rem);
        width: 100%;
        max-width: 36rem;
        height: min(34rem, calc(100vh - var(--header) - 6rem));
        margin: 0;
        justify-self: center;
    }
}

.card-stage__canvas,
.card-stage__drawing {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.card-stage__canvas {
    opacity: 0;
    transition: opacity 1.6s var(--slow);
    -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent);
    mask-image: radial-gradient(closest-side, #000 74%, transparent);
}

.card-stage.is-live > .card-stage__canvas {
    opacity: 1;
}

/* Where WebGL does not run: what the guest holds as film.js's cardPageDrawn draws it, seen straight on in ink on the
   paper — the folded letter beside its envelope in the band, or the case's lid with the photograph standing in its slot;
   the drawing paints its own objects, so it takes no ground or shadow of its own. */
.card-stage__drawing {
    inset: auto;
    top: 50%;
    left: 50%;
    width: min(80%, 26rem);
    height: auto;
    max-height: 86%;
    transform: translate(-50%, -50%);
}

/* The AI line under the case's example photograph, at the stage's foot (Card/Stage/Generated): there from the first
   moment, whichever picture stands. */
.card-stage__note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    text-align: center;
}

.card-stage__note .cap__note {
    display: block;
    max-width: none;
    margin-top: 0;
    text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
    .card-stage__canvas {
        transition: none;
    }
}

/* The card opens as a letter is unfolded: the eyebrow, the couple and the day one after another, the gold rule drawn
   from the left, then the memory and the sheet, its paragraphs a breath apart. Only at the top of the card, which is
   always the first screen; what lies lower (the code's form, the answer) rises with ui.js's sections. */
@media (prefers-reduced-motion: no-preference) {
    .card-page > .label,
    .card-page > .page__title,
    .card-page__couple,
    .card-page__date,
    .card-page > .notice,
    .card-page > .text,
    .card-page > .memory,
    .card-page > .card-places,
    .card-page > .letter,
    .card-page > .letter > * {
        animation: card-rise 1.1s var(--slow) both;
    }

    .card-page__couple { animation-delay: 0.12s; }
    .card-page__date { animation-delay: 0.24s; }
    .card-page > :is(.notice, .text) { animation-delay: 0.6s; }
    .card-page > .memory { animation-delay: 0.65s; }
    .card-page > .card-places { animation-delay: 0.72s; }
    .card-page > .letter { animation-delay: 0.8s; }
    .card-page > .letter > * { animation-delay: 1.05s; }
    .card-page > .letter > :nth-child(2) { animation-delay: 1.2s; }
    .card-page > .letter > :nth-child(3) { animation-delay: 1.35s; }
    .card-page > .letter > :nth-child(4) { animation-delay: 1.5s; }
    .card-page > .letter > :nth-child(n + 5) { animation-delay: 1.65s; }

    .card-page__rule {
        transform-origin: left;
        animation: card-rule 1.2s var(--slow) 0.4s both;
    }
}

@keyframes card-rise {
    from { opacity: 0; transform: translateY(0.9rem); }
}

@keyframes card-rule {
    from { transform: scaleX(0); }
}

.card-page__couple {
    font-family: var(--display);
    font-size: var(--type-title);
    line-height: 1.08;
}

.card-page__date {
    margin-top: 1rem;
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
}

.card-page__rule {
    width: 3rem;
    height: 1px;
    margin: 2.5rem 0;
    background: var(--gold);
}

.memory {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4rem 1.8rem;
    /* The dot hangs in the gap before its part, so a part that wraps to a new line (a phone) leaves its dot outside the
       line's left edge, clipped, rather than opening the line with it. */
    overflow: hidden;
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
}

    .memory > span {
        position: relative;
    }

    .memory > span + span::before {
        content: "·";
        position: absolute;
        left: -1.8rem;
        width: 1.8rem;
        text-align: center;
        color: var(--gold);
    }

/* Where and when the day is held, under the memory: each place a row, its label in the caps' gold beside the words in
   the caps' ink — the reverse's lines, which a guest reaches on the day without the card. */
.card-places {
    display: grid;
    gap: 0.5rem;
    margin: 1.6rem 0 0;
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
}

    .card-places > div {
        display: flex;
        flex-wrap: wrap;
        gap: 0 1rem;
    }

    .card-places dt {
        color: var(--gold);
    }

    .card-places dd {
        margin: 0;
    }

.code-form {
    display: grid;
    gap: 1.2rem;
    justify-items: start;
    text-align: left;
}

/* The code and the card's number are typed large and spaced, a size of their own outside the reading scale. */
.code-input {
    width: min(100%, 16rem);
    min-height: 3.8rem;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: 1.7rem;
    letter-spacing: 0.3em;
    text-align: left;
    text-transform: lowercase;
    transition: border-color 0.45s var(--slow);
}

    .code-input:focus {
        outline: none;
        border-color: var(--gold);
    }

.code-input--number {
    width: min(100%, 24rem);
    font-size: 1.35rem;
    letter-spacing: 0.18em;
}

.letter {
    margin: 3rem 0;
    max-width: 34rem;
    padding: clamp(1.8rem, 5vw, 3rem);
    background: var(--card);
    box-shadow: 0 1px 0 var(--rule), var(--shadow-sheet);
    text-align: left;
    font-size: var(--type-lede);
    line-height: 1.7;
}

    /* A letter keeps the lines its writer broke: a blank line is a paragraph, a single break stays a break. */
    .letter p {
        white-space: pre-line;
    }

    .letter p + p {
        margin-top: 1em;
    }

.letter__signature {
    margin-top: 2rem;
    text-align: right;
    font-family: var(--display);
    font-size: var(--type-heading);
}

.answer {
    text-align: left;
}

.answer__photo {
    width: 100%;
    max-width: 20rem;
    aspect-ratio: 1;
    /* A photograph is shown whole, never cut. */
    object-fit: contain;
}

.removed {
    padding: 1.2rem;
    border: 1px solid var(--rule);
    text-align: left;
}

.privacy-note {
    font-size: var(--type-small);
    color: var(--ink-soft);
    text-align: left;
}

    /* A consent's clause over the button that gives it (the letters' and a lead's confirmations). */
    .privacy-note + .button {
        margin-top: 1.5rem;
    }

.privacy-clause {
    font-size: var(--type-small);
    line-height: 1.55;
    color: var(--ink-soft);
    text-align: left;
}

    /* A thumb's target: the padding is taken back by the margin, so the line stands where it stood. */
    .privacy-clause summary {
        padding-block: 0.7rem;
        margin-block: -0.7rem;
        cursor: pointer;
        font-family: var(--sans);
        font-weight: var(--sans-weight);
        font-size: var(--caps-size);
        letter-spacing: var(--caps-tracking);
        text-transform: uppercase;
        color: var(--ink);
    }

    .privacy-clause p {
        margin-top: 0.8rem;
    }

/* ------------------------------------------------------------- 4. Steps and questions */

.steps {
    counter-reset: step;
    display: grid;
    /* Three steps side by side within a page's measure (at 13rem the third would fall alone under the first), one column on
       a phone. */
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 2rem;
}

    .steps li {
        counter-increment: step;
        font-size: var(--type-lede);
    }

        .steps li::before {
            content: "0" counter(step);
            display: block;
            margin-bottom: 0.8rem;
            font-family: var(--sans);
            font-weight: var(--sans-weight);
            font-size: var(--caps-size);
            letter-spacing: var(--caps-tracking);
            color: var(--gold);
        }

.faq details {
    border-top: 1px solid var(--rule);
    padding: 1.1rem 0;
}

    .faq details:last-child {
        border-bottom: 1px solid var(--rule);
    }

.faq summary {
    cursor: pointer;
    font-family: var(--display);
    font-size: var(--type-heading);
    list-style: none;
}

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

.faq details p {
    margin-top: 0.8rem;
    max-width: 40rem;
}

/* The configurator's questions in two columns of their own on a wide screen, one under the other on
   a phone; each column closes on its own hairline. */
.faq__columns {
    display: grid;
}

@media (min-width: 56rem) {
    .faq__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(2.5rem, 5vw, 4.5rem);
        align-items: start;
    }
}

    @media (max-width: 55.99rem) {
        .faq__column:not(:last-child) details:last-child {
            border-bottom: 0;
        }
    }

/* ------------------------------------------------------------- 5. Bills and payments (the configurator is configurator.css) */

/* A payment still on its way: the loading hairline (site.css) under the lead, on the text's left edge. */
.order__waiting {
    margin-top: 1.6rem;
}

.bill {
    position: sticky;
    top: calc(var(--header) + 1.5rem);
    padding: 2rem;
    background: rgba(5, 5, 5, 0.03);
}

    /* The list itself may be the bill (an order's status, the withdrawal, the wizard's review): its rows are set the
       same, and a summary in the flow never sticks to the window. */
    dl.bill {
        position: static;
    }

    .bill dl div,
    dl.bill > div {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--rule);
    }

    .bill dd {
        text-align: right;
        white-space: nowrap;
    }

    /* A list of words rather than amounts (the withdrawal's statement, the wizard's review): a name, an address or a
       question may be longer than a phone's line, so the value stands under its label and wraps. */
    dl.bill--text > div {
        display: grid;
        gap: 0.2rem;
    }

    .bill--text dd {
        min-width: 0;
        text-align: left;
        white-space: normal;
    }

.bill__total {
    font-family: var(--display);
    font-size: var(--type-heading);
}

/* The bill of a panel order, shown in the flow right above the button that concludes it. */
.bill--inline {
    position: static;
    margin-top: 1.5rem;
}

/* The printed book's ladder: the step the book stands in now is in the ink, the others soft. */
.book-tiers div {
    color: var(--ink-soft);
}

    .book-tiers div.is-current {
        color: var(--ink);
        font-weight: 600;
    }

.payment {
    margin-top: 1.5rem;
}

.fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.4rem;
}

    .fieldset legend {
        padding: 0;
        margin-bottom: 1rem;
        font-family: var(--display);
        font-size: var(--type-heading);
    }

/* ------------------------------------------------------------- 6. Panel */

/* The couple's panel in one frame: held to the home page's margins — the header's own gutter, no narrower column —,
   the panel's bar under the site's header, the couple and their day at
   the head, the screen across the frame. Only reading text keeps a measure of its own. */
/* The panel's frame is the home page's: the gutter alone at its sides, never a narrower column
   centred on a wide screen — one margin across the whole system. */
.panel,
.shelf,
.account {
    width: 100%;
    padding: var(--page-top) var(--gutter) clamp(4rem, 8vw, 7rem);
}

    .page__inner:has(> .wizard-steps) > .page__head {
        margin-bottom: 0;
        padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
        border-bottom: 1px solid var(--rule);
    }

        .page__inner:has(> .wizard-steps) > .page__head .label {
            margin-bottom: 0.8rem;
        }

        .page__inner:has(> .wizard-steps) > .page__head .page__title {
            font-size: clamp(2rem, 3.4vw, 3.2rem);
        }

    .page__inner:has(> .wizard-steps) > .wizard-steps {
        padding-top: 1rem;
    }

.panel__head {
    padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
    border-bottom: 1px solid var(--rule);
}

    .panel__head .label {
        display: block;
        margin-bottom: 0.8rem;
    }

.panel__couple {
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: var(--display-tracking);
}

.panel__frame {
    padding-top: clamp(1.4rem, 3vw, 2.8rem);
}

/* The panel's bar under the site's header (_PanelBar): one line of small capitals
   across the frame, held under the header as the page scrolls, the groups parted by a short hairline, the screen open
   in ink over a gold line, the account and the way out at the line's end. On a narrow screen the line scrolls sideways
   and fades over the gutter rather than standing cut at it (panel.js brings the open section into sight). */
.panel-bar {
    position: sticky;
    top: var(--header);
    z-index: 20;
    margin: calc(-1 * var(--page-top)) calc(-1 * var(--gutter)) var(--page-top);
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
}

/* What the last action answered: a band across the frame straight under the bar (_PanelFlash) — the house's gold under
   ink for a success, the refusal's colour under paper for a refusal — seen at once, never a quiet line under a title.
   It takes the bar's air below and gives it back under itself. */
.panel-flash {
    margin: calc(-1 * var(--page-top)) calc(-1 * var(--gutter)) var(--page-top);
    padding: 0.85rem var(--gutter);
    background: var(--gold);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    text-align: center;
}

    .panel-flash--error {
        background: var(--error);
        color: var(--ground);
    }

@media (prefers-reduced-motion: no-preference) {
    .panel-flash {
        animation: panel-flash-in 0.6s var(--slow) both;
    }
}

@keyframes panel-flash-in {
    from { opacity: 0; transform: translateY(-0.4rem); }
}

.panel-bar__track {
    display: flex;
    align-items: center;
    gap: 0 1.6rem;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--gutter) - 1rem), #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent calc(100% - var(--gutter) + 1rem));
    mask-image: linear-gradient(90deg, transparent calc(var(--gutter) - 1rem), #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent calc(100% - var(--gutter) + 1rem));
}

    .panel-bar__track::-webkit-scrollbar {
        display: none;
    }

.panel-bar__group {
    display: flex;
    align-items: center;
    gap: 0 1.4rem;
    flex: none;
}

    /* The groups parted by a short upright hairline. */
    .panel-bar__group + .panel-bar__group::before {
        content: '';
        width: 1px;
        height: 1rem;
        margin-right: 0.2rem;
        background: var(--rule);
    }

    /* The account and the way out close the line, at its far end where the screen allows. */
    .panel-bar__group--own {
        margin-left: auto;
    }

.panel-bar__link,
.panel-bar .sign-out .link {
    padding: 1rem 0;
    min-height: 0;
    border: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    white-space: nowrap;
    color: var(--ink-soft);
    opacity: 1;
    transition: color 0.4s var(--slow), box-shadow 0.4s var(--slow);
}

    .panel-bar__link:hover,
    .panel-bar .sign-out .link:hover {
        color: var(--ink);
    }

    /* A section pointed at draws a hairline out from its middle, as the header's links do from their left; the open one
       keeps its gold line. */
    .panel-bar__link {
        background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1px no-repeat;
        transition: color 0.4s var(--slow), box-shadow 0.4s var(--slow), background-size 0.5s var(--slow);
    }

        .panel-bar__link:hover:not([aria-current]),
        .panel-bar__link:focus-visible:not([aria-current]) {
            background-size: 100% 1px;
        }

    .panel-bar__link[aria-current="page"] {
        color: var(--ink);
        box-shadow: inset 0 -2px 0 var(--gold);
    }

/* The couple's panel is read on a phone at arm's length, label after label: its smallest capitals (filters, the ledger's
   labels, the figures' names) stand at the ordinary capitals' size there, never at ten pixels. */
@media (max-width: 47.99rem) {
    .panel,
    .shelf,
    .account {
        --caps-size-small: var(--caps-size);
    }
}

.panel__main {
    min-width: 0;
}

    .panel__main > .notice:first-child {
        margin-top: 0;
    }

/* The panel's one pattern, the same on every screen, the
   account and the wizard:
   - the head: one eyebrow (.eyebrow — the day and how far it is) over the h1, and nowhere else a line over a heading;
   - the screen: the way back where it lies inside a section, its one title (.panel__title, h2), its one lead
     (.panel__lead), then the last action's notice — all written by _PanelLayout from the view model;
   - a section: its title (.section__title, h2) on the ledger's left, then a lead (.text), its content and its actions;
     a part inside it has a quiet small-capital subtitle (.section__subtitle, h3), never a second display heading;
   - facts as one quiet ledger (.particulars), a notice a paragraph with a gold hairline, never a tinted box;
   - the primary act a filled .button, a second one .button--quiet, a way back or aside .link--quiet. */
.eyebrow {
    display: block;
    margin-bottom: 0.8rem;
}

.panel__title {
    margin-bottom: 0.9rem;
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-subtitle);
    line-height: 1.1;
    text-wrap: balance;
}

.panel__lead {
    max-width: 40rem;
    font-size: var(--type-lede);
    line-height: 1.55;
    color: var(--ink-soft);
}

    .panel__head .panel__lead {
        margin-top: 1rem;
        overflow-wrap: anywhere;
    }

/* The way back stands over the screen's title, its arrow leaning the way it points. */
.panel__back {
    margin-bottom: 0.6rem;
}

    .panel__back .link {
        justify-content: flex-start;
        gap: 0.6rem;
    }

    .panel__back .link:hover span[aria-hidden] {
        transform: translateX(-0.3rem);
    }

/* What a screen opens with right under its head — a deadline's line, a case's particulars — stands a breath below the
   lead, never glued to it. */
.panel__screen > :is(p.text, .particulars):first-child {
    margin-top: clamp(1.2rem, 2.4vw, 1.8rem);
}

/* A part of a section: small capitals in soft ink, never a second display heading beside the section's. */
.section__subtitle {
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* The quiet line under a heading — where in a list the couple stands. */
.section__meta {
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    color: var(--ink-soft);
}

    .section__title + .section__meta {
        margin-top: -0.4rem;
    }

/* Facts as one quiet ledger — the series' on the overview, a case's, the withdrawal's statement, the wizard's review:
   the name in small capitals on the left, the value on the right, a hairline under each. A value of words (an address,
   a question, a reason) stands under its name and wraps (.particulars--text). */
.particulars {
    display: grid;
    gap: 0.55rem;
    max-width: 44rem;
    margin: 0;
}

    .particulars > div {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
        padding-bottom: 0.55rem;
        border-bottom: 1px solid var(--rule);
    }

    .particulars dt {
        flex: none;
        font-family: var(--sans);
        font-weight: var(--sans-weight);
        font-size: var(--caps-size-small);
        letter-spacing: var(--caps-tracking);
        text-transform: uppercase;
        color: var(--ink-soft);
    }

    .particulars dd {
        min-width: 0;
        margin: 0;
        text-align: right;
        /* A long address (the second person's, waiting) breaks inside the column rather than pushing it past the
           screen's edge. */
        overflow-wrap: anywhere;
    }

.particulars--text > div {
    display: grid;
    gap: 0.25rem;
}

.particulars--text dd {
    text-align: left;
}

/* A bill in the panel (an order's, the printed book's ladder) lies on the paper between hairlines like every other
   ledger of the panel, never in a tinted box; its total in the display face. */
:is(.panel__main, .wizard) .bill--inline {
    max-width: 44rem;
    padding: 0;
    background: none;
    border-top: 1px solid var(--ink);
}

    /* Amounts in lining figures, so a price that changes beside a field (the Orders screen's bills) stands still. */
    :is(.panel__main, .wizard) .bill--inline dd {
        font-variant-numeric: lining-nums tabular-nums;
    }

    /* The total at its rows' own size, a touch heavier, never a heading's step: every panel bill — an order's
       beside its fields, the payment's summary, the printed book's. */
    :is(.panel__main, .wizard) .bill--inline .bill__total {
        font-family: inherit;
        font-size: inherit;
        font-weight: 500;
    }

/* A short list of links (the invoices): one under another, no bullets. */
.panel__list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* A deadline or an opening counted down live beside its date (panel.js, data-until): soft, in the gold's ink. */
.until {
    color: var(--ink-soft);
    white-space: nowrap;
}

    .until:empty {
        display: none;
    }

/* The last day to withdraw, wherever it is said — Orders, Help, the withdrawal itself —, a step smaller than the text
   round it. */
.withdrawal-deadline {
    font-size: var(--type-small);
}

    .until::before {
        content: '· ';
        color: var(--gold);
    }

/* A long field's count as it is written (panel.js, data-count): under the field at its right, darkening near the end. */
.field__count {
    justify-self: end;
    font-size: var(--type-small);
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--ink-soft);
    transition: color 0.4s var(--slow);
}

    .field__count.is-near {
        color: var(--ink);
    }

/* A long form's closing row stands apart from its last part. */
.form__foot {
    margin-top: clamp(0.6rem, 1.6vw, 1rem);
}

/* A form with changes not yet saved (panel.js, data-dirty-watch) says so beside its button, a gold point before it. */
.form__unsaved {
    font-size: var(--type-small);
    color: var(--ink-soft);
    opacity: 0;
    transition: opacity 0.5s var(--slow);
}

    .form__unsaved::before {
        content: '';
        display: inline-block;
        width: 0.4rem;
        height: 0.4rem;
        margin-right: 0.55rem;
        border-radius: 50%;
        background: var(--gold);
        vertical-align: 0.1em;
    }

    form.is-dirty .form__unsaved {
        opacity: 1;
    }

/* A form on its way (csrf.js marks it and holds its button): the button keeps its ink and a gold hairline runs along
   its foot until the next page arrives — nothing is pressed twice, and nothing looks dead. */
:is(.panel, .account, .wizard) form[data-submitting="1"] .button:disabled {
    opacity: 0.82;
    cursor: progress;
}

    :is(.panel, .account, .wizard) form[data-submitting="1"] .button:disabled::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40%;
        height: 2px;
        background: var(--gold);
        animation: sending 1.4s var(--slow) infinite;
    }

@keyframes sending {
    from { transform: translateX(-100%); }
    to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
    :is(.panel, .account, .wizard) form[data-submitting="1"] .button:disabled::after {
        width: 100%;
        animation: none;
    }
}

.panel__empty {
    margin-top: 2.4rem;
    font: 400 var(--type-lede)/1.5 var(--serif);
    color: var(--ink-soft);
}

/* A book with no letter yet: the card it will open with, small, and one line beside it — the screen calm rather than
   a column of empty rows. */
.book-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(1.6rem, 4vw, 3.2rem);
    max-width: 48rem;
    margin-top: clamp(1.4rem, 3vw, 2.4rem);
}

.book-empty__words {
    flex: 1 1 18rem;
}

.book-empty__title {
    margin-bottom: 0.7rem;
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-heading);
    line-height: 1.2;
}

/* The host's own letter: the notes for the model, then the letter itself, set apart from the lead by air. */
.host-letter {
    margin-top: clamp(1.8rem, 3.2vw, 2.6rem);
    row-gap: clamp(1.6rem, 3vw, 2.2rem);
}

    .host-letter .button-row {
        margin-top: 0.8rem;
    }

/* The host's own letter once the letters to each other have closed: read as written, on the reading measure. */
.host-letter__read {
    max-width: 40rem;
    margin-top: 1.6rem;
}

/* A notice in the panel is a quiet paragraph, never a tinted box: held to the reading measure, a gold hairline at its left, the same air above and below wherever it stands —
   under the title, between a lead and a form, before a letter. The same on the account and in the wizard, which are
   rooms of the same panel, never the public pages' tinted boxes. */
:is(.panel__main, .account, .wizard) .notice {
    max-width: 44rem;
    margin: clamp(1.4rem, 2.6vw, 2rem) 0;
    padding: 0.15rem 0 0.15rem 1.2rem;
    border-left: 1px solid var(--gold);
    background: none;
    font-size: var(--type-body);
    line-height: 1.55;
    color: var(--ink);
}

    :is(.panel__main, .account, .wizard) .notice > * + * {
        margin-top: 0.8rem;
    }

    :is(.panel__main, .account, .wizard) .notice .button-row {
        margin-top: 1.1rem;
    }

    :is(.panel__main, .account, .wizard) .notice--error {
        border-left-color: var(--error);
        background: none;
    }

    /* An order's refusal said under its form's button (panel.js) stands a little closer than the form's own gap — its
       own margin gone, and part of the gap taken back. */
    .form > #orderError {
        margin: -0.6rem 0 0;
    }

    /* The wizard's open points are a list of notices: the list's own gap parts them. */
    .wizard-open .notice {
        margin: 0;
    }

    /* What the last action answered arrives: its hairline drawn down, the words a breath after. */
    :is(.panel__main, .account, .wizard) .notice[role] {
        animation: notice-in 0.9s var(--slow) both;
    }

@keyframes notice-in {
    from {
        border-left-color: transparent;
        opacity: 0;
        transform: translateY(0.4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(.panel__main, .account, .wizard) .notice[role] {
        animation: none;
    }
}

/* Every screen speaks one language: a section is a ledger's row — its title on the left in the display face, what it
   holds on the right — on a wide screen, one column on a narrow one. A form keeps a reading measure, a table the whole
   width. */
.panel__main .section {
    padding-top: clamp(2.2rem, 4vw, 3.2rem);
    margin-top: clamp(2.2rem, 4vw, 3.2rem);
}

    .panel__main .section:first-child {
        border-top: 1px solid var(--rule);
        margin-top: clamp(1.6rem, 3vw, 2.4rem);
        padding-top: clamp(2.2rem, 4vw, 3.2rem);
    }

    /* Under the guests' ledger its last entry's hairline already closes it: the next section adds no second one. */
    .panel__main .ledger + .section {
        border-top: 0;
        margin-top: 0;
    }

.panel__main .section__title {
    font-size: clamp(1.45rem, 1.9vw, 1.8rem);
    margin-bottom: 1rem;
}

.panel__main .form,
.panel__main .text,
.panel__main .muted,
.panel__main .field__hint {
    max-width: 44rem;
}

.panel__main .fieldset legend {
    margin-bottom: 1.2rem;
    font-family: var(--sans);
    font-weight: 500;
    font-size: var(--caps-size);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
}

.panel__main .form > .button,
.panel__main .form .button-row {
    justify-self: start;
}

/* Only a section that names itself becomes a ledger's row; a fieldset or a line that merely borrows the section's
   spacing stays as it is. */
@media (min-width: 72rem) {
    .panel__main section.section:has(> .section__title) {
        display: grid;
        grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
        column-gap: clamp(2rem, 4vw, 4.5rem);
        align-items: start;
    }

        .panel__main section.section:has(> .section__title) > * {
            grid-column: 2;
        }

        .panel__main section.section:has(> .section__title) > .section__title {
            grid-column: 1;
            grid-row: 1 / span 40;
            margin: 0;
        }
}

/* The parts of a named section stand apart by the same air in one column as in the ledger's row — on a phone a lead
   would run straight into the label of the field under it. */
.panel__main section.section:has(> .section__title) > * + * {
    margin-top: 1.2rem;
}

    .panel__main section.section:has(> .section__title) > .section__title + * {
        margin-top: 0;
    }

.panel__main .form__row {
    align-items: start;
}

/* A line or a list that only borrows a section's spacing stands apart by air alone, without a hairline of its own. */
.panel__main p.section,
.panel__main .guest-list.section,
.panel__main .button.section {
    padding-top: 0;
    border-top: 0;
    margin-top: clamp(1.6rem, 3vw, 2.4rem);
}

.panel__main .guest-list {
    gap: 0;
    border-top: 1px solid var(--rule);
}

    .panel__main .guest summary {
        align-items: baseline;
        padding: 0.3rem 0;
    }

    .panel__main .guest .tag {
        white-space: nowrap;
    }

/* A part of a long form: its legend in gold small capitals under a hairline, the parts well apart. A legend sits in
   its fieldset's border, so the hairline and the air are the legend's own, never the fieldset's padding. */
.panel__main .fieldset.section {
    padding-top: 0;
    border-top: 0;
    margin-top: clamp(2.4rem, 4.5vw, 3.4rem);
}

.panel__main .fieldset > legend {
    width: 100%;
    padding-top: 1.4rem;
    border-top: 1px solid var(--rule);
}

/* A part's subtitle inside a long form (the settings' delivery and venue) stands well apart from the fields before it. */
/* A question inside a part (a choice among radios) is a field's label, in ink — the gold small capitals are
   the part's own legend alone. */
.panel__main .fieldset .field--group > legend.field__label {
    font-weight: var(--sans-weight);
    letter-spacing: var(--caps-tracking);
    color: var(--ink);
}

.panel__main .fieldset > .section__subtitle {
    margin-top: clamp(0.8rem, 1.6vw, 1.2rem);
}

/* Tables in the panel: hairlines and small capitals, the first column in the display face. */
.panel__main .table th {
    color: var(--ink-soft);
    border-bottom-color: var(--rule);
    font-weight: var(--sans-weight);
}

.panel__main .table td {
    padding: 1rem 0.6rem;
    transition: border-color 0.45s var(--slow);
}

    /* A row that leads somewhere answers the pointer with its hairline warming to gold — never a tint, which would touch
       the first column's words standing on the gutter. */
    .panel__main .table tbody tr:has(a[href]):hover td {
        border-bottom-color: var(--gold);
    }

    /* The outer columns stand on the gutter every title and field keeps, never a step inside it. */
    .panel__main .table :is(th, td):first-child {
        padding-left: 0;
    }

    .panel__main .table :is(th, td):last-child {
        padding-right: 0;
    }

    /* The section under a list opens with its own hairline: the last row draws none of its own, or two lines would
       stand a breath apart. */
    .panel__main .table tbody tr:last-child,
    .panel__main .table tbody tr:last-child td {
        border-bottom: 0;
    }

/* An order's number and an amount never break inside (a phone would leave „1 590,00” over „zł” and the number in two). */
.table .table__figure {
    white-space: nowrap;
}

/* The orders and the Help's cases on a phone: each one entry between hairlines — the first cell and the third on the
   first line (an order's number and amount, a case's topic and stage), the others under them — rather than four or
   five columns squeezed into the screen. */
@media (max-width: 40rem) {
    .panel__main .table--entries thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .panel__main .table--entries,
    .panel__main .table--entries tbody {
        display: block;
    }

    .panel__main .table--entries tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 1.2rem;
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--rule);
    }

    .panel__main .table--entries td {
        display: block;
        grid-column: 1 / -1;
        padding: 0.1rem 0;
        border: 0;
    }

        .panel__main .table--entries td:nth-child(1) {
            grid-column: 1;
            grid-row: 1;
        }

        .panel__main .table--entries td:nth-child(3) {
            grid-column: 2;
            grid-row: 1;
            text-align: right;
        }

        .panel__main .table--entries td:nth-child(2) {
            color: var(--ink-soft);
        }

        /* A column's „–” says „none” under its heading; an entry with no heading to stand under says nothing. */
        .panel__main .table--entries td.table__none {
            display: none;
        }
}

/* -- The overview: a quiet dashboard. */
.dash__lead {
    display: grid;
    /* One column held to the screen on a phone: the figures' band slides inside it, never widening the page. */
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

/* A tablet held upright: the card beside the words already, smaller — one column there would show a card the width of the
   screen and push what is next below it. */
@media (min-width: 40rem) and (max-width: 59.99rem) {
    .dash__lead {
        grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);
    }
}

@media (min-width: 60rem) {
    .dash__lead {
        grid-template-columns: minmax(16rem, 26rem) minmax(0, 1fr);
    }
}

/* On a phone the object stands centred at a size that leaves what is next in the first screen. */
@media (max-width: 39.99rem) {
    .dash__object {
        width: min(100%, 38svh);
        justify-self: center;
    }
}

/* The series' object, the list of series' own (_KeepObject): the card in its oak
   plinth, which carries its own light shadow. */
.dash__object {
    margin: 0;
}

.dash__next-title {
    max-width: 30rem;
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.12;
    text-wrap: balance;
}

.dash__next-text {
    max-width: 34rem;
    margin-top: 1rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

.dash__next .button-row {
    margin-top: 1.8rem;
}

/* The panel's figures — the counts of the cards and their openings, the guests' answers — as one band, the way a fine
   ledger sets a line, never stacked numbers over tiny capitals: each figure the
   number in the heading serif and its word beside it on one baseline, hairlines between them, all on one line; on a
   narrow screen the band slides sideways under the finger rather than breaking. */
.figures {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    margin: 0;
    padding: 1.1rem 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

    .figures::-webkit-scrollbar {
        display: none;
    }

.figures {
    margin-top: clamp(2.2rem, 4vw, 3.2rem);
}

    /* The band closing its section: the next section opens with its own hairline, so the band draws none under it
       (two rules would stand a breath apart). */
    .figures:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

/* Where the band slides, a figure running past the column fades out at its edge rather than standing cut mid-number. */
@media (max-width: 63.99rem) {
    .figures {
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
    }
}

/* On a wide screen nothing hides past the column's edge: a band longer than the column (the counters, the day's
   weather) goes on in a second line rather than sliding, each line opening without its hairline. */
@media (min-width: 64rem) {
    .figures {
        flex-wrap: wrap;
        row-gap: 1rem;
        overflow-x: visible;
    }
}

    .figures div {
        display: flex;
        flex: 0 0 auto;
        align-items: baseline;
        gap: 0.5rem;
        padding: 0 clamp(1rem, 2vw, 1.6rem);
        border-left: 1px solid var(--rule);
        white-space: nowrap;
    }

        .figures div:first-child {
            padding-left: 0;
            border-left: 0;
        }

/* The wrapped band: every figure keeps its hairline and its gap, and the band is set that far left of the column and
   clipped back to it, so whichever figure opens a line — the band's first or a wrapped one — stands at the column's
   edge with no hairline before it (a wrapped figure would stand indented behind a stray hairline). */
@media (min-width: 64rem) {
    .figures {
        --figure-gap: clamp(1rem, 2vw, 1.6rem);
        margin-left: calc(-1 * (var(--figure-gap) + 1px));
        clip-path: inset(0 0 0 calc(var(--figure-gap) + 1px));
    }

        .figures div:first-child {
            padding-left: var(--figure-gap);
            border-left: 1px solid var(--rule);
        }
}

    .figures dt {
        order: 2;
        font-family: var(--serif);
        font-size: var(--type-body);
        color: var(--ink-soft);
    }

    .figures dd {
        order: 1;
        margin: 0;
        font-family: var(--display);
        font-weight: var(--weight-display);
        font-size: clamp(1.6rem, 2vw, 2rem);
        line-height: 1;
        font-variant-numeric: lining-nums tabular-nums;
    }

/* The course from the design to the book: seven marks on one hairline — the signing round among them since 2026-11-20 —,
   those passed in ink, the one now in gold. */
.course {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: clamp(3rem, 6vw, 4.5rem) 0 0;
    padding: 0;
    list-style: none;
}

.course__step {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 0.9rem;
    padding-top: 0.3rem;
}

    .course__step::before {
        content: '';
        position: absolute;
        top: 0.62rem;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--rule);
    }

    .course__step.is-done::before {
        background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 100% no-repeat, var(--rule);
    }

/* The course draws itself to where the series stands as it comes into view (ui.js's reveal): the passed hairlines run in
   from the left one after another and the gold ring of the step now opens last. Without the script, or under reduced
   motion, it stands drawn whole. */
@media (prefers-reduced-motion: no-preference) {
    .has-ui .course[data-reveal] .course__step.is-done::before {
        transition: background-size 0.8s var(--slow) calc(var(--course-index, 0) * 0.16s + 0.2s);
    }

    .has-ui .course[data-reveal]:not(.is-in) .course__step.is-done::before {
        background-size: 0 100%, auto;
    }

    .has-ui .course[data-reveal] .course__step.is-now .course__mark {
        transition: box-shadow 1s var(--slow) calc(var(--course-index, 0) * 0.16s + 0.5s);
    }

    .has-ui .course[data-reveal]:not(.is-in) .course__step.is-now .course__mark {
        box-shadow: 0 0 0 4px var(--ground), 0 0 0 4px var(--gold);
    }
}

.course__mark {
    position: relative;
    width: 0.65rem;
    height: 0.65rem;
    border: 1px solid var(--ink-soft);
    border-radius: 50%;
    background: var(--ground);
}

.course__step.is-done .course__mark {
    border-color: var(--ink);
    background: var(--ink);
}

.course__step.is-now .course__mark {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--ground), 0 0 0 5px var(--gold);
}

/* Where the series stands now breathes: a gold ring spreads from the dot and fades, again and again — on the
   overview's course and the series list's alike; under reduced motion the dot keeps its still ring alone. */
@media (prefers-reduced-motion: no-preference) {
    .course__step.is-now .course__mark::after,
    .keep__step.is-now .keep__mark::after {
        content: '';
        position: absolute;
        inset: -1px;
        border: 1px solid var(--gold);
        border-radius: 50%;
        pointer-events: none;
        animation: course-now 2.4s var(--slow) 1.2s infinite both;
    }
}

@keyframes course-now {
    0% { opacity: 0.9; transform: scale(1); }
    100% { opacity: 0; transform: scale(3.2); }
}

.course__name {
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size-small);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    color: var(--ink-soft);
}

.course__step.is-now .course__name,
.course__step.is-done .course__name {
    color: var(--ink);
}

/* On a phone six names do not fit one line (they would run into one another): the course stands as a column, each mark on
   one vertical hairline with its name beside it. */
@media (max-width: 40rem) {
    .course {
        grid-template-columns: minmax(0, 1fr);
    }

    .course__step {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: 1.1rem;
        padding: 0.5rem 0;
    }

        .course__step::before {
            top: 0;
            bottom: 0;
            left: calc(0.325rem - 0.5px);
            right: auto;
            width: 1px;
            height: auto;
        }

        .course__step:first-child::before {
            top: 50%;
        }

        .course__step:last-child::before {
            bottom: 50%;
        }

        /* Upright, the passed line runs down rather than across. */
        .has-ui .course[data-reveal]:not(.is-in) .course__step.is-done::before {
            background-size: 100% 0, auto;
        }
}

.dash__grid {
    display: grid;
    gap: clamp(2.4rem, 4vw, 3.6rem) clamp(2rem, 4vw, 4rem);
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: clamp(2.4rem, 4vw, 3.2rem);
    border-top: 1px solid var(--rule);
}

@media (min-width: 60rem) {
    .dash__grid {
        grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    }
}

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

    .dash__steps a {
        border-bottom: 1px solid var(--rule);
        transition: border-color 0.4s var(--slow);
    }

        .dash__steps a:hover {
            border-bottom-color: var(--gold);
        }

.dash__note {
    margin-top: 1.2rem;
    font-size: var(--type-small);
    color: var(--ink-soft);
}

/* The crop of a photograph (panel.js over Cropper.js): the house's sheet over the dimmed page, as the way out's
   question is set — the title in the display face, one quiet line, the photograph under its square, the refusal of a
   square too small right under it, and the two buttons. Cropper.js's square is drawn in the house's gold. */
html.is-cropping {
    overflow: hidden;
}

.crop {
    width: min(100% - 2 * var(--gutter), 40rem);
    max-height: calc(100% - 2rem);
    padding: clamp(1.2rem, 3vw, 2.2rem);
    border: 0;
    background: var(--ground);
    color: var(--ink);
    text-align: center;
    box-shadow: var(--shadow-sheet);
    overflow: auto;
}

    .crop::backdrop {
        background: rgba(5, 5, 5, 0.42);
    }

    .crop[open] {
        animation: leave-in 0.5s var(--slow);
    }

    .crop:focus {
        outline: none;
    }

.crop__title {
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-subtitle);
    line-height: 1.15;
}

.crop__lead {
    margin-top: 0.8rem;
    font-size: var(--type-small);
    line-height: 1.6;
    color: var(--ink-soft);
}

/* The photograph's place: as tall as the screen allows with the words and the buttons, so the whole sheet stands in
   sight and the square stays whole. */
.crop__area {
    /* Never taller than it is wide on a phone, where the photograph would float in empty paper and push the buttons out. */
    height: clamp(12rem, min(100vh - 19rem, 100vw - 7rem), 30rem);
    height: clamp(12rem, min(100svh - 19rem, 100vw - 7rem), 30rem);
    margin-top: 1.4rem;
    background: var(--card);
}

    .crop__area img {
        display: block;
        max-width: 100%;
    }

    .crop__area .cropper-view-box {
        outline: 1px solid var(--gold);
    }

    .crop__area .cropper-line,
    .crop__area .cropper-point {
        background-color: var(--gold);
    }

    /* Outside the square the photograph is veiled by the page's paper, never darkened: the light panel stays light. */
    .crop__area .cropper-modal {
        background-color: var(--ground);
        opacity: 0.62;
    }

.crop__note {
    min-height: 1.6em;
    margin-top: 0.8rem;
    font-size: var(--type-small);
    line-height: 1.6;
    color: var(--error);
    opacity: 0;
    transition: opacity 0.3s var(--slow);
}

    .crop__note.is-in {
        opacity: 1;
    }

.crop__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.4rem;
    margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .crop[open] {
        animation: none;
    }
}

/* The couple's photographs beside the book: one row per guest's letter — the photograph small and square, the name,
   the opening, and the quiet words to add, change or remove it. */
.photo-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.photo-list__item {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr) auto;
    gap: 1.2rem;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rule);
}

.photo-list__frame {
    width: 3.6rem;
    aspect-ratio: 1;
    border: 1px solid var(--rule);
    overflow: hidden;
}

    .photo-list__frame img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.photo-list__who {
    display: grid;
    gap: 0.2rem;
}

.photo-list__name {
    font: 400 1.15rem/1.3 var(--display);
}

.photo-list__opening {
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size-small);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    color: var(--ink-soft);
}

.photo-list__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem 1.2rem;
}

    .photo-list__actions label {
        cursor: pointer;
    }

/* The printed book's cover styles: each the couple's own front, square as the book, a hairline round its paper and the
   style's name beneath. The radio stays in the page, unseen, so the arrows and the keyboard choose as in any group; the
   chosen front takes an ink frame and its name a gold hairline. */
.cover-pick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 1.6rem 1.2rem;
    margin: 0.4rem 0 1.6rem;
    padding: 0;
    border: 0;
}

.cover-pick__item {
    position: relative;
    display: grid;
    gap: 0.6rem;
    margin: 0;
    cursor: pointer;
}

.cover-pick__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* The frame holds the hairline, so the picture read close under the pointer (ui.js's data-magnify) is enlarged inside it. */
.cover-pick__frame {
    display: block;
    border: 1px solid var(--rule);
    outline: 1px solid transparent;
    transition: border-color 0.35s var(--slow), outline-color 0.35s var(--slow);
}

.cover-pick__picture {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.cover-pick__name {
    justify-self: start;
    padding-bottom: 0.2rem;
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size-small);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    color: var(--ink-soft);
    background: linear-gradient(var(--gold), var(--gold)) no-repeat left bottom / 0 1px;
    transition: color 0.35s var(--slow), background-size 0.45s var(--slow);
}

.cover-pick__item:hover .cover-pick__frame {
    border-color: var(--ink-soft);
}

.cover-pick__input:checked ~ .cover-pick__frame,
.cover-pick__item.is-chosen .cover-pick__frame {
    border-color: var(--ink);
    outline-color: var(--ink);
}

.cover-pick__input:checked ~ .cover-pick__name,
.cover-pick__item.is-chosen .cover-pick__name {
    color: var(--ink);
    background-size: 100% 1px;
}

.cover-pick__input:focus-visible ~ .cover-pick__frame {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* Held while a book is in payment or in print: the chosen front alone, larger than one choice, since nothing stands
   beside it — at a choice's 12rem its words could not be read, as the configurator's cover's could not (the tester's
   report of 2026-11-26). */
.cover-pick--chosen {
    grid-template-columns: minmax(0, 24rem);
}

@media (max-width: 40rem) {
    .cover-pick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .photo-list__actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}

.figures--plain {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* The page for guests' opening words (Views/Guest/Index.cshtml) share this name with guests.css. */
.guests__intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem 2rem;
}

/* -- The couple's guests and their answers: the answers as one calm strip with its figures, the tools to find a guest, and the list of guests,
   each entry opening to its invitation. guest-list.js moves it; without the script it all stands still and works. */
.guests-panel__intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem 2rem;
}

.guests-panel__counts > .panel__lead + .panel__lead {
    margin-top: 0.2rem;
}

.guests-panel__notices > .notice {
    margin-top: 1.4rem;
}

/* The answers: a title and „12 z 40” over one strip — its parts the shares of every invitation, who comes in gold, who
   declines in ink, who answered without saying in soft ink, and who has not answered the hairline the strip runs on —
   drawn from the left as the screen opens (no gradient, no box). Under it the figures in the display face, each over
   its word and the strip's own mark, so the eye joins a number to its part. */
.answer-tally {
    margin-top: clamp(2rem, 4vw, 3.2rem);
}

.answer-tally__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1.6rem;
    margin-bottom: 0.9rem;
}

.answer-tally__title,
.answer-tally__group-title {
    margin: 0;
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    color: var(--ink-soft);
}

.answer-tally__of {
    margin: 0;
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-heading);
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
}

.answer-tally__strip {
    display: flex;
    align-items: center;
    height: 0.3rem;
}

/* Each part its share, three pixels of paper after it; a part nobody stands in takes no room and leaves no gap. */
.answer-tally__part {
    flex: 0 1 var(--share);
    height: 100%;
    margin-right: 3px;
    transform-origin: left center;
    transition: flex-basis 0.9s var(--slow), margin 0.9s var(--slow);
}

    .answer-tally__part:last-child,
    .answer-tally__part.is-empty {
        margin-right: 0;
    }

.answer-tally__part--attending {
    background: var(--gold);
}

.answer-tally__part--declined {
    background: var(--ink);
}

.answer-tally__part--answered {
    background: var(--ink-soft);
}

/* Who has not answered yet is the room left on the strip, as thick as the answers beside it and in the hairline's own
   pale ink. */
.answer-tally__part--waiting {
    flex: 1 1 var(--share);
    background: var(--rule);
}

@media (prefers-reduced-motion: no-preference) {
    .answer-tally__part {
        animation: answer-tally-draw 1.4s var(--slow) both;
    }

    .answer-tally__part--declined {
        animation-delay: 0.14s;
    }

    .answer-tally__part--answered {
        animation-delay: 0.24s;
    }

    .answer-tally__part--waiting {
        animation-delay: 0.36s;
    }
}

@keyframes answer-tally-draw {
    from {
        transform: scaleX(0);
    }
}

.answer-tally__figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
    gap: 1.2rem clamp(1.6rem, 3vw, 2.6rem);
    margin: 1.5rem 0 0;
}

/* The number above its word (the markup keeps the word first, as a list of terms does), every number on one line
   however many lines its word takes. */
.answer-tally__figure {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

    .answer-tally__figure dd {
        margin: 0;
        font-family: var(--display);
        font-weight: var(--weight-display);
        font-size: var(--type-subtitle);
        line-height: 1;
        letter-spacing: var(--display-tracking);
        font-variant-numeric: lining-nums tabular-nums;
    }

    .answer-tally__figure dt {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-family: var(--sans);
        font-weight: var(--sans-weight);
        font-size: var(--caps-size-small);
        letter-spacing: var(--caps-tracking);
        text-transform: uppercase;
        color: var(--ink-soft);
    }

        /* The strip's own mark beside each word. */
        .answer-tally__figure dt::before {
            content: '';
            flex: 0 0 0.9rem;
            height: 0.3rem;
            background: currentColor;
        }

.answer-tally__figure--attending dt::before {
    background: var(--gold);
}

.answer-tally__figure--declined dt::before {
    background: var(--ink);
}

.answer-tally__figure--waiting dt::before {
    height: 1px;
    background: var(--ink-soft);
}

/* The logistics in their own groups, never one line mixing kinds of data: each group its name in small
   capitals over an ink rule, a row per figure between hairlines, as the caliber sheet sets its rows. */
.answer-tally__more {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: clamp(1.6rem, 3vw, 2.6rem) clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    margin-top: clamp(2rem, 3.4vw, 2.8rem);
}

.answer-tally__group-title {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--ink);
}

.answer-tally__group dl {
    margin: 0;
}

    .answer-tally__group dl > div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--rule);
    }

    .answer-tally__group dt {
        font-family: var(--serif);
        font-size: var(--type-body);
        color: var(--ink-soft);
    }

    .answer-tally__group dd {
        margin: 0;
        font-family: var(--display);
        font-weight: var(--weight-display);
        font-size: var(--type-heading);
        line-height: 1;
        font-variant-numeric: lining-nums tabular-nums;
    }

/* Finding a guest: the search written on its hairline with a drawn loupe, the order beside it in small capitals — the
   one chosen underlined in gold, never washed —, and the chips under them, each with its live count. */
.roster-tools {
    display: grid;
    grid-template-columns: minmax(0, 26rem) auto;
    justify-content: space-between;
    align-items: end;
    gap: 1.1rem 2.4rem;
    margin-top: clamp(2.4rem, 4.4vw, 3.6rem);
}

.roster-tools__search {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    border-bottom: 1px solid var(--ink);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='6.6' cy='6.6' r='5' fill='none' stroke='%23050505' stroke-width='1.1'/%3E%3Cpath d='m10.4 10.4 4.6 4.6' stroke='%23050505' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 calc(100% - 0.85rem) / 0.95rem;
    transition: border-color 0.4s var(--slow);
}

    .roster-tools__search:focus-within {
        border-bottom-color: var(--gold);
    }

.roster-tools__field {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0 0 0.6rem 1.8rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--serif);
    font-size: var(--type-lede);
    color: var(--ink);
    appearance: none;
}

    .roster-tools__field:focus {
        outline: none;
    }

    .roster-tools__field::placeholder {
        color: var(--ink-soft);
        opacity: 1;
    }

    /* The system's own clearing cross gives way to the house's quiet word. */
    .roster-tools__field::-webkit-search-cancel-button,
    .roster-tools__field::-webkit-search-decoration {
        appearance: none;
        display: none;
    }

/* A button centres its words by default; here they stand on the hairline, level with the label beside them. */
.roster-tools__clear,
.roster-tools__order {
    display: inline-flex;
    align-items: flex-end;
    min-height: 2.75rem;
    padding: 0 0 0.6rem;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: none;
    color: var(--ink-soft);
    font: var(--sans-weight) var(--caps-size-small)/1.4 var(--sans);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s var(--slow), border-color 0.3s var(--slow);
}

    .roster-tools__clear:hover,
    .roster-tools__order:hover {
        color: var(--ink);
    }

    .roster-tools__clear {
        align-self: flex-end;
        margin-bottom: -1px;
    }

    .roster-tools__clear[hidden],
    .roster-tools__order[hidden] {
        display: none;
    }

    .roster-tools__order[aria-pressed="true"] {
        color: var(--ink);
        border-bottom-color: var(--gold);
    }

.roster-tools__sort {
    display: flex;
    align-items: flex-end;
    gap: 0 1.2rem;
}

.roster-tools__label {
    padding-bottom: 0.6rem;
    font: var(--sans-weight) var(--caps-size-small)/1.4 var(--sans);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.7;
    white-space: nowrap;
}

.roster-tools__chips {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* The words and the figure stand on one middle line: on their baselines the display face's figure, a size larger, would sit
   lower than the small capitals. */
.answer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font: var(--sans-weight) var(--caps-size-small)/1.3 var(--sans);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.4s var(--slow), color 0.4s var(--slow), opacity 0.4s var(--slow);
}

    .answer-chip:hover {
        color: var(--ink);
    }

    .answer-chip[aria-pressed="true"] {
        border-color: var(--gold);
        color: var(--ink);
    }

    /* A chip the search leaves empty stands back, still there to be pressed. */
    .answer-chip.is-empty {
        opacity: 0.45;
    }

.answer-chip__count {
    min-width: 1ch;
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--ink);
}

/* The list of guests as one compact table, each label said once: its head in small capitals once over an ink rule, a
   row per guest between hairlines — the case's inscription with the letter's phrase under it, where the answer stands
   behind its square, a column per answer asked, the way on at the row's end; with the script a press anywhere on the
   row follows that link (below). On a phone each row becomes one compact entry (the rule at the screen's foot). */
.roster-wrap {
    margin-top: 1.4rem;
    overflow-x: auto;
}

.roster {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--ink);
}

    .roster thead th {
        padding: 0.7rem 0.9rem 0.7rem 0;
        border-bottom: 1px solid var(--ink);
        font-family: var(--sans);
        font-weight: var(--sans-weight);
        font-size: var(--caps-size-small);
        letter-spacing: var(--caps-tracking);
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
        color: var(--ink-soft);
    }

/* „invitee”, not „guest”: .guest is the wizard's list (later in this file). */
.invitee {
    scroll-margin-top: calc(var(--header) + 4rem);
}

    /* The whole row opens its invitation (guest-list.js): it says so under the pointer with a
       breath of paper and the arrow's round in gold. */
    .has-ui .invitee {
        cursor: pointer;
        transition: background-color 0.3s var(--slow);
    }

        .has-ui .invitee:hover {
            background-color: rgba(5, 5, 5, 0.025);
        }

            .has-ui .invitee:hover .invitee__open::before {
                border-color: var(--gold);
            }

    .invitee[hidden] {
        display: none;
    }

    /* Every cell the same air above and below, its content on the row's middle, and the row's ends kept off its edges,
       so the pointer's tint has a margin round the words. */
    .invitee > th,
    .invitee > td {
        padding: 1rem 0.9rem 1rem 0;
        border-bottom: 1px solid var(--rule);
        font-weight: inherit;
        text-align: left;
        vertical-align: middle;
    }

@media (min-width: 48rem) {
    .invitee > :first-child,
    .roster thead th:first-child {
        padding-left: 0.9rem;
    }

    .invitee > :last-child {
        padding-right: 0.6rem;
    }
}

.invitee__guest {
    min-width: 11rem;
}

/* The letter's phrase close under it. */
.invitee__name {
    display: block;
    margin-bottom: 0.1rem;
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
    line-height: 1.2;
    letter-spacing: var(--display-tracking);
    white-space: pre-line;
}

/* Each answer on one line; only the notes wrap, so a long note never squeezes the other columns. */
.invitee__answer {
    font-size: var(--type-body);
    line-height: 1.4;
    white-space: nowrap;
}

    .invitee__answer.is-prose {
        min-width: 14rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }

.invitee > .invitee__act {
    text-align: right;
    white-space: nowrap;
}

/* The letter in a short phrase under the name, written as a sentence — not in capitals — with nothing before it
   (a phrase in capitals shouts); a letter still to write is the one thing on the entry that asks for a hand, so it alone takes the gold. */
/* Its face and size are „2 osoby”'s beside it. */
.invitee__letter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.55em;
    margin: 0;
    font-family: var(--serif);
    font-size: var(--type-body);
    line-height: 1.3;
    color: var(--ink-soft);
}

    .invitee__letter.is-missing {
        color: var(--gold);
    }

/* Where the answer stands, in the reading face behind the panel's one state mark (.state, StateMarkHelpers.ToneOfGuest —
   a small solid square, as an order's), never a colour of its own. */
.invitee__status,
.invitation-answer__status {
    margin: 0;
    font-family: var(--serif);
    line-height: 1.3;
    color: var(--ink);
}

.invitee__status {
    font-size: var(--type-body);
    white-space: nowrap;
}

    .invitee__status .is-late {
        display: block;
        margin-top: 0.2rem;
    }

/* How many come, a column of its own after the answer: the figure alone, lining. */
.invitee > .invitee__count {
    font-variant-numeric: lining-nums tabular-nums;
    text-align: center;
}

.invitation-answer__status {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.9rem;
    font-size: var(--type-lede);
}

    /* A removal's reason stands as words in the line, never in the box it has elsewhere. */
    .invitee__status .removed {
        padding: 0;
        border: 0;
        font-size: var(--type-body);
    }

:is(.invitee, .invitation-answer) .is-late {
    font-family: var(--sans);
    font-size: var(--caps-size-small);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    color: var(--gold);
}

/* The one way on from an entry: its words over their hairline and an arrow that leans the way it leads. */
.invitee__open,
.invitation-picker__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    color: var(--ink-soft);
    font: var(--sans-weight) var(--caps-size-small)/1.4 var(--sans);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
    transition: color 0.3s var(--slow);
}

    :is(.invitee__open, .invitation-picker__toggle) > span {
        padding-bottom: 0.15rem;
        border-bottom: 1px solid var(--rule);
        transition: border-color 0.3s var(--slow);
    }

    :is(.invitee__open, .invitation-picker__toggle):focus-visible {
        outline: 1px solid var(--ink);
        outline-offset: 4px;
    }

    .invitee__open:hover,
    .invitation-picker__toggle:hover,
    .invitation-picker[open] > .invitation-picker__toggle {
        color: var(--ink);
    }

        .invitee__open:hover > span,
        .invitation-picker__toggle:hover > span,
        .invitation-picker[open] > .invitation-picker__toggle > span {
            border-bottom-color: var(--gold);
        }

    .invitation-picker__toggle::-webkit-details-marker {
        display: none;
    }

.invitee__arrow {
    width: 0.85rem;
    height: 0.6rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.5s var(--slow);
}

    .invitee__open:hover .invitee__arrow,
    .invitee__open:focus-visible .invitee__arrow {
        transform: translateX(0.25rem);
    }

/* In the row it is the arrow alone, in a hairline round: the round 2rem across, the press 2.75rem, the words its accessible name. */
.invitee__open {
    position: relative;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
}

    .invitee__open::before {
        content: '';
        position: absolute;
        inset: 0.375rem;
        border: 1px solid var(--rule);
        border-radius: 50%;
        transition: border-color 0.3s var(--slow);
    }

    .invitee__open:hover::before,
    .invitee__open:focus-visible::before {
        border-color: var(--gold);
    }

    .invitee__open:hover .invitee__arrow,
    .invitee__open:focus-visible .invitee__arrow {
        transform: translateX(0.12rem);
    }

.invitee__chevron {
    width: 0.7rem;
    height: 0.42rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.5s var(--slow);
}

.invitation-picker[open]:not([data-state="closing"]) > .invitation-picker__toggle .invitee__chevron {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .invitee__arrow,
    .invitee__chevron {
        transition: none;
    }
}

.guests-panel__acts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.8rem;
}

/* -- One invitation's own page (one invitation at a time, never a giant form): the
   guests before and after it on one line between hairlines, any guest picked from all of them by a name, then the
   invitation in ledger's rows — what the case says, the letter for this guest alone, the answer as it came. */
/* Right under „← Wszyscy goście”, over the guest's name, the place in the list in its
   middle as the press that opens the picker. */
.invitation-nav {
    display: grid;
    gap: 0.4rem;
    margin: 0.6rem 0 clamp(1.4rem, 2.6vw, 2rem);
    padding: 0.2rem 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
}

.invitation-nav__steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1.6rem;
}

.invitation-nav__step {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    color: var(--ink);
    font: var(--sans-weight) var(--caps-size-small)/1.4 var(--sans);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s var(--slow);
}

    .invitation-nav__step > span:not([aria-hidden]) {
        padding-bottom: 0.15rem;
        border-bottom: 1px solid var(--rule);
        transition: border-color 0.3s var(--slow);
    }

    a.invitation-nav__step:hover > span:not([aria-hidden]),
    a.invitation-nav__step:focus-visible > span:not([aria-hidden]) {
        border-bottom-color: var(--gold);
    }

    /* At an end of the list the step stays in its place, faded, so the line never jumps. */
    .invitation-nav__step.is-off {
        color: var(--ink-soft);
        opacity: 0.35;
    }

        .invitation-nav__step.is-off > span {
            border-bottom-color: transparent;
        }

.invitation-nav__at {
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-lede);
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--ink-soft);
}

/* The picker opens under the line as a sheet over the page, so the line itself never moves. */
.invitation-picker {
    position: relative;
}

.invitation-picker__body {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.4rem);
    left: 50%;
    display: grid;
    gap: 0.9rem;
    width: min(34rem, calc(100vw - 2rem));
    padding: 1rem 1.2rem 1.2rem;
    border: 1px solid var(--rule);
    border-top-color: var(--ink);
    background: var(--ground);
    transform: translateX(-50%);
}

    .invitation-picker__body .roster-tools__search[hidden] {
        display: none;
    }

@media (prefers-reduced-motion: no-preference) {
    .invitation-picker[open] > .invitation-picker__body {
        animation: picker-in 0.32s var(--slow);
    }
}

@keyframes picker-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.invitation-picker__list {
    max-height: min(22rem, 50vh);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    overscroll-behavior: contain;
}

    .invitation-picker__list > li[hidden] {
        display: none;
    }

    .invitation-picker__list a {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: baseline;
        gap: 0.2rem 1.2rem;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--rule);
        color: var(--ink);
        text-decoration: none;
    }

        .invitation-picker__list a:hover .invitation-picker__name,
        .invitation-picker__list a:focus-visible .invitation-picker__name {
            box-shadow: inset 0 -1px 0 var(--gold);
        }

        .invitation-picker__list a[aria-current="page"] .invitation-picker__name {
            box-shadow: inset 0 -1px 0 var(--ink);
        }

.invitation-picker__name {
    font-family: var(--serif);
    font-size: var(--type-body);
}

.invitation-picker__state {
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size-small);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* The invitation's form spans its ledger's rows; each part keeps its fields to the reading measure. */
.invitation-form {
    display: block;
}

/* The letter's part in two columns on a wide screen: who the guest is to the couple
   and their story on the left — what the letter is written from —, the letter itself on the right; one column on a
   phone, the notes first. */
.invitation-letter {
    display: grid;
    gap: 1.6rem clamp(2rem, 4vw, 3.6rem);
    align-items: start;
}

    .invitation-letter__about,
    .invitation-letter__letter {
        display: grid;
        gap: 1.6rem;
        min-width: 0;
    }

@media (min-width: 60rem) {
    /* Two reading measures side by side, never the one form's. */
    .panel__main .form.invitation-letter {
        max-width: 72rem;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    }
}

.invitation-answer .particulars + .particulars {
    margin-top: 1.2rem;
}

/* The way to the next guest to add, and the deletion asked first in the house's dialog: one quiet line, apart. */
.invitation-more {
    margin-top: clamp(2.2rem, 4vw, 3.2rem);
}

.invitation-more__acts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}

/* On a wide screen it stands under the rows' right column, where their content stands. */
@media (min-width: 72rem) {
    .invitation-more {
        display: grid;
        grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
        column-gap: clamp(2rem, 4vw, 4.5rem);
    }

        .invitation-more__acts {
            grid-column: 2;
        }
}
/* What the server answered a save under its button while it is on its way, or its refusal in the house's one voice for
   a refusal — the words typed kept; a save goes on to the invitation's page with its notice. */
.guest-form__answer {
    margin: 0;
    font-family: var(--serif);
    font-size: var(--type-small);
    line-height: 1.5;
    color: var(--ink-soft);
}

    .guest-form__answer:empty {
        display: none;
    }

    .guest-form__answer.is-refused {
        color: var(--error);
    }

/* Nobody the search and the chip let through: one line and the way back to everybody. */
.roster__none {
    display: grid;
    justify-items: start;
    gap: 0.4rem;
    margin-top: 1.8rem;
    color: var(--ink-soft);
}

    .roster__none[hidden] {
        display: none;
    }

/* An empty list is a calm beginning: the couple's card as the guests will hold it, small, beside one line on what each
   guest receives and the way to the first invitation. */
.guests-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(1.6rem, 4vw, 3.4rem);
    max-width: 54rem;
    margin-top: clamp(1.8rem, 3.4vw, 2.8rem);
    padding: clamp(1.8rem, 3.4vw, 2.6rem) 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule);
}

.guests-empty__words {
    display: grid;
    flex: 1 1 18rem;
    gap: 1rem;
}

    .guests-empty__words .text {
        max-width: 34rem;
        margin: 0;
        color: var(--ink-soft);
    }

.guests-empty__title {
    margin: 0;
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-subtitle);
    line-height: 1.1;
    letter-spacing: var(--display-tracking);
}

/* On a phone every guest is one compact entry rather than a table's row: the name with the letter's phrase, the answer
   under it, each answer given on a line of its own behind its small label (the table's head is not shown), the way on
   at the foot; the tools stack, and the chips and the orders run on one line that scrolls sideways. */
@media (max-width: 47.99rem) {
    .roster thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .roster,
    .roster tbody,
    .invitee,
    .invitee > th,
    .invitee > td {
        display: block;
    }

    .invitee {
        padding: 1.1rem 0;
        border-bottom: 1px solid var(--rule);
    }

        .invitee > th,
        .invitee > td {
            padding: 0;
            border: 0;
        }

        .invitee > .invitee__status {
            margin-top: 0.55rem;
        }

        /* One entry per guest on a phone: every answer wraps under its label again. */
        .invitee > .invitee__answer {
            display: flex;
            gap: 0.8rem;
            margin-top: 0.35rem;
            min-width: 0;
            white-space: normal;
            overflow-wrap: anywhere;
        }

            .invitee > .invitee__answer::before {
                content: attr(data-label);
                flex: 0 0 7.5rem;
                padding-top: 0.2em;
                font-family: var(--sans);
                font-weight: var(--sans-weight);
                font-size: var(--caps-size-small);
                letter-spacing: var(--caps-tracking);
                text-transform: uppercase;
                color: var(--ink-soft);
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .invitee > .invitee__answer.is-empty {
                display: none;
            }

        .invitee > .invitee__act {
            margin-top: 0.3rem;
            text-align: left;
        }

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

    .roster-tools__chips {
        grid-row: auto;
    }

    .roster-tools__chips,
    .roster-tools__sort {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
        scrollbar-width: none;
    }

        .roster-tools__chips::-webkit-scrollbar,
        .roster-tools__sort::-webkit-scrollbar {
            display: none;
        }

    /* The three figures side by side, as the strip above them: two and one under it read as a different count. */
    .answer-tally__figures {
        grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
        gap: 1rem 1.2rem;
    }

        /* The strip's mark stands over the word, which then has its column's whole width. */
        .answer-tally__figure dt {
            display: grid;
            justify-items: start;
            gap: 0.45rem;
        }

            .answer-tally__figure dt::before {
                width: 0.9rem;
            }
}

/* The wizard: the steps as one numbered line, the one open underlined in gold, a done one ticked. */
.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem 1.6rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
}

    /* The ways out of the wizard — back to the panel and Help — stand together at the steps' right. */
    .wizard-steps__ways {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem 1.6rem;
    }

    .wizard-steps ol {
        counter-reset: wizard;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem 1.4rem;
        list-style: none;
    }

    .wizard-steps li {
        counter-increment: wizard;
    }

        .wizard-steps li a {
            display: inline-block;
            padding: 0.5rem 0;
            opacity: 0.6;
        }

            .wizard-steps li a::before {
                content: "0" counter(wizard) " ";
                color: var(--gold);
            }

        .wizard-steps li.is-done a::after {
            content: " ✓";
            color: var(--gold);
        }

        .wizard-steps li a[aria-current="step"],
        .wizard-steps li a:hover {
            opacity: 1;
            border-bottom: 1px solid var(--gold);
        }

/* The steps' own hairline closes the wizard's head: the first section under it adds no second one. */
.wizard-steps + .section {
    padding-top: 0;
    border-top: 0;
}

/* A wizard step's parts stand apart by the panel's own air, never glued together; a part that sets its own spacing keeps it. */
:where(.page__inner:has(> .wizard-steps)) .section > * + * {
    margin-top: 1.2rem;
}

    :where(.page__inner:has(> .wizard-steps)) .section > .section__title + * {
        margin-top: 0;
    }

/* One invitation beside the letter its guest will open: side by side on a wide screen, one under the other on a phone. */
.wizard-guest {
    display: grid;
    gap: 2.5rem;
}

    /* Under the pasted list's fold, folded or open, the invitation's form stands apart, its label never glued to
       the fold's line. */
    .wizard-paste + .wizard-guest {
        margin-top: clamp(2rem, 4vw, 3rem);
    }

@media (min-width: 64rem) {
    .wizard-guest {
        grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
        align-items: start;
    }

        /* The form and its button in the left column, the preview beside both. */
        .wizard-guest > .wizard-preview {
            grid-column: 2;
            grid-row: 1 / span 2;
        }

        .wizard-guest > .wizard-guest__actions {
            grid-column: 1;
        }

    /* Under the header, which stays on the screen — at 2rem from the window's top the preview's head would slide under it. */
    .wizard-preview {
        position: sticky;
        top: calc(var(--header) + 2rem);
    }
}

.wizard-preview .letter {
    margin: 1rem 0 0;
}

/* The letter sheet's face as the print sets it (letter-sheet.js, _SheetPreview): the square sheet of cotton on the page's
   paper with the house's light shadow, the zones for the hand marked on it by the script, and under it the line the
   server's refusal repeats when the letter does not stand on the face. */
.sheet-preview {
    margin: 0;
}

.sheet-preview__paper {
    margin: 1rem 0 0;
    box-shadow: var(--shadow-sheet);
}

.sheet-preview__canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.sheet-preview__overflow {
    margin: 0.75rem 0 0;
    color: var(--error);
}

.letter--preview {
    font-size: var(--type-body);
}

.wizard-list summary {
    cursor: pointer;
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
}

.wizard-list__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.4rem 1.6rem;
    margin-top: 1rem;
    padding-left: 1.4rem;
}

    .wizard-list__items li {
        display: flex;
        justify-content: space-between;
        gap: 0.8rem;
        padding: 0.35rem 0;
        border-bottom: 1px solid var(--rule);
    }

    .wizard-list__items a[aria-current="step"] {
        border-bottom: 1px solid var(--gold);
    }

.wizard-open {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.4rem;
    list-style: none;
}

.wizard-fixes {
    display: grid;
    gap: 1rem;
    margin-top: 1.6rem;
    list-style: none;
}

.wizard-fix {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
}

    .wizard-fix del {
        color: var(--ink-soft);
    }

    .wizard-fix ins {
        text-decoration: none;
        border-bottom: 1px solid var(--gold);
    }

    .wizard-fix.is-done {
        opacity: 0.6;
    }

.wizard-summary__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1.2rem;
}

/* Each guest of the review on one grid of the same columns in every row, so who the guest is to the couple — „Świadek”,
   „Rodzeństwo” — stands in one column under the other, never pushed sideways by the inscription's length as the
   wrapping flex row did (the tester's report of 2026-10-12). On a phone the inscription and „Zmień” share the first
   line and the role, then the language, the second, from the same left edge. */
.wizard-review-guests__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
        "name change"
        "meta meta";
    align-items: baseline;
    gap: 0.4rem 1.2rem;
}

    .wizard-review-guests__head .inscription {
        grid-area: name;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .wizard-review-guests__head > .link {
        grid-area: change;
    }

.wizard-review-guests__meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
}

/* No role written: on a phone the language starts the line; on a wide screen the grid's areas keep the column. */
.wizard-review-guests__role:empty {
    display: none;
}

@media (min-width: 48rem) {
    /* The role and the language each a column of its own; the role's column holds the longest of the usual words and
       a short phrase of the couple's own, wrapping inside it rather than moving the language. */
    .wizard-review-guests__head {
        grid-template-columns: minmax(0, 1fr) minmax(0, 14rem) minmax(0, 8rem) max-content;
        grid-template-areas: "name role language change";
    }

    .wizard-review-guests__meta {
        display: contents;
    }

    .wizard-review-guests__role {
        grid-area: role;
    }

    .wizard-review-guests__language {
        grid-area: language;
    }
}

.wizard-review-guests {
    display: grid;
    gap: 0.4rem;
    margin-top: 1.2rem;
    list-style: none;
}

    .wizard-review-guests li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--rule);
    }

.wizard-review-guests__letter-text {
    margin-top: 0.5rem;
    white-space: pre-line;
}

.wizard-address {
    white-space: normal;
}

.wizard-approve {
    padding-top: 2rem;
    border-top: 1px solid var(--ink);
}

.table-wrap {
    overflow-x: auto;
}

/* A table's rows read at the text's own size, never a step smaller. */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--type-lede);
}

/* A state with its mark — one component for every state the couple's panel names: a small solid square before the words, its colour the state's
   tone. Written by Views/Shared/_State.cshtml — <partial name="_State" model="(StateMarkHelpers.ToneOf(x), words)" />
   — or, on an element with a look of its own, by class="@StateMarkHelpers.ClassOf(tone)"; the tone is
   Helpers/StateMarkHelpers' alone (an order, a case, the series' stage and status, a guest's answer through
   ToneOfGuest), never a modifier written in a view. Modifiers, over site.css's --state-* tokens:
   .state--done (paid, made, accepted, answered — green), .state--waiting (on its way — gold), .state--refused (not
   accepted — the error red), .state--neutral (cancelled, closed — soft ink). The words keep their element's own face,
   size and colour; only the square is coloured. */
.state {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5em;
    --state-mark: var(--state-neutral);
}

    .state::before {
        content: '';
        flex: none;
        width: 0.55em;
        height: 0.55em;
        border-radius: 1px;
        background: var(--state-mark);
    }

    .state--done { --state-mark: var(--state-done); }
    .state--waiting { --state-mark: var(--state-waiting); }
    .state--refused { --state-mark: var(--state-refused); }
    .state--neutral { --state-mark: var(--state-neutral); }
    .state--declined { --state-mark: var(--state-declined); }

@media (forced-colors: active) {
    .state::before {
        background: CanvasText;
    }
}

    .table th {
        font-family: var(--sans);
        font-weight: var(--sans-weight);
        font-size: var(--caps-size);
        letter-spacing: var(--caps-tracking);
        text-transform: uppercase;
        text-align: left;
        padding: 0.8rem 0.6rem;
        border-bottom: 1px solid var(--ink);
        white-space: nowrap;
    }

    .table td {
        padding: 0.8rem 0.6rem;
        border-bottom: 1px solid var(--rule);
        vertical-align: top;
    }

    .table .removed {
        display: block;
        padding: 0;
        border: 0;
    }

    .table .is-late {
        font-family: var(--sans);
        font-weight: var(--sans-weight);
        font-size: var(--caps-size);
        letter-spacing: var(--caps-tracking);
        text-transform: uppercase;
        color: var(--gold);
    }

.guest-list {
    display: grid;
    gap: 1rem;
}

.guest {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--rule);
}

    .guest summary {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        cursor: pointer;
        list-style: none;
    }

.inscription {
    font-family: var(--display);
    font-size: var(--type-heading);
    white-space: pre-line;
}

/* The inscription typed straight onto a sketch of what will carry it, never drawn larger than life (the home film's
   rule, HomeFilmLifeSizeTests): for a Kaseta the case's 10 cm lid seen from above (lid.js's LID), white with its edges
   and the slot the couple's photograph stands in drawn in ink, and in front of the slot the engraving — the couple's
   initials, the day and the guest's lines in EB Garamond's upright Regular, only the „&” italic (the owner's decision
   of 2026-11-20); for a Koperta the plain 12 cm square envelope with its paper band across its middle, the guest's words on the band in Cormorant. The paper is
   its own container, one of its units a millimetre of the lid: panel.js lays each row in those units where lid.js or
   envelope.js puts it. */
.inscription-sketch {
    width: min(100%, 10cm);
}

.inscription-sketch__paper {
    --inscription-line: 1.15;
    position: relative;
    container-type: inline-size;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--ink);
    background: var(--card);
    color: var(--ink);
}

/* The slot across the lid's middle, 1 mm wide (lid.js's LID.slot), where the couple's photograph stands. */
.inscription-sketch__slot {
    position: absolute;
    left: 0;
    right: 0;
    top: 49.5cqw;
    height: 1cqw;
    background: var(--ink);
}

/* The plate's measure in front of the slot (lid.js's PLATE and MEASURE: 96 % of its 96 mm, from 53.5 mm down the lid,
   45 mm deep), drawn only while a line runs past it. */
.inscription-sketch__plate {
    position: absolute;
    left: 3.92cqw;
    width: 92.16cqw;
    top: 53.5cqw;
    height: 45cqw;
    border-left: 1px dashed transparent;
    border-right: 1px dashed transparent;
    pointer-events: none;
}

.inscription-sketch.is-over .inscription-sketch__plate {
    border-color: var(--error);
}

/* A line wider than the plate turns the deep red at once, so the couple sees which line would not be burnt as typed. */
.field .inscription-sketch input.inscription-sketch__line.is-over:not([type="checkbox"]):not([type="radio"]) {
    color: var(--error);
}

/* The initials and the day, laid by panel.js where lid.js puts them. */
.inscription-sketch__head {
    position: absolute;
    left: 0;
    width: 100%;
    font-family: var(--serif);
    font-weight: 400;
    font-style: normal;
    font-size: 14.0625cqw;
    line-height: var(--inscription-line);
    text-align: center;
    white-space: pre;
    color: var(--ink);
    pointer-events: none;
}

/* Burnt like the letters, never gilded: only its italic tells the ampersand apart. */
.inscription-sketch__amp {
    font-style: italic;
}

.inscription-sketch[data-form="Envelope"] .inscription-sketch__slot,
.inscription-sketch[data-form="Envelope"] .inscription-sketch__plate,
.inscription-sketch[data-form="Envelope"] .inscription-sketch__head,
.inscription-sketch:not([data-form="Envelope"]) .inscription-sketch__band {
    display: none;
}

/* Every line centred, its line box exactly the face's height, so the baseline stands where its row puts it. */
.field input.inscription-sketch__line:not([type="checkbox"]):not([type="radio"]) {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: calc(var(--inscription-line) * 1em);
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--serif);
    font-weight: 400;
    font-style: normal;
    font-size: 5.625cqw;
    line-height: var(--inscription-line);
    text-align: center;
    white-space: pre;
    color: var(--ink);
}

/* The line the keyboard is on is said by a gold hairline under it, inside the paper — the house's focus, never the
   system's ring. */
.field input.inscription-sketch__line:not([type="checkbox"]):not([type="radio"]):focus {
    outline: none;
}

.field input.inscription-sketch__line:not([type="checkbox"]):not([type="radio"]):focus-visible {
    box-shadow: inset 0 -1px 0 var(--gold);
}

.inscription-sketch__line::placeholder {
    color: rgba(5, 5, 5, 0.26);
    opacity: 1;
}

/* The second line's word shows only while the paper is written on. */
.inscription-sketch__line[data-inscription-line="1"]::placeholder {
    color: transparent;
}

.inscription-sketch__paper:focus-within .inscription-sketch__line[data-inscription-line="1"]::placeholder {
    color: rgba(5, 5, 5, 0.26);
}

.inscription-sketch.is-frozen .inscription-sketch__line {
    cursor: default;
}

/* A line still open answers the pointer as a field does: a text caret and a quiet hairline under each line while the
   paper is pointed at. Written, a line reads as the print itself, and a couple took such a sketch for a drawing they
   could not change (the tester's report of 2026-10-12); the gold hairline of the focused line stays the one strong
   mark. */
.inscription-sketch:not(.is-frozen) .inscription-sketch__line {
    cursor: text;
}

.field .inscription-sketch:not(.is-frozen) .inscription-sketch__paper:hover input.inscription-sketch__line:not(:focus) {
    box-shadow: inset 0 -1px 0 var(--rule);
}

/* The words move to their places as a second line is written or taken away, never jump. */
@media (prefers-reduced-motion: no-preference) {
    .field input.inscription-sketch__line:not([type="checkbox"]):not([type="radio"]) {
        transition: top 0.36s var(--slow), font-size 0.36s var(--slow);
    }
}

/* A Koperta's sketch: the plain 12 cm square envelope (envelope.js's ENVELOPE, InscriptionPrintHelpers.EnvelopeWidth)
   — nothing printed on it, the owner's decision of 2026-11-21 —, never larger than life, its paper's corners square,
   and across its middle the 30 mm paper band that carries the guest's words (envelope.js's BAND_TOP and BAND.width:
   45 mm down, 30 mm deep). One of its container's units is 1.2 mm of the front: panel.js lays the lines in those units
   where envelope.js's bandSketchRows puts them on the band. */
.inscription-sketch[data-form="Envelope"] {
    width: min(100%, 12cm);
}

.inscription-sketch[data-form="Envelope"] .inscription-sketch__paper {
    aspect-ratio: 1;
    border: 1px solid var(--ink);
}

.inscription-sketch__band {
    position: absolute;
    left: 0;
    right: 0;
    top: 37.5cqw;
    height: 25cqw;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    pointer-events: none;
}

/* The band's words are printed in Cormorant, the lid's burnt in EB Garamond; 13 pt on the band's 122 mm panel. */
.field .inscription-sketch[data-form="Envelope"] input.inscription-sketch__line:not([type="checkbox"]):not([type="radio"]) {
    font-family: var(--display);
    font-size: 3.82cqw;
}

.inscription-field__count {
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    color: var(--ink-soft);
}

.inscription-field__count.is-over {
    color: var(--ink);
    font-weight: var(--sans-weight);
}

.tag {
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* The host's series laid out as pieces in a vitrine: each its own
   row between hairlines — its card standing in the case's oak plinth on the left, and beside it where the series
   stands, the pair, the day in words, the time left to it, the course from the design to the book and the one press
   that takes it further. One column on a phone, the object first; the account and the way out stand at the foot,
   small and quiet. */
.shelf__head {
    margin-bottom: clamp(2.4rem, 5vw, 4rem);
    padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
    border-bottom: 1px solid var(--rule);
}

    /* „Twoje serie” a touch lighter than the house's headings. */
    .shelf__head .page__title {
        font-weight: var(--weight-light);
    }

    .shelf__head .label {
        display: block;
        margin-bottom: 0.8rem;
    }

    /* The same head as a series' screens: the list and the account read as rooms of one panel. */
    .shelf__head .page__title {
        font-size: clamp(2rem, 3.4vw, 3.2rem);
    }

.account .shelf__head {
    margin-bottom: 0;
}

.shelf__notice {
    max-width: 44rem;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
}

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

/* One piece a row: the object in a column of its own on the page's left margin, the words beside it, both columns the
   same on every row so the cards and their words line up down the page. The head's hairline closes the first row's
   top; every other row opens with its own. */
.keep {
    display: grid;
    grid-template-columns: minmax(0, clamp(16rem, 27vw, 25rem)) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.4rem, 5vw, 6rem);
    padding: clamp(2.6rem, 5vw, 4.5rem) 0;
}

    .keep + .keep {
        border-top: 1px solid var(--rule);
    }

    /* The head's own air already stands above the first piece. */
    .keep:first-child {
        padding-top: 0;
    }

/* The object: the cover of the series' folded letter lying square on the paper. Its words are measured on the
   object's width (its container), so the cover keeps its proportions at every size. */
.keep__object {
    position: relative;
    display: block;
    width: 100%;
    container-type: inline-size;
    perspective: 70rem;
    -webkit-tap-highlight-color: transparent;
}

/* The whole object turns as one, a few degrees toward the pointer (panel.js sets the angles), and settles slowly back
   when the pointer leaves; while it follows the pointer it answers at once. A press sets it a hair deeper. */
.keep__tilt {
    display: grid;
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 1.2s var(--slow), scale 0.25s var(--slow);
}

    .keep__object.is-tracking .keep__tilt {
        transition: transform 0.3s ease-out, scale 0.25s var(--slow);
    }

    .keep__object:active .keep__tilt {
        scale: 0.985;
    }

/* The cover as the letter sheet prints it (LetterSheetBackHelpers' cover quadrant, film.js's cover, the fair's letter of
   2026-11-25): the cotton's square with the sliver of its folded thickness (--card-edge) and the light --shadow-object,
   the couple's names in its middle on three lines, the italic „&” between them — in ink, as everything printed —, no
   day. */
.keep__cover {
    position: relative;
    z-index: 1;
    justify-self: center;
    display: grid;
    align-content: center;
    justify-items: center;
    width: 86%;
    aspect-ratio: 1;
    padding: 0 12%;
    box-sizing: border-box;
    background: var(--card);
    box-shadow: 2px 3px 0 var(--card-edge), var(--shadow-object);
    color: var(--ink);
    transition: translate 0.9s var(--slow), box-shadow 0.9s var(--slow);
}

.keep__names {
    max-width: 100%;
    font-family: var(--display);
    font-size: 8cqw;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
}

    /* The „&” on a line of its own between the names, as the cover prints them on three lines. */
    .keep__names .amp {
        display: block;
        margin: 0.08em 0;
        color: var(--ink);
    }

/* Pointed at, the cover rises a hair off the paper to be looked at. */
@media (hover: hover) {
    .keep__object:hover .keep__cover,
    .keep:focus-within .keep__cover {
        translate: 0 -0.45rem;
        box-shadow: 2px 3px 0 var(--card-edge), var(--shadow-object-lifted);
    }
}

/* The words beside the object, from where the series stands to its one press. */
.keep__words {
    display: grid;
    justify-items: start;
    min-width: 0;
}

/* In ink: the state's square beside it says the colour, and gold words beside a green square clash. */
.keep__stage {
    font: 500 var(--caps-size)/1.4 var(--sans);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink);
}

.keep__title {
    margin: 1rem 0 0;
    font-family: var(--display);
    font-weight: var(--weight-light);
    font-size: var(--type-title);
    line-height: 1.02;
    letter-spacing: var(--display-tracking);
    text-wrap: balance;
}

/* The pair's link draws a gold hairline under the names from the left as it is pointed at or reached. */
.keep__pair {
    background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
    transition: background-size 0.6s var(--slow);
}

    .keep__pair:hover,
    .keep__pair:focus-visible {
        background-size: 100% 1px;
    }

/* The day upright, as on the card itself (nothing in the panel leans but a signature). */
.keep__date {
    margin: 0.7rem 0 0;
    font: 400 var(--type-lede)/1.4 var(--serif);
}

/* The time left, set as a watchmaker sets a dial's figures: light lining figures of one width, so nothing shifts as
   they tick, each with its unit in small capitals under it. */
.keep__countdown {
    display: grid;
    gap: 0.7rem;
    margin: clamp(1.8rem, 3vw, 2.4rem) 0 0;
}

.keep__countdown-label,
.keep__unit-name,
.keep__step-name,
.keep__facts {
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size-small);
    letter-spacing: var(--caps-tracking);
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.keep__units {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem clamp(1.4rem, 2.6vw, 2.4rem);
}

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

.keep__figure {
    font-family: var(--display);
    font-weight: var(--weight-light);
    font-size: var(--type-subtitle);
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
}

.keep__countdown--words {
    font: 400 var(--type-lede)/1.4 var(--serif);
    color: var(--ink-soft);
}

/* The course from the design to the book: seven marks on one hairline, those passed in ink, the one now in gold. The ink
   is drawn through to the mark now as the row comes into view (ui.js's arrival), the passed marks filling one after
   another behind it; without the script, or with reduced motion, it simply stands drawn. Each name stands under its
   mark, off the line's measure, so the marks keep one even spacing whatever their words. */
.keep__course {
    --mark: 0.6rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    width: min(100%, 36rem);
    margin: clamp(2rem, 3.4vw, 2.8rem) 0 0;
    padding: 0 0 1.9rem;
    list-style: none;
}

    .keep__course::before,
    .keep__course::after {
        content: '';
        position: absolute;
        top: calc(var(--mark) / 2 - 0.5px);
        left: calc(var(--mark) / 2);
        height: 1px;
    }

    .keep__course::before {
        right: calc(var(--mark) / 2);
        background: var(--rule);
    }

    .keep__course::after {
        width: calc((100% - var(--mark)) * var(--step) / 6);
        background: var(--ink);
        transform-origin: left;
        transition: transform 1.6s var(--slow) 0.35s;
    }

.keep__step {
    position: relative;
    z-index: 1;
    width: var(--mark);
}

.keep__mark {
    position: relative;
    display: block;
    width: var(--mark);
    height: var(--mark);
    border: 1px solid var(--ink-soft);
    border-radius: 50%;
    background: var(--ground);
    transition: background-color 0.5s var(--slow), border-color 0.5s var(--slow), box-shadow 0.5s var(--slow);
    transition-delay: calc(0.35s + var(--i) * 0.27s);
}

.keep__step.is-done .keep__mark {
    border-color: var(--ink);
    background: var(--ink);
}

.keep__step.is-now .keep__mark {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: 0 0 0 3px var(--ground), 0 0 0 4px var(--gold);
}

/* A name starts under its mark, as a timeline's labels do — the last ends under its own, at the line's end. */
.keep__step-name {
    position: absolute;
    top: calc(var(--mark) + 0.7rem);
    left: 0;
    white-space: nowrap;
}

    .keep__step:last-child .keep__step-name {
        left: auto;
        right: 0;
    }

.keep__step.is-now .keep__step-name,
.keep__step.is-done .keep__step-name {
    color: var(--ink);
}

/* Before the row arrives the line is still undrawn and its marks open. */
.has-ui .keep:not(.is-in) .keep__course::after {
    transform: scaleX(0);
}

.has-ui .keep:not(.is-in) .keep__mark {
    border-color: var(--ink-soft);
    background: var(--ground);
    box-shadow: none;
}

/* Six names need the room of a wide screen; on a narrower one only the step now is named — the stage over the pair
   says it too —, the others kept for a reader who hears the page. */
@media (max-width: 79.99rem) {
    .keep__step:not(.is-now) .keep__step-name {
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
}

/* The one press, with the series' quiet facts beside it. */
.keep__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2.2rem;
    margin-top: clamp(1.8rem, 3vw, 2.4rem);
}

.keep__facts {
    margin: 0;
}

    .keep__facts span + span::before {
        content: '·';
        margin: 0 0.8em;
        color: var(--gold);
    }

/* No series yet: the place a folded letter's cover will take, drawn in one hairline on the paper. */
.keep__place {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: 86%;
    aspect-ratio: 1;
    border: 1px solid var(--rule);
}

.keep__lede {
    max-width: 30rem;
    margin: 1rem 0 0;
    font: 400 var(--type-lede)/1.5 var(--serif);
    color: var(--ink-soft);
}

/* On a phone the object stands first, held to a comfortable size, and the words follow under it. */
@media (max-width: 47.99rem) {
    .keep {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

    .keep__object {
        max-width: 20rem;
    }
}

.shelf__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2.6rem;
    margin-top: clamp(4rem, 8vw, 6rem);
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
}

/* The host's account as a ledger: each matter a row — a gold numeral, its name and a word of why on the left, its form
   or its record on the right —, the erasure last and apart. */
.ledger__lead {
    max-width: 40rem;
    margin-top: 1rem;
    font: 400 var(--type-lede)/1.5 var(--serif);
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

.ledger__ways {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 2.4rem;
    margin-top: 1.6rem;
}

.ledger__row {
    display: grid;
    gap: 1.6rem;
    padding: clamp(2.4rem, 5vw, 3.6rem) 0;
    border-bottom: 1px solid var(--rule);
}

@media (min-width: 60rem) {
    .ledger__row {
        grid-template-columns: minmax(14rem, 22rem) minmax(0, 44rem);
        column-gap: clamp(3rem, 7vw, 7rem);
    }
}

.ledger__title {
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    line-height: 1.15;
}

.ledger__why {
    margin-top: 0.8rem;
    font-size: var(--type-small);
    line-height: 1.6;
    color: var(--ink-soft);
}

.ledger__body {
    display: grid;
    gap: 1.6rem;
    align-content: start;
    min-width: 0;
}

    .ledger__body .form {
        gap: 1.4rem;
    }

    .ledger__body .button-row {
        margin-top: 0.4rem;
    }

.ledger__current {
    display: grid;
    gap: 0.35rem;
    font-size: var(--type-lede);
    overflow-wrap: anywhere;
}

.ledger__set legend {
    margin-bottom: 1rem;
    font-family: var(--sans);
    font-weight: 500;
    font-size: var(--caps-size);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
}

.ledger__set + .ledger__set {
    margin-top: 1.4rem;
}

/* The postcode beside the town: its column holds „Kod pocztowy” on one line (a third of a phone's line would break it in
   two and drop its field below the town's), and the two fields stand on one line by their feet. */
.ledger__pair {
    grid-template-columns: minmax(8.5rem, 1fr) minmax(0, 2fr);
    align-items: end;
}

@media (max-width: 22rem) {
    .ledger__pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ledger__after {
    margin-top: -0.4rem;
}

.ledger__note {
    font-size: var(--type-body);
    line-height: 1.6;
}

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

    .ledger__held li {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.4rem 1rem;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid var(--rule);
        font-family: var(--display);
        font-size: 1.2rem;
    }

/* Apart by its ink line alone: a margin on top of the row's own air would leave the row before it (the data's copy)
   with a foot far deeper than every other row's. */
.ledger__row--last {
    border-top: 1px solid var(--ink);
    border-bottom: 0;
}

    /* The ink line alone opens the last row: the row before it draws no hairline a breath above. */
    .ledger__row:has(+ .ledger__row--last) {
        border-bottom: 0;
    }

/* A record as it was written: what, when, and the device or the clause under it, quieter. */
.trail {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trail__entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 1.4rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
}

    .trail__entry:first-child {
        padding-top: 0;
    }

    /* The row the trail stands in closes with its own hairline. */
    .trail__entry:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

.trail__what {
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
}

.trail__when {
    font-size: var(--type-small);
    color: var(--ink-soft);
    text-align: right;
}

.trail__device,
.trail__clause {
    grid-column: 1 / -1;
    font-size: var(--type-small);
    line-height: 1.5;
    color: var(--ink-soft);
}

@media (max-width: 40rem) {
    .trail__entry {
        grid-template-columns: 1fr;
    }

    .trail__when {
        text-align: left;
    }
}

/* The question before the way out (panel.js builds it from the form's data-sign-out): the browser's own modal dialog
   — focus held inside, Escape and a press beside it cancel — set as a sheet of the house's paper in the middle of a
   dimmed page. */
.leave {
    width: min(100% - 2 * var(--gutter), 30rem);
    padding: clamp(2.2rem, 5vw, 3.2rem);
    border: 0;
    background: var(--ground);
    color: var(--ink);
    text-align: center;
    box-shadow: var(--shadow-sheet);
}

    .leave::backdrop {
        background: rgba(5, 5, 5, 0.42);
    }

    .leave[open] {
        animation: leave-in 0.5s var(--slow);
    }

.leave__title {
    font-family: var(--display);
    font-weight: var(--weight-display);
    font-size: var(--type-subtitle);
    line-height: 1.15;
}

.leave__lead {
    margin-top: 1rem;
    font-size: var(--type-small);
    line-height: 1.6;
    color: var(--ink-soft);
}

.leave__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.4rem;
    margin-top: 2.2rem;
}

@keyframes leave-in {
    from { opacity: 0; transform: translateY(10px); }
}

/* With reduced motion the series' objects stand still: no turn, no rise off the paper, the course simply drawn. */
@media (prefers-reduced-motion: reduce) {
    .keep__tilt,
    .keep__cover,
    .keep__pair,
    .keep__mark,
    .keep__course::after {
        transition: none;
    }

    .keep__object:hover .keep__cover,
    .keep:focus-within .keep__cover {
        translate: none;
    }

    .leave[open] {
        animation: none;
    }
}

/* ------------------------------------------------------------- 7. Book */

/* A host's own letter as it was written, its breaks kept. */
.book__words {
    white-space: pre-line;
    font-size: var(--type-body);
    line-height: 1.6;
}

/* ------------------------------------------------------------- 8a. Letters from the footer */

/* The footer's form: one field and one quiet button on a hairline, the clause in small type under it. In the footer it
   takes the whole first row, so the mark and the links stay on the line below. Named .subscribe, never .letters: that
   is the home page's correspondence, and this sheet loads on every page (a shared name would break its desk). */
.subscribe {
    display: grid;
    gap: 0.7rem;
    max-width: 34rem;
}

    /* On the letters' own page the form's hairline runs the page's measure, as the rule above it does; its field and
       clause keep their own width. */
    .page__inner--measure > .subscribe {
        max-width: var(--measure);
    }

        .page__inner--measure > .subscribe > * {
            max-width: 34rem;
        }

/* In the footer the letters stand in a band of their own over a hairline, the links and the registration under it,
   so the form never crowds the footer: on a wide screen the title on the left in the display face, the
   field and its clause on the right, with air round both. */
.foot__letters {
    flex-basis: 100%;
    max-width: none;
    gap: 0.9rem;
    padding-bottom: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--rule);
}

    .foot__letters .subscribe__clause {
        max-width: 34rem;
        /* Close under the field. */
        margin-top: -0.4rem;
    }

.subscribe__subtitle {
    margin-top: 0.35rem;
    font-size: var(--type-small);
    color: var(--ink-soft);
}

@media (min-width: 56rem) {
    .foot__letters {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-areas: "title row" "title error" "title clause";
        column-gap: clamp(3rem, 6vw, 5rem);
        align-items: start;
    }

        .foot__letters .subscribe__head { grid-area: title; }

        .foot__letters .subscribe__title {
            font-family: var(--display);
            font-weight: var(--weight-display);
            font-size: var(--type-heading);
            letter-spacing: 0;
            text-transform: none;
        }

        .foot__letters .subscribe__row { grid-area: row; }
        .foot__letters > .field__error { grid-area: error; }
        .foot__letters .subscribe__clause { grid-area: clause; }
}

.subscribe__title {
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
}

/* The address written on a hairline in the page's serif, as every field of the house, never the system's box and grey
   button; an ink line draws over the hairline from the left while it is written, and the
   way on is a quiet word in spaced capitals with an arrow drawn as a line, which lengthens in gold under the pointer. */
.subscribe__row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-bottom: 1px solid var(--rule);
    background: linear-gradient(var(--ink), var(--ink)) no-repeat left bottom / 0 1px;
    transition: background-size 0.5s var(--slow);
}

    .subscribe__row:focus-within {
        background-size: 100% 1px;
    }

.subscribe__input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 3rem;
    padding: 0.55rem 0 0.45rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--serif);
    font-size: var(--type-lede);
    outline: none;
    box-shadow: none;
    appearance: none;
}

    .subscribe__input::placeholder {
        color: var(--ink-soft);
    }

.subscribe__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    cursor: pointer;
}

    /* The arrow: a line and its head, drawn; never a glyph. */
    .subscribe__button::after {
        content: "";
        width: 1.4rem;
        height: 0.5rem;
        background:
            linear-gradient(currentColor, currentColor) no-repeat left center / 100% 1px,
            linear-gradient(35deg, transparent 47%, currentColor 47%, currentColor 55%, transparent 55%) no-repeat right top / 0.45rem 50%,
            linear-gradient(-35deg, transparent 47%, currentColor 47%, currentColor 55%, transparent 55%) no-repeat right bottom / 0.45rem 50%;
        transition: width 0.45s var(--slow), color 0.45s var(--slow);
    }

    .subscribe__button:hover::after,
    .subscribe__button:focus-visible::after {
        width: 2.1rem;
        color: var(--gold);
    }

    .subscribe__button:focus-visible {
        outline: 1px solid var(--gold);
        outline-offset: 4px;
    }

.subscribe__clause {
    font-size: var(--type-small);
    color: var(--ink-soft);
}

/* ------------------------------------------------------------- 9. Narrow screens */

@media (max-width: 899px) {
    .bill {
        position: static;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .link {
        transition: none;
    }
}

/* The question Platform.Web's partner.js asks before it remembers the partner whose link brought the visitor: a quiet
   card in the corner, paper on paper, never a banner over the page. */
.partner-consent {
    position: fixed;
    inset: auto 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) auto;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 380px;
    padding: 1.4rem 1.6rem;
    background: var(--ground);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: var(--serif);
}

.partner-consent-text {
    margin: 0;
    font-size: var(--type-body);
    line-height: 1.55;
    color: var(--ink-soft);
}

.partner-consent-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.partner-consent-accept,
.partner-consent-decline {
    min-height: 44px;
    padding: 0.55rem 1.4rem;
    font-family: var(--sans);
    font-weight: var(--sans-weight);
    font-size: var(--caps-size);
    letter-spacing: var(--caps-tracking);
    text-transform: uppercase;
    cursor: pointer;
}

.partner-consent-accept {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--ground);
}

.partner-consent-decline {
    border: 0;
    background: transparent;
    color: var(--ink-soft);
}

    .partner-consent-accept:focus-visible,
    .partner-consent-decline:focus-visible {
        outline: 1px solid var(--gold);
        outline-offset: 3px;
    }

@media (max-width: 760px) {
    .partner-consent {
        inset: auto 1rem calc(1rem + env(safe-area-inset-bottom, 0px)) 1rem;
        max-width: none;
    }
}

@media print {
    .partner-consent {
        display: none !important;
    }
}
