/*
 * reviews nobody asked for — warm & cozy "cream + gold" design language.
 * All colors/geometry are CSS custom properties; the site owner can override
 * every one of them from Theme Settings (base.html.twig re-emits them inline).
 * `--rnaf-coral` is the marigold gold accent: decorative fills only, never text.
 * `--rnaf-coral-dark` is the burnt-amber accent safe for text on cream.
 */

:root {
    --rnaf-paper: #fbf3e2;
    --rnaf-paper-deep: #f2e5c9;
    --rnaf-coal: #2e2318;
    --rnaf-muted: #6f5f49;
    --rnaf-sand-soft: #f6e9cc;
    --rnaf-coral: #e9a820;
    --rnaf-coral-dark: #8a5a08;
    --rnaf-accent-surface: #f2e2b6;
    --rnaf-line: color-mix(in srgb, var(--rnaf-coal) 18%, transparent);
    --rnaf-focus: #1659b7;
    --rnaf-serif: Georgia, 'Times New Roman', serif;
    --rnaf-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rnaf-shadow: 0 10px 30px color-mix(in srgb, var(--rnaf-coal) 12%, transparent);
    --rnaf-shadow-lift: 0 18px 44px color-mix(in srgb, var(--rnaf-coal) 18%, transparent);
    --rnaf-radius-sm: 0.25rem;
    --rnaf-radius-md: 0.75rem;
    --rnaf-shell: 76rem;
    --rnaf-section: clamp(3rem, 7vw, 6.5rem);
    --rnaf-gap: 2rem;
    --rnaf-header-bg: #fbf3e2;
    --rnaf-header-text: #2e2318;
    --rnaf-header-link-hover: #8a5a08;
    --rnaf-header-border: #2e2318;
    --rnaf-footer-bg: #2e2318;
    --rnaf-footer-text: #fbf3e2;
    --rnaf-footer-muted: #c9b896;
    --rnaf-footer-link: #f6e9cc;
}

html {
    scroll-behavior: smooth;
}

body.rnaf-site {
    margin: 0;
    min-height: 100vh;
    overflow-x: clip; /* rotated marquee/bleed decorations must not scroll the page */
    color: var(--rnaf-coal);
    background: var(--rnaf-paper);
    font-family: var(--rnaf-sans);
    font-size: 1rem;
    line-height: 1.7;
}

/* Subtle print grain, pure CSS. Toggled from Theme Settings.
   A fixed SVG fractal-noise layer sits over the whole page like the tooth of
   cheap zine paper; multiply blending keeps it off pure whites. */
body.rnaf-site.has-texture::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    background-size: 240px 240px;
    opacity: 0.055;
    mix-blend-mode: multiply;
}

.rnaf-site *,
.rnaf-site *::before,
.rnaf-site *::after {
    box-sizing: border-box;
}

.rnaf-site a {
    color: inherit;
    text-decoration-color: color-mix(in srgb, var(--rnaf-coral) 70%, transparent);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.2em;
}

/* Hover colors are scoped per surface: the burnt amber is only readable on
   the light paper background, the footer keeps its own light link color. */
.rnaf-site main a:not(.read-review):hover {
    color: var(--rnaf-coral-dark);
    text-decoration-color: currentColor;
}

.site-footer a:hover {
    color: var(--rnaf-footer-link);
    text-decoration-color: currentColor;
}

.rnaf-site :focus-visible {
    outline: 3px solid var(--rnaf-focus);
    outline-offset: 4px;
    border-radius: var(--rnaf-radius-sm);
}

/* The blue focus ring is unreadable on the dark footer. */
.site-footer :focus-visible {
    outline-color: var(--rnaf-footer-link);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 1rem;
    color: var(--rnaf-paper);
    background: var(--rnaf-coal);
    border-radius: var(--rnaf-radius-sm);
    transform: translateY(-160%);
    transition: transform 150ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-shell {
    width: min(100% - 2rem, var(--rnaf-shell));
    margin-inline: auto;
}

.prose-shell,
.article-shell {
    width: min(100% - 2rem, 50rem);
}

/* ---------- Header ---------- */

.site-header {
    position: relative;
    z-index: 20;
    color: var(--rnaf-header-text);
    border-bottom: 1px solid var(--rnaf-header-border);
    border-bottom: 1px solid color-mix(in srgb, var(--rnaf-header-border) 16%, transparent);
    background: var(--rnaf-header-bg);
    background: color-mix(in srgb, var(--rnaf-header-bg) 92%, transparent);
}

/* Backdrop blur is desktop-only: it creates a containing block that would
   trap the fullscreen mobile menu inside the header. */
@media (min-width: 48.01rem) {
    .site-header.is-sticky {
        backdrop-filter: blur(12px);
    }
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
    z-index: 40;
}

.site-header a {
    color: inherit;
    text-decoration: none;
}

.site-header a:hover {
    color: var(--rnaf-header-link-hover);
}

.header-inner {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rnaf-gap);
}

.text-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    font-family: var(--rnaf-serif);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.text-logo {
    color: inherit;
    font-size: clamp(1.25rem, 2.3vw, 1.75rem);
    line-height: 1;
}

.text-logo.has-logo-image img,
.footer-logo.has-logo-image img,
.text-logo.has-logo-image svg,
.footer-logo.has-logo-image svg {
    display: block;
    width: auto;
    max-width: min(12rem, 42vw);
    height: auto;
    max-height: 2.75rem;
}

.footer-logo.has-logo-image img,
.footer-logo.has-logo-image svg {
    max-height: 2.25rem;
}

.site-navigation-list,
.social-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, var(--rnaf-gap));
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation-list a {
    position: relative;
    padding-block: 0.4rem;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-navigation-list a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    height: 0.18rem;
    background: var(--rnaf-coral);
    border-radius: var(--rnaf-radius-sm);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.site-navigation-list a:hover::after,
.site-navigation-list a[aria-current='page']::after {
    transform: scaleX(1);
}

.mobile-navigation {
    display: none;
    position: relative;
    flex-shrink: 0;
    margin: 0;
}

.mobile-navigation summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 6rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--rnaf-header-text);
    border-radius: var(--rnaf-radius-sm);
    background: var(--rnaf-accent-surface);
    box-shadow: 3px 3px 0 var(--rnaf-coral);
    cursor: pointer;
    color: var(--rnaf-header-text);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1;
    list-style: none;
    text-transform: uppercase;
}

.mobile-navigation summary::-webkit-details-marker {
    display: none;
}

/* Ink strokes match the theme's outlined buttons; reset Pico's chevron. */
.mobile-navigation summary::after {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 6h14M3 10h14M3 14h14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    content: '';
    flex: 0 0 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    transform: none;
    background: currentColor;
    -webkit-mask: var(--menu-icon) center / contain no-repeat;
    mask: var(--menu-icon) center / contain no-repeat;
}

.mobile-navigation[open] summary::after {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 5 10 10M15 5 5 15' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    transform: none;
}

.mobile-navigation summary:hover,
.mobile-navigation[open] summary {
    background: var(--rnaf-sand-soft);
    box-shadow: 2px 2px 0 var(--rnaf-coral);
}

.rnaf-site .mobile-navigation summary,
.rnaf-site .mobile-navigation summary:not([role]) {
    margin-bottom: 0; /* Pico adds margin to an open details summary */
    color: var(--rnaf-header-text);
}

.mobile-navigation .menu-label-close {
    display: none;
}

.mobile-navigation[open] .menu-label-open {
    display: none;
}

.mobile-navigation[open] .menu-label-close {
    display: inline;
}

/* ---------- Shared section furniture ---------- */

.site-section {
    padding-block: var(--rnaf-section);
}

