@font-face {
  font-family: "Libertinus Math";
  src: url("fonts/LibertinusMath-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
    --ink: #000000;
    --ink-soft: #000000;

    --space-1: 8px;
    --space-2: 16px;
    --space-4: 32px;

    --fs-title: 20px;
    --fs-date: 17px;
    --fs-body: 14px;
    --fs-abstract: 15px;
    --fs-colophon: 16px;
}


* {
    box-sizing: border-box;
}


body {
    margin: 0;
    background: white;
    color: var(--ink);

    font-family: "Times New Roman", serif;
    font-size: 14px;
    font-weight: 150;
    line-height: 1.35;
}


.page {
    width: 100%;
    padding: var(--space-2) var(--space-4);
}


.site-title {
    margin-bottom: var(--space-4);

    font-size: var(--fs-title);
}


.entry {
    margin-bottom: var(--space-1);

    animation: rise 0.6s ease both;
}


.date {
    display: block;

    color: var(--ink);
    text-decoration: none;
    font-size: var(--fs-date);
}


.date:hover {
    color: var(--ink);
}


.abstract {
    max-height: 0;
    overflow: hidden;

    margin-left: 20px;

    opacity: 0;

    transition:
        max-height 0.5s ease,
        opacity 0.3s ease,
        margin-top 0.5s ease;
}


.abstract.open {
    max-height: 1000px;

    margin-top: 12px;

    opacity: 1;
}


.abstract p {
    margin: 0 0 20px;

    color: var(--ink-soft);
    font-size: var(--fs-abstract);
    max-width: 46ch;
}

.bottom-right {
    position: fixed;
    bottom: 15px;
    right: 32px;

    width: 200px;
    text-align: right;

    color: var(--ink-soft);
    font-family: "Libertinus Math", "Times New Roman", serif;
    font-size: var(--fs-colophon);
    letter-spacing: 0.01em;

    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bottom-right,
    .entry {
        animation: none;
    }
}


.volume-mark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-family: "Libertinus Math", "Times New Roman", serif;
    font-size: 220px;
    line-height: 1;
    color: var(--ink);
    opacity: 0.05;

    pointer-events: none;
    user-select: none;

    white-space: nowrap;

    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

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


.gallery-toggle {
    position: fixed;
    top: 0;
    right: 0;

    width: 96px;
    height: 96px;

    background: none;
    border: none;
    padding: 0;
    cursor: pointer;

    transform: rotate(35deg);
}

.gallery-toggle img {
    display: block;
    width: 100%;
    height: 100%;
}

.lightbox {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.98);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    z-index: 100;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    max-width: 88vw;
    max-height: 88vh;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;

    background: none;
    border: none;
    padding: 0;
    cursor: pointer;

    font-family: "Times New Roman", serif;
    font-size: 28px;
    line-height: 1;
    color: var(--ink);
}