/* =========================================================
   recycle.wiki — v2
   Aesthetic: neubrutalism + sepia-nostalgic + pastoral-romantic
   Layout: single-column wiki
   Motifs: paper-aged texture, bubble-playful, pulse-attention
   ========================================================= */

/* ----------------------------------------
   PALETTE TOKENS (from DESIGN.md)
---------------------------------------- */
:root {
    --parchment:   #F5ECD8; /* primary background */
    --aged-paper:  #E8DCC8; /* alternate sections */
    --sepia-dark:  #5C4A38; /* primary text, borders */
    --ink-brown:   #3C2A1A; /* high-contrast headings */
    --bubble-blue: #6BA8C8; /* bubble decorations */
    --bubble-pink: #D88B8B; /* bubble alternate */
    --highlight:   #D4A855; /* pulse-attention accent */

    --shadow-offset: 4px;
    --border-th: 3px;

    --ff-display: "Syne", "Space Grotesk", system-ui, sans-serif;
    --ff-body:    "Bitter", "Lora", Georgia, serif;
    --ff-mono:    "Space Mono", "Courier New", monospace;
}

/* ----------------------------------------
   RESET / BASELINE
---------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    font-weight: 400;
    color: var(--sepia-dark);
    background: var(--parchment);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* SVG defs container (must not display) */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ----------------------------------------
   PAPER-AGED TEXTURE OVERLAY
   (SVG noise, ~3% opacity, slight yellow tint)
---------------------------------------- */
.paper-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.06;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.36   0 0 0 0 0.29   0 0 0 0 0.22   0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 320px 320px;
    mix-blend-mode: multiply;
}

/* ----------------------------------------
   PAGE FRAME (neubrutalist 3px page border)
---------------------------------------- */
.page-frame {
    position: fixed;
    inset: 12px;
    border: var(--border-th) solid var(--sepia-dark);
    pointer-events: none;
    z-index: 998;
}

/* corner ticks */
.page-frame::before,
.page-frame::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: var(--border-th) solid var(--sepia-dark);
    background: var(--parchment);
}
.page-frame::before { top: -9px; left: -9px; }
.page-frame::after  { bottom: -9px; right: -9px; }

/* ----------------------------------------
   CATALOG RIBBON (top header)
---------------------------------------- */
.catalog-ribbon {
    position: relative;
    z-index: 5;
    margin: 32px 28px 0;
    padding: 10px 16px;
    border: var(--border-th) solid var(--sepia-dark);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--sepia-dark);
    background: var(--aged-paper);
    font-family: var(--ff-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-brown);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ribbon-stamp {
    background: var(--ink-brown);
    color: var(--parchment);
    padding: 3px 10px;
    font-weight: 700;
    border: 2px solid var(--ink-brown);
}

.ribbon-divider {
    color: var(--sepia-dark);
    opacity: 0.5;
}

.ribbon-spacer {
    flex: 1;
}

/* ----------------------------------------
   ENCYCLOPEDIA COVER (100vh)
---------------------------------------- */
.cover {
    position: relative;
    min-height: 100vh;
    padding: 64px 28px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cover-inner {
    position: relative;
    z-index: 4;
    max-width: 880px;
    width: 100%;
    text-align: center;
}

.cover-tag {
    font-family: var(--ff-mono);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sepia-dark);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 800ms ease 200ms forwards;
}

.tag-line {
    display: inline-block;
    padding: 4px 14px;
    border: 2px solid var(--sepia-dark);
    background: var(--aged-paper);
    box-shadow: 3px 3px 0 var(--sepia-dark);
}

/* Wordmark — kinetic-animated bounce-in stagger */
.wordmark {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: clamp(48px, 11vw, 140px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink-brown);
    margin-bottom: 28px;
    user-select: none;
}

.kinetic-letter {
    display: inline-block;
    transform: translateY(60px) scale(0.6);
    opacity: 0;
    animation: bounceIn 900ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* staggered timing — 60ms apart, starting at 600ms */
.kinetic-letter:nth-child(1)  { animation-delay: 600ms; }
.kinetic-letter:nth-child(2)  { animation-delay: 660ms; }
.kinetic-letter:nth-child(3)  { animation-delay: 720ms; }
.kinetic-letter:nth-child(4)  { animation-delay: 780ms; }
.kinetic-letter:nth-child(5)  { animation-delay: 840ms; }
.kinetic-letter:nth-child(6)  { animation-delay: 900ms; }
.kinetic-letter:nth-child(7)  { animation-delay: 960ms; }
.kinetic-letter:nth-child(8)  { animation-delay: 1020ms; }
.kinetic-letter:nth-child(9)  { animation-delay: 1080ms; }
.kinetic-letter:nth-child(10) { animation-delay: 1140ms; }
.kinetic-letter:nth-child(11) { animation-delay: 1200ms; }
.kinetic-letter:nth-child(12) { animation-delay: 1260ms; }

.kinetic-letter.dot {
    color: var(--bubble-pink);
    -webkit-text-stroke: 2px var(--ink-brown);
}

@keyframes bounceIn {
    0%   { transform: translateY(60px) scale(0.6); opacity: 0; }
    60%  { transform: translateY(-8px) scale(1.06); opacity: 1; }
    80%  { transform: translateY(2px)  scale(0.98); }
    100% { transform: translateY(0)    scale(1);    opacity: 1; }
}

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

.cover-tagline {
    font-family: var(--ff-body);
    font-style: italic;
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--sepia-dark);
    max-width: 540px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: fadeInUp 800ms ease 1500ms forwards;
}

