/*-----------------------+
 | Site: Clavis Cælestis |
 +-----------------------*/

/* Imports
==================================================*/
@import url(https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Sorts+Mill+Goudy:ital@0;1&display=swap);
@import url(/styles/reset.css);
@import url(/styles/fontawesome6/fontawesome.css);
@import url(/styles/fontawesome6/light.css);


/* Fonts
==================================================*/
body { font-family: "Sorts Mill Goudy", serif; }
[lang="el"] { font-family: "Noto Serif", serif; font-weight: 360; }
.sym { font-family: "Noto Sans Symbols", sans-serif; }


/* Basics
==================================================*/
:root {
    /* Colors */
    --accent: var(--contrast-main);
    --bg: #fff0d5;
    --contrast-main: #333;
    --contrast-accent: #fff;
    
    /* Colors - Sections */
    /* Book 1, Section 1 */ --planets: #8eaba4;
    /* Book 1, Section 2 */ --sun-inferior-planets: #58858f;
    /* Book 1, Section 3 */ --earth-moon: #2d5772;
    /* Book 1, Section 4 */ --superior-planets: #0f264d;
    /* Book 2, Section 1 */ --laws-motion: #5b385e;
    /* Book 2, Section 2 */ --light-heat: #934059;
    /* Book 2, Section 3 */ --equation-time: #c13f3c;
    /* Book 2, Section 4 */ --phaenomena-planets: #de5b3c;
    /* Book 2, Section 5 */ --theory-tides: #f2814c;
    /* Book 2, Section 6 */ --comets: #fab070;
    
    /* Depths */
    --depth: 1rem;
    
    /* Font sizes */
    --font-size-xxl: 5.61rem;
    --font-size-xl: 4.209rem;
    --font-size-l: 1.777rem;
    --font-size-m: 1.333rem;
    --font-size-b: 22px;
    --font-size-s: 0.75rem;
}

a { color: var(--contrast-main); }
a:hover { text-decoration: none; }
blockquote { margin: 0 0 0 3em; }
blockquote, ol, p, table, ul { margin-block-end: 1em; }
body { background: var(--bg); color: var(--contrast-main); line-height: 1.6; text-rendering: optimizeLegibility; }
cite, em, i { font-style: italic; }
em em, em cite { font-style: normal; }
figure { margin: 3rem 0; }
figcaption { text-align: center; }
html { font-size: var(--font-size-b); }
h1 { font-size: var(--font-size-xl); line-height: 1.1; }
h2 { font-size: var(--font-size-l); line-height: 1.1; margin: 2rem 0 1rem; }
h3 { font-size: var(--font-size-m); margin: 1rem 0; }
img { max-block-size: 100%; max-width: 100%; }
ol { list-style: decimal; padding-left: 2em; }
section { border-block-end: 1px solid rgba(0, 0, 0, 0.2); padding: 6vw 4rem 6vw 6rem; }
strong { font-weight: bold; }
sup { font-size: var(--font-size-s); line-height: 0.9; padding-inline-start: 0.1em; vertical-align: super; }
svg { block-size: 100%; inline-size: 100%; }
table { border-collapse: collapse; margin: 0 auto 1em; }
td { padding: 0.1em 1em; vertical-align: middle; }
td[rowspan] { vertical-align: middle; }

th {
    font-size: var(--font-size-s);
    line-height: 1.2;
    padding: 0.5em 1em;
    text-align: center;
    vertical-align: bottom;
}

ul { list-style: disc; padding-left: 1.5em; }


/* Colors
==================================================*/
.comets { --accent: var(--comets); }
.earth-moon { --accent: var(--earth-moon); }
.equation-time { --accent: var(--equation-time); }
.laws-motion { --accent: var(--laws-motion); }
.light-heat { --accent: var(--light-heat); }
.phaenomena-planets { --accent: var(--phaenomena-planets); }
.planets { --accent: var(--planets); }
.pages { --accent: var(--contrast-main); }
.sun-inferior-planets { --accent: var(--sun-inferior-planets); }
.superior-planets { --accent: var(--superior-planets); }
.theory-tides { --accent: var(--theory-tides); }