/* Eyebrow with the signature dashed gold leader from the feed. */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0 1rem;
    color: var(--rnaf-coral-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::after {
    content: '';
    flex: 0 1 6rem;
    border-top: 2px dashed color-mix(in srgb, var(--rnaf-coral) 85%, transparent);
}

.archive-header .eyebrow,
.static-header .eyebrow {
    justify-content: center;
}

.archive-header .eyebrow::before,
.static-header .eyebrow::before {
    content: '';
    flex: 0 1 6rem;
    border-top: 2px dashed color-mix(in srgb, var(--rnaf-coral) 85%, transparent);
}

.rnaf-site h1,
.rnaf-site h2,
.rnaf-site h3 {
    color: var(--rnaf-coal);
    font-family: var(--rnaf-serif);
    font-weight: 600;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.rnaf-site h1 {
    max-width: 20ch;
    margin: 0 auto;
    font-size: clamp(2.65rem, 7vw, 6.2rem);
    line-height: 1.02;
}

.intro-copy,
.archive-intro {
    max-width: 42rem;
    margin: 1.5rem auto 0;
    color: var(--rnaf-muted);
    font-family: var(--rnaf-serif);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--rnaf-gap);
    margin-bottom: var(--rnaf-gap);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

/* ---------- Review cards ---------- */

.review-grid {
    columns: 2;
    column-gap: var(--rnaf-gap);
}

.review-grid > .review-card {
    break-inside: avoid;
    margin-bottom: var(--rnaf-gap);
}

/* The card transform is composed entirely from custom properties so the
   micro-interaction layer (js/reviews.js) can drive pointer tilt
   (--rnaf-tilt-x/y), the hover lift (--rnaf-lift) and the scrapbook
   rotations (--rnaf-tilt-rz) without ever fighting this rule. */
.review-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: var(--rnaf-radius-md);
    background: var(--rnaf-sand-soft);
    box-shadow: var(--rnaf-shadow);
    transition: box-shadow 220ms ease, transform 320ms var(--rnaf-ease-out);
    transform:
        perspective(60rem)
        rotateX(var(--rnaf-tilt-x, 0deg))
        rotateY(var(--rnaf-tilt-y, 0deg))
        rotate(var(--rnaf-tilt-rz, 0deg))
        translateY(var(--rnaf-lift, 0px));
    will-change: transform;
}

.review-card:hover {
    box-shadow: var(--rnaf-shadow-lift);
    --rnaf-lift: -5px;
}

.review-card.is-tilting {
    transition: box-shadow 220ms ease, transform 90ms linear;
}

/* Coral-tinted cards (per-entry card color) get the warm gold wash. */
.review-card--coral {
    background: var(--rnaf-accent-surface);
    background: color-mix(in srgb, var(--rnaf-accent-surface) 70%, var(--rnaf-paper));
}

.review-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
    margin-bottom: var(--rnaf-gap);
    background: var(--rnaf-accent-surface);
}

/* Card style variants (Theme Settings > Style). */
.card-variant--outlined .review-card {
    border-color: color-mix(in srgb, var(--rnaf-coal) 28%, transparent);
    background: transparent;
    box-shadow: none;
}

.card-variant--outlined .review-card--coral,
.card-variant--outlined .review-card--featured {
    background: var(--rnaf-accent-surface);
    background: color-mix(in srgb, var(--rnaf-accent-surface) 34%, transparent);
}

.card-variant--paper-stack .review-card {
    border-color: var(--rnaf-line);
    background: var(--rnaf-paper);
    box-shadow:
        0.4rem 0.4rem 0 var(--rnaf-sand-soft),
        0.4rem 0.4rem 0 1px var(--rnaf-line);
}

.card-variant--paper-stack .review-card--coral {
    background: var(--rnaf-accent-surface);
    background: color-mix(in srgb, var(--rnaf-accent-surface) 45%, var(--rnaf-paper));
}

.card-variant--paper-stack .review-card--featured {
    background: var(--rnaf-accent-surface);
}

.card-variant--paper-stack .review-grid > .review-card {
    margin-bottom: calc(var(--rnaf-gap) + 0.9rem);
}

.review-card-media {
    overflow: hidden;
    display: block;
    min-height: 15rem;
    background: var(--rnaf-paper-deep);
}

.review-card-media img,
.review-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card-media img {
    transition: transform 300ms ease;
}

.review-card:hover .review-card-media img {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .review-card,
    .review-card-media img,
    .site-navigation-list a::after,
    .mobile-navigation summary::after,
    .read-review,
    .skip-link {
        transition: none;
    }

    .review-card:hover {
        transform: none;
    }
}

.review-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.4rem, 4vw, 2.4rem);
}

.review-card-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.8rem;
    color: var(--rnaf-coral-dark);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.review-label {
    font-weight: inherit;
    text-decoration: none;
}

.review-card h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.review-card h2 a {
    text-decoration: none;
}

.reviewed-item {
    margin: 0.75rem 0 0;
    color: var(--rnaf-muted);
    font-style: italic;
}

.review-summary {
    margin: 1.35rem 0;
}

.review-card-meta,
.review-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    color: var(--rnaf-muted);
    font-size: 0.82rem;
}

.review-card-meta {
    margin-top: auto;
}

/* ---------- Rating stars (gold) ---------- */

.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.rating-stars {
    letter-spacing: 0.08em;
}

.rating-stars span {
    color: color-mix(in srgb, var(--rnaf-coal) 22%, transparent);
}

.rating-stars .is-filled {
    color: var(--rnaf-coral-dark);
}

.rating-stars .is-half {
    background: linear-gradient(
        to right,
        var(--rnaf-coral-dark) 50%,
        color-mix(in srgb, var(--rnaf-coal) 22%, transparent) 50%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.rating-number {
    font-variant-numeric: tabular-nums;
    font-weight: 750;
}

.read-review {
    margin-top: 1.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 9999px;
    background: var(--rnaf-coral);
    color: var(--rnaf-coal);
    font-weight: 780;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 2px 0 color-mix(in srgb, var(--rnaf-coal) 30%, transparent);
    transform: translate(var(--rnaf-mag-x, 0px), var(--rnaf-mag-y, 0px)) rotate(var(--rnaf-btn-rot, 0deg));
    transition:
        background 160ms ease,
        box-shadow 160ms ease,
        transform 300ms var(--rnaf-ease-out);
}

.read-review:active {
    box-shadow: 0 0 0 color-mix(in srgb, var(--rnaf-coal) 30%, transparent);
    translate: 0 2px;
}

.read-review:hover {
    background: var(--rnaf-coral-dark);
    background: color-mix(in srgb, var(--rnaf-coral) 82%, var(--rnaf-coal));
    color: var(--rnaf-coal);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ---------- Archive / category ---------- */

.archive-header {
    padding-bottom: 3rem;
    text-align: center;
}

.archive-header h1,
.static-header h1,
.review-header h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
}

.archive-reviews {
    padding-top: 0;
}

.empty-state {
    column-span: all;
    padding: 2.5rem;
    border: 2px dashed color-mix(in srgb, var(--rnaf-coral) 60%, transparent);
    border-radius: var(--rnaf-radius-md);
    color: var(--rnaf-muted);
    text-align: center;
}

/* ---------- Review detail ---------- */

.review-page {
    padding-top: clamp(2.5rem, 6vw, 5rem);
}

.review-detail {
    --review-accent: var(--rnaf-coral);
}

.article-shell--illustrated {
    width: min(100% - 3rem, 72rem);
}

.review-masthead {
    padding-bottom: 2.5rem;
    border-bottom: 0.35rem solid var(--review-accent);
}

.review-masthead--illustrated {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.review-masthead--illustrated h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    hyphens: none;
    overflow-wrap: normal;
}

.review-detail > :is(.article-body, .spoiler-wrap) {
    max-width: 50rem;
    margin-inline: auto;
}

.review-header h1 {
    margin-inline: 0;
}

.review-header .reviewed-item {
    font-family: var(--rnaf-serif);
    font-size: 1.3rem;
}

.review-byline {
    margin-top: 1.5rem;
}

.review-hero {
    width: 100%;
    max-width: 23rem;
    justify-self: center;
    margin: 1rem 0;
    padding: 0.75rem 0.75rem 1.4rem;
    border-radius: 2px;
    background: color-mix(in srgb, var(--rnaf-paper) 35%, #fff);
    box-shadow: var(--rnaf-shadow);
}

.review-hero img {
    height: auto;
    max-height: 26rem;
    object-fit: contain;
}

.review-hero figcaption {
    margin: 0.85rem 0 0;
    padding: 0;
    color: var(--rnaf-coal);
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 48rem) {
    .review-masthead--illustrated {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .review-masthead--illustrated .review-hero {
        max-width: 18rem;
    }

    .review-masthead--illustrated .review-hero img {
        max-height: 18rem;
    }
}

.spoiler-warning {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 1rem;
    margin: 2rem 0;
    padding: 1.1rem 1.3rem;
    border: 1px dashed color-mix(in srgb, var(--rnaf-coral-dark) 55%, transparent);
    border-radius: var(--rnaf-radius-md);
    background: color-mix(in srgb, var(--rnaf-accent-surface) 55%, var(--rnaf-paper));
}

.spoiler-warning strong {
    color: var(--rnaf-coral-dark);
}

.article-body {
    margin-top: 2.5rem;
    overflow-x: auto; /* wide tables scroll here instead of losing semantics */
    color: var(--rnaf-coal);
    font-family: var(--rnaf-serif);
    font-size: clamp(1.05rem, 2vw, 1.18rem);
}

.article-body > :first-child {
    margin-top: 0;
}

.article-body h2,
.article-body h3 {
    margin-top: 2.2em;
}

.article-body a {
    color: var(--rnaf-coral-dark);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--rnaf-radius-md);
}

.article-body img.flow-media,
.article-body .video-embed.flow-media {
    display: block;
    height: auto;
    max-width: 100%;
}

.article-body .flow-media--align-left {
    margin-left: 0;
    margin-right: auto;
}

.article-body .flow-media--align-center {
    margin-left: auto;
    margin-right: auto;
}

.article-body .flow-media--align-right {
    margin-left: auto;
    margin-right: 0;
}

.article-body figure {
    margin: 2rem 0;
}

.rnaf-site .article-body blockquote,
.rnaf-site .flow-block--pullquote {
    position: relative;
    margin: 2.5rem 0;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
    padding-inline-start: clamp(3.25rem, 8vw, 5rem);
    border: 0;
    border-block: 1px solid var(--rnaf-line);
    border-radius: 0;
    background: transparent;
    color: var(--rnaf-coal);
    font-family: var(--rnaf-serif);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    letter-spacing: -0.015em;
    text-wrap: pretty;
}

.rnaf-site .article-body blockquote::before,
.rnaf-site .flow-block--pullquote::before {
    content: '\201C';
    content: '\201C' / '';
    position: absolute;
    inset-block-start: clamp(1.25rem, 3vw, 2rem);
    inset-inline-start: 0.25rem;
    color: var(--rnaf-coral-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    pointer-events: none;
}

.rnaf-site .article-body blockquote p,
.rnaf-site .flow-block__quote p {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}

.rnaf-site .article-body blockquote > :first-child {
    margin-top: 0;
}

.rnaf-site .article-body blockquote > :last-child {
    margin-bottom: 0;
}

.article-body iframe[src*='youtube-nocookie.com'],
.article-body .video-embed iframe,
.article-body .wp-block-embed__wrapper iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 0;
    border-radius: var(--rnaf-radius-md);
    aspect-ratio: 16 / 9;
}

.article-body .video-embed,
.article-body .wp-block-embed__wrapper {
    overflow: hidden;
    margin: 2rem 0;
    max-width: 100%;
}

/* ---------- Static pages ---------- */

.static-header {
    padding-bottom: 2rem;
    border-bottom: 2px dashed color-mix(in srgb, var(--rnaf-coral) 60%, transparent);
    text-align: center;
}

.static-page .article-body {
    margin-inline: auto;
}

/* ---------- Tables ---------- */

.rnaf-site .article-body table,
.rnaf-site .intro-copy table,
.rnaf-site .archive-intro table,
.rnaf-site main table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--rnaf-line);
    border-radius: var(--rnaf-radius-sm);
    overflow: hidden;
    background: var(--rnaf-paper);
    color: var(--rnaf-coal);
    font-family: var(--rnaf-sans);
    font-size: 0.95em;
}

.rnaf-site .article-body th,
.rnaf-site .article-body td,
.rnaf-site .intro-copy th,
.rnaf-site .intro-copy td,
.rnaf-site .archive-intro th,
.rnaf-site .archive-intro td,
.rnaf-site main th,
.rnaf-site main td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rnaf-line);
    background: var(--rnaf-paper) !important;
    color: var(--rnaf-coal) !important;
    font-weight: 400;
    text-align: start;
    vertical-align: top;
}

