:root {
    --bg: #faf7f2;
    --card: #ffffff;
    --ink: #2c2620;
    --muted: #8a8078;
    --accent: #8c3b2e;
    --accent-soft: #f3e6e1;
    --line: #e8e0d8;
    --ok: #2e7d32;
    --warn: #b26a00;
    --font-display: Georgia, 'Times New Roman', serif;
    --font-hand: Georgia, 'Times New Roman', serif;
    --paper-noise: 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='matrix' values='0 0 0 0 0.17 0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image: var(--paper-noise);
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.65;
}

h1, h2, h3, .brand { font-family: var(--font-display); font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.site-header {
    background-color: #fffdf9;
    background-image: var(--paper-noise);
    border-bottom: 1px solid var(--line);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    flex-wrap: wrap;
}

.brand { font-size: 32px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.brand small { display: block; font-family: var(--font-hand); font-size: 21px; color: var(--accent); font-weight: 600; }

.nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); font-size: 15px; }
.nav a.active { color: var(--accent); font-weight: bold; }
.menu-toggle { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 60px;
    padding: 24px 0 40px;
    color: var(--muted);
    font-size: 14px;
}

.hero { padding: 44px 0 24px; text-align: center; }
.hero h1 { font-size: 40px; margin: 0 0 10px; }
.hero p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.section-card { animation: card-arrive .45s ease both; }
.section-card:nth-child(2) { animation-delay: .04s; }
.section-card:nth-child(3) { animation-delay: .08s; }
.section-card:nth-child(4) { animation-delay: .12s; }
.section-card:nth-child(5) { animation-delay: .16s; }
.section-card:nth-child(6) { animation-delay: .20s; }
@keyframes card-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.work-list {
    position: relative;
    display: grid;
    gap: 0 58px;
    background-color: var(--card);
    background-image: var(--paper-noise);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 30px;
    margin: 0;
}
.work-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-list.cols-2::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    border-left: 1px solid var(--line);
}
.work-row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 2px 12px;
    align-items: center;
    min-width: 0;
    padding: 14px 12px;
    margin: 0 -12px;
    border-bottom: 1px dotted #d8cec2;
    transition: background-color .15s ease;
}
.work-row:hover { background: #fdf8f3; }
.work-row h3 { min-width: 0; margin: 0; font-size: 19px; line-height: 1.4; }
.work-row h3 a { overflow-wrap: anywhere; }
.work-date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.work-type { grid-column: 3; color: var(--muted); font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.work-type .badge { margin-left: 4px; }
@media (max-width: 700px) {
    .grid.cols-2 { grid-template-columns: 1fr; }
    .work-list.cols-2 { grid-template-columns: 1fr; }
    .work-list.cols-2::before { display: none; }
    .work-list { padding: 4px 20px; }
}
@media (max-width: 560px) {
    .work-row { grid-template-columns: 70px minmax(0, 1fr); }
    .work-type { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; }
}

.card {
    background-color: var(--card);
    background-image: var(--paper-noise);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
}

.card h3 { margin: 0 0 6px; font-size: 20px; }
.card .meta { color: var(--muted); font-size: 13px; }
.section-card { display: flex; align-items: center; gap: 14px; color: var(--ink); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.section-card:hover { border-color: var(--accent); box-shadow: 0 8px 18px rgba(44, 38, 32, .08); text-decoration: none; transform: translateY(-3px); }
.section-emblem { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid var(--accent-soft); border-radius: 50%; color: var(--accent); font-family: var(--font-display); font-size: 26px; line-height: 1; }
.section-card-body { min-width: 0; }
.section-card-body h3 { margin-bottom: 2px; }

.shelf-heading { align-items: center; }
.shelf-heading a { color: var(--muted); font-size: 14px; }
.shelf-heading a:hover { color: var(--accent); }
.book-shelf { position: relative; padding: 8px 22px 0; margin-bottom: 10px; }
.book-shelf-books { display: flex; align-items: flex-start; justify-content: center; gap: 18px; min-height: 218px; padding: 0 0 12px; }
.book { position: relative; display: block; width: 112px; color: var(--ink); transition: transform .25s ease; }
.book:hover { text-decoration: none; transform: translateY(-9px) rotate(-1deg); z-index: 1; }
.book:nth-child(even):hover { transform: translateY(-9px) rotate(1deg); }
.book img { display: block; width: 112px; height: 162px; object-fit: cover; border: 1px solid rgba(44, 38, 32, .18); border-radius: 2px 5px 5px 2px; box-shadow: 4px 4px 0 rgba(44, 38, 32, .10), 8px 8px 14px rgba(44, 38, 32, .10); }
.book-title { display: block; margin-top: 8px; font-family: var(--font-display); font-size: 16px; line-height: 1.15; text-align: center; }
.book-shelf-edge { height: 11px; border-radius: 3px; background: linear-gradient(to bottom, #a96f4c, #74452f 55%, #5b3828); box-shadow: 0 4px 0 #43291e, 0 9px 14px rgba(44, 38, 32, .18); }

.contest-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.contest-card h3, .contest-card .meta, .contest-card .contest-desc, .contest-card .badge { margin-left: 18px; margin-right: 18px; }
.contest-card h3 { margin-top: 16px; }
.contest-poster { display: block; margin: 0; }
.contest-poster img { display: block; width: 100%; height: 200px; object-fit: cover; }
.contest-desc { color: var(--ink); font-size: 15px; line-height: 1.55; margin: 10px 18px 12px; }
.contest-card .badge { margin-bottom: 16px; align-self: flex-start; }
@media (max-width: 560px) { .contest-poster img { height: 160px; } }

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 36px 0 14px;
    border-bottom: 2px solid var(--accent-soft);
    padding-bottom: 8px;
}
.section-title h2 { margin: 0; font-size: 27px; }

.badge {
    display: inline-block;
    border-radius: 20px;
    padding: 1px 10px;
    font-size: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}
.badge.audio { background: #e6eff7; color: #2a5d82; }
.badge.pdf { background: #efe8f6; color: #5b3d82; }
.badge.ok { background: #e4f1e5; color: var(--ok); }
.badge.warn { background: #f7eedd; color: var(--warn); }

.alert { border-radius: 8px; padding: 12px 16px; margin: 16px 0; border: 1px solid; }
.alert.success { background: #e4f1e5; border-color: #b7d8ba; color: var(--ok); }
.alert.error { background: #f8e5e2; border-color: #e3b6af; color: #8c3b2e; }

article.work { background-color: var(--card); background-image: var(--paper-noise); border: 1px solid var(--line); border-radius: 10px; padding: 36px 40px; margin-top: 24px; }
article.work h1 { margin-top: 0; font-size: 34px; }
article.work .body { font-size: 19px; white-space: pre-wrap; }

article.work.is-poem { padding: 42px 48px; }
article.work.is-poem .work-meta { text-align: center; margin-bottom: 2px; }
article.work.is-poem h1 { text-align: center; font-size: 36px; margin-bottom: 18px; }
article.work.is-poem .body { font-size: 20px; line-height: 1.85; }
article.work.is-poem .work-cover { display: block; margin: 0 auto 6px; }
.poem-signature { font-family: var(--font-hand); font-size: 26px; font-weight: 600; color: var(--accent); text-align: right; margin-top: 28px; }

.epigraph {
    display: block;
    max-width: 620px;
    margin: 20px auto 0;
    padding: 24px 36px 18px;
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    background-color: var(--card);
    background-image: var(--paper-noise);
    border: 1px solid var(--line);
    outline: 1px solid var(--line);
    outline-offset: 5px;
}
.epigraph:hover { text-decoration: none; border-color: var(--accent); outline-color: var(--accent); }
.epigraph-lines { display: block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 23px; line-height: 1.65; white-space: pre-line; }
.epigraph-title { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }

article.work .body.rich {
    white-space: normal;
    font-size: 17px;
    line-height: 1.7;
    max-width: 76ch;
}
article.work .body.rich p { margin: 0 0 14px; }
article.work .body.rich h3 { margin: 26px 0 10px; font-size: 20px; line-height: 1.4; }
article.work .body.rich ol, article.work .body.rich ul { margin: 0 0 16px; padding-left: 26px; }
article.work .body.rich li { margin: 0 0 6px; }
article.work .body.rich img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 65vh;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(44, 38, 32, 0.10);
}
.contest-post .body.rich img { max-height: 55vh; }
article.work .body.rich .audio-player { display: flex; margin: 6px 0 10px; }
article.work .body.rich a { border-bottom: 1px solid rgba(140, 59, 46, 0.35); }
article.work .body.rich a:hover { text-decoration: none; border-bottom-color: var(--accent); }
.about-cover { float: left; max-width: 250px; width: 100%; margin: 4px 18px 10px 0; border-radius: 10px; }
.work-meta { margin-bottom: 6px; }
.work-cover { max-width: 100%; border-radius: 10px; }
.comment-form { margin-top: 20px; }
.clear-both { clear: both; }

@media (max-width: 700px) {
    article.work { padding: 22px 18px; margin-top: 14px; }
    article.work h1 { font-size: 24px; }
    article.work .body.rich { font-size: 16px; }
    article.work .body.rich img { margin: 14px auto; border-radius: 10px; }
}

.media-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.media-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background-color: #fffdf9; background-image: var(--paper-noise); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.media-item.has-audio { flex-wrap: wrap; }
.media-item.has-audio > .audio-player { flex-basis: 100%; }
.media-item:has(.pdf-viewer) { flex-wrap: wrap; }
.media-item > .pdf-viewer { flex-basis: 100%; width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

.audio-player { display: flex; align-items: center; gap: 12px; width: 100%; }
.audio-player .ap-button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: none; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; }
.audio-player .ap-button:hover { filter: brightness(1.08); }
.audio-player .ap-button svg { display: block; }
.audio-player .ap-icon-pause { display: none; }
.audio-player.is-playing .ap-icon-play { display: none; }
.audio-player.is-playing .ap-icon-pause { display: block; }
.audio-player .ap-track { position: relative; flex: 1; height: 8px; min-width: 60px; border-radius: 999px; background: var(--accent-soft); cursor: pointer; touch-action: none; }
.audio-player .ap-progress { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: inherit; background: var(--accent); }
.audio-player .ap-time { flex-shrink: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.audio-player audio { display: none; }
.audio-player.is-error .ap-track { background: #f8e5e2; }
.audio-player.is-error .ap-progress { background: #a3372b; }

.comment { border-left: 3px solid var(--accent-soft); padding: 10px 14px; margin: 12px 0; background-color: #fffdf9; background-image: var(--paper-noise); border-radius: 0 8px 8px 0; }
.comment .head { color: var(--muted); font-size: 13px; margin-bottom: 4px; }

form .field { margin-bottom: 14px; min-width: 0; }
form .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-featured { display: flex; align-items: flex-end; }
.work-featured label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.work-featured input { flex: 0 0 auto; margin: 0; }
.seo-settings { grid-column: 1 / -1; min-width: 0; }
.seo-settings summary { cursor: pointer; }
.seo-settings[open] > .grid { margin-top: 14px; }
.seo-settings input, .seo-settings textarea { min-width: 0; }
input[type=file] { max-width: 100%; }
label { display: block; font-size: 14px; margin-bottom: 4px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
textarea.code { font-family: Consolas, monospace; font-size: 14px; }

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.danger { background: #a3372b; }
.btn.icon-btn { display: inline-flex; width: 32px; height: 32px; padding: 6px; align-items: center; justify-content: center; }
.btn.icon-btn svg { width: 18px; height: 18px; }

table.list { width: 100%; border-collapse: separate; border-spacing: 0; background-color: var(--card); background-image: var(--paper-noise); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.list th, table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
table.list th { background: #f6f1ea; font-size: 13px; }
table.list tr:last-child td { border-bottom: none; }
table.list td:last-child { white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.filters input, .filters select { width: auto; }

.hero-search { justify-content: center; max-width: 520px; margin: 22px auto 0; }
.hero-search input { flex: 1; min-width: 220px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { display: inline-block; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding-top: 24px; }
@media (max-width: 860px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); }
.admin-nav a.active, .admin-nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 20px 0; }
.stat { background-color: var(--card); background-image: var(--paper-noise); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.stat .num { font-size: 26px; font-weight: bold; }
.stat .label { color: var(--muted); font-size: 13px; }

.pagination { display: flex; gap: 6px; margin: 24px 0; flex-wrap: wrap; justify-content: center; align-items: center; }
.pagination a, .pagination span { min-width: 38px; text-align: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 14px; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .disabled { color: var(--muted); background: transparent; cursor: default; }
.pagination .pag-dots { border-color: transparent; background: transparent; min-width: 0; padding: 6px 4px; }
.pagination .pag-arrow { font-size: 18px; line-height: 1; }

.muted { color: var(--muted); }
.work .body img { max-width: 100%; height: auto; }

.actions { display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; white-space: nowrap; }
.actions form { display: inline-flex; }
.check-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.check-list label { color: var(--ink); font-size: 14px; }

.admin-layout > section { min-width: 0; }

@media (max-width: 700px) {
    form .grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
    .container { padding-left: 16px; padding-right: 16px; }
    .site-header .inner { align-items: center; padding: 14px 16px; }
    main.container { padding-top: 4px; }
    .brand { font-size: 24px; line-height: 1.25; }
    .brand small { font-size: 17px; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; padding: 9px; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; }
    .menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: transform .15s ease, opacity .15s ease; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .nav { display: none; width: 100%; gap: 0; padding: 8px 0 2px; }
    .nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
    .nav a, .nav .btn { font-size: 15px; }
    .nav a { padding: 9px 4px; border-top: 1px solid var(--line); }
    .nav form { border-top: 1px solid var(--line); padding: 8px 0 2px; }
    .nav form .btn { width: 100%; }
    .hero { padding: 30px 0 16px; }
    .hero h1 { font-size: 30px; }
    .section-title { margin-top: 26px; }
    .section-title h2 { font-size: 23px; }
    .card { padding: 15px; }
    .section-card { gap: 12px; }
    .section-emblem { flex-basis: 40px; width: 40px; height: 40px; font-size: 23px; }
    .book-shelf { padding-left: 8px; padding-right: 8px; overflow: hidden; }
    .book-shelf-books { justify-content: flex-start; gap: 12px; min-height: 190px; overflow-x: auto; padding: 0 8px 12px; }
    .book { flex: 0 0 92px; width: 92px; }
    .book img { width: 92px; height: 134px; }
    .book-title { font-size: 14px; }
    article.work { overflow: hidden; padding: 22px 18px; }
    article.work h1 { font-size: 26px; }
    article.work.is-poem { padding: 26px 18px; }
    article.work.is-poem h1 { font-size: 27px; }
    article.work.is-poem .body { font-size: 18px; }
    .poem-signature { font-size: 23px; margin-top: 20px; }
    .epigraph { margin-top: 16px; padding: 18px 20px 14px; outline-offset: 4px; }
    .epigraph-lines { font-size: 20px; }
    article.work .body { font-size: 17px; }
    .about-cover { float: none; display: block; max-width: 250px; margin: 4px auto 18px; }
    .work-meta { line-height: 1.5; }
    .comment-form { margin-top: 16px; }
    .media-item { align-items: flex-start; flex-direction: column; }
    .audio-player .ap-button { width: 44px; height: 44px; }
    .audio-player .ap-track { height: 12px; }
    .filters { align-items: stretch; gap: 8px; }
    .filters input, .filters select, .filters .btn { width: 100%; }
    .hero-search input { min-width: 0; }
    .hero-search .btn { width: auto; }
    .chips { gap: 6px; }
    .chip { padding: 5px 10px; font-size: 13px; }
    .pagination { gap: 4px; margin: 20px 0; }
    .pagination a, .pagination span { min-width: 34px; padding: 5px 8px; }
    .table-scroll { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
    table.list { display: block; min-width: 520px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    table.list th, table.list td { padding: 9px 10px; }
    .admin-layout { gap: 16px; padding-top: 16px; }
    .admin-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .admin-nav a { padding: 8px 9px; font-size: 14px; }
    .actions { gap: 6px; }
    .actions .btn { flex: 0 0 auto; }
    input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea { font-size: 16px; }
}

@media (max-width: 420px) {
    .container { padding-left: 12px; padding-right: 12px; }
    .site-header .inner { gap: 10px; padding: 12px; }
    .brand { font-size: 21px; }
    .brand small { font-size: 16px; }
    .nav a, .nav .btn { font-size: 14px; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; line-height: 1.5; }
    .work-list { padding-left: 14px; padding-right: 14px; }
    .shelf-heading { gap: 8px; }
    .shelf-heading a { font-size: 13px; }
    .book-shelf-books { gap: 10px; }
    .book { flex-basis: 82px; width: 82px; }
    .book img { width: 82px; height: 120px; }
    .book-title { font-size: 13px; }
    .work-row { padding-top: 12px; padding-bottom: 12px; }
    .work-row h3 { font-size: 17px; }
    article.work { padding: 18px 14px; }
    article.work h1 { font-size: 23px; line-height: 1.3; }
    article.work.is-poem h1 { font-size: 24px; }
    .btn { padding: 9px 13px; }
    .admin-nav { grid-template-columns: 1fr; }
}

@media (min-width: 701px) {
    .admin-layout > section { overflow-x: auto; }
}
