:root {
    --color-page: #ddd5ce;
    --color-paper: #fbf7f4;
    --color-text: #212529;
    --color-accent: #ffd8a8;
    --color-accent-text: #ffbd59;
    --color-link: #9a4600;
    --color-link-hover: #c25800;
    --color-focus: #ff922b;

    --font-body: 'Open Sans', Tahoma, Arial, sans-serif;

    --poster-max-width: 56.25rem;
    --poster-min-desktop-width: 46rem;
    --section-gutter: 15px;
    --section-rule-width: 3px;

    --heading-size: 13.8cqi;
    --cat-width: 90cqi;
    --cat-clearance-point: 42cqi;
    --details-clearance: 0.5rem;
    --details-width: 49cqi;
    --headline-height: 2.06em;

    --intro-box-padding: 5px;

    --about-facts-width: 18.3rem;
    --about-story-min-width: 17rem;
    --about-story-max-width: 22rem;
    --about-upper-photo-max: 27rem;
    --about-lower-photo-width: min(59cqi, 38rem);
    --about-row-gap: clamp(0.5rem, 1cqi, 0.75rem);
    --about-edge-gap: clamp(0.75rem, 1.5cqi, 1.25rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    background: var(--color-page);
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--color-page);
    color: var(--color-text);
    font-family: var(--font-body);
}

button,
a {
    font-family: inherit;
}