.rnaf-site .article-body thead th,
.rnaf-site .intro-copy thead th,
.rnaf-site .archive-intro thead th,
.rnaf-site main thead th,
.rnaf-site .article-body tr:first-child th,
.rnaf-site main tr:first-child th {
    background: var(--rnaf-paper-deep) !important;
    color: var(--rnaf-coal) !important;
    font-family: var(--rnaf-sans);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rnaf-site .article-body tbody tr:nth-child(even) td,
.rnaf-site .article-body tbody tr:nth-child(even) th,
.rnaf-site .intro-copy tbody tr:nth-child(even) td,
.rnaf-site .archive-intro tbody tr:nth-child(even) td,
.rnaf-site main tbody tr:nth-child(even) td,
.rnaf-site main tbody tr:nth-child(even) th {
    background: color-mix(in srgb, var(--rnaf-sand-soft) 55%, var(--rnaf-paper)) !important;
}

.rnaf-site .article-body tfoot td,
.rnaf-site .article-body tfoot th,
.rnaf-site main tfoot td,
.rnaf-site main tfoot th {
    border-top: 1px solid var(--rnaf-line);
    border-bottom: 0;
    background: var(--rnaf-paper-deep) !important;
    font-weight: 600;
}

.rnaf-site .article-body table caption,
.rnaf-site main table caption {
    caption-side: bottom;
    padding-top: 0.75rem;
    color: var(--rnaf-muted);
    font-size: 0.9em;
    text-align: start;
}

/* ---------- Footer ---------- */

.site-footer {
    padding-block: 3rem;
    border-top: 0.35rem solid var(--rnaf-coral);
    background: var(--rnaf-footer-bg);
    color: var(--rnaf-footer-text);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 3rem;
}

.footer-logo {
    color: var(--rnaf-footer-link);
    font-size: 1.45rem;
}

.footer-inner p {
    margin: 0.35rem 0 0;
    color: var(--rnaf-footer-muted);
}

.social-links a {
    color: var(--rnaf-footer-link);
    text-decoration-color: color-mix(in srgb, var(--rnaf-coral) 80%, transparent);
}

.copyright {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--rnaf-footer-text) 18%, transparent);
    color: var(--rnaf-footer-muted);
    font-size: 0.8rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 48.01rem) {
    /* Lock page scroll while the fullscreen menu is open. */
    body.rnaf-site:has(.mobile-navigation[open]) {
        overflow: hidden;
    }

    /* Keep the header (logo + Close) pinned to the viewport while the menu is
       open — otherwise it scrolls away and the overlay's top strip shows the
       page content underneath. */
    body.rnaf-site:has(.mobile-navigation[open]) .site-header {
        position: fixed;
        inset: 0 0 auto 0;
        width: 100%;
        background: var(--rnaf-header-bg);
    }

    /* Pin the header height so the overlay's 5rem top offset always matches,
       even with long logo text or browser zoom. */
    .header-inner {
        height: 5rem;
        gap: 1rem;
    }

    .text-logo {
        min-width: 0;
        overflow: hidden;
        white-space: normal;
        line-height: 1.15;
    }

    .desktop-navigation {
        display: none;
    }

    .mobile-navigation {
        display: block;
    }

    .mobile-navigation[open] nav {
        position: fixed;
        inset: 5rem 0 0 0; /* sits below the pinned 5rem header (logo + Close) */
        z-index: 15;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        overflow-y: auto;
        overscroll-behavior: contain; /* fallback scroll lock without :has() */
        background: var(--rnaf-header-bg);
        color: var(--rnaf-header-text);
        animation: rnaf-menu-in 250ms ease-out;
    }

    .mobile-navigation .site-navigation-list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .mobile-navigation .site-navigation-list a {
        display: block;
        padding: 0.7rem 0;
    }

    .mobile-navigation[open] .site-navigation-list {
        align-items: center;
        gap: 0.5rem;
        text-align: center;
    }

    .mobile-navigation[open] .site-navigation-list li {
        animation: rnaf-menu-item 380ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
    }

    .mobile-navigation[open] .site-navigation-list li:nth-child(2) {
        animation-delay: 70ms;
    }

    .mobile-navigation[open] .site-navigation-list li:nth-child(3) {
        animation-delay: 140ms;
    }

    .mobile-navigation[open] .site-navigation-list li:nth-child(4) {
        animation-delay: 210ms;
    }

    .mobile-navigation[open] .site-navigation-list li:nth-child(5) {
        animation-delay: 280ms;
    }

    .mobile-navigation[open] .site-navigation-list a {
        padding: 0.4rem 0;
        font-family: var(--rnaf-serif);
        font-size: clamp(2rem, 9vw, 3.25rem);
        font-weight: 600;
        letter-spacing: -0.02em;
        text-transform: none;
    }

@keyframes rnaf-menu-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rnaf-menu-item {
    from {
        opacity: 0;
        transform: translateY(1.4rem);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

    .review-grid {
        columns: 1;
    }

    .review-card--featured,
    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .review-card--featured .review-card-media {
        min-height: 16rem;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .spoiler-warning {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

@media (forced-colors: active) {
    .review-card,
    .site-header,
    .site-footer,
    .review-header,
    .empty-state {
        border: 1px solid CanvasText;
    }

    .site-navigation-list a::after,
    .eyebrow::before,
    .eyebrow::after {
        display: none;
    }

    /* Keep star states distinguishable in forced-colors mode:
       filled = Highlight, empty = GrayText. */
    .rating-stars span {
        color: GrayText;
    }

    .rating-stars .is-filled {
        color: Highlight;
    }

    .rating-stars .is-half {
        background: none;
        color: Highlight;
        -webkit-text-fill-color: currentColor;
    }
}

/* ==========================================================================
   v0.5.0 — editorial layouts: archive masthead, featured spread,
   masonry grid, scroll reveals, pagination
   ========================================================================== */

/* ---------- Archive masthead ---------- */

.archive-masthead {
    text-align: center;
}

.archive-masthead h1 {
    font-size: clamp(3.5rem, 12vw, 10rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
}

.archive-masthead .eyebrow {
    justify-content: center;
}

.archive-masthead .eyebrow::before {
    content: '';
    flex: 0 1 6rem;
    border-top: 2px dashed color-mix(in srgb, var(--rnaf-coral) 85%, transparent);
}

/* ---------- Featured spread + sticker badge ---------- */

.review-card--featured {
    position: relative;
}

.review-card--featured h2 {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
}

.review-sticker {
    position: absolute;
    z-index: 2;
    top: 1.1rem;
    right: 1.1rem;
    display: grid;
    place-content: center;
    width: clamp(4.6rem, 9vw, 6.2rem);
    aspect-ratio: 1;
    border: 2px solid var(--rnaf-coal);
    border-radius: 50%;
    background: var(--rnaf-coral);
    color: var(--rnaf-coal);
    text-align: center;
    /* `rotate` (not transform) so the sticker keeps its tilt when the card
       underneath is pointer-tilting, and can wiggle independently. */
    rotate: -8deg;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--rnaf-coal) 22%, transparent);
}

/* Push-pin holding the sticker down. */
.review-sticker::after {
    content: '';
    position: absolute;
    top: 18%;
    left: 50%;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.55), transparent 45%),
        var(--rnaf-coal);
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.35);
    translate: -50% 0;
}

.review-sticker-value {
    display: block;
    font-family: var(--rnaf-serif);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1;
}

.review-sticker-max {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Scroll reveals ----------
   Reveals are class-driven (js/reviews.js + IntersectionObserver) so entries
   can be staggered per row; see the v0.9.0 motion section at the end. */

/* ---------- Pagination ---------- */

.rnaf-site ul.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: calc(var(--rnaf-gap) * 1.5) 0 0;
    padding: 0;
    list-style: none;
}

/* The pagination plugin marks the current page with <span class="active">
   inside the <li>; disabled arrows and the gap are plain text, not pills. */
.rnaf-site ul.pagination li a,
.rnaf-site ul.pagination li span.active {
    display: grid;
    place-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding-inline: 0.6rem;
    border: 1px solid var(--rnaf-line);
    border-radius: 9999px;
    background: var(--rnaf-paper);
    color: var(--rnaf-coal);
    font-family: var(--rnaf-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.rnaf-site ul.pagination li a:hover {
    border-color: var(--rnaf-coal);
    background: var(--rnaf-coral);
    color: var(--rnaf-coal);
}

.rnaf-site ul.pagination li span.active {
    border-color: var(--rnaf-coal);
    background: var(--rnaf-coal);
    color: var(--rnaf-paper);
}

.rnaf-site ul.pagination li span:not(.active) {
    display: grid;
    place-content: center;
    min-width: 1.5rem;
    height: 2.6rem;
    padding-inline: 0.4rem;
    color: var(--rnaf-muted);
    opacity: 0.7;
    font-family: var(--rnaf-sans);
    font-size: 0.9rem;
    font-weight: 700;
}

/* ---------- Motion / forced-colors additions ---------- */

@media (prefers-reduced-motion: reduce) {
    .review-sticker {
        rotate: 0deg;
    }

    .review-sticker::after {
        display: none;
    }

    .mobile-navigation[open] nav,
    .mobile-navigation[open] .site-navigation-list li {
        animation: none;
    }
}

@media (forced-colors: active) {
    .review-sticker {
        border: 1px solid CanvasText;
    }
}

/* ==========================================================================
   Hand-drawn scribbles (Theme Settings > Style > Hand-drawn scribbles)
   Doodles are masked SVGs filled with theme colors, so they follow the
   configurable palette. Purely decorative — never interactive, never
   required to understand the content.
   ========================================================================== */

:root {
    --rnaf-scribble-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q5 1 10 5 T20 5 T30 5 T40 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
    --rnaf-scribble-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 L14.6 9.2 L22.5 11.8 L14.8 14.6 L12.2 22.5 L9.6 14.8 L1.5 12.2 L9.2 9.6 Z' fill='black'/%3E%3C/svg%3E");
    --rnaf-scribble-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 C75 3 95 21 94 49 C93 77 73 95 47 94 C23 93 5 74 6 48 C7 24 27 7 53 8' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
    --rnaf-scribble-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 70'%3E%3Cpath d='M8 58 C26 64 58 56 74 18 M74 18 L58 20 M74 18 L72 34' fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Wavy underline for the section heading, like a highlighter stroke. */
.has-scribbles .section-heading {
    position: relative;
}

.has-scribbles .section-heading h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.35em;
}

.has-scribbles .section-heading h2::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0.24em;
    background: var(--rnaf-coral);
    -webkit-mask: var(--rnaf-scribble-wave) repeat-x left center / auto 100%;
    mask: var(--rnaf-scribble-wave) repeat-x left center / auto 100%;
    transform: rotate(-0.6deg);
}

/* Sparkle next to the section heading. */
.has-scribbles .section-heading::after {
    content: '';
    position: absolute;
    top: 0.1rem;
    right: 0.1rem;
    width: 2.4rem;
    height: 2.4rem;
    background: var(--rnaf-coral-dark);
    -webkit-mask: var(--rnaf-scribble-spark) center / contain no-repeat;
    mask: var(--rnaf-scribble-spark) center / contain no-repeat;
    transform: rotate(14deg);
    pointer-events: none;
}

/* The dashed eyebrow leaders become hand-drawn wavy lines. */
.has-scribbles .eyebrow::before,
.has-scribbles .eyebrow::after {
    height: 0.4rem;
    border-top: 0;
    background: var(--rnaf-coral);
    -webkit-mask: var(--rnaf-scribble-wave) repeat-x center / auto 100%;
    mask: var(--rnaf-scribble-wave) repeat-x center / auto 100%;
}

/* Small sparkle in the corner of each card; wiggles on hover. */
.has-scribbles .review-card:not(.review-card--featured)::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0.9rem;
    right: 0.9rem;
    width: 1.7rem;
    height: 1.7rem;
    background: var(--rnaf-coral-dark);
    -webkit-mask: var(--rnaf-scribble-spark) center / contain no-repeat;
    mask: var(--rnaf-scribble-spark) center / contain no-repeat;
    transform: rotate(10deg);
    transition: transform 200ms ease;
    pointer-events: none;
}

.has-scribbles .review-card:not(.review-card--featured):hover::before {
    transform: rotate(32deg) scale(1.15);
}

/* Featured card: a hand-drawn circle around the rating sticker and a
   curled arrow pointing at it. */
.has-scribbles .review-sticker::before {
    content: '';
    position: absolute;
    inset: -0.55rem;
    background: var(--rnaf-coral-dark);
    -webkit-mask: var(--rnaf-scribble-circle) center / contain no-repeat;
    mask: var(--rnaf-scribble-circle) center / contain no-repeat;
    transform: rotate(8deg);
    pointer-events: none;
}

.has-scribbles .review-card--featured::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 3rem;
    right: clamp(7rem, 13vw, 9rem);
    width: 4.6rem;
    height: 3.4rem;
    background: var(--rnaf-coral-dark);
    -webkit-mask: var(--rnaf-scribble-arrow) center / contain no-repeat;
    mask: var(--rnaf-scribble-arrow) center / contain no-repeat;
    transform: rotate(-10deg);
    pointer-events: none;
}

