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

:root {
    --ink: #000000;
    --ink-soft: #4a4a4a;
    --paper: #F3F3EF;
    --blue: #0000FF;
    --blue-soft: rgba(0, 0, 255, 0.55);
    --blue-strong: #0000cc;
    --ink-faint: rgba(0, 0, 0, 0.45);
    --line: rgba(0, 0, 0, 0.16);
    --grid-step: 15px;
    --frame-offset: 15px;

    --frame-gap: var(--frame-offset);
    --frame-border: 5px;

    --safe-top: env(safe-area-inset-top);
    --safe-right: env(safe-area-inset-right);
    --safe-bottom: env(safe-area-inset-bottom);
    --safe-left: env(safe-area-inset-left);

    --content-w: 1320px;
    --radius: 16px;

    --wash-a: 220 220 220;
    --wash-b: 180 180 180;

    --entre: #e03a3a;
    --product: #2f9e44;
    --marketing: #d98a1f;
    --design: #2f7fbf;

    --dot-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15'><g fill='rgba(0,0,255,0.26)'><circle cx='0' cy='0' r='0.75'/><circle cx='15' cy='0' r='0.75'/><circle cx='0' cy='15' r='0.75'/><circle cx='15' cy='15' r='0.75'/><circle cx='7.5' cy='7.5' r='0.75'/></g></svg>");
}

body {
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    background-color: var(--paper);
    background-image: var(--dot-image);
    background-repeat: repeat;
    background-size: var(--grid-step) var(--grid-step);
    background-position: var(--frame-offset) var(--frame-offset);
    color: var(--ink);
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
}

body.sheet-locked { overflow: hidden; }

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

.blue-frame {
    position: relative;
    margin: calc(var(--frame-offset) + var(--safe-top)) calc(var(--frame-offset) + var(--safe-right)) calc(var(--frame-offset) + var(--safe-bottom)) calc(var(--frame-offset) + var(--safe-left));
    min-height: calc(100dvh - (var(--frame-offset) * 2));
    border: 5px solid var(--blue-pure);
    padding: 30px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--grid-step) * 3);
    width: 100%;
    max-width: var(--content-w);
    margin: 0 auto;
    padding-top: calc(var(--grid-step) * 5);
    padding-bottom: calc(var(--grid-step) * 3);
    flex: 1 1 auto;
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: var(--grid-step);
}

.page-title {
    font-family: var(--brand);
    font-weight: 500;
    font-size: clamp(34px, 6.4vw, 68px);
    line-height: 0.98;
    letter-spacing: 0;
    color: var(--ink);
}

.page-subtitle {
    font-family: var(--hand);
    font-synthesis-weight: none;
    font-size: clamp(21px, 3.2vw, 30px);
    font-weight: 600;
    line-height: 1;
    color: var(--blue);
    align-self: flex-start;
    transform: rotate(-4.5deg);
    transform-origin: left center;
    margin: 2px 0 calc(var(--grid-step) * 0.8) 4px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--grid-step);
    padding-top: var(--grid-step);
    margin-top: 4px;
}

.pub-count {
    flex-shrink: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

.jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jump-chip {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
    text-decoration: none;
    border: 1px solid rgb(var(--ink-rgb) / 0.2);
    border-radius: 999px;
    padding: 5px 12px;
    background: rgb(var(--surface-rgb) / 0.4);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.jump-chip:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: rgb(var(--blue-rgb) / 0.06);
}

.publications {
    display: flex;
    flex-direction: column;
    gap: calc(var(--grid-step) * 3);
}

.pub-group {
    display: flex;
    flex-direction: column;
    gap: calc(var(--grid-step) * 1.2);
    scroll-margin-top: calc(var(--grid-step) * 4);
}

.group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--grid-step);
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--ink);
}

.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.group-title::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--ink);
    flex-shrink: 0;
}

.pub-group[data-type="entre"] .group-title::before { background: var(--entre); }
.pub-group[data-type="product"] .group-title::before { background: var(--product); }
.pub-group[data-type="marketing"] .group-title::before { background: var(--marketing); }
.pub-group[data-type="design"] .group-title::before { background: var(--design); }

.group-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.pub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--grid-step) * 1.4);
}

.pub-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgb(var(--ink-rgb) / 0.16);
    border-radius: var(--radius);
    background: rgb(var(--surface-rgb) / 0.45);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pub-card:hover,
.pub-card:focus-visible {
    border-color: var(--blue);
    background: rgb(var(--surface-rgb) / 0.8);
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgb(var(--shadow-rgb) / 0.12);
    outline: none;
}

.pub-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.pub-art {
    position: relative;
    aspect-ratio: 320 / 200;
    overflow: hidden;
    border-bottom: 1px solid rgb(var(--ink-rgb) / 0.16);
}

