/* Home editorial content; loaded only by the public home page. */
@font-face {
    font-family: "Audiowide";
    src: url("../fonts/Audiowide-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Yellowtail";
    src: url("../fonts/Yellowtail-Regular.ttf") format("truetype");
    font-display: swap;
}

.drakima-start-hint {
    margin: 1rem 0 0;
    color: #c9c6df;
    font-size: 1rem;
    line-height: 1.6;
}

.drakima-start-hint a {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.home-editorial-shell {
    position: relative;
    padding: clamp(3rem, 7vw, 6rem) 0;
    overflow: hidden;
}

.home-editorial-shell::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(210, 35, 168, .14), transparent 34%);
    content: "";
    pointer-events: none;
}

.home-editorial-shell > .container {
    position: relative;
    z-index: 1;
}

.home-editorial-heading,
.home-section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.35rem;
}

.home-editorial-heading h2,
.home-section-title-row h2 {
    margin: 0;
    color: #f7f0ff;
    font-size: clamp(1.5rem, 4vw, 3.15rem);
    overflow-wrap: anywhere;
    letter-spacing: .035em;
}

.home-editorial-heading > p {
    max-width: 39rem;
    margin: 0;
    color: #c9c6df;
    font-size: 1.03rem;
    line-height: 1.65;
}

.home-showcase {
    position: relative;
    width: min(100%, 80rem);
    margin-inline: auto;
    border: 1px solid rgba(255, 35, 202, .86);
    background: #060612;
    box-shadow: 0 0 0 1px rgba(0, 247, 221, .18) inset, 0 18px 64px rgba(0, 0, 0, .42), 0 0 28px rgba(214, 21, 164, .15);
    outline: none;
}

.home-showcase::before {
    position: absolute;
    z-index: 3;
    top: .65rem;
    left: .65rem;
    width: 4.75rem;
    height: 2px;
    background: #08ecd3;
    box-shadow: 0 0 11px rgba(8, 236, 211, .8);
    content: "";
}

.home-showcase-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(24rem, 1fr);
    height: 33rem;
    animation: home-showcase-reveal 280ms ease-out both;
}

.home-showcase-media {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, #1a0d37, #061833);
}

.home-showcase-media::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 60%, rgba(6, 6, 18, .82)),
        linear-gradient(0deg, rgba(3, 5, 18, .38), transparent 45%);
    content: "";
}

.home-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-showcase-media > .home-showcase-character {
    position: absolute;
    z-index: 1;
    right: -3%;
    bottom: 0;
    width: 64%;
    height: 102%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 1.35rem 1rem rgba(0, 0, 0, .58));
}

.home-showcase-media-fallback {
    display: grid;
    min-height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, .18);
    font-family: var(--drakima-mono-font);
    font-size: clamp(5rem, 15vw, 13rem);
    letter-spacing: .08em;
}

.home-showcase-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    overflow-x: hidden;
    overflow-y: auto;
    background:
        linear-gradient(rgba(13, 17, 43, .98), rgba(6, 7, 23, .99)),
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 247, 221, .04) 3px 4px);
}

.home-showcase-copy::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 13rem;
    height: 13rem;
    border: 1px solid rgba(255, 35, 202, .22);
    transform: rotate(45deg) scale(.7);
    content: "";
}

.home-showcase-kicker,
.home-chapter-publication,
.home-akari-label {
    margin: 0 0 .65rem;
    color: #11efdc;
    font-family: var(--drakima-mono-font);
    font-size: .76rem;
    letter-spacing: .095em;
    text-transform: uppercase;
}

.home-showcase-copy h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 .8rem;
    color: #fff6ff;
    overflow-wrap: anywhere;
    font-size: clamp(1.65rem, 2.5vw, 2.55rem);
    line-height: 1.08;
}