/* The footer's straight coral bar becomes a wavy hand-drawn line. */
.has-scribbles .site-footer {
    position: relative;
    margin-top: 0.8rem;
    border-top: 0;
}

.has-scribbles .site-footer::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    right: 0;
    left: 0;
    height: 0.7rem;
    background: var(--rnaf-coral);
    -webkit-mask: var(--rnaf-scribble-wave) repeat-x center / auto 100%;
    mask: var(--rnaf-scribble-wave) repeat-x center / auto 100%;
    pointer-events: none;
}

/* Article links get a wavy hand-drawn underline. */
.has-scribbles .article-body a {
    text-decoration-style: wavy;
    text-decoration-color: var(--rnaf-coral);
    text-underline-offset: 0.22em;
}

@media (max-width: 48.01rem) {
    /* The sticker sits over the card image on mobile — no room for the arrow. */
    .has-scribbles .review-card--featured::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .has-scribbles .review-card::before {
        transition: none;
    }
}

@media (forced-colors: active) {
    .has-scribbles .section-heading h2::after,
    .has-scribbles .section-heading::after,
    .has-scribbles .eyebrow::before,
    .has-scribbles .eyebrow::after,
    .has-scribbles .review-card::before,
    .has-scribbles .review-card--featured::after,
    .has-scribbles .review-sticker::before,
    .has-scribbles .site-footer::before {
        display: none;
    }

    .has-scribbles .site-footer {
        border-top: 0.35rem solid var(--rnaf-coral);
    }
}