/* Content
==================================================*/
/* Action buttons */
.action {
    background: var(--accent);
    color: var(--contrast-accent);
    display: inline-block;
    font-size: var(--font-size-m);
    line-height: 1;
    padding: 1.2rem 1.3rem 1rem;
    text-decoration: none;
    transition: all 0.1s ease-in-out;
}

.action:hover { opacity: 0.7; }

/* Aligned lists */
.aligned-list { margin: 0 auto; white-space: nowrap; }
.aligned-list li { margin: 0; text-align: left; }
.aligned-list *[style*="inline-size"] { display: inline-block; }
.aligned-list .num { text-align: right; }

.aligned-list-wrap {
    align-items: center;
    background:
        linear-gradient(to right, var(--bg) 30%, rgba(255,255,255,0)),
        linear-gradient(to right, rgba(255,255,255,0), var(--bg) 70%) 0 100%,
        radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)),
        radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-position: 0 0, 100%, 0 0, 100%;
    background-attachment: local, local, scroll, scroll;
    display: flex;
    inline-size: 100%;
    justify-content: safe center;
    margin-block-end: 1em;
    overflow-x: auto;
    overflow-y: hidden;
}

ul.aligned-list { list-style: none; margin: 0 auto; padding: 0; }

/* Columns */
.columns { display: flex; gap: 1em; justify-content: center; margin: 0 0 1em; }
.columns.centered { margin: 0 auto; }
.columns.dividers .column { border: 1px solid var(--accent); border-width: 0 1px; padding: 0 1em; }
.columns.dividers .column:first-child { border-inline-start-width: 0; padding-inline-start: 0; }
.columns.dividers .column:last-child { border-inline-end-width: 0; padding-inline-end: 0; }
.columns2 { grid-template-columns: 1fr 1fr; }
.columns img { display: block; }

    /* Text */
    .text-cols { column-gap: 1em; }
    .text-cols3 { column-count: 3; }

/* Banners */
.banner { padding: 0; }
.banner img { display: block; inline-size: 100%; }

/* Cover */
.cover {
    align-items: center;
    background: var(--contrast-main);
    color: var(--contrast-accent);
    display: flex;
    justify-content: center;
    min-block-size: 65vh;
    padding: 8vh 2rem 6vh 4rem;
    position: relative;
    text-align: center;
}

.cover h1 { font-size: var(--font-size-xxl); font-style: italic; line-height: 1; margin-bottom: 1rem; }

.cover img {
    block-size: 100%;
    inline-size: 100%;
    inset-block-start: 0;
    inset-inline-start: 0;
    object-fit: cover;
    opacity: 0.06;
    position: absolute;
}

.cover-byline p { margin: 0; }
.cover-overlay { position: relative; }
.cover-secondary { font-size: var(--font-size-l); font-style: italic; line-height: 1.2; margin: 0.5em; }
.cover-tertiary { margin: 0; }

/* Definitions */
.defs { list-style: none; margin-inline-start: 0; padding-inline-start: 0; }
.defs li { margin-block-end: 1em; padding-inline-start: 1em; text-indent: -1em; }

/* Ditto (repeated text) */
.do { color: transparent; }

/* Dropcaps */
.dropcap {
    --depth: 0.5rem;
    background: var(--accent);
    float: left;
    margin: 0.3em 1.1em 0.4em 0;
    mix-blend-mode: multiply;
    height: 5.3em;
    padding: 0.5em;
    position: relative;
}

.dropcap::after {
    background: lch(from var(--accent) calc(l - 10) c h);
    block-size: 100%;
    content: "";
    inline-size: var(--depth);
    inset-block-end: 0;
    inset-inline-end: 0;
    position: absolute;
    transform: translate(100%, calc(var(--depth) / 2)) skewY(45deg);
    transition: all 0.1s ease-in-out;
}