.cover-rule {
    width: 120px;
    height: 4px;
    background: var(--sepia-dark);
    margin: 0 auto 28px;
    opacity: 0;
    animation: fadeInUp 600ms ease 1700ms forwards;
}

.cover-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 40px;
    border: var(--border-th) solid var(--sepia-dark);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--sepia-dark);
    background: var(--aged-paper);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 700ms ease 1900ms forwards;
}

.meta-cell {
    flex: 1 1 180px;
    padding: 14px 18px;
    border-right: var(--border-th) solid var(--sepia-dark);
    text-align: center;
}
.meta-cell:last-child { border-right: 0; }

.meta-label {
    display: block;
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sepia-dark);
    margin-bottom: 4px;
}

.meta-value {
    display: block;
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--ink-brown);
}

.cover-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: var(--border-th) solid var(--sepia-dark);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--sepia-dark);
    background: var(--highlight);
    color: var(--ink-brown);
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
    opacity: 0;
    animation: fadeInUp 700ms ease 2100ms forwards;
}

.cover-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--sepia-dark);
}

.cover-cta:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--sepia-dark);
}

.cta-arrow {
    font-size: 20px;
    line-height: 1;
    transition: transform 180ms ease;
}
.cover-cta:hover .cta-arrow { transform: translateY(3px); }

.cover-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sepia-dark);
    opacity: 0;
    animation: fadeInUp 700ms ease 2300ms forwards, gentleBob 2.4s ease-in-out 2300ms infinite;
}

@keyframes gentleBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

/* ----------------------------------------
   BUBBLE-PLAYFUL DECORATIONS
   Clusters of overlapping circles, slow float
---------------------------------------- */
.bubble-cluster {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    width: var(--bs);
    height: var(--bs);
    left: var(--bx);
    top:  var(--by);
    background: var(--bc);
    border-radius: 50%;
    border: 2px solid var(--sepia-dark);
    opacity: 0;
    animation: bubbleAppear 700ms ease 400ms forwards, bubbleFloat 6s ease-in-out infinite;
}

.bubble-cluster .bubble:nth-child(2)  { animation-delay: 460ms, 0s; }
.bubble-cluster .bubble:nth-child(3)  { animation-delay: 520ms, 0.7s; }
.bubble-cluster .bubble:nth-child(4)  { animation-delay: 580ms, 1.2s; }
.bubble-cluster .bubble:nth-child(5)  { animation-delay: 640ms, 1.8s; }

@keyframes bubbleAppear {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 0.22; transform: scale(1); }
}

@keyframes bubbleFloat {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(4px, -8px); }
    50%      { transform: translate(-3px, -12px); }
    75%      { transform: translate(2px, -5px); }
}

/* ----------------------------------------
   ARTICLE STREAM (single column)
---------------------------------------- */
.article-stream {
    position: relative;
    z-index: 3;
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 24px 40px;
}

.wiki-article {
    margin-bottom: 64px;
    position: relative;
}

.article-tab {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 12px;
    border: 2px solid var(--sepia-dark);
    background: var(--ink-brown);
    color: var(--parchment);
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    transform: rotate(-1.5deg);
    box-shadow: 3px 3px 0 var(--sepia-dark);
}

