.x021-home {
    --album-ink: #2b3027;
    --album-muted: #53564a;
    --album-paper: #f5f3ea;
    --album-frame: #252822;
    --album-mat: #363a2f;
    --album-light: #cfe1b4;
    background: var(--album-paper);
    color: var(--album-ink);
    overflow-wrap: anywhere;
}

.x021-home .x021-shell {
    width: min(var(--edition-width), calc(100% - 32px));
    margin-inline: auto;
}

.x021-home #home_header { margin: 0; }
.x021-home #home_header:has(.home-feature) { padding-block: clamp(14px, 2.6vw, 34px); }

.x021-home .home-feature {
    --home-paper: var(--album-frame);
    --home-accent: var(--album-light);
    --feature-height: clamp(162px, 27vw, 340px);
    --feature-type: clamp(1.125rem, 2.2vw, 1.72rem);
    --feature-overlay: transparent;
    --feature-inset: .75rem;
    display: grid;
    gap: clamp(.35rem, 1.25vw, .9rem);
    padding: clamp(.38rem, 1.25vw, .9rem);
    border: 1px solid #505444;
    background: var(--album-frame);
}

.x021-home .home-feature-panel {
    grid-template: var(--feature-height) auto / minmax(0, 1fr);
    min-block-size: 0;
}

.x021-home .home-feature-panel .home-feature-copy {
    position: static;
    grid-area: 2 / 1;
    align-self: start;
    max-inline-size: none;
    padding: .6rem .7rem .8rem;
    border-block-start: 1px solid #7a8768;
    color: #fbf9ef;
}

.x021-home .home-feature-title { max-inline-size: 34ch; text-wrap: balance; }
.x021-home .home-feature-title a { display: block; }
.x021-home .home-feature-title a::after {
    position: absolute;
    inset: 0 0 auto;
    block-size: var(--feature-height);
    content: "";
}
.x021-home .home-feature-date { margin-block-end: .25rem; }

.x021-home .home-feature-controls {
    --controls-paper: var(--album-mat);
    --controls-ink: #fbf9ef;
    --controls-rule: transparent;
    justify-content: center;
    gap: 0;
    padding: 3px;
}

.x021-home .home-feature-pages { gap: 3px; }

.x021-home .home-feature-page {
    inline-size: clamp(44px, 10vw, 76px);
    block-size: 48px;
}

.x021-home .home-feature-page img { opacity: .65; }
.x021-home .home-feature-page[aria-current="true"] img,
.x021-home .home-feature-page:hover img { opacity: 1; }
.x021-home .home-feature-controls button:focus-visible { outline-color: white; }

@media (min-width: 680px) {
    .x021-home .home-feature:has(.home-feature-controls:not([hidden])) {
        grid-template-columns: minmax(0, 1fr) 112px;
    }

    .x021-home .home-feature-controls,
    .x021-home .home-feature-pages { flex-direction: column; }

    .x021-home .home-feature-controls { justify-content: flex-start; }

    .x021-home .home-feature-page { inline-size: 94px; }

    .x021-home .home-feature-arrow[data-home-prev]::before { transform: rotate(-45deg); }
    .x021-home .home-feature-arrow[data-home-next]::before { transform: rotate(135deg); }
}

.x021-home .x021-reading { padding-block: clamp(24px, 3.8vw, 52px); }

.x021-home .x021-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 clamp(18px, 3vw, 32px);
    color: var(--album-ink);
    text-align: center;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.2;
}

.x021-home .x021-section-title::before,
.x021-home .x021-section-title::after {
    content: "";
    flex: 1;
    border-block: 1px dotted #8d927d;
    height: 5px;
}

.x021-home .x021-gallery,
.x021-home .x021-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(16px, 4vw, 40px);
    row-gap: 28px;
}

.x021-home .x021-print { display: block; color: inherit; }

.x021-home .x021-print img {
    display: block;
    box-sizing: border-box;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 21 / 10;
    object-fit: cover;
    background: #e4e3d7;
    padding: 5px;
    border: 1px solid #c1c2b0;
}

.x021-home .x021-reading h3 {
    margin: .65em 0 .3em;
    color: var(--album-ink);
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.24;
}

.x021-home .x021-reading h3 a { color: inherit; }

.x021-home .x021-reading p {
    margin: 0;
    color: var(--album-muted);
    font-size: .92rem;
    line-height: 1.6;
}

.x021-home .x021-notes { margin-block-start: clamp(28px, 4.3vw, 56px); }

.x021-home .x021-notes-grid article {
    padding-block-start: 8px;
    border-block-start: 2px solid #9ca889;
}

.x021-home .x021-reading a:hover { text-decoration: underline; text-underline-offset: .15em; }

@media (min-width: 760px) {
    .x021-home .x021-notes-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 510px) {
    .x021-home .x021-gallery { grid-template-columns: minmax(0, 1fr); }
}

.x021-home .x021-album-index {
    --directory-accent: #465936;
    --directory-ink: var(--album-ink);
    --directory-rule: #9ca889;
    --directory-paper: #e8e8d9;
    margin-block-start: clamp(36px, 6vw, 72px);
    padding: clamp(15px, 3vw, 30px);
    background: #eeeddf;
    border-block: 4px double #9ca889;
}

.x021-album-index .home-discovery-head {
    padding-block-end: .65rem;
    border-block-end: 1px dotted var(--directory-rule);
}

.x021-album-index .home-directory a { display: inline-block; padding-block: .3rem; }
.x021-album-index .home-topic-grid { gap: 0; }

.x021-album-index .home-topic {
    display: grid;
    gap: .2rem 1rem;
    padding-block: .75rem;
    border-block-start: 1px dotted var(--directory-rule);
}

.x021-album-index .home-topic h3 { color: #36462a; }
.x021-album-index .home-topic li { font-family: "Droid Serif", Georgia, serif; }
.x021-album-index .home-directory-banner { padding: 5px; border: 1px dotted var(--directory-rule); }

@media (min-width: 700px) {
    .x021-album-index .home-discovery-tools { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
    .x021-album-index .home-topic { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
