* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% -12%, rgba(73, 84, 190, .16), transparent 30rem),
        var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    font-kerning: normal;
    letter-spacing: -.011em;
    line-height: 1.47;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

main {
    min-height: 70vh;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
summary,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--outline);
    outline-offset: 4px;
}

.shell {
    width: min(calc(100% - 56px), 1240px);
    margin-inline: auto;
}

.eyebrow {
    display: inline-block;
    color: var(--indigo-bright);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: #aeb6ff;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    color: var(--ink);
    background: rgba(8, 11, 21, .86);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.site-nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -.045em;
    white-space: nowrap;
}

.brand span,
.footer-brand span {
    color: var(--indigo-bright);
}

.brand:hover,
.footer-brand:hover {
    color: #fff;
}

.catalog-dropdown {
    position: relative;
    flex-shrink: 0;
}

.catalog-dropdown summary {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: #d9dced;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 600;
    list-style: none;
}

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

.chevron {
    width: 7px;
    height: 7px;
    margin: -3px 0 0 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.catalog-dropdown[open] .chevron {
    margin-top: 3px;
    transform: rotate(225deg);
}

.catalog-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: min(330px, calc(100vw - 40px));
    max-height: 420px;
    display: grid;
    gap: 2px;
    overflow: auto;
    padding: 10px;
    color: var(--ink);
    background: rgba(17, 22, 40, .98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .48);
}

.catalog-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .88rem;
    line-height: 1.35;
}

.catalog-panel a:hover {
    color: #fff;
    background: var(--panel-light);
}

.catalog-label {
    padding: 15px 12px 5px;
    color: var(--muted);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.catalog-all {
    font-weight: 650;
}

.nav-search {
    min-width: 220px;
    min-height: 42px;
    display: flex;
    flex: 1 1 520px;
    align-items: center;
    width: auto;
    margin-left: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
}

.nav-search:focus-within {
    border-color: rgba(132, 144, 255, .75);
    box-shadow: 0 0 0 3px rgba(111, 124, 255, .13);
}

.nav-search input {
    min-width: 0;
    flex: 1;
    padding: 9px 16px;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
}

.nav-search input::placeholder {
    color: #7f859e;
}

.nav-search button {
    align-self: stretch;
    padding: 0 17px;
    color: #dfe2ff;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
    font-size: .83rem;
    font-weight: 650;
}

.nav-search button:hover {
    background: rgba(255, 255, 255, .06);
}

.nav-all-books {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: #e3e5f5;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-all-books:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 34px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(4, 7, 14, .5), rgba(8, 12, 27, .14) 48%, rgba(4, 7, 14, .5)),
        linear-gradient(180deg, rgba(5, 8, 18, .14), rgba(5, 8, 16, .76)),
        url("../images/mount-fuji-night.jpg") center 45% / cover no-repeat,
        #080c18;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(ellipse at 49% 52%, rgba(116, 135, 255, .08), transparent 35%),
        linear-gradient(180deg, rgba(3, 5, 12, .06) 35%, rgba(4, 7, 14, .9));
}

.hero > .shell {
    position: relative;
    z-index: 1;
}

.hero-heading {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-heading h1 {
    margin: 9px 0 7px;
    font-family: var(--serif);
    font-size: clamp(2.65rem, 4.3vw, 4.25rem);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.052em;
}

.hero-heading p {
    margin: 0;
    color: #aab2ce;
    font-size: .82rem;
    letter-spacing: .06em;
}

.featured-stage {
    position: relative;
    min-height: 470px;
    margin-top: 2px;
}

.carousel-track {
    position: absolute;
    inset: 0 35% 0 2%;
    --shift: clamp(155px, 16vw, 210px);
}

.featured-item {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: min(218px, 22vw);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    filter: saturate(.7);
    transform: translate(-50%, -49%) scale(.62);
    transition:
        transform .62s cubic-bezier(.22, .76, .22, 1),
        opacity .42s ease,
        filter .42s ease,
        visibility .42s;
}

.featured-item.is-current {
    z-index: 4;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    filter: none;
    transform: translate(-50%, -49%) scale(1);
}

.featured-item.is-left {
    z-index: 2;
    opacity: .42;
    visibility: visible;
    pointer-events: auto;
    transform: translate(calc(-50% - var(--shift)), -49%) scale(.7) rotate(-2deg);
}

.featured-item.is-right {
    z-index: 2;
    opacity: .42;
    visibility: visible;
    pointer-events: auto;
    transform: translate(calc(-50% + var(--shift)), -49%) scale(.7) rotate(2deg);
}

.featured-item.is-left:hover,
.featured-item.is-right:hover {
    opacity: .62;
    filter: none;
}

.featured-item .book-cover {
    box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
}

.featured-item.is-current .book-cover {
    box-shadow:
        0 36px 90px rgba(0, 0, 0, .72),
        0 0 42px rgba(117, 137, 255, .13),
        0 0 0 1px rgba(255, 255, 255, .13);
}

.featured-panel {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: 2%;
    width: 30%;
    transform: translateY(-48%);
}

.featured-panel-label {
    display: block;
    margin-bottom: 21px;
    color: #9ba6ce;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.featured-author {
    margin: 0 0 10px;
    color: #b7bfdc;
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.featured-panel h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 3vw, 3.35rem);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -.045em;
}

.featured-description {
    max-width: 38ch;
    display: -webkit-box;
    overflow: hidden;
    margin: 18px 0 0;
    color: #c0c6d9;
    font-size: .85rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.featured-meta {
    margin: 14px 0 24px;
    color: #8992ae;
    font-size: .82rem;
}

.light-button,
.solid-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 700;
    white-space: nowrap;
}

.light-button {
    color: #fff;
    background: var(--indigo-dark);
    box-shadow: 0 10px 28px rgba(43, 55, 185, .3);
}

.light-button:hover {
    color: #fff;
    background: var(--indigo);
    transform: translateY(-1px);
}

.solid-button {
    color: #fff;
    background: var(--indigo-dark);
    cursor: pointer;
}

.solid-button:hover {
    color: #fff;
    background: var(--indigo);
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 29px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    background: #50566c;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.carousel-dot.is-current {
    width: 22px;
    background: #b8beff;
    border-radius: 99px;
}

.carousel-arrow {
    position: absolute;
    z-index: 8;
    top: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    color: #dfe2f7;
    background: rgba(9, 14, 29, .68);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.carousel-arrow:hover {
    background: var(--panel-light);
    border-color: rgba(255, 255, 255, .3);
    transform: translateY(-50%) scale(1.04);
}

.carousel-arrow--left {
    left: 0;
}

.carousel-arrow--right {
    right: 0;
}

.hero-empty {
    padding: 120px 0 80px;
    color: var(--muted);
    text-align: center;
}

.book-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    display: block;
    overflow: hidden;
    background: #1b2140;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 5px;
}

.book-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 17% 10% 11%;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .05), transparent 38%),
        #252b59;
    text-align: center;
}

