/*Base styles*/

/* Colors, fonts and timing that repeat all over the site*/
:root {
    --void: #010103;                
    --bone: 233, 228, 214;         
    --serif: "Cormorant Garamond", Georgia, serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --ease: cubic-bezier(0.19, 1, 0.22, 1); 
    --sidepadding: clamp(20px, 5vw, 56px);
    --postpadding: clamp(24px, 5vw, 56px);
    --glowoff: 0 0 2.4px rgba(var(--bone), 0.17), 0 0 6.8px rgba(var(--bone), 0.1), 0 0 15px rgba(var(--bone), 0.05);
    --glowhover: 0 0 9px rgba(var(--bone), 0.55), 0 0 24px rgba(var(--bone), 0.32), 0 0 52px rgba(var(--bone), 0.16);
    --fogbrightness: 1.3;          
    --ditheramount: 1;              
    --dithersize: 3px;              
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--void);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: radial-gradient(120% 80% at 50% 0%, #060609 0%, #030305 38%, var(--void) 78%);
    color: rgba(var(--bone), 0.78);
    font-family: var(--mono);
    line-height: normal;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(var(--bone), 0.22);
    color: #E9E4D6;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
    margin: 0;
}

/* link hover behavior styling */
a {
    color: rgba(var(--bone), 0.8);
    text-decoration: none;
    transition: color 0.55s ease, text-shadow 0.55s ease;
}

a:hover,
a:focus-visible {
    color: rgba(var(--bone), 0.98);
    text-shadow: 0 0 9px rgba(var(--bone), 0.55), 0 0 24px rgba(var(--bone), 0.32);
}


:focus-visible {
    outline: 1px solid rgba(var(--bone), 0.45);
    outline-offset: 4px;
}


main {
    position: relative;
    z-index: 2;
}


/*Atmosphere*/

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}


.wisp {
    position: absolute;
    inset: 0;
    opacity: calc(0.4 * var(--fogbrightness));
    will-change: transform;
}

/* wisps 5 and 6 reuse the shapes of wisps 1 and 2 */
.wisp1,
.wisp5 {
    background: radial-gradient(42% 11% at 50% 50%, rgba(var(--bone), 0.2198) 0%, rgba(var(--bone), 0.1377) 36%, rgba(var(--bone), 0.0464) 64%, transparent 86%);
}

.wisp2,
.wisp6 {
    background: radial-gradient(36% 9% at 50% 50%, rgba(var(--bone), 0.1848) 0%, rgba(var(--bone), 0.113) 36%, rgba(var(--bone), 0.0416) 64%, transparent 86%);
}

.wisp3 {
    background: radial-gradient(30% 13% at 50% 50%, rgba(var(--bone), 0.1671) 0%, rgba(var(--bone), 0.103) 36%, rgba(var(--bone), 0.036) 64%, transparent 86%);
}

.wisp4 {
    background: radial-gradient(50% 16% at 50% 50%, rgba(var(--bone), 0.1318) 0%, rgba(var(--bone), 0.0836) 36%, rgba(var(--bone), 0.026) 64%, transparent 86%);
}

.wisp1 {
    animation: drift1 50s ease-in-out infinite alternate;
}

.wisp2 {
    animation: drift2 68s ease-in-out infinite alternate;
}

.wisp3 {
    animation: drift3 58s ease-in-out infinite alternate;
}

.wisp4 {
    animation: drift4 80s ease-in-out infinite alternate;
}

/* Wisps 5 and 6 follow paths 3 and 1 at their own speed.
   A negative delay starts them partway along their path, so no two wisps ever line up. */
.wisp5 {
    animation: drift3 66s ease-in-out -23s infinite alternate;
}

.wisp6 {
    animation: drift1 74s ease-in-out -41s infinite alternate;
}


.dither {
    position: absolute;
    inset: 0;
    background-image: url(images/dither.svg);
    background-size: calc(var(--dithersize) * 4) calc(var(--dithersize) * 4);
    image-rendering: pixelated;
    opacity: calc(0.7 * var(--ditheramount));
}