/* ==========================================================================
   Scrapbook card variant (Theme Settings > Style > Review card style)
   Cards become taped polaroid scraps: white frame, washi tape, torn line
   between photo and caption, and a slight alternating tilt. The same tape
   and frame treatment carries over to the review page hero.
   ========================================================================== */

/* Semi-transparent diagonal-striped washi tape. */
:root {
    --rnaf-tape: repeating-linear-gradient(
        -45deg,
        color-mix(in srgb, var(--rnaf-coral) 62%, transparent) 0 0.4rem,
        color-mix(in srgb, var(--rnaf-coral) 38%, transparent) 0.4rem 0.8rem
    );
}

.card-variant--scrapbook .review-card {
    border: 1px solid var(--rnaf-line);
    border-radius: var(--rnaf-radius-sm);
    background: #fff;
    background: color-mix(in srgb, var(--rnaf-paper) 45%, #fff);
    box-shadow: var(--rnaf-shadow);
}

/* Slight alternating tilt, like scraps glued down by hand.
   The rotation lives in --rnaf-tilt-rz so it composes with the shared
   card transform stack (pointer tilt + hover lift). */
.card-variant--scrapbook .review-grid > .review-card {
    --rnaf-tilt-rz: 0.8deg;
}

.card-variant--scrapbook .review-grid > .review-card:nth-child(odd) {
    --rnaf-tilt-rz: -1.1deg;
}

.card-variant--scrapbook .review-grid > .review-card:nth-child(3n) {
    --rnaf-tilt-rz: 1.2deg;
}

.card-variant--scrapbook .review-card:hover {
    --rnaf-tilt-rz: 0deg;
    --rnaf-lift: -5px;
}

/* Polaroid frame around the photo. */
.card-variant--scrapbook .review-card-media {
    margin: 0.85rem 0.85rem 0;
    border: 1px solid var(--rnaf-line);
}

/* Torn "cut here" line between photo and caption. */
.card-variant--scrapbook .review-card-content {
    position: relative;
    border-top: 2px dashed color-mix(in srgb, var(--rnaf-coal) 25%, transparent);
}

/* Washi tape holding the photo down. */
.card-variant--scrapbook .review-card-content::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: -0.85rem;
    left: 50%;
    width: 6.5rem;
    height: 1.7rem;
    background: var(--rnaf-tape);
    opacity: 0.85;
    transform: translateX(-50%) rotate(-3deg);
    pointer-events: none;
}

/* Featured scrap: corner tape on the photo. */
.card-variant--scrapbook .review-card--featured::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 1rem;
    left: 1.2rem;
    width: 5.5rem;
    height: 1.6rem;
    background: var(--rnaf-tape);
    opacity: 0.85;
    transform: rotate(-38deg);
    pointer-events: none;
}

/* The section heading becomes a pasted paper label. */
.card-variant--scrapbook .section-heading h2 {
    padding: 0.15em 0.45em 0.45em;
    border: 1px solid var(--rnaf-line);
    background: #fff;
    background: color-mix(in srgb, var(--rnaf-paper) 45%, #fff);
    box-shadow: var(--rnaf-shadow);
    transform: rotate(-0.8deg);
}

/* Buttons look like cut-outs; the wobble lives in --rnaf-btn-rot so the
   magnetic pull (--rnaf-mag-x/y, set by js/reviews.js) composes with it. */
.card-variant--scrapbook .read-review {
    --rnaf-btn-rot: -1.2deg;
}

.card-variant--scrapbook .read-review:hover {
    --rnaf-btn-rot: 0.5deg;
}

/* A small keepsake tucked alongside the review, held by one strip of tape. */
.card-variant--scrapbook .review-hero {
    position: relative;
    border: 1px solid var(--rnaf-line);
    transform: rotate(3deg);
}

.card-variant--scrapbook .review-hero::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: -0.75rem;
    left: 50%;
    width: 6rem;
    height: 1.75rem;
    background: var(--rnaf-tape);
    opacity: 0.85;
    pointer-events: none;
    transform: translateX(-50%) rotate(-7deg);
}

@media (prefers-reduced-motion: reduce) {
    .card-variant--scrapbook .review-grid > .review-card,
    .card-variant--scrapbook .review-grid > .review-card:hover {
        --rnaf-tilt-rz: 0deg;
    }

    .card-variant--scrapbook .section-heading h2,
    .card-variant--scrapbook .review-hero {
        transform: none;
    }

    .card-variant--scrapbook .read-review {
        --rnaf-btn-rot: 0deg;
    }
}

/* ==========================================================================
   v0.9.0 — the DIY scrapbook overhaul: zine hero collage, washi-tape marquee,
   print grain, marker-highlight links, drop caps, starburst badge, and a
   micro-interaction layer (scroll reveals, pointer tilt, magnetic buttons)
   driven by js/reviews.js. Everything honors prefers-reduced-motion and the
   Theme Settings > Style > Micro-interactions switch (body.motion-off).
   ========================================================================== */

:root {
    /* Signature easings: a long editorial ease-out and a gentle overshoot
       ("spring") for scrapbook objects settling into place. */
    --rnaf-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --rnaf-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    /* Handwritten annotations. Overridden inline from Theme Settings
       (Typography > Handwriting font). */
    --rnaf-hand: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
    /* 12-point starburst used for badges and decorative sparks. */
    --rnaf-burst: polygon(
        50% 2%, 60.5% 31.8%, 91.6% 26%, 71% 50%, 91.6% 74%,
        60.5% 68.2%, 50% 98%, 39.5% 68.2%, 8.4% 74%, 29% 50%,
        8.4% 26%, 39.5% 31.8%
    );
}

/* Marker pen over selected text — very zine. */
.rnaf-site ::selection {
    background: var(--rnaf-coral);
    color: var(--rnaf-coal);
}

/* Handwritten annotation utility (hero notes, polaroid captions). */
.rnaf-site .hand {
    font-family: var(--rnaf-hand);
    font-weight: 400;
    line-height: 1.1;
}

/* ---------- Marker-highlight links ---------- */
/* A highlighter stroke sits under article links and swipes upward on hover,
   like marking a passage in a paperback. */
.rnaf-site .article-body a,
.rnaf-site .intro-copy a,
.rnaf-site .archive-intro a {
    text-decoration: none;
    background-image: linear-gradient(
        color-mix(in srgb, var(--rnaf-coral) 42%, transparent),
        color-mix(in srgb, var(--rnaf-coral) 42%, transparent)
    );
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0.28em;
    transition:
        background-size 320ms var(--rnaf-ease-out),
        background-position 320ms var(--rnaf-ease-out),
        color 200ms ease;
}

.rnaf-site .article-body a:hover,
.rnaf-site .intro-copy a:hover,
.rnaf-site .archive-intro a:hover {
    background-position: 0 0;
    background-size: 100% 100%;
    color: var(--rnaf-coal);
}