a {
    color: var(--color-link);
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

a:visited {
    color: var(--color-link);
}

a:hover,
a:focus-visible {
    color: var(--color-link-hover);
}

/* Inline actions */

.poster-inline-action {
    display: inline-block;
    margin: -0.6em -0.7em;
    padding: 0.6em 0.7em;
    border: 0;
    border-radius: 0.2em;
    color: var(--color-link);
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.poster-inline-action:hover,
.poster-inline-action:focus-visible {
    color: var(--color-link-hover);
}

.poster-inline-action:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Poster shell */

.poster {
    container-name: poster;
    container-type: inline-size;

    width: min(
        100%,
        clamp(
            var(--poster-min-desktop-width),
            80vw,
            var(--poster-max-width)
        )
    );

    min-height: 100vh;
    margin-inline: auto;

    background: var(--color-paper);
}

/* Hero */

.poster-hero {
    isolation: isolate;
    overflow-x: clip;
}

.poster-hero__stage {
    width: 100%;
    font-size: var(--heading-size);
}

.poster-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: var(--cat-clearance-point);
    padding-bottom: var(--details-clearance);
}

.poster-hero__narrow-region,
.poster-hero__narrow-align {
    display: contents;
}

.poster-hero__headline {
    position: relative;
    z-index: 2;
    display: grid;
    width: max-content;
    grid-template-areas:
        "missing"
        "horace";
    grid-template-columns: max-content;
    grid-template-rows: repeat(2, auto);
    margin: 0;
    padding: 0;
    font-size: 1em;
    font-weight: 800;
    line-height: 0.84;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    white-space: nowrap;
}

.poster-hero__missing,
.poster-hero__horace {
    display: flex;
    align-items: center;
    padding: 0.11em 0.12em 0.08em 0.14em;
}

.poster-hero__headline-text {
    display: block;
}

.poster-hero__missing {
    grid-area: missing;
    color: var(--color-text);
    background: var(--color-accent);
}

.poster-hero__horace {
    grid-area: horace;
    color: var(--color-accent-text);
    background: var(--color-text);
}

.poster-hero__details {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: var(--details-width);
    min-width: 0;
    padding-top: 20px;
    padding-left: 10px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.poster-hero__details-text {
    width: max-content;
    max-width: 100%;
    min-width: 0;
    text-align: left;
}

.poster-hero__details p {
    margin: 0;
    white-space: nowrap;
}

.poster-hero__details-title {
    margin-bottom: 0.15rem !important;
    font-size: 1.5rem;
    line-height: 1.2;
}

.poster-hero__cat {
    position: relative;
    z-index: 0;
    display: block;
    width: var(--cat-width);
    max-width: none;
    height: auto;
    margin-top: calc(-1 * var(--cat-clearance-point));
    margin-left: auto;
}

@container poster (max-width: 30rem) {
    .poster-hero__narrow-region {
        display: flex;
        justify-content: center;
        width: 65cqi;
        min-width: 0;
        padding-left: 10px;
    }

    .poster-hero__narrow-align {
        position: relative;
        display: block;
        width: max-content;
        max-width: 100%;
        min-width: 0;
        padding-top: calc(var(--headline-height) + 1.25rem);
    }

    .poster-hero__headline {
        position: absolute;
        top: 0;
        left: 0;
        width: max-content;
    }

    .poster-hero__missing,
    .poster-hero__horace {
        position: relative;
        padding: 0.11em 0.12em 0.08em 0;
        clip-path: inset(0 -100vmax);
    }

    .poster-hero__missing {
        box-shadow: 0 0 0 100vmax var(--color-accent);
    }

    .poster-hero__horace {
        box-shadow: 0 0 0 100vmax var(--color-text);
    }

    .poster-hero__details {
        display: block;
        width: auto;
        min-width: 0;
        padding: 0;
        font-size: 1rem;
    }

    .poster-hero__details-text {
        width: max-content;
        max-width: 100%;
    }

    .poster-hero__cat {
        width: 100cqi;
        margin-top: -7rem;
    }
}

@container poster (max-width: 22.4rem) {
    .poster-hero__cat {
        margin-top: -3.5rem;
    }
}

/* Intro and quick actions */

.poster-intro {
    display: grid;
    grid-template-areas: ". action . message .";
    grid-template-columns:
        minmax(15px, 1.5fr)
        max-content
        minmax(15px, 1fr)
        max-content
        minmax(15px, 1.5fr);
    align-items: center;
    padding-block: 0 15px;
    font-size: 1rem;
    line-height: 1.4;
}

.poster-intro__action,
.poster-intro__message {
    min-width: 0;
    padding: var(--intro-box-padding);
}

.poster-intro__action {
    grid-area: action;
    background: var(--color-accent);
}

.poster-intro__message {
    grid-area: message;
}

.poster-intro p {
    margin: 0;
    white-space: nowrap;
}

.poster-intro__action p + p {
    margin-top: 1rem;
}

.poster-intro__message p + p {
    margin-top: 0.15rem;
}

.poster-intro__optional-break {
    display: inline;
}

@container poster (max-width: 45.8rem) {
    .poster-intro__optional-break {
        display: block;
    }
}

@container poster (max-width: 37rem) {
    .poster-intro__message-break {
        display: block;
    }
}

@container poster (max-width: 30rem) {
    .poster-intro {
        grid-template-areas:
            "message"
            "action";
        grid-template-columns: minmax(0, 1fr);
        row-gap: 15px;
        margin: 0 10px;
    }

    .poster-intro__action,
    .poster-intro__message {
        width: 100%;
    }

    .poster-intro p {
        white-space: normal;
    }

    .poster-intro__optional-break,
    .poster-intro__message-break {
        display: inline;
    }
}

@container poster (max-width: 24.5rem) {
    .poster-intro__optional-break {
        display: block;
    }
}

@container poster (max-width: 20.5rem) {
    .poster-intro__message-break {
        display: block;
    }
}

/* Accordions */

.poster-accordion {
    border-top: var(--section-rule-width) solid var(--color-page);
    border-bottom: var(--section-rule-width) solid var(--color-page);
}

.poster-accordion + .poster-accordion {
    border-top: 0;
}

.poster-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: 12px var(--section-gutter);
    cursor: pointer;
    user-select: none;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.poster-accordion__trigger::-webkit-details-marker {
    display: none;
}

.poster-accordion__trigger::marker {
    content: "";
}

.poster-accordion__heading {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

.poster-accordion__heading-prefix {
    display: inline;
}

@container poster (max-width: 27.5rem) {
    .poster-accordion__heading-prefix {
        display: none;
    }
}

.poster-accordion__trigger::after {
    content: "";
    flex: 0 0 auto;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.35rem;
    border-right: 0.16rem solid currentColor;
    border-bottom: 0.16rem solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease-in-out;
}

.poster-accordion[open] > .poster-accordion__trigger::after {
    transform: rotate(225deg);
}

.poster-accordion__trigger:hover {
    background: rgb(0 0 0 / 0.035);
}

.poster-accordion__trigger:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: -2px;
}

.poster-accordion__panel {
    overflow: hidden;
    transition: height 0.3s ease;
}

.poster-accordion__body {
    padding-top: 12px;
}

/* Shared body copy */

.poster-copy {
    padding-inline: var(--section-gutter);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.poster-section-heading {
    margin: 0 0 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

.poster-copy__subheading {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.poster-copy p {
    margin: 0 0 0.9rem;
}

.poster-copy__aside {
    margin-bottom: 0.2rem !important;
}

.poster-copy ul {
    margin: -0.3rem 0 0.9rem;
    padding-left: 1.6em;
}

.poster-copy li {
    margin: 0;
}

.poster-copy li + li {
    margin-top: 0.25rem;
}

/* About Horace */

.poster-about {
    overflow-x: clip;
}

.poster-about__body {
    display: flex;
    flex-direction: column;
    gap: var(--about-row-gap);
}

.poster-about__upper {
    display: grid;
    grid-template-areas: "image . facts .";
    grid-template-columns:
        minmax(0, var(--about-upper-photo-max))
        minmax(0, 1fr)
        var(--about-facts-width)
        minmax(0, 1fr);
    align-items: start;
    padding-right: var(--about-edge-gap);
}

.poster-about__photo {
    display: block;
    height: auto;
}

.poster-about__photo--upper {
    grid-area: image;
    justify-self: start;
    align-self: start;
    width: 100%;
    max-width: var(--about-upper-photo-max);
}

.poster-about__facts {
    grid-area: facts;
    justify-self: end;
    width: var(--about-facts-width);
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
}

.poster-about__facts-list {
    margin: 0;
    padding-left: 1.4em;
}

.poster-about__facts-list li {
    margin: 0;
}

.poster-about__facts-list li + li {
    margin-top: 0.1rem;
}

.poster-about__facts-list-break-wide {
    display: block;
}

.poster-about__lower {
    position: relative;
    padding-left: var(--about-edge-gap);
}

.poster-about__story,
.poster-about__story-full {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
}

.poster-about__story {
    width: clamp(
        var(--about-story-min-width),
        39cqi,
        var(--about-story-max-width)
    );
}

.poster-about__story-full {
    width: 100%;
    padding-inline: var(--about-edge-gap);
}

.poster-about__story p,
.poster-about__story-full p {
    margin: 0;
}

.poster-about__story p + p,
.poster-about__story-full p + p {
    margin-top: 0.8rem;
}

.poster-about__photo--lower {
    position: absolute;
    right: 0;
    bottom: 0;
    width: var(--about-lower-photo-width);
    max-width: 38rem;
}

@container poster (max-width: 50rem) {
    .poster-about__facts-list-break-narrow {
        display: block;
    }
}

@container poster (max-width: 45.8rem) {
    .poster-about__lower {
        display: flex;
        flex-direction: column;
        padding-left: 0;
    }

    .poster-about__story {
        width: auto;
        margin-inline: 10px;
    }

    .poster-about__photo--lower {
        position: static;
        align-self: flex-end;
        max-width: stretch;
        width: 100%;
        margin-top: 0.75rem;
    }
}

@container poster (max-width: 37rem) {
    .poster-about__body {
        gap: 1rem;
    }

    .poster-about__upper {
        grid-template-areas:
            "image image image"
            ". facts .";
        grid-template-columns:
            minmax(0, 1fr)
            max-content
            minmax(0, 4fr);
        row-gap: 5px;
        padding-right: 0;
    }

    .poster-about__photo--upper {
        width: 100%;
        max-width: 32rem;
    }

    .poster-about__facts {
        grid-area: facts;
        justify-self: stretch;
        width: max-content;
        max-width: 100%;
        margin-top: 0;
        padding: 0;
        white-space: normal;
    }

    .poster-about__facts-list-break-narrow {
        display: inline;
    }
}

@container poster (max-width: 30rem) {
    .poster-about__facts-list-break-wide {
        display: block;
    }
}

@container poster (max-width: 22.4rem) {
    .poster-about__facts-list-break-narrow {
        display: block;
    }
}

/* Contact */

.poster-contact__body {
    padding-top: 12px;
}

.poster-contact__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    margin: 0;
    font-size: clamp(1.2rem, 3cqi, 2rem);
    font-style: normal;
}

.poster-contact__actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 12px 6px;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s ease;
}

.poster-contact__phone,
.poster-contact__phone:link,
.poster-contact__phone:visited {
    color: var(--color-text);
    background: var(--color-accent);
}

.poster-contact__phone:hover,
.poster-contact__phone:focus-visible {
    color: var(--color-link);
}

.poster-contact__email,
.poster-contact__email:link,
.poster-contact__email:visited {
    color: var(--color-accent-text);
    background: var(--color-text);
}

.poster-contact__email:hover,
.poster-contact__email:focus-visible {
    color: var(--color-focus);
}

@container poster (max-width: 38rem) {
    .poster-contact__actions {
        grid-template-columns: 1fr;
        font-size: clamp(1rem, 6cqi, 1.8rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .poster-accordion__trigger,
    .poster-accordion__trigger::after,
    .poster-accordion__panel,
    .poster-contact__actions a {
        transition: none;
    }
}