/* darkens the edges of the screen */
.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 95% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
}


/*Header*/

/* header behavior */
.siteheader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 22;
    display: flex;
    align-items: center;
    padding: 28px var(--sidepadding) 52px;
    background: linear-gradient(180deg, var(--void) 0%, var(--void) 52%, rgba(1, 1, 3, 0.7) 76%, rgba(1, 1, 3, 0) 100%);
    transition: transform 0.7s var(--ease), opacity 0.6s ease;
}

.headerhidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

/* if you tab to the logo with the keyboard, the header comes back so you can see it */
.siteheader:focus-within {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.homemark {
    display: flex;
    padding: 6px;
    transition: filter 0.55s ease;
}

.homemark:hover,
.homemark:focus-visible {
    filter: drop-shadow(0 0 10px rgba(var(--bone), 0.55)) brightness(1.3);
}


.sitelogo {
    display: block;
    width: auto;
    height: 84px;
    margin: -26px -10px -26px -14px;
}


/*Index page*/

.indexheader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px var(--sidepadding) 22px;
    text-align: center;
}


.herotitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto 0;
    padding: 24px 0 36px;
    animation: fade 2.4s ease 0.9s both;
}

.headertitle {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(56px, 11vw, 148px);
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: rgba(var(--bone), 0.93);
    text-shadow: 0 0 40px rgba(var(--bone), 0.16), 0 0 110px rgba(var(--bone), 0.08);
}

.headertext {
    max-width: 560px;
    margin-top: 30px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(19px, 1.9vw, 24px);
    line-height: 1.55;
    color: rgba(var(--bone), 0.84);
    text-wrap: pretty;
}

/* latest article */
.latestlink {
    position: absolute;
    left: var(--sidepadding);
    bottom: 28px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: min(320px, 38vw);
    padding: 8px 0;
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.6);
    animation: fade 2.4s ease 1.6s both;
}

.latestlink:hover,
.latestlink:focus-visible {
    color: rgba(var(--bone), 0.95);
    text-shadow: var(--glowhover);
}

.latestlabel {
    font-weight: 500;
}

.latesttitle {
    font-family: var(--serif);
    font-size: clamp(17px, 1.5vw, 20px);
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(var(--bone), 0.82);
    text-wrap: pretty;
}

.descend {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px;
    font-size: 9.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.5);
}

.descend:hover,
.descend:focus-visible {
    color: rgba(var(--bone), 0.95);
}

.descend::after {
    content: "";
    width: 1px;
    height: 38px;
    background: linear-gradient(180deg, rgba(var(--bone), 0.6), transparent);
    animation: cue 3.2s ease-in-out infinite;
}


/* card layout */

.cardcontainer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px var(--sidepadding);
    scroll-margin-top: 10px;
}

.cardcontainer::before {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--bone), 0.2), transparent 88%);
}


/* the cards*/

/* each card puts the picture beside the words, then stacks them on small screens */
.cards {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    padding: 48px 0;
    animation: rise 1.6s var(--ease) both;
}
/* card animation behavior */
.cards:nth-of-type(1) {
    animation-delay: 0.25s;
}

.cards:nth-of-type(2) {
    animation-delay: 0.37s;
}

.cards:nth-of-type(3) {
    animation-delay: 0.49s;
}

.cards:nth-of-type(4) {
    animation-delay: 0.61s;
}

.cards:nth-of-type(5) {
    animation-delay: 0.73s;
}

.cardlink {
    flex: 1 1 320px;
    max-width: 460px;
    transition: filter 0.7s ease;
}

.cardlink:hover,
.cardlink:focus-visible {
    filter: brightness(1.25);
}