/* The marker stroke replaces the wavy hand-drawn underlines. */
.has-scribbles .article-body a {
    text-decoration-line: none;
}

/* ---------- Section heading: the wavy highlighter stroke is the default
   look now (not just a scribbles-mode doodle). ---------- */

.section-heading h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.35em;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0.24em;
    background: var(--rnaf-coral);
    -webkit-mask: var(--rnaf-scribble-wave) repeat-x left center / auto 100%;
    mask: var(--rnaf-scribble-wave) repeat-x left center / auto 100%;
    transform: rotate(-0.6deg);
}

/* A scrap of washi tape holds the heading label to the page. */
.section-heading h2::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: -0.75rem;
    left: -0.85rem;
    width: 4.6rem;
    height: 1.35rem;
    background: var(--rnaf-tape);
    opacity: 0.9;
    rotate: -32deg;
    pointer-events: none;
}

/* ---------- Logo & nav micro-interactions ---------- */

.text-logo {
    transition: rotate 300ms var(--rnaf-ease-spring);
}

.text-logo:hover {
    rotate: -1.6deg;
}

.site-navigation-list a {
    transition: color 200ms ease;
}

/* ---------- Button arrow slide ---------- */

.read-review span[aria-hidden='true'] {
    display: inline-block;
    transition: transform 280ms var(--rnaf-ease-spring);
}

.read-review:hover span[aria-hidden='true'] {
    transform: translateX(4px);
}

/* ---------- Sticker wiggle ---------- */
/* Poking the featured card makes its pinned rating sticker wobble. */

@keyframes rnaf-wiggle {
    0%,
    100% {
        rotate: -8deg;
    }

    30% {
        rotate: -2.5deg;
    }

    60% {
        rotate: -11deg;
    }
}

.review-card--featured:hover .review-sticker {
    animation: rnaf-wiggle 480ms var(--rnaf-ease-out);
}

/* ---------- Drop cap on review articles ---------- */

.review-detail .article-body > p:first-of-type::first-letter {
    float: left;
    padding: 0.06em 0.14em 0 0;
    color: var(--rnaf-coral-dark);
    font-family: var(--rnaf-serif);
    font-size: 3.5em;
    font-weight: 700;
    line-height: 0.78;
}

/* ---------- Footer tagline: handwritten sign-off ---------- */

.footer-inner > div > p {
    rotate: -1deg;
    font-family: var(--rnaf-hand);
    font-size: 1.5rem;
    line-height: 1.2;
}

/* ==========================================================================
   Zine hero (homepage): display type on graph paper, a pile of taped
   polaroids scraped from the latest reviews, a starburst seal and a
   handwritten confession.
   ========================================================================== */

.scrap-hero {
    position: relative;
    overflow: clip;
    padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 6rem);
    /* Faint hand-drawn graph paper behind the masthead. */
    background-image: radial-gradient(
        color-mix(in srgb, var(--rnaf-coal) 8%, transparent) 1px,
        transparent 1.4px
    );
    background-size: 1.7rem 1.7rem;
}

/* Big doodled circle and a spark behind the collage, like margin drawings. */
.scrap-hero::before {
    content: '';
    position: absolute;
    top: 6%;
    right: max(2vw, 1rem);
    width: clamp(11rem, 24vw, 21rem);
    aspect-ratio: 1;
    background: var(--rnaf-coral);
    -webkit-mask: var(--rnaf-scribble-circle) center / contain no-repeat;
    mask: var(--rnaf-scribble-circle) center / contain no-repeat;
    opacity: 0.35;
    rotate: 12deg;
    pointer-events: none;
}

.scrap-hero::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: max(3vw, 1.5rem);
    width: clamp(2.2rem, 5vw, 3.6rem);
    aspect-ratio: 1;
    background: var(--rnaf-coral-dark);
    -webkit-mask: var(--rnaf-scribble-spark) center / contain no-repeat;
    mask: var(--rnaf-scribble-spark) center / contain no-repeat;
    rotate: -14deg;
    pointer-events: none;
}

.scrap-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.scrap-hero-copy {
    position: relative;
    z-index: 3;
}

.scrap-hero h1 {
    margin: 0;
    font-size: clamp(3rem, 8.2vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.scrap-hero h1 em {
    position: relative;
    display: inline-block;
    color: var(--rnaf-coral-dark);
    font-style: italic;
    transform: rotate(-1.5deg);
}

/* Highlighter stroke under the emphasized word. */
.scrap-hero h1 em::after {
    content: '';
    position: absolute;
    right: -0.05em;
    bottom: 0.02em;
    left: -0.05em;
    height: 0.22em;
    background: var(--rnaf-coral);
    -webkit-mask: var(--rnaf-scribble-wave) repeat-x left center / auto 100%;
    mask: var(--rnaf-scribble-wave) repeat-x left center / auto 100%;
    transform: rotate(-1deg);
}

.scrap-hero-hand {
    margin: 1.4rem 0 0;
    color: var(--rnaf-coral-dark);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    rotate: -2deg;
    transform-origin: left center;
}

.scrap-hero-sub {
    max-width: 40rem;
    margin: 1.1rem 0 0;
    color: var(--rnaf-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.scrap-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.4rem;
    margin-top: 2.2rem;
}

.scrap-hero-actions .read-review {
    margin-top: 0;
}

.scrap-hero-altlink {
    font-family: var(--rnaf-hand);
    font-size: 1.4rem;
    text-decoration: underline wavy color-mix(in srgb, var(--rnaf-coral) 80%, transparent);
    text-underline-offset: 0.18em;
    transition: color 200ms ease, rotate 300ms var(--rnaf-ease-spring);
    rotate: 1deg;
}

.scrap-hero-altlink:hover {
    color: var(--rnaf-coral-dark);
    rotate: -1deg;
}

/* ---------- Polaroid collage ---------- */

.scrap-hero-collage {
    position: relative;
    z-index: 2;
    min-height: clamp(21rem, 40vw, 30rem);
}

.hero-polaroid {
    position: absolute;
    display: block;
    padding: 0.65rem 0.65rem 0;
    background: #fff;
    background: color-mix(in srgb, var(--rnaf-paper) 40%, #fff);
    box-shadow: var(--rnaf-shadow-lift);
    text-decoration: none;
    transition:
        rotate 380ms var(--rnaf-ease-spring),
        translate 380ms var(--rnaf-ease-spring),
        scale 380ms var(--rnaf-ease-spring),
        box-shadow 300ms ease;
}

.hero-polaroid:hover,
.hero-polaroid:focus-visible {
    z-index: 6;
    scale: 1.045;
    rotate: 0deg;
    box-shadow: 0 26px 60px color-mix(in srgb, var(--rnaf-coal) 30%, transparent);
}

.hero-polaroid img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.02) sepia(0.08);
}

.hero-polaroid-caption {
    display: block;
    padding: 0.45rem 0.2rem 0.65rem;
    color: var(--rnaf-coal);
    font-size: 1.4rem;
    text-align: center;
}

/* Washi tape on each polaroid. */
.hero-polaroid::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: -0.7rem;
    left: 50%;
    width: 5rem;
    height: 1.4rem;
    background: var(--rnaf-tape);
    opacity: 0.9;
    translate: -50% 0;
    rotate: -4deg;
    pointer-events: none;
}

.hero-polaroid--1 {
    top: 6%;
    left: 0;
    z-index: 1;
    width: 50%;
    rotate: -6deg;
}

.hero-polaroid--2 {
    top: 0;
    right: 0;
    z-index: 2;
    width: 47%;
    rotate: 4.5deg;
}

.hero-polaroid--2::before {
    rotate: 5deg;
}

.hero-polaroid--3 {
    top: 42%;
    left: 23%;
    z-index: 3;
    width: 49%;
    rotate: -2.5deg;
}

/* Rotating starburst seal. */
.hero-burst {
    position: absolute;
    right: 3%;
    bottom: 0;
    z-index: 4;
    display: grid;
    place-content: center;
    width: clamp(6.2rem, 12vw, 8.4rem);
    aspect-ratio: 1;
    background: var(--rnaf-coral);
    clip-path: var(--rnaf-burst);
    color: var(--rnaf-coal);
    font-weight: 800;
    font-size: clamp(0.72rem, 1.4vw, 0.9rem);
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    animation: rnaf-spin 22s linear infinite;
    pointer-events: none;
}

.hero-note {
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    z-index: 4;
    color: var(--rnaf-coral-dark);
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    rotate: -3deg;
    pointer-events: none;
}

@keyframes rnaf-spin {
    to {
        rotate: 360deg;
    }
}

/* ==========================================================================
   Washi-tape marquee riding the seam above the footer.
   ========================================================================== */

.tape-marquee {
    position: relative;
    z-index: 6;
    width: 100vw;
    margin-bottom: -4rem;
    padding-bottom: 4rem;
    translate: -50% 0;
    left: 50%;
    rotate: -0.9deg;
    overflow: hidden;
    border-block: 1px solid color-mix(in srgb, var(--rnaf-coal) 45%, transparent);
    background:
        repeating-linear-gradient(
            -45deg,
            color-mix(in srgb, var(--rnaf-coral) 16%, transparent) 0 0.6rem,
            transparent 0.6rem 1.2rem
        ) top left / auto 2.6rem repeat-x,
        var(--rnaf-coal);
    color: var(--rnaf-paper);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--rnaf-coal) 25%, transparent);
}