.pub-art-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pub-art-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(var(--on-accent-rgb) / 0.9);
    background: rgb(var(--scrim-rgb) / 0.55);
    border: 1px solid rgb(var(--on-accent-rgb) / 0.5);
    border-radius: 999px;
    padding: 3px 9px;
}

.pub-card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1 1 auto;
    padding: calc(var(--grid-step) * 1.2);
}

.pub-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--blue);
}

.pub-source {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border: 1px solid rgb(var(--ink-rgb) / 0.2);
    border-radius: 999px;
    padding: 2px 9px;
}

.pub-source + .pub-source { margin-left: -4px; }

.pub-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    transition: color 0.2s ease;
}

.pub-card:hover .pub-title { color: var(--blue); }

.pub-note {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.tag {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.tag-entre { background: var(--entre); color: var(--on-accent); }
.tag-product { background: var(--product); color: var(--on-accent); }
.tag-marketing { background: var(--marketing); color: var(--on-accent); }
.tag-design { background: var(--design); color: var(--on-accent); }

.tag-plain {
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid rgb(var(--ink-rgb) / 0.25);
}

.pub-stats {
    display: flex;
    align-items: center;
    gap: var(--grid-step);
    min-height: 17px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed rgb(var(--ink-rgb) / 0.18);
}

.pub-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--ink-soft);
}

.pub-stats .pub-stat:last-child { margin-left: auto; }

.sheet-stats { border-top: none; padding-top: 0; }

.ico {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.sheet[hidden],
.sheet-backdrop[hidden] { display: none; }

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgb(var(--scrim-rgb) / 0.42);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.sheet-backdrop.is-open { opacity: 1; }

.sheet {
    --sheet-side: right;
    --sheet-pad: 44px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1101;
    width: min(720px, 100%);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -2px 0 8px rgb(var(--shadow-rgb) / 0.06),
                -14px 0 44px rgb(var(--shadow-rgb) / 0.10);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1),
                width 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.sheet.is-open { transform: translateX(0); }

.sheet.is-wide { width: 100%; }
.sheet.is-wide .sheet-scroll > * { max-width: 760px; margin-inline: auto; }

.sheet-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px 9px var(--sheet-pad);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.sheet-nav {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.sheet-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    padding: 5px 8px 5px 5px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.sheet-back svg { width: 15px; height: 15px; }

.sheet-back:hover { background: rgb(var(--ink-rgb) / 0.07); color: var(--ink); }
.sheet-back:active { background: rgb(var(--ink-rgb) / 0.11); }
.sheet-back:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.sheet-grip { display: none; }

.sheet-tools {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.sheet-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.sheet-tool svg { width: 17px; height: 17px; }

.sheet-tool:hover {
    background: rgb(var(--ink-rgb) / 0.07);
    color: var(--ink);
}

.sheet-tool:active { background: rgb(var(--ink-rgb) / 0.11); }

.sheet-tool:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.sheet-say {
    position: absolute;
    right: 12px;
    top: calc(100% + 8px);
    z-index: 2;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--paper);
    background: var(--ink);
    border-radius: 6px;
    padding: 7px 11px;
    box-shadow: 0 4px 16px rgb(var(--shadow-rgb) / 0.18);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sheet-say.is-on { opacity: 1; transform: translateY(0); }

.sheet-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sheet-art {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.sheet-art .pub-art-svg { display: block; width: 100%; height: 100%; }

.sheet-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 34px var(--sheet-pad) 72px;
}

.sheet-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(26px, 3.2vw, 33px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.sheet-meta {
    gap: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--ink-faint);
}

.sheet-meta .pub-year {
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    color: var(--ink-faint);
}

.sheet-meta .pub-source {
    font-family: inherit;
    font-size: inherit;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-faint);
    border: none;
    border-radius: 0;
    padding: 0;
}

.sheet-meta .pub-source::before { content: '·'; margin-right: 7px; }

.sheet-tags { gap: 6px; margin-top: 2px; }

.sheet-tags .tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 4px;
    padding: 3px 8px;
}

.sheet-tags .tag-entre { background: color-mix(in srgb, var(--entre) 14%, transparent); color: var(--entre); }
.sheet-tags .tag-product { background: color-mix(in srgb, var(--product) 14%, transparent); color: var(--product); }
.sheet-tags .tag-marketing { background: color-mix(in srgb, var(--marketing) 16%, transparent); color: var(--marketing); }
.sheet-tags .tag-design { background: color-mix(in srgb, var(--design) 14%, transparent); color: var(--design); }

.sheet-tags .tag-plain {
    background: rgb(var(--ink-rgb) / 0.05);
    color: var(--ink-soft);
    border: none;
}

.sheet-note {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    color: var(--ink);
    background: rgb(var(--ink-rgb) / 0.04);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 4px;
}

.sheet-where {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-faint);
}