.cardimg {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: brightness(0.72) saturate(0.25) contrast(1.05);
    -webkit-mask-image: radial-gradient(72% 84% at 50% 48%, #000 22%, rgba(0, 0, 0, 0.55) 62%, transparent 94%);
    mask-image: radial-gradient(72% 84% at 50% 48%, #000 22%, rgba(0, 0, 0, 0.55) 62%, transparent 94%);
}

.cardcontent {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.cardmeta {
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.46);
}

.cardtitle {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: rgba(var(--bone), 0.9);
    text-wrap: pretty;
}

.cardtext {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.6;
    color: rgba(var(--bone), 0.64);
    text-wrap: pretty;
}

.readmore {
    align-self: flex-start;
    margin-top: 6px;
}
/* read more */
.readmore a {
    display: block;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.6);
    text-shadow: var(--glowoff);
}

.readmore a:hover,
.readmore a:focus-visible {
    color: rgba(var(--bone), 0.95);
    text-shadow: var(--glowhover);
}


/*blog post layout*/

.postpage main {
    padding-top: 95px;
}

/* banner behavior*/
.herogradient {
    position: relative;
    height: clamp(200px, 40vh, 440px);
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 22%, #000 58%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 22%, #000 58%, transparent 100%);
}


.heroblur {
    position: absolute;
    top: -8%;
    left: -8%;
    width: 116%;
    height: 116%;
    object-fit: cover;
    filter: blur(38px) brightness(0.34) saturate(0.25);
}

.heroimg {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(100%, 1120px);
    height: 100%;
    object-fit: cover;
    transform: translateX(-50%);
    filter: brightness(0.66) saturate(0.22) contrast(1.06);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}


.herotext {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(18px, 3.5vh, 40px) var(--postpadding) 0;
    animation: rise 1.9s var(--ease) both;
}


.herotext::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 48px;
    background: rgba(var(--bone), 0.22);
}

.postmeta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.55);
}

.herotext h1 {
    margin-top: 22px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(36px, 5.4vw, 60px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: rgba(var(--bone), 0.94);
    text-shadow: 0 0 30px rgba(var(--bone), 0.14);
    text-wrap: pretty;
}


.postdek {
    max-width: 720px;
    margin-top: 16px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(19px, 1.8vw, 23px);
    line-height: 1.55;
    color: rgba(var(--bone), 0.66);
    text-wrap: pretty;
}


.credits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    margin-top: 22px;
    padding-top: 4px;
}

.credits div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.credits dt {
    font-size: 9px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.4);
}

.credits dd {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.78);
}


/*site text*/


.textcontainer {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px var(--postpadding) 30px;
}

.posttext {
    font-family: var(--serif);
    font-size: clamp(19px, 1.6vw, 21px);
    line-height: 1.78;
    color: rgba(var(--bone), 0.8);
    text-wrap: pretty;
}


.textcontainer h2 {
    margin-top: 22px;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(26px, 2.6vw, 32px);
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: rgba(var(--bone), 0.92);
    text-wrap: pretty;
}


.textcontainer h3 {
    margin: 8px 0 -8px;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.7);
}

/* lists use small glowing diamonds instead of bullets */
.postlist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.postlist li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.72);
}

/* the diamond is a small square turned 45 degrees */
.postlist li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
    background: rgba(var(--bone), 0.5);
    box-shadow: 0 0 8px rgba(var(--bone), 0.35);
}


.postnumbered {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    list-style: none;
    counter-reset: point;
}

.postnumbered li {
    display: flex;
    align-items: baseline;
    gap: 20px;
    font-family: var(--serif);
    font-size: clamp(18px, 1.5vw, 20px);
    line-height: 1.65;
    color: rgba(var(--bone), 0.8);
    text-wrap: pretty;
    counter-increment: point;
}

.postnumbered li::before {
    content: counter(point, decimal-leading-zero);
    flex: none;
    width: 22px;
    font-family: var(--mono);
    font-size: 11px;
    line-height: normal;
    letter-spacing: 0.14em;
    color: rgba(var(--bone), 0.5);
}