.home-showcase-copy > p:not(.home-showcase-kicker):not(.home-showcase-meta) {
    position: relative;
    z-index: 1;
    margin: 0 0 1.35rem;
    color: #d8d7e9;
    font-size: .94rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.home-showcase-meta {
    margin: 0 0 1.1rem;
    color: #ff7bd8;
    font-size: .88rem;
    letter-spacing: .05em;
}

.home-showcase-copy .drakima-button {
    position: relative;
    z-index: 1;
    align-self: flex-start;
}

.home-showcase-controls {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: .65rem;
    min-height: 3.8rem;
    padding: .55rem .7rem;
    border-top: 1px solid rgba(0, 247, 221, .5);
    background: #08091a;
}

.home-showcase-arrow,
.home-showcase-pause,
.home-showcase-dot {
    border: 1px solid rgba(0, 247, 221, .62);
    background: #071226;
    color: #cffff8;
    cursor: pointer;
}

.home-showcase-arrow,
.home-showcase-pause {
    min-width: 44px;
    min-height: 44px;
    padding: .45rem .8rem;
    font-family: var(--drakima-mono-font);
    font-size: .75rem;
    text-transform: uppercase;
}

.home-showcase-arrow:hover,
.home-showcase-arrow:focus-visible,
.home-showcase-pause:hover,
.home-showcase-pause:focus-visible {
    border-color: #ff38c7;
    color: #fff;
    outline: 2px solid rgba(255, 56, 199, .34);
}

.home-showcase-dots {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

.home-showcase-dot {
    position: relative;
    width: 2.35rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.home-showcase-dot::after {
    position: absolute;
    inset: calc(50% - .3rem) 0;
    border: 1px solid rgba(0, 247, 221, .62);
    background: #071226;
    content: "";
}

.home-showcase-dot.is-active {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.home-showcase-dot.is-active::after {
    border-color: #ff42c8;
    background: #ff42c8;
    box-shadow: 0 0 10px rgba(255, 66, 200, .72);
}

.home-showcase-dot:focus-visible {
    outline: 2px solid #ff73d6;
    outline-offset: 2px;
}

.home-showcase-status {
    margin: 0;
    color: #8ff9ef;
    font-family: var(--drakima-mono-font);
    font-size: .72rem;
}

.home-chapters,
.home-welcome-transmission {
    margin-top: clamp(3.25rem, 7vw, 6rem);
}

.home-section-title-row > a {
    color: #16ead6;
    font-family: var(--drakima-mono-font);
    font-size: .8rem;
    text-transform: uppercase;
}

.home-chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-chapter-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid rgba(218, 27, 173, .68);
    background: rgba(5, 6, 18, .93);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.home-chapter-image {
    display: grid;
    min-height: 12rem;
    overflow: hidden;
    place-items: center;
    border-bottom: 1px solid rgba(0, 247, 221, .45);
    background: linear-gradient(145deg, #281044, #08233b);
    color: rgba(255, 255, 255, .58);
    font-family: var(--drakima-mono-font);
    font-size: 1.5rem;
}

.home-chapter-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 220ms ease-out;
}

.home-chapter-card:hover .home-chapter-image img {
    transform: scale(1.025);
}

.home-chapter-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.home-chapter-copy h3 {
    margin: 0 0 .7rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.home-chapter-copy h3 a {
    color: #f9efff;
    text-decoration: none;
}

.home-chapter-copy h3 a:hover,
.home-chapter-copy h3 a:focus-visible {
    color: #ff73d6;
}

.home-chapter-copy > p:not(.home-chapter-publication) {
    margin: 0 0 1rem;
    color: #bfc0d6;
    line-height: 1.58;
}

.home-chapter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .85rem;
    border-top: 1px solid rgba(0, 247, 221, .22);
    color: #73e9df;
    font-family: var(--drakima-mono-font);
    font-size: .7rem;
    text-transform: uppercase;
}

.home-content-rating {
    padding: .15rem .35rem;
    border: 1px solid #ff42c8;
    color: #ff8add;
}

.home-welcome-transmission {
    /* Home already supplies the outer page gutters. */
    width: 100%;
}

.home-welcome-copy > .drakima-eyebrow {
    text-align: center;
}

.home-welcome-copy > h2 {
    color: inherit;
    text-shadow: inherit;
}

.home-welcome-copy blockquote > p:only-child {
    margin: 0;
}

.home-welcome-copy mark {
    padding: 0;
    background: transparent;
    color: var(--drakima-cyan-soft);
    font-family: "Audiowide", "Orbitron", sans-serif;
    font-size: clamp(1.12rem, 2vw, 1.45rem);
    line-height: 1.45;
    text-shadow: 1px 1px #4c206a, 0 0 8px rgba(0, 255, 204, .4);
}

.home-welcome-copy .home-welcome-signature,
.home-akari-whisper blockquote footer {
    font-family: "Yellowtail", "Brush Script MT", cursive;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    letter-spacing: normal;
    line-height: 1.4;
}

.home-welcome-copy .home-welcome-signature {
    color: #c695ff;
    text-shadow: 0 0 6px rgba(160, 84, 255, .65), 1px 1px #39205b;
}

.home-akari-whisper > h3 {
    color: #ffb2da;
    font-weight: 400;
    text-shadow: 0 0 7px rgba(255, 100, 178, .38);
}

.home-akari-whisper > blockquote {
    color: #ffe2f3;
    font-weight: 400;
    text-shadow: 0 0 5px rgba(255, 117, 175, .32);
}

.home-akari-whisper blockquote blockquote {
    margin-inline: clamp(0rem, 2vw, 1.5rem);
    border-color: #b98aff;
    background: #322044;
    color: #f0deff;
}

.home-akari-whisper blockquote blockquote:hover {
    border-color: #d5b1ff;
    box-shadow: 0 0 10px rgba(185, 138, 255, .25);
}

.home-akari-whisper blockquote blockquote > p:only-child {
    margin: 0;
}

.home-akari-whisper blockquote footer {
    color: #ffd1ea;
    text-shadow: 0 0 4px rgba(255, 112, 195, .35);
}

.home-akari-whisper footer strong {
    font-weight: 400;
}

.home-welcome-transmission :is(h2, h3) {
    /* The heading itself holds the divider lines that frame a chapter title. */
    max-width: none;
    margin-bottom: calc(.75em + clamp(1.5rem, 3vw, 2.5rem));
}

.home-akari-whisper > a {
    color: #16ead6;
    font-family: var(--drakima-mono-font);
    font-size: .78rem;
    text-transform: uppercase;
}

.home-editorial-empty {
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(255, 35, 202, .72);
    background: rgba(5, 6, 18, .92);
}

@keyframes home-showcase-reveal {
    from { opacity: .35; transform: translateX(.65rem); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 991.98px) {
    .home-editorial-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .75rem;
    }

    .home-showcase-slide {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
    }

    .home-showcase-media {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    /* Keep faces and poses intact when the artwork moves above the copy. */
    .home-showcase-media > img:not(.home-showcase-character) {
        display: block;
        object-fit: contain;
    }

    .home-showcase-copy {
        overflow: visible;
    }

    .home-showcase-media::after {
        background: linear-gradient(0deg, rgba(6, 6, 18, .76), transparent 44%);
    }

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

    .home-chapter-card {
        display: grid;
        grid-template-columns: minmax(10rem, .85fr) minmax(0, 1.15fr);
    }

    .home-chapter-image,
    .home-chapter-image img {
        height: 100%;
        min-height: 13rem;
    }

}

@media (max-width: 639.98px) {
    .home-editorial-heading,
    .home-section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .75rem;
    }

    .home-showcase-copy {
        padding: 1.65rem 1.25rem 2rem;
    }

    .home-showcase-copy h3 {
        font-size: 2rem;
    }

    .home-showcase-controls {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .home-showcase-dots {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .home-showcase-arrow,
    .home-showcase-pause {
        grid-row: 2;
    }

    .home-showcase-pause {
        justify-self: center;
    }

    .home-showcase-status {
        display: none;
    }

    .home-showcase-dot {
        min-width: 44px;
        min-height: 44px;
    }

    .home-chapter-card {
        display: flex;
    }

    .home-chapter-image,
    .home-chapter-image img {
        height: 11rem;
        min-height: 11rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-showcase-slide,
    .home-chapter-image img {
        animation: none;
        transition: none;
    }
}