.cover-rule {
    width: 32%;
    border-top: 1px solid rgba(255, 255, 255, .65);
}

.cover-title {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-family: var(--serif);
    font-size: clamp(.92rem, 1.7vw, 1.45rem);
    line-height: 1.05;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.cover-author {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    font-size: .55rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.featured-item:nth-child(3n + 2) .cover-placeholder,
.book-card:nth-child(3n + 2) .cover-placeholder {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .05), transparent 38%),
        #4b3557;
}

.featured-item:nth-child(3n + 3) .cover-placeholder,
.book-card:nth-child(3n + 3) .cover-placeholder {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .05), transparent 38%),
        #1e4b58;
}

.home-library {
    padding: 18px 0 105px;
    background:
        radial-gradient(circle at 88% 15%, rgba(75, 92, 184, .1), transparent 34rem),
        radial-gradient(circle at 4% 48%, rgba(44, 61, 126, .12), transparent 30rem),
        linear-gradient(180deg, #070b15, var(--paper));
}

.library-section {
    padding-top: 58px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 7px 0 0;
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    font-weight: 500;
    letter-spacing: -.04em;
}

.text-link,
.back-link {
    color: #b9bfff;
    font-size: .82rem;
    font-weight: 650;
}

.text-link {
    padding-bottom: 6px;
    white-space: nowrap;
}

.text-link:hover,
.back-link:hover {
    color: #fff;
}

.book-shelf {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(330px, 390px);
    gap: 34px;
    overflow-x: auto;
    padding: 2px 0 16px;
    scroll-snap-type: x mandatory;
    scrollbar-color: #323951 transparent;
    scrollbar-width: thin;
}

.book-shelf .book-card {
    min-width: 0;
    min-height: 164px;
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 20px;
    align-items: stretch;
    padding: 0 0 22px;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0;
    scroll-snap-align: start;
    transition: background .22s ease, border-color .22s ease, transform .22s ease;
}

.book-shelf .book-card:hover {
    color: #fff;
    background: transparent;
    border-color: rgba(157, 169, 255, .36);
    transform: translateY(-2px);
}

.book-shelf .book-cover {
    width: 94px;
    height: 141px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
}

.book-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5px;
}