/* post pictures sit centered with a small caption, and open bigger when clicked */
.postfigure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.zoomlink {
    display: block;
    width: 100%;
    cursor: zoom-in;
    transition: filter 0.7s ease;
}

.zoomlink:hover,
.zoomlink:focus-visible {
    filter: brightness(1.2);
}

.postimg {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0.82) saturate(0.3);
    -webkit-mask-image: radial-gradient(74% 86% at 50% 50%, #000 34%, rgba(0, 0, 0, 0.6) 66%, transparent 96%);
    mask-image: radial-gradient(74% 86% at 50% 50%, #000 34%, rgba(0, 0, 0, 0.6) 66%, transparent 96%);
}

/* place holder pictures sit in a grid that fits as many columns (at least 180px wide) as there is room for */
.placeholderfigure {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0;
}

.placeholdergrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.placeholderimg {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.postfigure figcaption,
.placeholderfigure figcaption {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.42);
}

.placeholderfigure figcaption {
    text-align: center;
}

/* getting the user back to the top to not interrupt flow */
.backtotop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: max-content;
    margin: 40px auto 20px;
    padding: 12px 8px;
    font-size: 10.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.6);
}

.backtotop::before {
    content: "";
    width: 1px;
    height: 30px;
    background: linear-gradient(0deg, rgba(var(--bone), 0.6), transparent);
}

.backtotop:hover,
.backtotop:focus-visible {
    color: rgba(var(--bone), 0.95);
    text-shadow: var(--glowhover);
}


/* footer */
footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 60px var(--sidepadding) 70px;
    text-align: center;
}

/* on posts there is extra room at the bottom so the reading player doesn't cover the credit */
.postpage footer {
    padding-bottom: 150px;
}

footer p {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.4);
}


/*Reading player*/

/* audio player behavior */
.player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 46px var(--sidepadding) 18px;
    background: linear-gradient(180deg, transparent 0%, rgba(1, 1, 3, 0.9) 30%, var(--void) 55%, var(--void) 100%);
    pointer-events: none;
}

.playerbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(10px, 2vw, 22px);
    max-width: 1080px;
    margin: 0 auto;
    pointer-events: auto;
}


.playerbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: none;
    background: none;
    color: rgba(var(--bone), 0.7);
    cursor: pointer;
    filter: drop-shadow(0 0 3px rgba(var(--bone), 0.18));
    transition: color 0.55s ease, filter 0.55s ease;
}

.playerbar .playbutton {
    color: rgba(var(--bone), 0.92);
}

.playerbar button:hover,
.playerbar button:focus-visible {
    color: rgba(var(--bone), 0.98);
    filter: drop-shadow(0 0 8px rgba(var(--bone), 0.6)) drop-shadow(0 0 20px rgba(var(--bone), 0.3));
}

/* currentColor makes the icons use the button's text color */
.playerbar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.playbutton svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
}

.skipbutton svg {
    stroke-width: 2.2;
}

/* script.js adds .playing to the play button while the reading plays, which swaps the icon */
.pauseicon,
.playing .playicon {
    display: none;
}

.playing .pauseicon {
    display: block;
}


.mutebutton .wavelow,
.mutebutton .wavehigh,
.mutebutton .mutedcross {
    display: none;
}

.mutebutton[data-level="high"] .wavelow,
.mutebutton[data-level="high"] .wavehigh,
.mutebutton[data-level="low"] .wavelow,
.mutebutton[data-level="muted"] .mutedcross {
    display: inline;
}

.volume {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 8px;
}


.slider {
    --fill: 0%;
    position: relative;
    height: 18px;
}

.seekslider {
    flex: 1 1 220px;
    min-width: 160px;
}

.volumeslider {
    width: 96px;
}

/* dim line */
.slider::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(var(--bone), 0.12);
}


.slider::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: var(--fill);
    height: 2px;
    background: rgba(var(--bone), 0.75);
    box-shadow: 0 0 8px rgba(var(--bone), 0.45), 0 0 20px rgba(var(--bone), 0.2);
}