.sheet-where a {
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid rgb(var(--ink-rgb) / 0.28);
}

.sheet-where a:hover { color: var(--ink); border-bottom-color: currentColor; }

.sheet-stats {
    gap: 16px;
    min-height: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.sheet-stats .pub-stat {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--ink-faint);
}

.sheet-stats .pub-stat:last-child { margin-left: 0; }

.sheet-quote {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.sheet-quote p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
}

.sheet-quote a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgb(var(--ink-rgb) / 0.3);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.sheet-quote a:hover {
    border-bottom-color: currentColor;
    background: rgb(var(--ink-rgb) / 0.05);
}

.sheet-quote mark {
    background: rgb(var(--blue-rgb) / 0.14);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.sheet-quote code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88em;
    background: rgb(var(--ink-rgb) / 0.06);
    border-radius: 3px;
    padding: 1px 5px;
}

.q-wait {
    font-size: 14px !important;
    color: var(--ink-faint) !important;
}

.q-head {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-top: 12px;
}

h3.q-head { font-size: 22px; }
h4.q-head { font-size: 18px; }

.q-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
}

ul.q-list { list-style: disc; }
ol.q-list { list-style: decimal; }
.q-list li::marker { color: var(--ink-faint); }

.q-quote {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--ink);
    padding: 2px 0 2px 16px;
    border-left: 3px solid rgb(var(--ink-rgb) / 0.8);
}

.q-quote cite {
    display: block;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-style: normal;
    color: var(--ink-faint);
}

.q-figure {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.q-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: none;
    border-radius: 4px;
    background: rgb(var(--ink-rgb) / 0.04);
}

.q-figure--tall img { max-width: min(100%, 62%); }

.q-figure figcaption {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-faint);
}

.q-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
    background: rgb(var(--ink-rgb) / 0.05);
    border-radius: 6px;
    padding: 16px 18px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.q-delim {
    border: none;
    border-top: 1px solid var(--line);
    margin: 8px 0;
}

.q-link a { font-size: 15px; }

.q-note {
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: var(--ink-faint) !important;
    background: rgb(var(--ink-rgb) / 0.04);
    border-radius: 6px;
    padding: 10px 13px;
}

.sheet-origins {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.sheet-origin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--on-accent);
    text-decoration: none;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 6px;
    padding: 9px 16px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sheet-origin svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.75; }

.sheet-origin:hover { background: var(--blue-strong); border-color: var(--blue-strong); }

.sheet-origin--second {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.sheet-origin--second:hover {
    background: rgb(var(--ink-rgb) / 0.05);
    border-color: rgb(var(--ink-rgb) / 0.22);
}

.sheet-origin:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 1000px) {
    .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    :root { --frame-offset: 10px; --frame-border: 3px; }

    .blue-frame {
        border-width: 3px;
        padding: 18px;
        min-height: calc(100dvh - (var(--frame-offset) * 2));
    }

    .main-content { padding-top: calc(var(--grid-step) * 4); }

    .toolbar { align-items: flex-start; }

    .pub-count { display: none; }

    .jump-nav {
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -18px;
        padding: 2px 18px;
    }

    .jump-nav::-webkit-scrollbar { display: none; }

    .jump-chip { flex: 0 0 auto; white-space: nowrap; }

    .pub-grid { grid-template-columns: 1fr; }

    .pub-title { font-size: 17px; }

    .sheet {
        --sheet-side: bottom;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 92dvh;
        border-left: none;
        border-top: 1px solid var(--line);
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -2px 8px rgb(var(--shadow-rgb) / 0.06),
                    0 -14px 44px rgb(var(--shadow-rgb) / 0.16);
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1),
                    height 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
    }

    .sheet.is-open { transform: translateY(0); }

    .sheet.is-wide { height: 100dvh; border-radius: 0; }
    .sheet.is-wide .sheet-scroll > * { max-width: none; }

    .sheet-bar {
        padding: 17px 10px 9px 10px;
        touch-action: none;
        cursor: grab;
    }

    .sheet-grip {
        display: block;
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 38px;
        height: 4px;
        border-radius: 2px;
        background: rgb(var(--ink-rgb) / 0.22);
    }

    .sheet { --sheet-pad: 20px; }

    .sheet-content { padding: 22px var(--sheet-pad) calc(48px + var(--safe-bottom)); }

    .sheet-title { font-size: 26px; }

    .sheet-art { width: 50px; height: 50px; }
}

@media (max-width: 480px) {
    :root { --frame-offset: 8px; }

    .blue-frame { padding: 14px; }

    .jump-nav { margin: 0 -14px; padding: 2px 14px; }

}

@media (prefers-reduced-motion: reduce) {
    .pub-card,
    .sheet,
    .sheet-backdrop,
    .sheet-say { transition: none; }
    .pub-card:hover { transform: none; }
}