.book-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    font-family: var(--serif);
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.book-card-author {
    display: -webkit-box;
    overflow: hidden;
    color: #9299b7;
    font-size: .67rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.book-card-description {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 10px;
    color: #8f96ad;
    font-size: .73rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.book-card-meta {
    margin-top: auto;
    padding-top: 10px;
    color: #717991;
    font-size: .7rem;
}

.popularity-section {
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.period-tabs {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
}

.period-tab {
    min-width: 70px;
    padding: 8px 13px;
    color: #858da7;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: .76rem;
    font-weight: 650;
}

.period-tab:hover {
    color: #dfe2f3;
}

.period-tab.is-current {
    color: #fff;
    background: rgba(111, 124, 255, .18);
    box-shadow: inset 0 0 0 1px rgba(147, 157, 255, .24);
}

[data-popularity-panel][hidden] {
    display: none;
}

.empty-note {
    padding: 28px 0;
    color: var(--muted);
}

.catalog-page,
.detail-page,
.reader-page {
    padding-top: 62px;
    padding-bottom: 110px;
}

.page-heading h1 {
    margin: 10px 0 7px;
    font-family: var(--serif);
    font-size: clamp(3rem, 5.4vw, 5rem);
    font-weight: 500;
    letter-spacing: -.055em;
}

.page-heading p {
    color: var(--muted);
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 32px 0 40px;
}

.catalog-filters input,
.catalog-filters select {
    min-height: 45px;
    padding: 9px 14px;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.catalog-filters input {
    flex: 1 1 260px;
}

.catalog-filters select {
    max-width: 310px;
    flex: 1 1 190px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 40px 24px;
}

.catalog-grid .book-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.catalog-grid .book-cover {
    margin-bottom: 14px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25);
    transition: transform .22s ease, box-shadow .22s ease;
}

.catalog-grid .book-card:hover .book-cover {
    transform: translateY(-5px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, .4);
}

.catalog-grid .book-card-title {
    margin: 0;
    font-family: var(--sans);
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.35;
    -webkit-line-clamp: 2;
}

.catalog-grid .book-card-author {
    margin-top: 5px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding-top: 60px;
}

.pagination-nav a {
    color: #b9bfff;
    font-weight: 650;
}

.pagination-nav span {
    color: var(--muted);
}

.back-link {
    display: inline-block;
}

.book-overview {
    display: grid;
    grid-template-columns: minmax(190px, 280px) 1fr;
    align-items: center;
    gap: clamp(36px, 7vw, 112px);
    margin-top: 38px;
    padding-bottom: 75px;
    border-bottom: 1px solid var(--line);
}

.detail-cover .book-cover {
    box-shadow: 0 28px 60px rgba(0, 0, 0, .45);
}

.book-info h1 {
    max-width: 760px;
    margin: 12px 0 9px;
    font-family: var(--serif);
    font-size: clamp(2.7rem, 5vw, 5rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.055em;
}

.book-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 18px;
    margin-bottom: 9px;
}

.book-info .book-title-row h1 {
    flex: 0 1 auto;
    margin: 0;
}

.book-rating {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    padding: 7px 11px;
    color: #e4e6f5;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    font-size: .78rem;
    line-height: 1;
    white-space: nowrap;
}

.book-rating:hover {
    color: #fff;
    border-color: rgba(255, 211, 106, .45);
}

.book-rating-star {
    color: #ffd36a;
    font-size: .95rem;
}

.book-rating strong {
    font-weight: 700;
}

.book-rating span:last-child:not(.book-rating-star) {
    color: #858ca5;
}

.detail-author {
    margin: 0 0 26px;
    color: #a2a8c0;
    font-size: 1.05rem;
}

.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.genre-list a {
    padding: 7px 10px;
    color: #c9cdff;
    background: rgba(111, 124, 255, .07);
    border: 1px solid #303958;
    border-radius: 999px;
    font-size: .72rem;
}

.genre-list a:hover {
    border-color: var(--indigo-dark);
}

.book-description {
    max-width: 66ch;
    color: #a6acc2;
    line-height: 1.7;
}

.source-line {
    margin: 26px 0 0;
    color: #707891;
    font-size: .74rem;
}

.chapter-section {
    max-width: 1080px;
    padding-top: 68px;
}

.section-count {
    color: var(--muted);
    font-size: .82rem;
}

.chapter-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.chapter-row {
    min-height: 74px;
    border-bottom: 1px solid var(--line);
}

.chapter-row-link {
    min-width: 0;
    min-height: 73px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 14px 0;
}

.chapter-row-link:hover {
    color: #c4c9ff;
}

.chapter-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-number {
    color: #6e758d;
    font-size: .76rem;
}

.chapter-arrow {
    color: var(--indigo-bright);
    text-align: right;
}

.illustration-section {
    padding-top: 72px;
}

.illustration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.illustration-card {
    margin: 0;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.illustration-trigger {
    width: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    cursor: zoom-in;
}

.illustration-trigger img {
    width: 100%;
    height: 240px;
    display: block;
    object-fit: contain;
    padding: 12px;
    background: #0a0e19;
    transition: transform .25s ease, opacity .25s ease;
}

.illustration-trigger:hover img {
    opacity: .9;
    transform: scale(1.015);
}

.section-pagination {
    max-width: 540px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin: 28px auto 0;
    color: var(--muted);
    font-size: .8rem;
}

.section-pagination a {
    color: #bcc2ff;
    font-weight: 650;
}

.section-pagination a:hover {
    color: #fff;
}

.section-pagination > :first-child {
    justify-self: end;
}

.section-pagination > :last-child {
    justify-self: start;
}

.section-pagination > span[aria-hidden="true"] {
    opacity: .35;
}

.illustration-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    padding: 16px 22px 22px;
    color: #fff;
    background: rgba(5, 7, 13, .98);
    border: 0;
}

.illustration-lightbox[open] {
    display: grid;
}

.illustration-lightbox::backdrop {
    background: rgba(0, 0, 0, .88);
}

.lightbox-toolbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    color: #9ba2ba;
    font-size: .78rem;
}

.lightbox-close,
.lightbox-arrow {
    display: grid;
    place-items: center;
    padding: 0;
    color: #f1f2fa;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    background: rgba(255, 255, 255, .14);
}

.lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
}

.lightbox-arrow {
    width: 48px;
    height: 48px;
    align-self: center;
    font-size: 1.15rem;
}

.lightbox-arrow--previous {
    grid-column: 1;
    grid-row: 2;
}

.lightbox-arrow--next {
    grid-column: 3;
    grid-row: 2;
}

.lightbox-image-wrap {
    min-width: 0;
    min-height: 0;
    grid-column: 2;
    grid-row: 2;
    display: grid;
    place-items: center;
    margin: 0;
}

.lightbox-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

html.lightbox-open,
html.lightbox-open body {
    overflow: hidden;
}

.reader-page {
    max-width: 980px;
}

.reading-surface {
    margin: 42px auto 0;
}

.reader-heading {
    padding: 24px 0 36px;
    border-bottom: 1px solid var(--line);
}

.reader-heading h1 {
    margin: 16px 0 8px;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.05em;
}

.reader-heading p {
    margin: 0;
    color: var(--muted);
}

.reader-tools {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    margin-top: 24px;
    padding: 16px;
    background: rgba(12, 17, 35, .72);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.language-switch a,
.language-switch span {
    padding: 8px 13px;
    color: var(--muted);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 650;
}

.language-switch a:hover {
    color: #fff;
}

.language-switch a.is-active {
    color: #fff;
    background: var(--indigo);
}

.language-switch span {
    cursor: not-allowed;
    opacity: .45;
}

.chapter-audio {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr);
    align-items: center;
    gap: 12px;
}

.chapter-audio > span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    white-space: nowrap;
}

.chapter-audio audio {
    width: 100%;
    height: 38px;
}

.audio-unavailable {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    text-align: right;
}

.reading-text {
    max-width: 69ch;
    margin: 55px auto 0;
    color: #d8d9e2;
    font-family: var(--serif);
    font-size: clamp(1.08rem, 1.55vw, 1.2rem);
    line-height: 1.9;
}

.reading-text p {
    margin-bottom: 1.55em;
}

.reading-text figure {
    margin: 2.4rem auto;
    text-align: center;
}

.reading-text figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 6px;
}

.reading-text figcaption {
    margin-top: .7rem;
    color: var(--muted);
    font: .77rem/1.5 var(--sans);
}

.reading-text blockquote {
    margin: 1.7em 0;
    padding-left: 1.3em;
    color: #c9cce0;
    border-left: 2px solid var(--indigo);
}

.reading-text pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
}

.reader-navigation {
    max-width: 69ch;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin: 82px auto 0;
    padding-top: 27px;
    border-top: 1px solid var(--line);
}

.reader-navigation a {
    max-width: 48%;
    color: #b9bfff;
    font-size: .84rem;
    font-weight: 620;
}

.reader-navigation a:last-child {
    text-align: right;
}

.reader-navigation a:hover {
    color: #fff;
}

.site-footer {
    background: #070a12;
    border-top: 1px solid var(--line);
}

.footer-inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 25px;
    color: #757c94;
    font-size: .77rem;
}

.footer-brand {
    margin-right: auto;
    color: #e5e7f2;
}

.footer-inner a:last-child {
    color: #b8beff;
}