.slider input {
    position: relative;
    z-index: 1;
    display: block;
    width: calc(100% + 8px);
    height: 18px;
    margin: 0 -4px;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}


.slider input::-webkit-slider-runnable-track {
    height: 18px;
    background: transparent;
}

.slider input::-moz-range-track {
    height: 18px;
    background: transparent;
}

.slider input::-webkit-slider-thumb {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border: none;
    background: rgba(var(--bone), 0.95);
    box-shadow: 0 0 10px rgba(var(--bone), 0.6), 0 0 24px rgba(var(--bone), 0.3);
    transform: rotate(45deg);
    -webkit-appearance: none;
    appearance: none;
}

.slider input::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 0;
    background: rgba(var(--bone), 0.95);
    box-shadow: 0 0 10px rgba(var(--bone), 0.6), 0 0 24px rgba(var(--bone), 0.3);
    transform: rotate(45deg);
}


/*lightbox*/


.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 5vh 5vw;
    border: none;
    background: radial-gradient(80% 70% at 50% 50%, rgba(2, 2, 5, 0.93), rgba(0, 0, 0, 0.985) 78%);
    backdrop-filter: blur(5px);
    color: inherit;
    cursor: zoom-out;
}

/* only lay it out while it is open, so a closed dialog stays hidden */
.lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.lightboximg {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    filter: brightness(0.9) saturate(0.4);
    -webkit-mask-image: radial-gradient(80% 90% at 50% 50%, #000 52%, transparent 100%);
    mask-image: radial-gradient(80% 90% at 50% 50%, #000 52%, transparent 100%);
}

.lightboxtext {
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(var(--bone), 0.5);
}


/*animations*/

/* animation for fading in upon loading */
@keyframes rise {
    from {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: none;
    }
}

/* The title screen just fades in. */
@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* The line under "Descend" brightens and dips down, then goes back. */
@keyframes cue {
    0%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    50% {
        opacity: 0.9;
        transform: translateY(6px);
    }
}

/* The four paths the wisps drift along. vw and vh are percents of the window's width and height. */
@keyframes drift1 {
    0% {
        transform: translate(-42vw, -27vh) rotate(-13deg);
    }
    35% {
        transform: translate(-7vw, -37vh) rotate(6deg);
    }
    70% {
        transform: translate(23vw, -15vh) rotate(-5deg);
    }
    100% {
        transform: translate(40vw, -30vh) rotate(14deg);
    }
}

@keyframes drift2 {
    0% {
        transform: translate(38vw, 23vh) rotate(10deg);
    }
    30% {
        transform: translate(10vw, 35vh) rotate(-8deg);
    }
    65% {
        transform: translate(-20vw, 13vh) rotate(5deg);
    }
    100% {
        transform: translate(-42vw, 28vh) rotate(-16deg);
    }
}

@keyframes drift3 {
    0% {
        transform: translate(-27vw, 38vh) rotate(22deg);
    }
    40% {
        transform: translate(5vw, 5vh) rotate(-10deg);
    }
    75% {
        transform: translate(30vw, -20vh) rotate(13deg);
    }
    100% {
        transform: translate(13vw, -40vh) rotate(-6deg);
    }
}

@keyframes drift4 {
    0% {
        transform: translate(18vw, -7vh) rotate(-6deg);
    }
    50% {
        transform: translate(-25vw, 15vh) rotate(8deg);
    }
    100% {
        transform: translate(8vw, 38vh) rotate(-11deg);
    }
}

/* If someone turns off motion in their system settings, the page shows up without fading in,
   the smoke freezes where it starts and links jump instead of gliding.
   ::before and ::after are listed too, because * on its own doesn't reach them (like the line under "Descend"). */
@media (prefers-reduced-motion: reduce) {
    *:not(.wisp),
    *::before,
    *::after {
        animation: none !important;
    }

    .wisp {
        animation-play-state: paused;
    }

    html {
        scroll-behavior: auto;
    }
}