.dropcap::before {
    background: lch(from var(--accent) calc(l - 20) c h);
    block-size: var(--depth);
    content: "";
    inline-size: 100%;
    inset-block-end: 0;
    inset-inline-end: 0;
    position: absolute;
    transform: translate(calc(var(--depth) / 2), 100%) skewX(45deg);
    transition: all 0.1s ease-in-out;
}

.dropcap img { filter: invert(1); mix-blend-mode: screen; }

/* Explore */
.explore {
    display: flex;
    gap: 2rem;
    justify-content: center;
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

/* Fancybox */
.fancybox-image { background: var(--bg); padding: 0.5rem 1rem; }
/*.fancybox__carousel, .fancybox__footer { mix-blend-mode: multiply !important; }*/
/*.fancybox__container { --fancybox-bg: var(--bg) !important; }*/

/* Fences */
.fence {
    align-self: stretch;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    font-style: normal;
    inline-size: 13px;
    line-height: 1;
    margin: 0;
}

.fence * { display: block; flex: 1 1 auto; }
.fence svg { fill: var(--accent); }
.fence.flipped { transform: scaleX(-1); }
.fence-extension { block-size: 100%; }

.fence-group {
    align-items: center;
    background:
        linear-gradient(to right, var(--bg) 30%, rgba(255,255,255,0)),
        linear-gradient(to right, rgba(255,255,255,0), var(--bg) 70%) 0 100%,
        radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)),
        radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-position: 0 0, 100%, 0 0, 100%;
    background-attachment: local, local, scroll, scroll;
    display: flex;
    gap: 1rem;
    inline-size: 100%;
    justify-content: safe center;
    margin: 1.5rem auto;
    overflow-x: auto;
    overflow-y: hidden;
}

.fence-group > * { flex: 0 0 auto; }
.fence-group table { margin: 0; }
.fence-group td, .fence-group th { padding: 0 0.5em; }
.fence-group ul.aligned-list { overflow-x: visible; margin: 0; }
.fence-text-rotated { inline-size: 0; margin: 0 0.5em; position: relative; white-space: nowrap; }

.fence-text-rotated span {
    inset-block-start: 0;
    inset-inline-start: 0;
    line-height: 1;
    position: absolute;
    transform: translate(-50%, -50%) rotate(-90deg);
}

/* Figures */
    /* Equilibrium (Book 1, Section 1) */
    .fig-eq { block-size: 1em; position: relative; }
    .fig-eq div { inset-block-start: 0; position: absolute; }
    .fig-eq-a { inset-inline-start: 0%; }
    .fig-eq-b { inset-inline-end: 0%; }
    .fig-eq-c { inset-inline-start: 68%; }
    .fig-eq-d { inset-inline-start: 60%; }
    .fig-eq-e { inset-inline-start: 50%; }
    .fig-eq-100 { inset-inline-start: 25%; }
    .fig-eq-10 { inset-inline-start: 75%; }
    
    /* Panel */
    .fig-panel { background: var(--bg); }
    
    .fig-panel img {
        display: block;
        margin: 0 auto 1rem;
        max-block-size: 85vh;
    }
    
    /* Text */
    .fig-text {
        border: 2px solid var(--accent);
        display: flex;
        flex-direction: column-reverse;
        padding: 1em;
    }
    
    .fig-text .fence-group { margin: 0 auto; }
    
    .fig-text figcaption {
        font-size: var(--font-size-m);
        font-style: italic;
        margin-block-end: 0.5em;
    }
    
    .fig-text figcaption em { font-style: normal; }
    .fig-text p { margin-block-end: 0.5em; }

/* Footer */
.footer { background: var(--contrast-main); display: flex; justify-content: space-between; padding: 1rem 2rem 1rem 4rem; }
.footer, .footer a { color: var(--contrast-accent); }
.footer p { margin: 0; }