/* The 4rem coal "tail" above overlaps the top of the dark footer. Because
   tape and footer are the same coal, the rotated strip can never open a
   cream gap at the seam — the rotation only shows along the tape's top
   edge, which is exactly the plastered-down look. */

.tape-marquee-track {
    display: flex;
    width: max-content;
    animation: rnaf-marquee 26s linear infinite;
}

.tape-marquee:hover .tape-marquee-track {
    animation-play-state: paused;
}

.tape-marquee-group {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 0.6rem 0.8rem 0.6rem 1.6rem;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tape-marquee-group i {
    color: var(--rnaf-coral);
    font-style: normal;
}

@keyframes rnaf-marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Scroll reveals (js/reviews.js adds .reveal/.is-inview via
   IntersectionObserver). Individual `translate`/`rotate` properties are used
   so the reveal never clobbers the transform stacks on cards/polaroids.
   Without JS (or with motion off) elements simply render visible.
   ========================================================================== */

html.js .reveal {
    opacity: 0;
    translate: 0 38px;
    rotate: 0.7deg;
}

html.js .reveal.is-inview {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
    transition:
        opacity 700ms var(--rnaf-ease-out) var(--reveal-delay, 0ms),
        translate 700ms var(--rnaf-ease-out) var(--reveal-delay, 0ms),
        rotate 700ms var(--rnaf-ease-out) var(--reveal-delay, 0ms);
}

/* Hero copy settles with a slightly longer drift. */
html.js .scrap-hero-copy.reveal.is-inview {
    transition-duration: 900ms;
}

/* ---------- Motion-off & reduced-motion gates for the new animations ---------- */

@media (prefers-reduced-motion: reduce) {
    .hero-burst,
    .tape-marquee-track,
    .review-card--featured:hover .review-sticker {
        animation: none;
    }

    .hero-polaroid,
    .hero-polaroid:hover,
    .text-logo,
    .scrap-hero-altlink,
    .section-heading h2::before {
        transition: none;
    }
}

body.motion-off .hero-burst,
body.motion-off .tape-marquee-track,
body.motion-off .review-card--featured:hover .review-sticker {
    animation: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 62rem) {
    .scrap-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .scrap-hero-collage {
        min-height: clamp(19rem, 62vw, 27rem);
        max-width: 34rem;
        margin-inline: auto;
        width: 100%;
    }
}

@media (max-width: 48.01rem) {
    .tape-marquee-group {
        font-size: 0.7rem;
    }

    .section-heading h2::before {
        width: 3.6rem;
        height: 1.1rem;
    }
}

/* ---------- Forced-colors additions ---------- */

@media (forced-colors: active) {
    .section-heading h2::after,
    .section-heading h2::before,
    .scrap-hero::before,
    .scrap-hero::after,
    .hero-polaroid::before,
    .hero-burst,
    .tape-marquee {
        display: none;
    }

    .hero-polaroid,
    .review-sticker {
        border: 1px solid CanvasText;
    }
}

/* ==========================================================================
   Interactive spoiler guard (review pages with a spoiler warning).
   The article body is covered by a sheet of scrapbook paper — post-its,
   scribbles, tape — and a sticky washi-tape slider slides the sheet away.
   js/reviews.js drives --wipe (0..1, sheet translate) and flings the
   post-its; without JS the cover and dock never render (display: none is
   the default), so the article is always readable.
   ========================================================================== */

.spoiler-wrap {
    margin-top: 2rem;
    /* Keep the cover and sticky controls below site navigation. */
    isolation: isolate;
}

/* The dock rides along at the top of the article and sticks there while the
   (covered) article scrolls, so the slider is always within reach. */
.spoiler-dock {
    position: sticky;
    top: 1rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    pointer-events: none;
}

.spoiler-dock > * {
    pointer-events: auto;
}

.spoiler-dock-note {
    margin: 0;
    padding: 0.2rem 0.9rem;
    color: var(--rnaf-paper);
    background: var(--rnaf-coal);
    border-radius: var(--rnaf-radius-sm);
    font-size: 1.35rem;
    rotate: -1.5deg;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--rnaf-coal) 30%, transparent);
}

/* The slider chip: a scrap of card with tape on it. */
.spoiler-slider-ui {
    position: relative;
    padding: 0.55rem;
    border: 1px solid var(--rnaf-line);
    border-radius: 9999px;
    background: color-mix(in srgb, var(--rnaf-paper) 45%, #fff);
    box-shadow: var(--rnaf-shadow-lift);
    rotate: -1deg;
}

.spoiler-slider-ui::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: -0.65rem;
    left: 50%;
    width: 4.2rem;
    height: 1.15rem;
    background: var(--rnaf-tape);
    opacity: 0.9;
    translate: -50% 0;
    rotate: -3deg;
    pointer-events: none;
}

.spoiler-slider-input {
    --p: 0%;
    display: block;
    width: min(19rem, 68vw);
    height: 2.9rem;
    margin: 0;
    cursor: grab;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

.spoiler-slider-input:active {
    cursor: grabbing;
}

.spoiler-slider-input:focus-visible {
    outline: 3px solid var(--rnaf-focus);
    outline-offset: 6px;
    border-radius: 9999px;
}

.spoiler-slider-input::-webkit-slider-runnable-track {
    height: 2.9rem;
    border: 2px dashed color-mix(in srgb, var(--rnaf-coal) 38%, transparent);
    border-radius: 9999px;
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--rnaf-coral) 88%, var(--rnaf-coal)) var(--p),
            color-mix(in srgb, var(--rnaf-paper) 70%, #fff) var(--p)
        );
    box-shadow: inset 0 2px 7px color-mix(in srgb, var(--rnaf-coal) 18%, transparent);
}

.spoiler-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 4.4rem;
    height: 2.9rem;
    margin-top: -2px;
    border: 2px solid var(--rnaf-coal);
    border-radius: 9999px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h16m-6-6 6 6-6 6' fill='none' stroke='%232e2318' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.5rem no-repeat,
        var(--rnaf-coral);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--rnaf-coal) 35%, transparent);
    animation: rnaf-nudge 2.6s var(--rnaf-ease-out) 2;
}

.spoiler-slider-input::-moz-range-track {
    height: 2.9rem;
    border: 2px dashed color-mix(in srgb, var(--rnaf-coal) 38%, transparent);
    border-radius: 9999px;
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--rnaf-coral) 88%, var(--rnaf-coal)) var(--p),
            color-mix(in srgb, var(--rnaf-paper) 70%, #fff) var(--p)
        );
    box-shadow: inset 0 2px 7px color-mix(in srgb, var(--rnaf-coal) 18%, transparent);
}

.spoiler-slider-input::-moz-range-thumb {
    width: 4.4rem;
    height: 2.9rem;
    border: 2px solid var(--rnaf-coal);
    border-radius: 9999px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h16m-6-6 6 6-6 6' fill='none' stroke='%232e2318' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.5rem no-repeat,
        var(--rnaf-coral);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--rnaf-coal) 35%, transparent);
    animation: rnaf-nudge 2.6s var(--rnaf-ease-out) 2;
}

/* The thumb taps twice to invite the first drag, then stops. */
@keyframes rnaf-nudge {
    0%,
    55%,
    100% {
        translate: 0 0;
    }

    70% {
        translate: 10px 0;
    }

    85% {
        translate: 3px 0;
    }
}

.spoiler-wrap.has-touched .spoiler-slider-input::-webkit-slider-thumb,
.spoiler-wrap.has-touched .spoiler-slider-input::-moz-range-thumb {
    animation: none;
}

