/* desk.css — "the desk at 2 a.m."  Loads AFTER css/style.css: owns the colour + type tokens, re-tokens the shared widgets
   (overlays, player, card, lightbox) and restyles everything on index.html.
   Black room, one red safelight, paper things lying on the desk. Fraunces + Instrument Sans + Caveat.
   The Ritual wordmark (nav + footer) lives in css/logo.css. */

   :root {
    --bg: #0a0908; --bg2: #121110; --bg3: #17140f; --bg4: #1d1a15;
    --paper: #f1ead9; --paper-dim: #cbc2ad; --ink: #9b9384; --ink-dim: #5c564c;
    --red: #d81f2f; --red-bright: #ff3346; --red-deep: #6e0f17;
    --red-glow: rgba(216, 31, 47, .28); --red-glow-strong: rgba(255, 51, 70, .5);
    --line: #241f1a; --line-bright: #3a3229;
    --display: 'Fraunces', Georgia, serif; --serif: 'Fraunces', Georgia, serif;
    --mono: 'Instrument Sans', system-ui, sans-serif; --hand: 'Caveat', 'Segoe Script', cursive;
    --nav-h: 4.2rem; --nav-h-m: 3.6rem;
    --spring: cubic-bezier(.2, .9, .3, 1.25);
}
body { cursor: crosshair; font-size: 17px; line-height: 1.6; font-variation-settings: "SOFT" 60; }
html body, html body * { cursor: crosshair !important; }
.grain { opacity: .09; }
main { padding-top: 0; }

