#intro,
body {
    color: var(--fg);
}
.intro-text,
body {
    font-family: Spectral, serif;
}
:root {
    --bg: #f0ede2;
    --fg: #1a1a1a;
    --bg-dark: #1e1e1e;
    --fg-dark: #f7f2eb;
    --maxw: 60ch;
    --radius: 50px;
    --gutter: clamp(1rem, 2vw + 0.5rem, 2rem);
    --space-1: 0.3rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --fs-body: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
    --fs-lead: clamp(1.15rem, 1rem + 0.9vw, 1.4rem);
    --lh: 1.65;
    --measure: 65ch;
}
*,
* ::after,
* ::before {
    box-sizing: border-box;
}
html {
    text-wrap: pretty;
    hanging-punctuation: first allow-end;
    word-break: keep-all;
}
body,
html {
    margin: 0;
    padding: 0;
}
.day--poem p,
p {
    margin-block: var(--space-1);
    word-break: keep-all;
}
@font-face {
    font-family: Spectral;
    src: local("Spectral"), local("Spectral-Regular"), url("/font/Spectral-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
body {
    padding-top: var(--space-5);
    background-color: var(--bg);
    font-size: var(--fs-body);
    line-height: var(--lh);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures;
    hyphens: auto;
    overflow-wrap: anywhere;
}
.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
    padding-block: var(--gutter);
    border-radius: var(--radius);
    container-type: inline-size;
}
section.day {
    padding-block: var(--space-6);
}
section.day:first-of-type {
    padding-block-start: 0;
}
section.day:last-of-type {
    padding-block-end: var(--space-4);
}
p {
    text-align: justify;
    max-width: var(--measure);
    word-break: keep-all;
}
section.day > p:first-of-type {
    font-size: var(--fs-lead);
    font-style: italic;
    margin-block-end: var(--space-4);
    letter-spacing: 0.0005em;
}
section.day > p:nth-of-type(2) {
    font-size: var(--fs-lead);
    font-style: italic;
    margin-block-end: var(--space-2);
}
.stack {
    display: flex;
    flex-direction: column;
}
.spacer {
    block-size: var(--space-3);
}
.day--poem p {
    text-align: start;
}
.day--poem .spacer {
    block-size: var(--space-4);
}
.rights {
    display: block;
    margin-top: var(--space-3);
    margin-bottom: var(--space-5);
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    opacity: 0.70;
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--bg-dark);
        color: var(--fg-dark);
    }
}
@container (min-width:45rem) {
    :root {
        --measure: 72ch;
    }
    body {
        line-height: 1.7;
    }
    section.day {
        padding-block: calc(var(--space-6) + 0.5rem);
    }
}
@media (max-width: 768px) {
    .container {
        padding-inline: calc(var(--gutter) * 2.1);
        border-radius: 0;
    }
    .day--poem p {
        text-align: start;
    }
}
@media print {
    body {
        background: #fff;
        color: #000;
    }
    .container {
        max-width: none;
        padding: 0;
    }
    .spacer {
        block-size: 0.75rem;
    }
}
#intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: var(--bg);
    pointer-events: none;
}
@media (prefers-color-scheme: dark) {
    #intro {
        background: var(--bg-dark);
        color: var(--fg-dark);
    }
}
.intro-text {
    font-weight: 400;
    letter-spacing: -0.039em;
    font-size: clamp(1.2rem, 1rem + 1vw, 2rem);
    text-align: center;
    opacity: 1;
    transform: translateY(2px);
    white-space: pre;
}
.intro-text::after {
    content: "|";
    display: inline-block;
    margin-left: 0.05em;
    transform: translateY(0.02em);
    animation: 1s steps(1, end) infinite caret-blink;
}
@keyframes caret-blink {
    50% {
        opacity: 0;
    }
}
#intro.out {
    animation: 0.8s both intro-out;
}
@keyframes intro-out {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

#disclaimer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    background: var(--bg);
    color: var(--fg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#disclaimer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#disclaimer .disclaimer-content {
    max-width: var(--measure);
    padding: var(--space-4);
    text-align: center;
}

#disclaimer button {
    margin-top: var(--space-5);
    padding: var(--space-1) var(--space-3);
    font: inherit;
    background-color: transparent;
    color: inherit;
    -webkit-text-fill-color: currentColor;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

@media (prefers-color-scheme: dark) {
    #disclaimer {
        background: var(--bg-dark);
        color: var(--fg-dark);
    }
}