/* Footnotes */
.footnotes { font-size: var(--font-size-s); }
.footnotes > li { margin-block-end: 0.5em; }
.footnotes td, .footnotes th { padding: 0.1em 0.5em; }

/* Intro */
.intro { font-size: var(--font-size-m); line-height: 1.3; }

/* Locked */
.locked { overflow: hidden; }

/* Navigation */
.menu-button {
    color: #fff;
    inset-block-start: 0;
    inset-inline-start: 0;
    mix-blend-mode: difference;
    padding: 0.4em;
    position: fixed;
}

.nav {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    block-size: 100dvh;
    font-size: var(--font-size-l);
    inline-size: 2rem;
    inset-block-start: 0;
    inset-inline-start: 0;
    line-height: 1.1;
    position: fixed;
    transition: all 0.1s ease-in-out;
    white-space: nowrap;
    z-index: 100;
}

.nav li { margin: 0; }

.nav-item {
    background: var(--accent);
    inline-size: calc(100% - var(--depth));
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    position: relative;
}

.nav-item.current { inline-size: 100%; }
.nav-item a { color: var(--contrast-accent); text-decoration: none; }

.nav-item::after {
    background: lch(from var(--accent) calc(l - 10) c h);
    block-size: 100%;
    content: "";
    inline-size: var(--depth);
    inset-block-end: 0;
    inset-inline-end: 0;
    position: absolute;
    transform: translate(100%, calc(var(--depth) / 2)) skewY(45deg);
    transition: all 0.1s ease-in-out;
}

.nav-item::before {
    background: lch(from var(--accent) calc(l - 20) c h);
    block-size: var(--depth);
    content: "";
    inline-size: 500%;
    inset-block-end: 0;
    inset-inline-end: 0;
    position: absolute;
    transform: translate(calc(var(--depth) / 2), 100%) skewX(45deg);
    transition: all 0.1s ease-in-out;
}

.nav-section { transition: all 0.1s ease-in-out; }

.nav-section a {
    align-items: center;
    color: transparent;
    display: flex;
    flex: 1 1 auto;
    gap: 0.2em;
    inset-inline-start: -1000em;
    padding: 0;
    position: absolute;
    text-decoration: none;
}

.nav-main {
    --accent: var(--contrast-main);
    background: var(--accent);
    block-size: 3.3rem;
    flex: 0 0 auto;
    inline-size: 160%;
    justify-content: center;
    padding: 0;
}