.article-title {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    color: var(--ink-brown);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.article-meta {
    font-family: var(--ff-mono);
    font-size: 12px;
    color: var(--sepia-dark);
    margin-bottom: 28px;
    opacity: 0.85;
}
.article-meta em { font-style: italic; color: var(--ink-brown); }

.lede {
    font-size: clamp(17px, 1.6vw, 19px);
    font-weight: 700;
    color: var(--ink-brown);
    margin-bottom: 24px;
    border-left: 4px solid var(--sepia-dark);
    padding-left: 18px;
}

.wiki-article p {
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.8;
    margin-bottom: 22px;
}

.wiki-article p em { font-style: italic; }

/* Pulse-attention on key terms */
.key-term {
    background: rgba(212, 168, 85, 0.30);
    padding: 0 6px;
    border-radius: 2px;
    color: var(--ink-brown);
    font-weight: 700;
    animation: pulseAttention 2s ease infinite;
    cursor: help;
    transition: background 220ms ease;
}

.key-term:hover {
    background: rgba(212, 168, 85, 0.55);
    animation-play-state: paused;
}

@keyframes pulseAttention {
    0%, 100% { background: rgba(212, 168, 85, 0.20); }
    50%      { background: rgba(212, 168, 85, 0.40); }
}

/* Pull-quote (neubrutalist shadow card) */
.pullquote {
    border: var(--border-th) solid var(--sepia-dark);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--sepia-dark);
    background: var(--aged-paper);
    padding: 24px 26px 22px;
    margin: 32px 0;
    position: relative;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.pullquote:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--sepia-dark);
}

.pullquote-mark {
    position: absolute;
    top: -22px;
    left: 18px;
    font-family: var(--ff-display);
    font-size: 56px;
    line-height: 1;
    color: var(--bubble-pink);
    -webkit-text-stroke: 2px var(--sepia-dark);
    background: var(--parchment);
    padding: 0 6px;
}

.pullquote p {
    font-family: var(--ff-body);
    font-style: italic;
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 700;
    color: var(--ink-brown);
    margin-bottom: 10px;
    line-height: 1.5;
}

.pullquote cite {
    font-family: var(--ff-mono);
    font-size: 12px;
    font-style: normal;
    letter-spacing: 0.08em;
    color: var(--sepia-dark);
}

/* Callout / definition box */
.callout {
    border: var(--border-th) solid var(--sepia-dark);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--bubble-blue);
    background: var(--parchment);
    padding: 18px 22px;
    margin: 28px 0;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.callout:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--bubble-blue);
}

.callout-warn {
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--bubble-pink);
}
.callout-warn:hover {
    box-shadow: 6px 6px 0 var(--bubble-pink);
}

.callout-label {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--ink-brown);
    background: var(--highlight);
    padding: 2px 8px;
    margin-bottom: 8px;
    border: 2px solid var(--sepia-dark);
}

.callout p { margin-bottom: 0; font-size: clamp(15px, 1.4vw, 17px); }

/* Comparison cards */
.comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 32px 0;
}

.comparison-card {
    border: var(--border-th) solid var(--sepia-dark);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--sepia-dark);
    background: var(--aged-paper);
    padding: 18px 20px;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.comparison-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--sepia-dark);
}

.comparison-title {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.1em;
    color: var(--ink-brown);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sepia-dark);
}

.comparison-card ul {
    list-style: none;
    padding: 0;
}
.comparison-card li {
    font-size: 14.5px;
    line-height: 1.5;
    padding: 4px 0 4px 18px;
    position: relative;
}
.comparison-card li::before {
    content: "·";
    position: absolute;
    left: 4px;
    top: 0;
    font-weight: 700;
    color: var(--bubble-pink);
    font-size: 22px;
    line-height: 1.2;
}

/* Recipe block */
.recipe {
    border: var(--border-th) solid var(--sepia-dark);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--highlight);
    background: var(--aged-paper);
    padding: 22px 26px;
    margin: 32px 0;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.recipe:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--highlight);
}

.recipe-title {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.14em;
    color: var(--ink-brown);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sepia-dark);
}

.recipe-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

.recipe-steps li {
    counter-increment: step;
    font-size: 16px;
    line-height: 1.55;
    padding: 8px 0 8px 38px;
    position: relative;
    border-bottom: 1px dashed rgba(92, 74, 56, 0.3);
}
.recipe-steps li:last-child { border-bottom: 0; }

.recipe-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 6px;
    width: 26px;
    height: 26px;
    border: 2px solid var(--sepia-dark);
    background: var(--parchment);
    color: var(--ink-brown);
    font-family: var(--ff-mono);
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    line-height: 22px;
}

.recipe-steps li strong {
    color: var(--ink-brown);
    font-weight: 700;
}

/* Stream divider — three small bubbles */
.stream-divider {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 48px 0;
}
.divider-bubble {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--sepia-dark);
    opacity: 0.7;
    animation: gentleBob 2.4s ease-in-out infinite;
}
.divider-bubble:nth-child(2) { animation-delay: 0.4s; }
.divider-bubble:nth-child(3) { animation-delay: 0.8s; }