/* nav */
.nav-bar { height: auto; background: linear-gradient(var(--bg), transparent); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.nav-bar.scrolled { background: rgba(10, 9, 8, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: none; }
.nav-inner { padding: 1.1rem 2.4rem; }
.nav-links a { font: 500 .95rem var(--mono); letter-spacing: 0; text-transform: none; }
.nav-status { font: 500 .8rem var(--mono); }
@media (max-width: 860px) { .nav-bar { height: auto; } .nav-inner { padding: .9rem 1.2rem; } }

/* preloader */
.preloader-label { font: italic 400 clamp(1.7rem, 4vw, 2.5rem) var(--display); letter-spacing: 0; text-transform: none; color: var(--paper); }
.preloader-barwrap { width: 160px; }
.preloader-pct { font: 500 .8rem var(--mono); }

/* hero */
.h { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 8rem 2.4rem 4.5rem; overflow: hidden; }
.h-lamp { position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(ellipse 60% 70% at 78% 8%, rgba(216, 31, 47, .24), rgba(216, 31, 47, .06) 48%, transparent 100%); }
.h-note { font: 700 1.7rem var(--hand); color: var(--red-bright); transform: rotate(-3deg); transform-origin: left; margin-bottom: .6rem; opacity: 0; }
.h-title { font: 400 clamp(5.5rem, 27vw, 26rem)/.8 var(--display); letter-spacing: -.045em; color: var(--paper); font-variation-settings: "SOFT" 100, "WONK" 1;
    position: relative; display: flex; overflow: hidden; padding: 0 .06em .18em 0; margin-left: -.04em; }
.h-title .char { display: inline-block; opacity: 0; }
.h-title::before, .h-title::after { content: attr(data-text); position: absolute; pointer-events: none; opacity: var(--after-reveal, 0); transition: opacity 1.1s var(--ease-out); }
.h-title::after { left: 6px; top: 5px; z-index: -1; color: var(--red-bright); filter: blur(.5px); }
.h-title::before { left: 13px; top: 11px; z-index: -2; color: var(--red-deep); }
.h-sub { font: italic 1.35rem/1.6 var(--serif); color: var(--paper-dim); max-width: 30rem; min-height: 3.4em; margin-top: 1.4rem; opacity: 0; }
.h-sub .cursor-blink { display: inline-block; width: 2px; height: 1em; background: var(--red-bright); margin-left: 3px; vertical-align: text-bottom; animation: blink .8s step-end infinite; }
.h-sub .cursor-blink.hidden { display: none; }
.h-hint { position: absolute; right: 2.4rem; bottom: 4.5rem; background: none; border: 0; font: 700 1.4rem var(--hand); color: var(--ink); opacity: 0; text-align: right; }
.h-hint:hover { color: var(--red-bright); }
.h-arrow { display: block; width: 54px; height: 54px; margin: .2rem 0 0 auto; fill: none; stroke: var(--red-bright); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .h { padding: 7rem 1.2rem 3.5rem; } .h-hint { display: none; } }

/* shared section furniture */
.wrap { max-width: 1240px; margin: 0 auto; padding: 7rem 2.4rem; position: relative; }
.s-head { margin-bottom: 3rem; }
.s-title { font: 400 clamp(2.4rem, 5vw, 4rem)/1.05 var(--display); letter-spacing: -.02em; color: var(--paper); font-variation-settings: "SOFT" 100; }
.s-aside { display: inline-block; font: 700 1.5rem var(--hand); color: var(--red-bright); transform: rotate(-2deg); margin-top: .5rem; }
@media (max-width: 860px) { .wrap { padding: 4.5rem 1.2rem; } }

/* hello */
#dossier { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; max-width: 1240px; margin: 0 auto; padding: 7rem 2.4rem; border: 0; }
.letter { background: var(--paper); color: #2a241b; padding: 3.2rem 3.4rem; transform: rotate(var(--tilt, -1.2deg)); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); position: relative; }
.letter::before { content: ''; position: absolute; top: -12px; left: 12%; width: 90px; height: 24px; background: rgba(216, 31, 47, .6); transform: rotate(-4deg); }
.hello-hi { font: italic 400 clamp(1.7rem, 3vw, 2.5rem)/1.25 var(--display); color: #1c1812; margin-bottom: 1.4rem; font-variation-settings: "SOFT" 100; }
.hello-body { font: 400 1.05rem/1.85 var(--serif); max-width: 46ch; }
.hello-ps { font: 700 1.7rem var(--hand); color: #b3182a; margin-top: 1.2rem; }
.hello-visual { position: relative; display: flex; justify-content: center; }
.polaroid { border-radius: 2px; transform: rotate(2.4deg); }
.polaroid-frame img { filter: none; }
.polaroid-caption { font: 700 1.25rem var(--hand); letter-spacing: 0; color: #3a3226; }
.tape { background: rgba(216, 31, 47, .6); }
.hint-tag { font: 600 .8rem var(--mono); letter-spacing: 0; text-transform: none; border-radius: 99px; }
#dossier .letter .meo-mark { --meo-sink: 58px; left: auto; right: 4%; top: auto; bottom: calc(100% - var(--meo-sink)); transform: none; width: 118px; }
.meo-mark img { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.hand-note { position: absolute; right: 100%; top: 14px; white-space: nowrap; font: 700 1.25rem var(--hand); color: var(--red-bright); transform: rotate(-4deg); }
.meo-z { position: absolute; left: 62%; top: 0; font: 700 1.3rem var(--hand); font-style: normal; color: var(--paper); opacity: 0; }
@media (max-width: 860px) { #dossier { grid-template-columns: 1fr; gap: 3.5rem; padding: 4.5rem 1.2rem; } .letter { padding: 2.2rem 1.6rem; } .hand-note { display: none; } #dossier .letter .meo-mark { --meo-sink: 38px; width: 92px; right: 4%; } }

/* dim-to-bright text reveal: words start dim and light up as they scroll past */
.rv .w { display: inline; opacity: .22; transition: opacity .35s ease; }
.rv .w.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rv .w { opacity: 1; transition: none; } }

/* pinned: notes on a wall, not a spreadsheet */
.pins { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.8rem 1.4rem; }
.pin { grid-column: span 4; position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 2.1rem 1.7rem 1.8rem; background: var(--c, #f1ead9); color: var(--t, #211c16); text-decoration: none;
    transform: rotate(var(--tilt, 0deg)); transition: transform .4s var(--spring), box-shadow .3s; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .65); }
.pin.wide { grid-column: span 8; }
.pin:nth-child(5n+2), .pin:nth-child(5n) { --c: var(--bg3); --t: var(--paper); --k: var(--red-bright); outline: 1px solid var(--line-bright); outline-offset: -1px; }
.pin:nth-child(5n+3) { --c: #c41a29; --t: #fff5ea; --k: #ffd9cf; }
.pin::before { content: ''; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(239, 230, 210, .55); transform: rotate(-3deg); }
.pin:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 26px 40px -16px rgba(0, 0, 0, .75); z-index: 2; }
.pin-k { font: 700 1.3rem/1.1 var(--hand); color: var(--k, #b3182a); }
.pin-t { font: 500 1.75rem/1.1 var(--display); letter-spacing: -.01em; }
.pin-d { font: 500 .95rem/1.55 var(--mono); }
.pin.urgent { background: transparent; border: 2px dashed var(--red-bright); color: var(--paper); box-shadow: none; }
.pin.urgent .pin-k { color: var(--red-bright); } .pin.urgent::before { display: none; }
@media (max-width: 860px) { .pin, .pin.wide { grid-column: span 6; } }
@media (max-width: 560px) { .pin, .pin.wide { grid-column: span 12; } }

/* prints: photos lying on the desk, captions in pencil */
.frame-filters { display: flex; gap: 1.8rem; margin-bottom: 2.4rem; }
.frame-filter, .frame-filter:hover, .frame-filter.active { background: none; border-radius: 0; padding: .2rem 0; font: 600 1rem var(--mono); letter-spacing: 0; text-transform: none; color: var(--ink); border: 0; border-bottom: 2px solid transparent; }
.frame-filter:hover { color: var(--paper); }
.frame-filter.active { color: var(--paper); border-bottom-color: var(--red-bright); }
.frame-filter em, .frame-filter.active em { font: 700 1.2rem var(--hand); color: var(--ink-dim); }
.frame-grid { display: block; columns: 3 260px; column-gap: 1.6rem; background: none; border: 0; }
.frame-cell { display: block; break-inside: avoid; margin: 0 0 1.6rem; padding: .7rem .7rem 0; background: #f2ecdd; overflow: visible; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7);
    transform: rotate(var(--tilt, 0deg)); transition: transform .4s var(--spring); }
.frame-cell:hover { transform: rotate(0) translateY(-4px); }
.frame-cell img, .frame-cell:hover img { width: 100%; height: auto; filter: none; transform: none; }
.frame-cap { font: 700 1.3rem/1.2 var(--hand); color: #2a241b; padding: .7rem .2rem .9rem; }

/* on repeat */
.repeat { text-align: center; padding: 9rem 2rem; max-width: 56rem; margin: 0 auto; }
.whisper-text { font: italic 400 clamp(1.7rem, 3.6vw, 2.7rem)/1.4 var(--display); font-variation-settings: "SOFT" 100; }

/* right now — two paper cards on the desk */
.status { padding-top: 3rem; padding-bottom: 3rem; }
.status-row { display: flex; gap: 2rem; align-items: stretch; flex-wrap: wrap; }

/* Discord card: a paper chat snippet, not a wide banner. */
.status-card {
    position: relative;
    display: flex; flex-direction: column;
    flex: 1 1 320px;
    padding: 1.9rem 2rem 1.5rem;
    background: var(--paper); color: #2a241b; text-decoration: none;
    transform: rotate(var(--tilt, -.8deg));
    transition: transform .4s var(--spring), box-shadow .3s;
    box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7);
}
.status-card::before {
    content: ''; position: absolute; top: -11px; left: 14%;
    width: 84px; height: 22px;
    background: rgba(216, 31, 47, .6); transform: rotate(-4deg);
}
.status-card:hover {
    transform: rotate(0) translateY(-6px);
    box-shadow: 0 26px 40px -16px rgba(0, 0, 0, .75);
    z-index: 2;
}

/* head: avatar + presence dot + name + state */
.status-top { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.status-pfp { position: relative; flex: none; width: 52px; height: 52px; }
.status-pfp img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    background: var(--bg3);
    box-shadow: 0 0 0 2px #a09a8c, 0 0 0 4px var(--paper);
    transition: box-shadow .3s ease;
}
.status-pfp img[data-state="online"]  { box-shadow: 0 0 0 2px #23a55a, 0 0 0 4px var(--paper); }
.status-pfp img[data-state="idle"]    { box-shadow: 0 0 0 2px #f0b232, 0 0 0 4px var(--paper); }
.status-pfp img[data-state="dnd"]     { box-shadow: 0 0 0 2px #f23f43, 0 0 0 4px var(--paper); }
.status-pfp img[data-state="offline"] { box-shadow: 0 0 0 2px #a09a8c, 0 0 0 4px var(--paper); }

/* the presence dot: unique class, so the global .status-dot rule in style.css
   (meant for the nav clock) can never reach in and reshape it */
.status-presence {
    position: absolute;
    right: -1px; bottom: -1px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: #a09a8c;
    border: 3px solid var(--paper);
    box-sizing: content-box;
    transition: background-color .3s ease;
    pointer-events: none;
}
.status-pfp img[data-state="online"]  ~ .status-presence { background: #23a55a; }
.status-pfp img[data-state="idle"]    ~ .status-presence { background: #f0b232; }
.status-pfp img[data-state="dnd"]     ~ .status-presence { background: #f23f43; }
.status-pfp img[data-state="offline"] ~ .status-presence { background: #80848e; }

.status-id { min-width: 0; flex: 1; }
.status-name {
    font: 500 1.55rem/1.1 var(--display);
    letter-spacing: -.01em; color: #1c1812;
    margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-state {
    font: 700 1.4rem/1.15 var(--hand);
    color: #b3182a;
    margin: .15rem 0 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* bio: the middle paragraph, fills the space between the head and the CTA */
.status-bio {
    flex: 1;
    margin: 1.1rem 0 1rem;
    font: 400 .98rem/1.7 var(--serif);
    color: #3b342a;
    overflow-wrap: anywhere;
}

.status-custom {
    margin: 0 0 .6rem;
    font: 700 1.2rem/1.3 var(--hand);
    color: #b3182a;
    overflow-wrap: anywhere;
}
.status-custom[hidden] { display: none; }

/* activity: an inset chip below the bio */
.status-act {
    display: flex; align-items: center; gap: .75rem;
    margin: 0 0 .6rem;
    padding: .65rem .8rem;
    background: rgba(42, 36, 27, .05);
    border-radius: 8px;
    min-height: 44px;
}
.status-act[hidden] { display: none; }
.status-art {
    flex: none;
    width: 32px; height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(42, 36, 27, .08);
}
.status-act-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .1rem; }
.status-act-kind {
    font: 700 .62rem/1 var(--mono);
    letter-spacing: .14em; text-transform: uppercase;
    color: #b3182a;
}
.status-act-title {
    font: 500 .92rem/1.2 var(--mono);
    color: #1c1812;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-act-sub {
    font: 500 .8rem/1.2 var(--mono);
    color: #6b6252;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* foot: dashed rule + the CTA. Sits at the bottom so the card reads full. */
.status-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed rgba(42, 36, 27, .22);
    font: 600 .78rem var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #b3182a;
}
.status-arrow {
    font-size: 1rem;
    transition: transform .3s var(--ease-out);
}
.status-card:hover .status-arrow { transform: translateX(5px); }

/* sanity card */
.sanity-card {
    position: relative; display: flex; flex-direction: column; flex: 1 1 300px;
    padding: 2.4rem 2.2rem 2rem;
    background: var(--bg); border: 2px dashed var(--red-bright); color: var(--paper);
    transform: rotate(var(--tilt, .6deg));
    transition: transform .4s var(--spring), box-shadow .3s;
    box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7);
}
.sanity-card:hover {
    transform: rotate(0) translateY(-6px);
    box-shadow: 0 26px 40px -16px rgba(0, 0, 0, .75);
    z-index: 2;
}
.sanity-label { display: block; font: 700 1.4rem/1.1 var(--hand); color: var(--red-bright); margin-bottom: .4rem; }
.sanity-title { font: 500 1.9rem/1.1 var(--display); letter-spacing: -.01em; color: #fff; margin-bottom: 1.5rem; }
.sanity-meter {
    width: 100%; height: 8px; background: rgba(255, 51, 70, .15); border-radius: 99px;
    overflow: hidden; margin-bottom: 1.2rem; border: 1px solid rgba(255, 51, 70, .3);
}
.sanity-fill {
    height: 100%; width: var(--sanity, 0%);
    background: var(--red-bright); border-radius: 99px;
    box-shadow: 0 0 12px var(--red-glow-strong);
}
.sanity-text { font: 500 .95rem/1.5 var(--mono); color: var(--paper-dim); margin-top: auto; }

/* night theme: paper card becomes deep-blue glass, ring + dot adapt */
html[data-theme="night"] .status-card {
    background: linear-gradient(160deg, #0e1c46, #08122e); color: #dbe6ff;
    outline: 1px solid rgba(77, 163, 255, .28); outline-offset: -1px;
}
html[data-theme="night"] .status-card::before { background: rgba(77, 163, 255, .55); }
html[data-theme="night"] .status-name { color: #f2f6ff; }
html[data-theme="night"] .status-state { color: #6cb2ff; }
html[data-theme="night"] .status-pfp img,
html[data-theme="night"] .status-pfp img[data-state="offline"] { box-shadow: 0 0 0 2px #4a5878, 0 0 0 4px #08122e; }
html[data-theme="night"] .status-pfp img[data-state="online"]  { box-shadow: 0 0 0 2px #23a55a, 0 0 0 4px #08122e; }
html[data-theme="night"] .status-pfp img[data-state="idle"]    { box-shadow: 0 0 0 2px #f0b232, 0 0 0 4px #08122e; }
html[data-theme="night"] .status-pfp img[data-state="dnd"]     { box-shadow: 0 0 0 2px #f23f43, 0 0 0 4px #08122e; }
html[data-theme="night"] .status-presence { border-color: #08122e; }
html[data-theme="night"] .status-bio { color: #b9c8ea; }
html[data-theme="night"] .status-custom { color: #6cb2ff; }
html[data-theme="night"] .status-act {
    background: rgba(159, 227, 255, .06);
}
html[data-theme="night"] .status-art { background: rgba(159, 227, 255, .08); }
html[data-theme="night"] .status-act-kind  { color: #6cb2ff; }
html[data-theme="night"] .status-act-title { color: #f2f6ff; }
html[data-theme="night"] .status-act-sub   { color: #b9c8ea; }
html[data-theme="night"] .status-foot { border-top-color: rgba(159, 227, 255, .22); color: #6cb2ff; }

@media (max-width: 560px) {
    .status-row { flex-direction: column; }
    .status-card { padding: 1.6rem 1.4rem 1.3rem; }
    .sanity-card { padding: 2.2rem 1.4rem 1.6rem; }
}

/* writing: a letter with bookmark tabs */
.notes-tabs { display: flex; gap: .4rem; padding: 0 0 6px 0; margin: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.notes-tabs::-webkit-scrollbar { display: none; }
.notes-tab { font: 700 1.3rem var(--hand); letter-spacing: 0; text-transform: none; background: var(--bg3); color: var(--ink); border: 0; border-radius: 8px 8px 0 0; padding: .5rem 1.4rem .4rem; transform: translateY(4px); }
.notes-tab:hover { color: var(--paper); background: var(--bg4); border: 0; }
.notes-tab.active, .notes-tab.active:hover { background: var(--paper); color: #2a241b; transform: none; border: 0; }
.notes-panel { background: var(--paper); color: #2a241b; border: 0; border-radius: 0 10px 10px 10px; padding: 2.4rem 2.8rem; max-width: 44rem; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7); }
.notes-tag { font: 700 1.35rem var(--hand); letter-spacing: 0; text-transform: none; color: #b3182a; }
.notes-title { font: 500 clamp(1.8rem, 3.4vw, 2.6rem)/1.1 var(--display); text-transform: none; letter-spacing: -.01em; color: #1c1812; }
.notes-body { font: 400 1.08rem/1.85 var(--serif); color: #3b342a; max-height: 6.6em; }
.notes-body::after { background: linear-gradient(transparent, var(--paper)); }
.read-more-btn { font: 700 1.3rem var(--hand); letter-spacing: 0; text-transform: none; color: #b3182a; }
.read-more-btn:hover { color: #1c1812; }
@media (max-width: 560px) { .notes-panel { padding: 1.8rem 1.4rem; } }

/* drawers: a table of contents you can open */
.drawers { border-top: 1px solid var(--line-bright); }
.drawer { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 2rem; align-items: baseline; width: 100%; padding: 2rem .4rem; background: none; border: 0; border-bottom: 1px solid var(--line-bright); text-align: left; color: inherit; font: inherit; position: relative; }
.drawer-n { display: inline-block; font: 400 clamp(2rem, 4.4vw, 3.4rem)/1 var(--display); letter-spacing: -.02em; color: var(--paper); font-variation-settings: "SOFT" 100, "WONK" 1; }
.drawer-d { font: 500 .98rem/1.5 var(--mono); color: var(--ink); }
.drawer-a { font: 700 1.8rem var(--hand); color: var(--red-bright); opacity: 0; transition: opacity .3s; }
.drawer:hover .drawer-a, .drawer:focus-visible .drawer-a { opacity: 1; }
.drawer::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--red-bright); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--spring); }
.drawer:hover::after { transform: scaleX(1); }
@media (max-width: 700px) { .drawer { grid-template-columns: 1fr auto; gap: .6rem 1rem; } .drawer-d { grid-column: 1 / -1; order: 3; } }

/* footer */
footer { max-width: 1240px; margin: 0 auto; padding: 6rem 2.4rem 3rem; border: 0; }
.bye { font: 400 clamp(2.4rem, 6vw, 5rem)/1 var(--display); letter-spacing: -.03em; color: var(--paper); font-variation-settings: "SOFT" 100, "WONK" 1; }
.bye-hand { display: inline-block; font: 700 1.8rem var(--hand); color: var(--red-bright); transform: rotate(-2deg); margin: .5rem 0 3.5rem; }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.4rem; border-top: 1px solid var(--line-bright); padding-top: 1.8rem; }
.footer-links a { font: 500 .95rem var(--mono); letter-spacing: 0; }
.footer-links a::before, .footer-links a::after { content: none; }
.footer-right { font: 700 1.15rem var(--hand); letter-spacing: 0; white-space: normal; }
@media (max-width: 860px) { footer { padding: 4rem 1.2rem 2.5rem; } }

/* shared widgets: keep them, soften the type */
.toast { font: 600 .92rem var(--mono); letter-spacing: 0; border-radius: 99px; padding: .6rem 1.2rem; }
.poem-label { font-family: var(--mono); letter-spacing: .12em; }
.poem-card, .glitch-card, .music-player-overlay { border-radius: 12px; }

/* hero title: each letter carries a red second print offset behind it */
.h-title .char { position: relative; }
.h-title .char::after {
    content: attr(data-c); position: absolute; left: .03em; top: .025em; z-index: -1; pointer-events: none;
    color: var(--red-bright); filter: blur(.5px); opacity: var(--after-reveal, 0);
    translate: var(--dx, 0px) var(--dy, 0px);
    transition: opacity 1.1s var(--ease-out), translate .35s var(--ease-out);
}
footer { position: relative; z-index: 2; }