/* The reset chip (only after the cover has been lifted). */
.spoiler-reset {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--rnaf-line);
    border-radius: 9999px;
    background: color-mix(in srgb, var(--rnaf-paper) 45%, #fff);
    color: var(--rnaf-coal);
    box-shadow: var(--rnaf-shadow);
    font-family: var(--rnaf-hand);
    font-size: 1.3rem;
    rotate: -1deg;
    cursor: pointer;
    transition: rotate 300ms var(--rnaf-ease-spring), box-shadow 200ms ease;
}

.spoiler-reset:hover {
    rotate: 1deg;
    box-shadow: var(--rnaf-shadow-lift);
}

.spoiler-wrap.is-revealed .spoiler-slider-ui,
.spoiler-wrap.is-revealed .spoiler-dock-note {
    display: none;
}

.spoiler-wrap.is-revealed .spoiler-reset {
    display: inline-flex;
}

/* ---------- The cover sheet ---------- */

.spoiler-guard {
    position: relative;
}

/* While the cover is up, the article still has its full (often very long)
   height, which would leave a wasteland of blank covered paper. Clamp the
   guard so a covered article only takes a viewport-sized chunk; revealing
   lifts the clamp. Gated behind html.js: without JS the guard must stay
   uncapped so the article is fully readable. */
html.js .spoiler-guard {
    max-height: clamp(28rem, 82vh, 46rem);
    overflow: hidden;
    border-radius: var(--rnaf-radius-md);
}

html.js .spoiler-wrap.is-revealed .spoiler-guard {
    max-height: none;
    overflow: visible;
}

.spoiler-cover {
    --wipe: 0;
    position: absolute;
    inset: 0;
    z-index: 50;
    overflow: hidden;
    border: 2px dashed color-mix(in srgb, var(--rnaf-coal) 32%, transparent);
    border-radius: var(--rnaf-radius-md);
    background:
        radial-gradient(color-mix(in srgb, var(--rnaf-coal) 6%, transparent) 1px, transparent 1.4px) 0 0 / 1.5rem 1.5rem,
        color-mix(in srgb, var(--rnaf-accent-surface) 62%, var(--rnaf-paper));
    box-shadow: var(--rnaf-shadow-lift);
    translate: calc(var(--wipe) * -106%) 0;
    will-change: translate;
}

/* Without JS the cover and dock never render — the article is fully
   readable. With JS but motion off / reduced motion, the wipe is carried by
   CSS transitions instead of the JS spring. */
.spoiler-cover {
    display: none;
}

.spoiler-dock {
    display: none;
}

html.js .spoiler-dock {
    display: flex;
}

html.js .spoiler-cover {
    display: flex;
    flex-direction: column;
}

.spoiler-wrap.no-spring .spoiler-cover {
    transition: translate 420ms var(--rnaf-ease-out);
}

.spoiler-wrap.no-spring .fling {
    transition: opacity 300ms ease;
}

.spoiler-wrap.is-revealed .spoiler-cover {
    visibility: hidden;
}

/* The warning composition fills the (clamped) cover sheet and centers
   itself, whatever height the guard currently has. */
.spoiler-cover-inner {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 3rem 1.5rem;
    text-align: center;
}

.spoiler-cover-kicker {
    margin: 0;
    color: var(--rnaf-coral-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.spoiler-cover-title {
    position: relative;
    margin: 0.6rem 0 0;
    color: var(--rnaf-coal);
    font-family: var(--rnaf-serif);
    font-size: clamp(3.2rem, 11vw, 8.5rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Hand-drawn circle around the headline. */
.spoiler-cover-title::after {
    content: '';
    position: absolute;
    inset: -0.35em -0.5em;
    background: var(--rnaf-coral-dark);
    -webkit-mask: var(--rnaf-scribble-circle) center / contain no-repeat;
    mask: var(--rnaf-scribble-circle) center / contain no-repeat;
    opacity: 0.85;
    rotate: -4deg;
    pointer-events: none;
}

.spoiler-cover-hand {
    margin: 1.6rem 0 0;
    color: var(--rnaf-coral-dark);
    font-size: clamp(1.5rem, 3vw, 2rem);
    rotate: -2deg;
}

/* Tape pinning the sheet's top corners. */
.spoiler-cover-tape {
    position: absolute;
    z-index: 3;
    top: 0.8rem;
    width: 5rem;
    height: 1.5rem;
    background: var(--rnaf-tape);
    opacity: 0.9;
    pointer-events: none;
}

.spoiler-cover-tape--left {
    left: 1rem;
    rotate: -35deg;
}

.spoiler-cover-tape--right {
    right: 1rem;
    rotate: 35deg;
}

/* ---------- Post-its & scribbles on the cover ---------- */

.post-it {
    position: absolute;
    max-width: 10.5rem;
    padding: 0.8rem 0.95rem;
    color: var(--rnaf-coal);
    font-family: var(--rnaf-hand);
    font-size: 1.4rem;
    line-height: 1.05;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--rnaf-coal) 25%, transparent);
    will-change: transform, opacity;
}

/* Each note is held by a bit of tape. */
.post-it::before {
    content: '';
    position: absolute;
    top: -0.6rem;
    left: 50%;
    width: 3rem;
    height: 1rem;
    background: color-mix(in srgb, var(--rnaf-paper) 60%, #fff / 0.4);
    background: color-mix(in srgb, var(--rnaf-paper) 65%, transparent);
    translate: -50% 0;
    rotate: -4deg;
    pointer-events: none;
}

.post-it--a {
    top: 6%;
    left: 3%;
    background: var(--rnaf-coral);
    rotate: -7deg;
}

.post-it--b {
    top: 12%;
    right: 4%;
    background: color-mix(in srgb, var(--rnaf-accent-surface) 80%, var(--rnaf-paper));
    rotate: 6deg;
}

.post-it--c {
    bottom: 24%;
    left: 6%;
    background: var(--rnaf-sand-soft);
    rotate: 4deg;
}

.post-it--d {
    right: 7%;
    bottom: 16%;
    background: var(--rnaf-paper-deep);
    rotate: -5deg;
}

.spoiler-scribble {
    position: absolute;
    display: block;
    pointer-events: none;
    will-change: transform, opacity;
}

.spoiler-scribble--circle {
    top: 34%;
    right: 14%;
    width: 4.4rem;
    aspect-ratio: 1;
    background: var(--rnaf-coral-dark);
    -webkit-mask: var(--rnaf-scribble-spark) center / contain no-repeat;
    mask: var(--rnaf-scribble-spark) center / contain no-repeat;
    rotate: 16deg;
}

.spoiler-scribble--spark {
    bottom: 34%;
    left: 16%;
    width: 3.4rem;
    aspect-ratio: 1;
    background: var(--rnaf-coral);
    -webkit-mask: var(--rnaf-scribble-spark) center / contain no-repeat;
    mask: var(--rnaf-scribble-spark) center / contain no-repeat;
    rotate: -12deg;
}

/* Curled arrow pointing up at the slider. */
.spoiler-scribble--arrow {
    top: -4.2rem;
    left: 50%;
    width: 4.4rem;
    height: 3.6rem;
    background: var(--rnaf-coral-dark);
    -webkit-mask: var(--rnaf-scribble-arrow) center / contain no-repeat;
    mask: var(--rnaf-scribble-arrow) center / contain no-repeat;
    rotate: 160deg;
    translate: -50% 0;
}

/* ---------- Motion gates & responsive ---------- */

@media (prefers-reduced-motion: reduce) {
    .spoiler-slider-input::-webkit-slider-thumb,
    .spoiler-slider-input::-moz-range-thumb {
        animation: none;
    }

    .spoiler-reset {
        transition: none;
    }
}

body.motion-off .spoiler-slider-input::-webkit-slider-thumb,
body.motion-off .spoiler-slider-input::-moz-range-thumb {
    animation: none;
}

@media (max-width: 48.01rem) {
    .post-it {
        font-size: 1.2rem;
        max-width: 8.5rem;
    }

    .spoiler-scribble--arrow {
        display: none;
    }
}

@media (forced-colors: active) {
    .spoiler-cover {
        border: 1px solid CanvasText;
        background: Canvas;
    }

    .post-it,
    .spoiler-slider-ui {
        border: 1px solid CanvasText;
    }

    .spoiler-cover-tape,
    .post-it::before,
    .spoiler-slider-ui::before,
    .spoiler-cover-title::after,
    .spoiler-scribble {
        display: none;
    }
}