/* ----------------------------------------
   INDEX SECTION (alphabetical letter tabs)
---------------------------------------- */
.index-section {
    position: relative;
    z-index: 3;
    background: var(--aged-paper);
    padding: 80px 28px 90px;
    margin-top: 40px;
    border-top: var(--border-th) solid var(--sepia-dark);
    border-bottom: var(--border-th) solid var(--sepia-dark);
}

.index-header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.index-title {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: clamp(34px, 5vw, 56px);
    color: var(--ink-brown);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.index-sub {
    font-family: var(--ff-body);
    font-style: italic;
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--sepia-dark);
}

.index-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
}

.index-tab {
    background: var(--parchment);
    border: var(--border-th) solid var(--sepia-dark);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--sepia-dark);
    padding: 18px 18px 16px;
    position: relative;
    transition: transform 220ms ease, box-shadow 220ms ease;
    cursor: pointer;
}

/* slight rotation per tab — alternating */
.index-tab:nth-child(odd)  { transform: rotate(-1.2deg); }
.index-tab:nth-child(even) { transform: rotate(0.9deg);  }
.index-tab:nth-child(3n)   { transform: rotate(-0.5deg); }
.index-tab:nth-child(4n)   { transform: rotate(1.4deg);  }

.index-tab:hover {
    transform: translate(-3px, -3px) rotate(0deg);
    box-shadow: 8px 8px 0 var(--sepia-dark);
    z-index: 5;
}

.tab-letter {
    display: inline-block;
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 42px;
    line-height: 1;
    color: var(--parchment);
    background: var(--ink-brown);
    width: 56px;
    height: 56px;
    text-align: center;
    line-height: 56px;
    border: 2px solid var(--sepia-dark);
    margin-bottom: 14px;
    transition: background 200ms ease, color 200ms ease;
}

.index-tab:hover .tab-letter {
    background: var(--highlight);
    color: var(--ink-brown);
}

.tab-entries {
    list-style: none;
    padding: 0;
}

.tab-entries li {
    font-family: var(--ff-mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--sepia-dark);
    padding: 4px 0 4px 14px;
    position: relative;
    border-bottom: 1px dashed rgba(92, 74, 56, 0.25);
}
.tab-entries li:last-child { border-bottom: 0; }

.tab-entries li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--bubble-pink);
    font-weight: 700;
    font-family: var(--ff-display);
}

.tab-entries li:hover {
    color: var(--ink-brown);
    background: rgba(212, 168, 85, 0.18);
    cursor: pointer;
}

/* ----------------------------------------
   COMPOST FOOTER
---------------------------------------- */
.compost-footer {
    position: relative;
    z-index: 3;
    background: var(--parchment);
    padding: 70px 28px 80px;
    border-top: var(--border-th) solid var(--sepia-dark);
    overflow: hidden;
}

.cluster-footer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.footer-body {
    position: relative;
    z-index: 4;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.footer-mark {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: clamp(28px, 3vw, 38px);
    color: var(--ink-brown);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.footer-line {
    font-family: var(--ff-body);
    font-style: italic;
    font-size: clamp(14px, 1.4vw, 17px);
    color: var(--sepia-dark);
    margin-bottom: 26px;
}

.footer-nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    border: var(--border-th) solid var(--sepia-dark);
    box-shadow: 3px 3px 0 var(--sepia-dark);
    background: var(--aged-paper);
    padding: 8px 18px;
    margin-bottom: 28px;
}

.footer-link {
    font-family: var(--ff-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-brown);
    transition: color 180ms ease, background 180ms ease;
    padding: 2px 6px;
}

.footer-link:hover {
    background: var(--highlight);
}

.footer-dot {
    color: var(--sepia-dark);
    opacity: 0.5;
}

.footer-note {
    font-family: var(--ff-body);
    font-size: 14px;
    color: var(--sepia-dark);
    max-width: 520px;
    margin: 0 auto 18px;
    line-height: 1.6;
}

.footer-stamp {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--sepia-dark);
    text-transform: uppercase;
    opacity: 0.8;
}

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */
@media (max-width: 720px) {
    .page-frame { inset: 8px; }
    .catalog-ribbon {
        margin: 22px 16px 0;
        font-size: 10.5px;
    }
    .cover { padding: 48px 18px 70px; }
    .article-stream { padding: 56px 18px 30px; }
    .index-section { padding: 60px 18px 70px; }
    .compost-footer { padding: 56px 18px 70px; }
    .meta-cell { flex-basis: 100%; border-right: 0; border-bottom: var(--border-th) solid var(--sepia-dark); }
    .meta-cell:last-child { border-bottom: 0; }
    .pullquote-mark { font-size: 44px; top: -18px; }
}

@media (max-width: 480px) {
    .ribbon-divider, .ribbon-spacer { display: none; }
    .catalog-ribbon { justify-content: center; gap: 6px; }
    .index-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
}