@media (max-width: 900px) {
    .featured-stage {
        min-height: 640px;
    }

    .carousel-track {
        inset: 0 0 245px;
    }

    .featured-item {
        width: min(190px, 33vw);
    }

    .featured-panel {
        top: auto;
        right: 10%;
        bottom: 12px;
        left: 10%;
        width: auto;
        text-align: center;
        transform: none;
    }

    .featured-panel-label {
        display: none;
    }

    .featured-panel h2 {
        font-size: clamp(2rem, 5vw, 3.2rem);
    }

    .featured-description {
        max-width: 62ch;
        margin-inline: auto;
        -webkit-line-clamp: 2;
    }

    .featured-meta {
        margin: 12px 0 20px;
    }

    .carousel-dots {
        justify-content: center;
        margin-top: 24px;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(calc(100% - 32px), 1240px);
    }

    .site-nav {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px 16px;
        padding: 14px 0;
    }

    .catalog-dropdown {
        justify-self: end;
    }

    .catalog-panel {
        right: 0;
        left: auto;
    }

    .nav-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 0;
    }

    .nav-all-books {
        display: none;
    }

    .hero {
        padding-top: 38px;
        background-position: 62% center;
    }

    .hero-heading h1 {
        font-size: clamp(2.35rem, 10.5vw, 3.3rem);
    }

    .featured-stage {
        min-height: 620px;
    }

    .carousel-track {
        bottom: 270px;
        --shift: clamp(105px, 31vw, 150px);
    }

    .featured-item {
        width: min(164px, 43vw);
    }

    .featured-item.is-current {
        transform: translate(-50%, -48%) scale(1);
    }

    .featured-item.is-left {
        transform: translate(calc(-50% - var(--shift)), -48%) scale(.62) rotate(-2deg);
    }

    .featured-item.is-right {
        transform: translate(calc(-50% + var(--shift)), -48%) scale(.62) rotate(2deg);
    }

    .featured-panel {
        right: 8%;
        bottom: 0;
        left: 8%;
    }

    .carousel-arrow {
        top: 35%;
        width: 40px;
        height: 40px;
    }

    .book-shelf {
        grid-auto-columns: minmax(300px, 88vw);
    }

    .library-section {
        padding-top: 52px;
    }

    .section-heading {
        align-items: center;
    }

    .popularity-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .period-tabs {
        width: 100%;
    }

    .period-tab {
        min-width: 0;
        flex: 1;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 15px;
    }

    .book-overview {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-cover {
        width: min(245px, 67vw);
    }

    .book-info h1 {
        font-size: clamp(2.7rem, 13vw, 4.3rem);
    }

    .illustration-grid {
        grid-template-columns: 1fr;
    }

    .reader-page {
        padding-top: 36px;
    }

    .reading-text {
        margin-top: 38px;
    }

    .reader-tools {
        grid-template-columns: 1fr;
    }

    .chapter-audio {
        grid-template-columns: 1fr;
    }

    .audio-unavailable {
        text-align: left;
    }

    .footer-inner {
        flex-wrap: wrap;
        gap: 8px 20px;
        padding: 27px 0;
    }

    .footer-brand {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

.nav-account,
.nav-register,
.nav-logout button {
    color: #dfe2f7;
    font-size: .82rem;
    font-weight: 650;
    white-space: nowrap;
}

.nav-register {
    padding: 10px 14px;
    background: var(--indigo-dark);
    border-radius: 999px;
}

.nav-account:hover,
.nav-register:hover,
.nav-logout button:hover {
    color: #fff;
}

.nav-logout {
    margin: 0;
}

.nav-logout button {
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.site-messages {
    position: relative;
    z-index: 10;
    padding-top: 14px;
}

.site-message {
    padding: 11px 14px;
    color: #e9eaff;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .82rem;
}

.site-message + .site-message {
    margin-top: 8px;
}

.site-message--success {
    border-color: #2e6850;
}

.site-message--error {
    border-color: #7c3f50;
}

.auth-page {
    min-height: 68vh;
    display: grid;
    place-items: center;
    padding-top: 70px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 50% 8%, rgba(92, 105, 240, .13), transparent 30rem);
}

.auth-card {
    width: min(100%, 520px);
    padding: clamp(26px, 5vw, 46px);
    background: rgba(17, 22, 40, .8);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.auth-card h1 {
    margin: 10px 0 12px;
    font-family: var(--serif);
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.06em;
}

.auth-card > p {
    color: var(--muted);
}

.auth-card form,
.interaction-form {
    margin-top: 28px;
}

.auth-card form p,
.interaction-form p {
    margin: 0 0 18px;
}

.auth-card label,
.interaction-form label {
    display: block;
    margin-bottom: 7px;
    color: #c8ccdf;
    font-size: .78rem;
    font-weight: 650;
}

.auth-card input,
.interaction-form input,
.interaction-form select,
.interaction-form textarea,
.comment-edit textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    background: rgba(7, 10, 19, .75);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
}

.auth-card input:focus,
.interaction-form input:focus,
.interaction-form select:focus,
.interaction-form textarea:focus,
.comment-edit textarea:focus {
    border-color: var(--indigo);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(111, 124, 255, .12);
}

.helptext,
.auth-card form li {
    color: #7f879f;
    font-size: .72rem;
    line-height: 1.45;
}

.auth-card form ul {
    padding-left: 18px;
}

.errorlist {
    color: #ff9caf !important;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 26px;
    color: #b9bfff;
    font-size: .78rem;
}

.social-auth {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.firebase-auth-token {
    display: none;
}

.social-auth-button {
    width: 100%;
    min-height: 50px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    align-items: center;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 650;
    letter-spacing: -.01em;
    transition: filter .18s ease, transform .18s ease;
}

.social-auth-button::after {
    content: "";
    width: 24px;
}

.social-auth-button svg {
    width: 22px;
    height: 22px;
}

.social-auth-button--google {
    color: #18202d;
    background: #fff;
}

.social-auth-button--facebook {
    color: #fff;
    background: #1877f2;
}

.social-auth-button--apple {
    color: #fff;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, .18);
}

.social-auth-button:hover:not(:disabled) {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.social-auth-button:disabled {
    cursor: wait;
    opacity: .6;
}

.social-auth-status {
    margin: 2px 0 0;
    padding: 10px 12px;
    color: #d7def3;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    font-size: .75rem;
    line-height: 1.45;
}

.social-auth-status--error {
    color: #ffb0bc;
    background: rgba(91, 26, 43, .24);
    border-color: rgba(255, 122, 143, .18);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 24px 0 0;
    color: #737b92;
    font-size: .72rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, .09);
}

.auth-card .auth-password-form {
    margin-top: 22px;
}

.auth-card--message .solid-button {
    margin-top: 18px;
}

.signup-page {
    min-height: 100vh;
    color: #f5f5f7;
    background: #000;
}

.signup-page main {
    min-height: 0;
}

.signup-topbar {
    position: relative;
    z-index: 2;
    height: 86px;
    background: #000;
}

.signup-topbar-inner {
    width: min(calc(100% - 64px), 1440px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-inline: auto;
}

.signup-brand {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.055em;
}

.signup-brand span {
    color: var(--indigo-bright);
}

.signup-login-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    color: #ededf0;
    border: 1px solid #2b2b2d;
    border-radius: 9px;
    font-size: .84rem;
    font-weight: 600;
    transition: background .18s ease, border-color .18s ease;
}

.signup-login-link:hover {
    color: #fff;
    background: #171719;
    border-color: #414145;
}

.signup-stage {
    min-height: calc(100vh - 86px);
    display: grid;
    place-items: center;
    padding: 62px 24px 96px;
    background:
        radial-gradient(circle at 50% 24%, rgba(89, 101, 224, .09), transparent 31rem),
        #000;
}

.signup-card.auth-card {
    width: min(100%, 560px);
    min-height: 650px;
    display: flex;
    flex-direction: column;
    padding: clamp(38px, 6vw, 62px) clamp(28px, 6vw, 64px) 34px;
    background: #0c0c0d;
    border: 1px solid #2b2b2d;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .52);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.signup-heading {
    text-align: center;
}

.signup-card .signup-heading h1 {
    margin: 28px 0 0;
    font-family: var(--sans);
    font-size: clamp(1.95rem, 4.4vw, 2.5rem);
    font-weight: 680;
    line-height: 1.16;
    letter-spacing: -.045em;
}

.signup-page .social-auth {
    gap: 10px;
    margin-top: 38px;
}

.signup-page .social-auth-button {
    min-height: 54px;
    color: #f5f5f7;
    background: #111112;
    border: 1px solid #303033;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 580;
    box-shadow: none;
}

.signup-page .social-auth-button--google {
    background: #232325;
    border-color: #38383b;
}

.signup-page .social-auth-button--apple {
    background: #111112;
}

.signup-page .social-auth-button:hover:not(:disabled) {
    background: #29292c;
    border-color: #48484d;
    filter: none;
}

.signup-page .auth-divider {
    display: none;
}

.signup-page .social-auth-status {
    color: #d8d8dd;
    background: #171719;
    border-color: #343438;
}

.signup-page .social-auth-status--error {
    color: #ffb8c1;
    background: #241316;
    border-color: #5b2931;
}

.signup-card > .signup-other-options {
    margin: 27px 0 13px;
    color: #a4a4aa;
    font-size: .78rem;
    text-align: center;
}

.signup-email {
    text-align: center;
}

.signup-email > summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #67aefc;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 590;
    list-style: none;
}

.signup-email > summary::-webkit-details-marker {
    display: none;
}

.signup-email > summary:hover {
    color: #91c5ff;
}

.signup-email[open] > summary {
    margin-bottom: 22px;
}

.signup-email-panel {
    padding-top: 22px;
    text-align: left;
    border-top: 1px solid #29292c;
}

.signup-card .signup-email-panel .auth-password-form {
    margin-top: 0;
}

.signup-card .signup-email-panel input {
    background: #080809;
    border-color: #303034;
    border-radius: 9px;
}

.signup-card .signup-email-panel .solid-button {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border-radius: 9px;
}

.signup-card > .signup-note {
    margin: auto 0 0;
    padding-top: 36px;
    color: #77777d;
    font-size: .7rem;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 620px) {
    .signup-topbar-inner {
        width: calc(100% - 32px);
    }

    .signup-stage {
        align-items: start;
        padding: 22px 14px 54px;
    }

    .signup-card.auth-card {
        min-height: 610px;
        padding: 30px 20px 26px;
        border-radius: 16px;
    }

    .signup-card .signup-heading h1 {
        margin-top: 16px;
    }
}

.account-page {
    padding-top: clamp(52px, 7vw, 92px);
    padding-bottom: 120px;
}

.account-title {
    margin-bottom: 34px;
}

.account-title h1 {
    margin: 8px 0 7px;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.065em;
}

.account-title p {
    margin: 0;
    color: #969db2;
    font-size: 1rem;
}

.account-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: clamp(22px, 4vw, 36px);
    background:
        linear-gradient(125deg, rgba(101, 115, 255, .18), transparent 52%),
        rgba(18, 23, 40, .78);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.account-avatar {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #8a94ff, #4d5ce5 68%, #3541aa);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(40, 53, 174, .35);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.05em;
}

.account-kicker {
    display: block;
    margin-bottom: 4px;
    color: #8e96ad;
    font-size: .68rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-identity-copy h2 {
    overflow: hidden;
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    font-weight: 650;
    letter-spacing: -.045em;
    text-overflow: ellipsis;
}

.account-identity-copy p {
    overflow: hidden;
    margin: 4px 0 0;
    color: #a4aabd;
    font-size: .88rem;
    text-overflow: ellipsis;
}

.account-primary-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 17px;
    color: #fff;
    background: #5b68ed;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    box-shadow: 0 9px 24px rgba(45, 56, 177, .26);
    font-size: .8rem;
    font-weight: 650;
    white-space: nowrap;
    transition: background .18s ease, transform .18s ease;
}

.account-primary-action:hover {
    color: #fff;
    background: #6c78f7;
    transform: translateY(-1px);
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0 42px;
    overflow: hidden;
    background: rgba(16, 21, 37, .72);
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 20px;
}

.account-stats > div {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 19px 22px;
}

.account-stats > div + div {
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.account-stats strong {
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: -.035em;
}

.account-stats span {
    color: #848ca4;
    font-size: .72rem;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.account-content {
    min-width: 0;
    display: grid;
    gap: 22px;
}

.account-panel,
.account-settings-card {
    overflow: hidden;
    background: rgba(16, 21, 37, .72);
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 24px;
}

.account-panel {
    padding: 26px;
}

.account-panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.account-panel-heading h2,
.account-settings-card h2 {
    margin: 5px 0 0;
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -.035em;
}

.account-panel-heading > a {
    color: #aeb6ff;
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
}

.account-reading-list,
.account-review-list {
    border-top: 1px solid rgba(255, 255, 255, .075);
}

.account-reading-card {
    min-height: 108px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.account-reading-card:hover h3,
.account-review-list a:hover strong {
    color: #cbd0ff;
}

.account-book-cover {
    width: 58px;
}

.account-book-cover .book-cover {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
}

.account-reading-copy {
    min-width: 0;
}

.account-reading-copy > span {
    display: block;
    overflow: hidden;
    color: #858da5;
    font-size: .64rem;
    font-weight: 650;
    letter-spacing: .055em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.account-reading-copy h3 {
    overflow: hidden;
    margin: 5px 0;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.018em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-reading-copy p {
    margin: 0;
    color: #737c95;
    font-size: .72rem;
}

.account-row-arrow {
    color: #707a96;
    font-size: 1.6rem;
    font-weight: 300;
}

.account-review-list a {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.account-review-list a > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.account-review-list strong {
    overflow: hidden;
    font-size: .86rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-review-list a > div span,
.account-panel-note {
    color: #7f879f;
    font-size: .7rem;
}

.account-review-rating {
    color: #ffd36a;
    font-size: .78rem;
    font-weight: 650;
    white-space: nowrap;
}

.account-panel-note {
    margin: 6px 0 0;
    padding: 22px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, .075);
}

.account-empty {
    padding: 34px 16px 18px;
    text-align: center;
}

.account-empty > span {
    color: #59627d;
    font-size: 2.3rem;
}

.account-empty h3 {
    margin: 10px 0 5px;
    font-size: 1rem;
    font-weight: 600;
}

.account-empty p {
    margin: 0 0 18px;
    color: #80889f;
    font-size: .77rem;
}

.account-sidebar {
    position: sticky;
    top: 102px;
}

.account-settings-card h2 {
    padding: 22px 21px 16px;
}

.account-setting-row {
    min-height: 67px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 18px;
    border-top: 1px solid rgba(255, 255, 255, .075);
    font-size: .78rem;
}

a.account-setting-row:hover {
    background: rgba(255, 255, 255, .025);
}

.account-setting-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #aeb5ff;
    background: rgba(111, 124, 255, .11);
    border-radius: 10px;
}

.account-setting-icon svg {
    width: 18px;
    height: 18px;
}

.account-setting-row > span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-setting-row small {
    display: block;
    margin-bottom: 2px;
    color: #747d96;
    font-size: .63rem;
}

.account-signout {
    margin-top: 13px;
}

.account-signout button {
    width: 100%;
    min-height: 48px;
    color: #ff9aa9;
    background: rgba(45, 20, 29, .48);
    border: 1px solid rgba(255, 112, 137, .14);
    border-radius: 15px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 650;
}

.account-signout button:hover {
    background: rgba(62, 25, 37, .6);
    border-color: rgba(255, 112, 137, .25);
}

@media (max-width: 980px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }
}

@media (max-width: 620px) {
    .account-page {
        padding-top: 42px;
        padding-bottom: 80px;
    }

    .account-title {
        margin-bottom: 25px;
    }

    .account-title h1 {
        font-size: clamp(3rem, 16vw, 4.4rem);
    }

    .account-identity {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
        border-radius: 22px;
    }

    .account-avatar {
        width: 64px;
        height: 64px;
        border-radius: 19px;
        font-size: 1.55rem;
    }

    .account-identity > .account-primary-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .account-stats {
        margin-bottom: 26px;
        border-radius: 17px;
    }

    .account-stats > div {
        padding: 15px 12px;
    }

    .account-stats strong {
        font-size: 1.05rem;
    }

    .account-stats span {
        font-size: .61rem;
    }

    .account-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .account-panel-heading {
        align-items: flex-start;
    }

    .account-reading-card {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .account-book-cover {
        width: 48px;
    }
}

.icloud-profile-page {
    background: #070a12;
}

.icloud-profile-page .site-header {
    background: rgba(7, 11, 25, .88);
}

.icloud-profile-page main {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(3, 6, 15, .38), rgba(4, 7, 15, .82) 68%, #070a12 100%),
        linear-gradient(90deg, rgba(3, 6, 14, .42), rgba(8, 12, 28, .08) 50%, rgba(3, 6, 14, .46)),
        url("../images/mount-fuji-night.jpg") center 45% / cover no-repeat fixed,
        #080c18;
}

.icloud-profile-page main::before,
.icloud-profile-page main::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.icloud-profile-page main::before {
    inset: 0;
    background:
        radial-gradient(circle at 22% 13%, rgba(89, 99, 220, .16), transparent 28rem),
        linear-gradient(180deg, transparent 45%, rgba(5, 8, 17, .35));
}

.icloud-profile-page main::after {
    display: none;
}

.icloud-profile-page .site-footer {
    display: none;
}

.icloud-account {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 78px);
    padding: clamp(32px, 5vw, 68px) 0 clamp(60px, 7vw, 110px);
}

.icloud-account-shell {
    width: min(calc(100% - 56px), 1340px);
    margin-inline: auto;
}

.icloud-banner {
    min-height: 84px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px 20px;
    color: #fff;
    background: rgba(9, 14, 31, .78);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .26);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    transition: background .18s ease;
}

.icloud-banner:hover {
    color: #fff;
    background: rgba(14, 21, 45, .9);
}

.icloud-banner-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #1688f5;
    border-radius: 12px;
}

.icloud-banner-icon svg {
    width: 24px;
    height: 24px;
}

.icloud-banner-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.icloud-banner-copy strong {
    font-size: .95rem;
    font-weight: 650;
}

.icloud-banner-copy > span {
    overflow: hidden;
    color: rgba(235, 241, 255, .66);
    font-size: .77rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icloud-banner-arrow {
    color: rgba(255, 255, 255, .68);
    font-size: 1.9rem;
    font-weight: 300;
}

.icloud-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.icloud-tile {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    background: rgba(6, 10, 23, .82);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .3);
    backdrop-filter: blur(20px) saturate(115%);
    -webkit-backdrop-filter: blur(20px) saturate(115%);
}

.icloud-profile-tile {
    min-height: 355px;
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    background: linear-gradient(150deg, rgba(48, 57, 130, .86), rgba(12, 20, 51, .9));
}

.icloud-profile-art {
    position: relative;
    width: 154px;
    height: 140px;
    display: grid;
    place-items: center;
    margin-bottom: 19px;
}

.icloud-profile-orbit,
.icloud-profile-avatar {
    position: absolute;
    border-radius: 50%;
}

.icloud-profile-orbit {
    width: 118px;
    height: 118px;
    top: 0;
    left: 2px;
    background: rgba(255, 255, 255, .12);
}

.icloud-profile-avatar {
    width: 118px;
    height: 118px;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #2da7ff, #0a65dd);
    border: 4px solid rgba(255, 255, 255, .9);
    box-shadow: 0 16px 35px rgba(0, 20, 75, .36);
    font-size: 3.15rem;
    font-weight: 650;
    letter-spacing: -.06em;
}

.icloud-profile-tile h2 {
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    font-size: 1.42rem;
    font-weight: 650;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
}

.icloud-profile-tile p {
    max-width: 100%;
    overflow: hidden;
    margin: 4px 0 0;
    color: rgba(235, 241, 255, .72);
    font-size: .82rem;
    text-overflow: ellipsis;
}

.icloud-profile-tile > span {
    margin-top: 4px;
    color: rgba(235, 241, 255, .48);
    font-size: .72rem;
}

.icloud-history-tile {
    min-height: 355px;
    grid-column: span 8;
}

.icloud-review-tile {
    min-height: 328px;
    grid-column: span 8;
}

.icloud-settings-tile {
    min-height: 328px;
    grid-column: span 4;
}

.icloud-tile-header {
    min-height: 86px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px 20px;
    background: rgba(17, 25, 53, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.icloud-tile-header > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.icloud-tile-header strong {
    overflow: hidden;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icloud-tile-header small {
    overflow: hidden;
    color: rgba(231, 237, 252, .6);
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icloud-tile-header > a {
    color: #bcd7ff;
    font-size: .76rem;
    font-weight: 600;
}

.icloud-tile-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.icloud-tile-icon svg {
    width: 25px;
    height: 25px;
}

.icloud-tile-icon--reading {
    color: #fff;
    background: #dfaa35;
}

.icloud-tile-icon--reviews {
    color: #fff;
    background: #a451e5;
}

.icloud-tile-icon--account {
    color: #fff;
    background: #1688f5;
}

.icloud-tile-content {
    min-height: calc(100% - 86px);
    padding: 10px 20px 18px;
}

.icloud-reading-grid,
.icloud-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
}

.icloud-reading-item,
.icloud-review-item {
    min-width: 0;
    min-height: 78px;
    display: grid;
    align-items: center;
    gap: 12px;
    color: #f5f7ff;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.icloud-reading-item {
    grid-template-columns: 38px minmax(0, 1fr) auto;
}

.icloud-review-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
}

.icloud-reading-item:hover,
.icloud-review-item:hover {
    color: #fff;
}

.icloud-reading-item > span:last-child,
.icloud-review-item > span:last-child {
    color: rgba(255, 255, 255, .36);
    font-size: 1.45rem;
}

.icloud-book-mark {
    width: 36px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #419ffa, #4257c9);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 5px 8px 8px 5px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
    font-size: .72rem;
    font-weight: 700;
}

.icloud-item-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.icloud-item-copy strong {
    overflow: hidden;
    font-size: .82rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icloud-item-copy small {
    overflow: hidden;
    color: rgba(224, 229, 244, .5);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icloud-review-score {
    color: #ffd570;
    font-size: .78rem;
    font-weight: 650;
}

.icloud-review-score b {
    font-size: .75rem;
}

.icloud-empty-state {
    grid-column: 1 / -1;
    align-self: center;
    display: grid;
    justify-items: start;
    gap: 5px;
    padding: 42px 0 30px;
}

.icloud-empty-state strong {
    font-size: .91rem;
    font-weight: 600;
}

.icloud-empty-state span {
    color: rgba(224, 229, 244, .5);
    font-size: .75rem;
}

.icloud-empty-state a {
    margin-top: 10px;
    color: #77b8ff;
    font-size: .76rem;
    font-weight: 600;
}

.icloud-settings-list {
    padding-top: 11px;
}

.icloud-setting-row {
    display: grid;
    gap: 3px;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.icloud-setting-row > span {
    color: rgba(224, 229, 244, .46);
    font-size: .66rem;
}

.icloud-setting-row strong {
    overflow: hidden;
    font-size: .77rem;
    font-weight: 570;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icloud-setting-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6fb5ff;
    font-size: .76rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.icloud-setting-link span {
    color: rgba(255, 255, 255, .34);
    font-size: 1.35rem;
}

.icloud-signout {
    margin: 12px 0 0;
}

.icloud-signout button {
    padding: 6px 0;
    color: #ff8a96;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: .76rem;
    font-weight: 600;
}

@media (max-width: 1000px) {
    .icloud-profile-tile,
    .icloud-settings-tile {
        grid-column: span 5;
    }

    .icloud-history-tile,
    .icloud-review-tile {
        grid-column: span 7;
    }

    .icloud-reading-grid,
    .icloud-review-grid {
        grid-template-columns: 1fr;
    }

    .icloud-reading-item:nth-child(n + 4),
    .icloud-review-item:nth-child(n + 4) {
        display: none;
    }
}

@media (max-width: 720px) {
    .icloud-profile-page main {
        background-attachment: scroll;
    }

    .icloud-account {
        padding-top: 24px;
        padding-bottom: 60px;
    }

    .icloud-account-shell {
        width: min(calc(100% - 28px), 1340px);
    }

    .icloud-banner {
        min-height: 74px;
        margin-bottom: 13px;
        padding: 12px 15px;
        border-radius: 17px;
    }

    .icloud-dashboard-grid {
        gap: 13px;
    }

    .icloud-profile-tile,
    .icloud-history-tile,
    .icloud-review-tile,
    .icloud-settings-tile {
        grid-column: 1 / -1;
    }

    .icloud-profile-tile {
        min-height: 310px;
    }

    .icloud-history-tile,
    .icloud-review-tile,
    .icloud-settings-tile {
        min-height: auto;
    }

    .icloud-tile {
        border-radius: 18px;
    }

    .icloud-tile-header {
        min-height: 80px;
        padding-inline: 16px;
    }

    .icloud-tile-content {
        padding-inline: 16px;
    }

    .icloud-reading-item:nth-child(n + 4),
    .icloud-review-item:nth-child(n + 4) {
        display: grid;
    }
}

.review-section,
.comment-section {
    padding-top: 68px;
}

.review-section {
    max-width: 900px;
}

.interaction-form {
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.rating-fieldset {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.rating-fieldset legend,
.review-body-field > label {
    margin-bottom: 8px;
    color: #c8ccdf;
    font-size: .78rem;
    font-weight: 650;
}

.star-rating {
    position: relative;
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.interaction-form .star-rating input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    opacity: 0;
}

.interaction-form .star-rating label {
    display: grid;
    place-items: center;
    margin: 0;
    color: #41485f;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    transition: color .16s ease, transform .16s ease;
}

.star-rating input:checked + label,
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffd36a;
}

.star-rating label:hover {
    transform: translateY(-1px);
}

.star-rating input:focus-visible + label {
    outline: 2px solid var(--outline);
    outline-offset: 3px;
    border-radius: 3px;
}

.review-body-field {
    margin-bottom: 18px;
}

.review-body-field > label span {
    color: var(--muted);
    font-weight: 500;
}

.form-error {
    margin: 7px 0 0 !important;
    color: #ff9caf;
    font-size: .74rem;
}

.interaction-login {
    padding: 18px 0;
    color: var(--muted);
}

.interaction-login a {
    color: #bdc3ff;
}

.review-list,
.comment-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.review-card,
.comment-card {
    padding: 18px 20px;
    background: rgba(17, 22, 40, .68);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.review-card header,
.comment-card header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.review-card header span,
.comment-card header span,
.reply-label {
    color: var(--muted);
    font-size: .72rem;
}

.review-card > p,
.comment-card > p {
    color: #cdd0df;
    line-height: 1.65;
}

.inline-delete-form {
    display: inline-block;
    margin: 12px 0 0;
}

.inline-delete-form button {
    padding: 0;
    color: #c78d9b;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: .74rem;
}

.comment-edit {
    margin-top: 15px;
    color: #bbc0f6;
    font-size: .76rem;
}

.comment-edit form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.comment-edit .solid-button {
    justify-self: start;
}

@media (max-width: 900px) {
    .nav-register {
        display: none;
    }

    .nav-all-books {
        display: none;
    }
}

@media (max-width: 720px) {
    .nav-account,
    .nav-logout {
        display: none;
    }

    .profile-list a,
    .review-card header,
    .comment-card header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .profile-list span {
        text-align: left;
    }

    .book-rating {
        margin-bottom: 2px;
    }

    .illustration-lightbox {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 5px;
        padding: 10px;
    }

    .lightbox-arrow {
        width: 38px;
        height: 38px;
    }

    .section-pagination {
        gap: 14px;
    }
}

.source-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.source-results-heading h2 {
    margin: 5px 0 0;
    font-family: var(--serif);
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 400;
}

.source-results-heading > p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.6;
}

.source-import-button:focus-visible {
    outline: 2px solid var(--outline);
    outline-offset: 3px;
}

.processing-jobs {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.processing-jobs h3 {
    margin: 0 0 10px;
    color: #aeb4cc;
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.processing-jobs ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.catalog-import-jobs {
    margin: 22px 0 10px;
    padding: 18px;
    background: rgba(15, 20, 36, .66);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.catalog-import-jobs h2 {
    margin: 0 0 10px;
    color: #adb3cc;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.catalog-import-jobs ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.processing-job {
    display: grid;
    grid-template-columns: minmax(160px, .8fr) 90px minmax(220px, 1.5fr);
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    color: #cdd1e4;
    background: rgba(7, 11, 23, .55);
    border-left: 2px solid #6670f2;
    border-radius: 4px;
    font-size: .7rem;
}

.processing-job--succeeded { border-left-color: #67c6a1; }
.processing-job--failed,
.processing-job--cancelled { border-left-color: #db7488; }
.processing-job-status { color: #9ea6ff; font-weight: 700; }
.processing-job--succeeded .processing-job-status { color: #77d5ae; }
.processing-job--failed .processing-job-status,
.processing-job--cancelled .processing-job-status,
.processing-job-error { color: #ee91a2; }
.processing-job-error:empty { display: none; }
.processing-job-error:not(:empty) { grid-column: 1 / -1; }

.catalog-source-note,
.source-results {
    margin-top: 32px;
}

.catalog-source-note {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    color: #d8dbea;
    background: rgba(83, 55, 20, .25);
    border: 1px solid rgba(219, 170, 95, .25);
    border-radius: 8px;
    font-size: .76rem;
}

.catalog-source-note span { color: var(--muted); }

.source-results {
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.source-result-list {
    display: grid;
    gap: 9px;
    margin-top: 25px;
}

.source-result-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 17px 18px;
    background: rgba(14, 19, 35, .72);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.source-result-number {
    color: rgba(147, 155, 255, .48);
    font-family: var(--serif);
    font-size: 1.55rem;
}

.source-result-copy > span {
    color: #8790ff;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.source-result-copy h3 {
    margin: 4px 0 2px;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
}

.source-result-copy p {
    margin: 0;
    color: var(--muted);
    font-size: .72rem;
}

.source-import-button {
    padding: 10px 15px;
    color: #f5f6ff;
    background: transparent;
    border: 1px solid rgba(133, 142, 255, .45);
    border-radius: 999px;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 700;
    transition: background .18s ease, border-color .18s ease;
}

.source-import-button:hover {
    background: rgba(101, 111, 244, .16);
    border-color: #8992ff;
}

@media (max-width: 900px) {
    .processing-job { grid-template-columns: minmax(150px, 1fr) 90px; }
    .processing-job-progress { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .source-result-card { padding: 18px; }

    .source-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .source-result-card { grid-template-columns: 34px minmax(0, 1fr); }
    .source-result-card form { grid-column: 2; }
}

.site-nav .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-nav .brand-icon {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.site-footer .footer-brand {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.site-footer .footer-brand > span {
    font-size: inherit;
    color: inherit;
}

::selection {
    background-color: #000;
    color: #fff;
    text-shadow: none;
}