.nav-main a:hover { text-decoration: underline; }
.nav-main ul { display: flex; flex-direction: row; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-main > ul { inset-inline-start: -1000em; position: absolute; }

.nav-pages {
    block-size: 100%;
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0 0 var(--depth);
}

.home .nav-title { display: none; }

.nav-title {
    --accent: var(--contrast-main);
    align-items: center;
    background: var(--accent);
    block-size: 4.3rem;
    display: flex;
    font-size: var(--font-size-m);
    font-style: italic;
    padding: 0.5rem 2rem;
}

.nav-title a { display: block; flex: 1 1 auto; color: var(--contrast-accent); text-decoration: none; }
.nav-title br { display: none; }

    /* Open */
    .nav.open { inline-size: 100%; inset-block-start: 0; white-space: normal; }
    .nav.open .menu-button { inset-block-start: 0; inset-inline-end: 2.8rem; inset-inline-start: auto; }
    .nav.open .nav-item.current { inline-size: calc(100% - var(--depth)); }
    .nav.open .nav-main { block-size: auto; inline-size: calc(100% - var(--depth)); padding: 1.4rem 2rem 1rem; }
    .nav.open .nav-main > ul { inset-inline-start: 0; position: static; }
    .nav.open .nav-pages { overflow-x: hidden; overflow-y: auto; }
    .nav.open .nav-section:hover { filter: brightness(1.2); transform: translate(calc(var(--depth) * -1), calc(var(--depth) * -1)); }
    
    .nav.open .nav-section:hover::after {
        inline-size: calc(var(--depth) * 2);
        transform: translate(100%, var(--depth)) skewY(45deg);
    }
    
    .nav.open .nav-section:hover::before {
        block-size: calc(var(--depth) * 2);
        transform: translate(var(--depth), 100%) skewX(45deg);
    }
    
    .nav.open .nav-section a {
        color: var(--contrast-accent);
        inset-inline-start: 0;
        padding: 0.5rem 2rem;
        position: relative;
    }

/* No break */
.nb, table.nb td, table.nb th { white-space: nowrap; }

/* Numbers (right aligned) */
.num { text-align: right; }

/* Pagination */
.pagination { display: flex; font-size: var(--font-size-m); list-style: none; margin: 0; padding: 0; }

.pagination a {
    background: var(--accent);
    color: var(--contrast-accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    text-decoration: none;
}

.pagination a:hover { filter: brightness(1.2); }
.pagination li { flex: 0 0 auto; inline-size: 50%; }
.pagination li:first-child a { padding-inline-start: 4rem; }
.pagination li:only-child { flex: 1 1 auto; inline-size: auto; }
.pagination-title { font-size: var(--font-size-b); text-transform: uppercase; }

/* Panels */
.panels { aspect-ratio: 1925.15 / 3055.8; margin-block-start: 2rem; position: relative; }
.panels img { display: block; inline-size: 100%; }

.panels svg {
    block-size: 100%;
    inline-size: 100%;
    inset-block-start: 0;
    inset-inline-start: 0;
    position: absolute;
}

.panels-defs { display: none; }
.panels-hotspot { fill: transparent; transition: all 0.1s ease-in-out; }
.panels-hotspot:hover { cursor: zoom-in; fill: rgba(0, 0, 0, 0.3); stroke: #000; stroke-width: 3px; }

/* Posters */
.posters { display: flex; margin: 7vw 0; }
.posters a { display: block; transition: all 0.1s ease-in-out; }
.posters img { border: 1rem solid #000; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); display: inline-block; }
.posters-antique { margin-inline-end: -5%; transform: rotate(-15deg); }
.posters-antique:hover { transform: rotate(-15deg) scale(1.1); }
.posters-antique img { border-color: var(--contrast-main); filter: brightness(93%) contrast(1.1); }
.posters-color { margin-inline-start: -5%; transform: rotate(8.87deg) translateY(5%); }
.posters-color:hover { transform: rotate(8.87deg) translateY(5%) scale(1.1); }
.posters-color img { border-color: #fff; }

    /* Banner */
    .posters-banner {
        background: var(--contrast-main);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-width: 1px 0;
        color: var(--contrast-accent);
        position: relative;
    }
    
    .posters-banner .action { background: var(--contrast-accent); color: var(--contrast-main); }
    .posters-banner .section-content { align-items: center; display: flex; position: relative; z-index: 1; }
    
    .posters-banner-bg {
        block-size: 100%;
        inline-size: 100%;
        inset-block-start: 0;
        inset-inline-start: 0;
        object-fit: cover;
        opacity: 0.2;
        position: absolute;
        z-index: 1;
    }
    
    .posters-banner-content { flex: 1 1 auto; z-index: 10; }
    .posters-banner-media { flex: 0 0 auto; margin-inline-end: 2rem; z-index: 10; }
    .posters-banner-media a { display: block; }
    
    /* Closeups */
    .closeups { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; list-style: none; margin: 0; padding: 2rem 2rem 2rem 4rem; }
    .closeups a { display: block; }
    .closeups img { display: block; object-fit: cover; object-position: 50% 50%; }
    .closeups1 { grid-column: 1 / -1; grid-row: 1; }
    .closeups2 { grid-column: 1 / -1; grid-row: 2; }

/* Sections */
.section-content { margin: 0 auto; }
.section-content.narrow { max-inline-size: 782px; }
.section-content.wide { max-inline-size: 1052px; }
.section-content.wide h2:first-child { margin-block-start: 0; }
.section-content > .fig-panel:first-child { margin-block-start: 0; }

    /* Media */
    .section-content.media {
        align-items: start;
        display: grid;
        gap: 2rem;
        grid-template-columns: 50% 50%;
        position: relative;
    }
    
    .section-media { grid-column: 2; grid-row: 1; inset-block-start: 1rem; position: sticky; }
    .section-media figure { margin: 0; }
    .section-media-desc { grid-column: 1; grid-row: 1; }
    
    /* Title */
    .section-title { background: var(--accent); color: var(--contrast-accent); padding: 10vw 4rem 3vw; }
    .section-title h1 + h2 { margin: 0.5em 0 0; }
    .section-title p { font-size: var(--font-size-m); letter-spacing: 0.05em; margin-block-end: 1rem; text-transform: uppercase; }
    .section-title + .section { padding-block-start: 3vw; }

/* Small caps */
.scaps { font-variant: small-caps; }

/* Symbols */
.sym { line-height: 1; }
.sym-earth { font-size: 0.9em; }
.sym-mars, .sym-mercury, .sym-venus { font-size: 1.2em; }

/* Tables */
.table {
    background:
        linear-gradient(to right, var(--bg) 30%, rgba(255,255,255,0)),
        linear-gradient(to right, rgba(255,255,255,0), var(--bg) 70%) 0 100%,
        radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)),
        radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-position: 0 0, 100%, 0 0, 100%;
    background-attachment: local, local, scroll, scroll;
    overflow: auto;
}

table .border-inline-end { border-inline-end: 1px solid var(--accent); }

.table-text-rotated { position: relative; white-space: nowrap; }

.table-text-rotated span {
    inset-block-start: 50%;
    inset-inline-start: 50%;
    line-height: 1;
    position: absolute;
    transform: translate(-50%, -50%) rotate(-90deg);
}

/* Table of contents */
.toc-pages {
    display: flex;
    font-size: var(--font-size-m);
    gap: 1rem;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.toc-book {
    --depth: 0.5rem;
    box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    font-size: var(--font-size-m);
    inline-size: 50%;
}

.toc-book a {
    align-items: center;
    background: var(--accent);
    color: var(--contrast-accent);
    display: flex;
    flex: 1 1 auto;
    gap: 0.2em;
    padding: 0.4em 1em 0.3em;
    position: relative;
    text-decoration: none;
    transition: all 0.1s ease-in-out;
}

.toc-book a::after, .toc-book h2::after {
    background: lch(from var(--accent) calc(l - 10) c h);
    block-size: 100%;
    content: "";
    inline-size: var(--depth);
    inset-block-end: 0;
    inset-inline-end: 0;
    position: absolute;
    transform: translate(100%, calc(var(--depth) / 2)) skewY(45deg);
    transition: all 0.1s ease-in-out;
}

.toc-book a::before, .toc-book h2::before {
    background: lch(from var(--accent) calc(l - 20) c h);
    block-size: var(--depth);
    content: "";
    inline-size: 100%;
    inset-block-end: 0;
    inset-inline-end: 0;
    position: absolute;
    transform: translate(calc(var(--depth) / 2), 100%) skewX(45deg);
    transition: all 0.1s ease-in-out;
}

.toc-book a:hover { filter: brightness(1.2); transform: translate(calc(var(--depth) * -1), calc(var(--depth) * -1)); }

.toc-book a:hover::after {
    inline-size: calc(var(--depth) * 2);
    transform: translate(100%, var(--depth)) skewY(45deg);
}

.toc-book a:hover::before {
    block-size: calc(var(--depth) * 2);
    transform: translate(var(--depth), 100%) skewX(45deg);
}

.toc-book h2 {
    background: var(--accent);
    color: var(--contrast-accent);
    flex: 0 0 auto;
    margin: 0;
    padding: 0.7em 1em 0.3em;
    position: relative;
}

.toc-book li { display: flex; flex: 1 1 auto; }

.toc-book ol {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-book-list { display: flex; gap: 2rem; margin: 3rem 0; }
.toc-book-num { display: block; font-size: var(--font-size-b); text-transform: uppercase; }
.toc-book-title { display: block; }

/* Wright */
.wright { display: block; float: right; inline-size: 30%; margin: 0 0 2em 1em; mix-blend-mode: multiply; }


/* Widths
==================================================*/

@media screen and (max-width: 1800px) {
    .overview { display: block; }
    .overview-desc, .overview-sheets { inline-size: auto; }
    .overview-desc { margin-block-end: 6vw; }
}

@media screen and (max-width: 1100px) {
    /* Footer */
    .footer { display: block; text-align: center; }
    
    /* Pagination */
    .pagination { display: block; }
    .pagination a { padding: 1rem 1.5rem 1rem 3rem !important; }
    .pagination li { inline-size: auto; }
    
    /* Sections */
    .section-content.media { display: block; }
    .section-media { position: static; }
}

@media screen and (max-width: 900px) {
    /* Figures */
    .fig-text { padding: 0.5rem; }
    
    /* Navigation */
    .nav.open .nav-main > ul { flex-wrap: wrap; }
    .nav-main li { inline-size: calc((100% - 1rem) / 2); }
    
    /* Posters */
    .posters-banner .section-content { display: block; text-align: center; }
    .posters-banner-media { margin: 0 0 1rem; }
    
    /* Table of contents */
    .toc-book { inline-size: 100%; margin-block-end: 2rem; }
    .toc-book-list { display: block; }
    .toc-pages { display: block; text-align: center; }
}

@media screen and (max-width: 700px) {
    /* Basics */
    :root {
        --depth: 0.5rem;
        --font-size-xxl: 3.157rem;
        --font-size-b: 18px;
    }
    
    h1 { font-size: var(--font-size-l); }
    section { padding: 10vw 1rem 10vw 3rem; }
    
    /* Action buttons */
    .action { display: block; margin-block-end: 1em; text-align: center; }
    
    /* Columns */
    .columns { display: block; }
    .columns.dividers .column { border: 0; padding: 0; }
    .text-cols { column-count: 1 !important; }
    
    /* Cover */
    .cover { padding: 12vw 2rem 10vw 2.5rem; }
    .cover-byline { font-size: var(--font-size-s); }
    
    /* Explore */
    .explore { display: block; text-align: center; }
    .explore li { margin-block-end: 1em; }
    
    /* Fences */
    .fence-group { gap: 0.5rem; }
    
    /* Navigation */
    .menu-button { font-size: var(--font-size-m); }
    .nav { font-size: var(--font-size-m); inline-size: 1.3rem; }
    .nav-main { block-size: 2.5rem; }
    .nav-main ul { display: grid; grid-template-columns: 1fr 1fr; }
    .nav-title { block-size: 3rem; font-size: var(--font-size-b); padding: 0 0 0 1.2rem; }
    .nav.open .menu-button { inset-inline-end: 0.6rem; }
    .nav.open .nav-main { padding: 0.9rem 1rem 0.5rem; }
    .nav.open .nav-section a { padding: 0.5rem 1rem; }
    
    /* Posters */
    .closeups { display: block; padding: 1rem 1rem 1rem 2.5rem; }
    .closeups li { margin-block-end: 1rem; }
    .posters img { border-width: 0.5rem; }
    
    /* Sections */
    .section-media figure { margin: 2rem 0; }
    .section-title { padding: 10vw 1rem 5vw 3rem; }
    .section-title p { font-size: var(--font-size-b); }
}