:root { color-scheme: light; --ink: #24201c; --muted: #766e65; --line: #d8d0c7; --surface: #fffdf9; --canvas: #f4efe8; --brand: #9d4d2c; --brand-light: #f2e2d7; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Georgia, "Noto Serif SC", serif; line-height: 1.6; }
a { color: inherit; }
button, input { font: inherit; }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem max(1rem, calc((100% - 75rem) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { flex: 0 0 auto; font-size: 1.25rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.primary-navigation { display: flex; align-items: center; flex-wrap: nowrap; gap: 1rem; min-width: 0; font-size: .9rem; }
.primary-navigation a, .site-header .inline-form button { text-decoration: none; border: 0; background: none; cursor: pointer; padding: .25rem; white-space: nowrap; }
.primary-navigation a:hover, .site-header .inline-form button:hover { color: var(--brand); }
.inline-form { display: inline; margin: 0; }
.mobile-navigation { display: none; }
.page-shell { width: min(75rem, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.site-footer { width: min(75rem, calc(100% - 2rem)); margin: 0 auto; padding: 1rem 0 2rem; color: var(--muted); font-size: .8rem; }
.page-home { width: 100%; max-width: none; padding: 0; }
.home-hero { display: grid; width: min(75rem, calc(100% - 2rem)); min-height: calc(100svh - 11.3rem); margin: 0 auto; grid-template-columns: minmax(24rem, 5fr) minmax(0, 7fr); align-items: center; gap: 3rem; padding: 1.5rem 0 2rem; }
.home-copy { order: 2; min-width: 0; }
.home-copy h1 { margin: .75rem 0 0; font-size: clamp(2.1rem, 8vw, 5rem); line-height: 1.05; letter-spacing: .04em; }
.home-visual { order: 1; position: relative; width: min(100%, 24rem); aspect-ratio: 4 / 3; justify-self: center; margin: 0; overflow: hidden; border: 1px solid var(--line); padding: .75rem; background: var(--surface); }
.home-visual-inner { container-type: inline-size; position: relative; display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; background: #d9c9b7; }
.home-visual-border { position: absolute; inset: 9%; border: 1px solid rgb(255 255 255 / 58%); }
.home-visual-light { position: absolute; left: 15%; top: 13%; width: 42%; height: 27%; border-radius: 999px; background: rgb(244 234 220 / 56%); filter: blur(2rem); }
.home-visual-shadow { position: absolute; right: 8%; bottom: 10%; width: 48%; height: 47%; border-radius: 999px; background: rgb(122 52 38 / 28%); filter: blur(2rem); }
.home-visual-stem { position: absolute; bottom: 18%; left: 17%; width: 1px; height: 31%; transform: rotate(28deg); background: rgb(36 32 28 / 24%); }
.home-visual-mark { position: relative; color: rgb(36 32 28 / 72%); font-size: clamp(3rem, 25cqw, 7rem); line-height: 1; }
.home-visual.home-feature { width: fit-content; max-width: 100%; aspect-ratio: auto; justify-self: center; }
.home-feature-link { display: block; color: inherit; text-decoration: none; }
.home-feature-image { display: block; width: auto; max-width: 100%; height: auto; max-height: min(64svh, 34rem); }
.home-tagline { max-width: 42rem; margin: 1rem 0 0; font-size: clamp(1.125rem, 3vw, 1.875rem); line-height: 1.5; }
.home-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 2rem; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1.25rem; color: white; text-decoration: none; font: 700 .85rem/1.2 system-ui, sans-serif; }
.button-link-brand { background: var(--brand); }
.button-link-dark { background: var(--ink); }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.content-search { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; font: .85rem/1.4 system-ui, sans-serif; }
.content-search input { width: min(58vw, 18rem); min-height: 2.75rem; border: 1px solid var(--line); background: var(--surface); padding: .5rem .75rem; }
.content-search button { min-height: 2.75rem; border: 0; background: var(--ink); color: white; padding: .5rem 1rem; cursor: pointer; font-weight: 700; }
.content-search a { display: inline-flex; align-items: center; min-height: 2.75rem; border: 1px solid var(--line); padding: .5rem .75rem; color: var(--muted); text-decoration: none; font-weight: 700; }
.content-search span { display: inline-flex; align-items: center; color: var(--muted); font-size: .75rem; }
.content-view-tools { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; font: .85rem/1.4 system-ui, sans-serif; }
.view-mode-toggle { display: inline-flex; min-height: 2.25rem; align-items: center; border: 1px solid var(--line); padding: .35rem .75rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.view-mode-toggle:hover { border-color: var(--brand); color: var(--brand); }
.public-list-wrap { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); }
.public-list-scroll { overflow-x: hidden; }
.public-list { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; text-align: left; font: .9rem/1.5 system-ui, sans-serif; }
.public-list th, .public-list td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.public-list th { color: var(--muted); font-size: .75rem; }
.public-list th, .public-list td { overflow-wrap: anywhere; }
.public-list-artworks th:nth-child(1), .public-list-artworks td:nth-child(1) { width: 18%; }
.public-list-artworks th:nth-child(2), .public-list-artworks td:nth-child(2) { width: 40%; }
.public-list-artworks th:nth-child(3), .public-list-artworks td:nth-child(3) { width: 22%; }
.public-list-artworks th:nth-child(4), .public-list-artworks td:nth-child(4) { width: 20%; }
.public-list-masterpieces th:nth-child(1), .public-list-masterpieces td:nth-child(1) { width: 16%; }
.public-list-masterpieces th:nth-child(2), .public-list-masterpieces td:nth-child(2) { width: 28%; }
.public-list-masterpieces th:nth-child(3), .public-list-masterpieces td:nth-child(3) { width: 20%; }
.public-list-masterpieces th:nth-child(4), .public-list-masterpieces td:nth-child(4) { width: 20%; }
.public-list-masterpieces th:nth-child(5), .public-list-masterpieces td:nth-child(5) { width: 16%; }
.public-list tbody tr:last-child td { border-bottom: 0; }
.public-list td a { font-weight: 700; text-decoration: none; }
.public-list td a:hover { color: var(--brand); }
.public-list td small { display: block; color: var(--muted); margin-top: .2rem; }
.public-list-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; border-top: 1px solid var(--line); font: .85rem/1.4 system-ui, sans-serif; }
.public-list-pagination a, .public-list-pagination .disabled { border: 1px solid var(--line); padding: .45rem .8rem; text-decoration: none; }
.public-list-pagination a:hover { border-color: var(--brand); color: var(--brand); }
.public-list-pagination .disabled { color: var(--muted); opacity: .55; }
.gallery-shell { position: relative; margin-top: 1.25rem; }
.gallery-track { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; overscroll-behavior-inline: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 100%; min-width: 100%; }
.gallery-control { position: absolute; top: 38%; z-index: 2; display: grid; width: 3rem; height: 3rem; transform: translateY(-50%); place-items: center; border: 1px solid var(--line); background: rgb(255 253 249 / 95%); color: var(--ink); font-size: 0; text-decoration: none; box-shadow: 0 1px 4px rgb(36 32 28 / 12%); }
.gallery-control::before { width: .65rem; height: .65rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; content: ""; }
.gallery-control:hover { border-color: var(--brand); color: var(--brand); }
.gallery-control-left { left: .5rem; }
.gallery-control-right { right: .5rem; }
.gallery-control-left::before { transform: rotate(-135deg); }
.gallery-control-right::before { transform: rotate(45deg); }
.empty-gallery { display: grid; min-height: 16rem; margin-top: 1.25rem; place-items: center; border: 1px solid var(--line); padding: 2.5rem 1.5rem; text-align: center; }
.empty-gallery h2 { margin: 0; }
.empty-gallery p { max-width: 26rem; margin: 1rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.eyebrow { margin: 0 0 .5rem; color: var(--brand); font: 700 .75rem/1.2 system-ui, sans-serif; letter-spacing: .15em; }
h1, h2 { line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); margin: .5rem 0 1rem; }
h2 { font-size: 1.4rem; margin: .75rem 0 .25rem; }
.lede, .page-intro p, .muted { color: var(--muted); }
.section-block { margin-top: 3rem; }
.section-heading, .admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading a, .page-intro a { color: var(--brand); font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.25rem; }
.content-card { min-width: 0; }
.content-card a { text-decoration: none; }
.content-card h2 { overflow-wrap: anywhere; text-wrap: balance; }
.content-card p { color: var(--muted); margin: 0; font: .85rem/1.5 system-ui, sans-serif; }
.card-image { display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: #ebe4dc; }
.art-image { display: block; width: 100%; height: auto; object-fit: contain; }
.card-image .art-image { width: auto; max-width: 100%; height: auto; max-height: min(70svh, 32rem); }
.card-image .image-placeholder { width: 100%; min-height: 14rem; }
.detail-image-link { display: block; }
.detail-image-link.is-zoomable { cursor: zoom-in; }
.detail-image-link.is-zoomable:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.image-view-hint { margin: .55rem 0 0; color: var(--muted); font: .8rem/1.5 system-ui, sans-serif; text-align: center; }
.image-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); font: .85rem system-ui, sans-serif; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .8fr); gap: 3rem; align-items: start; }
.page-work_detail .detail-layout,
.page-masterpiece_detail .detail-layout { grid-template-columns: minmax(0, 67.5rem); max-width: 67.5rem; margin: 0 auto; gap: 1.5rem; }
.page-work_detail .detail-layout > div:first-child,
.page-masterpiece_detail .detail-layout > div:first-child { min-width: 0; }
.page-work_detail .detail-image-link,
.page-masterpiece_detail .detail-image-link { width: fit-content; max-width: 100%; margin-inline: auto; }
.page-work_detail .detail-image-link .art-image,
.page-masterpiece_detail .detail-image-link .art-image { width: auto; max-width: 100%; height: auto; }
.detail-copy { width: min(48rem, 100%); margin-inline: auto; padding-top: 1rem; }
.detail-title { font-size: clamp(2rem, 5vw, 3.25rem); overflow-wrap: anywhere; text-wrap: balance; }
.subtitle { color: var(--muted); font-style: italic; }
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.5rem 0; }
.facts div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.body-copy, .article-body { white-space: pre-line; line-height: 2; }
.detail-copy .body-copy, .detail-copy .article-body { line-height: 1.85; }
.auth-card { width: min(30rem, 100%); margin: 4rem auto; padding: 2rem; background: var(--surface); border: 1px solid var(--line); }
.form-stack { display: grid; gap: 1rem; }
.form-stack label { display: grid; gap: .35rem; font-weight: 700; }
.form-stack input { min-height: 2.75rem; border: 1px solid var(--line); background: white; padding: .5rem .75rem; }
.button { min-height: 2.75rem; border: 0; padding: .5rem 1rem; cursor: pointer; font-weight: 700; }
.button-primary { background: var(--ink); color: white; }
.error { padding: .75rem; background: #f8dfdf; color: #7e1e1e; }
.notice { padding: .75rem 1rem; border: 1px solid var(--brand); background: var(--brand-light); }
.table-wrap { overflow-x: auto; margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--line); }
table { width: 100%; min-width: 54rem; border-collapse: collapse; text-align: left; font: .9rem/1.5 system-ui, sans-serif; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .75rem; }
td small { display: block; color: var(--muted); margin-top: .25rem; }
.visibility { border: 1px solid var(--line); min-height: 2.25rem; padding: .35rem .7rem; cursor: pointer; font-weight: 700; font-size: .8rem; }
.visibility.public { background: #e1f0e5; color: #1f6334; }
.visibility.private { background: #eee9e3; color: var(--muted); }
.visibility:disabled { cursor: wait; opacity: .65; }
.visibility-form { display: grid; gap: .25rem; }
.visibility-error { color: #7e1e1e; font-size: .7rem; }
.admin-status-link { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.admin-table { min-width: 0; }
.admin-heading-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.admin-form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.admin-form-section, .admin-publication { display: grid; gap: 1rem; border: 1px solid var(--line); padding: 1.25rem; background: var(--surface); }
.admin-form-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-field { display: grid; gap: .35rem; color: var(--ink); font: 700 .85rem/1.4 system-ui, sans-serif; }
.admin-field-wide { grid-column: 1 / -1; }
.admin-field input, .admin-field select, .admin-field textarea { width: 100%; min-height: 2.75rem; border: 1px solid var(--line); background: var(--canvas); padding: .5rem .75rem; color: var(--ink); font: .9rem/1.5 system-ui, sans-serif; }
.admin-field textarea { min-height: 8rem; resize: vertical; }
.admin-field input:read-only { background: #eee9e3; color: var(--muted); }
.admin-field small { color: var(--muted); font-size: .72rem; font-weight: 400; }
.admin-readonly { min-height: 2.75rem; display: flex; align-items: center; border: 1px solid var(--line); background: #eee9e3; padding: .5rem .75rem; color: var(--muted); font: .9rem/1.5 system-ui, sans-serif; overflow-wrap: anywhere; }
.rich-editor { gap: .5rem; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem; border: 1px solid var(--line); border-bottom: 0; background: #eee9e3; }
.rich-toolbar button, .rich-toolbar select { min-height: 2.25rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: .25rem .55rem; cursor: pointer; font: .8rem/1.2 system-ui, sans-serif; }
.rich-toolbar button:hover, .rich-toolbar button:focus, .rich-toolbar select:focus { border-color: var(--brand); }
.rich-content { min-height: 18rem; border: 1px solid var(--line); background: var(--canvas); padding: .75rem; color: var(--ink); font: .95rem/1.8 system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.rich-content:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.rich-content p, .rich-content h2, .rich-content h3, .rich-content h4, .article-body p, .article-body h2, .article-body h3, .article-body h4 { margin: .5rem 0; }
.rich-content blockquote, .article-body blockquote { margin: .75rem 0; border-left: 3px solid var(--brand); padding-left: .75rem; color: var(--muted); }
.rich-content ul, .rich-content ol, .article-body ul, .article-body ol { padding-left: 1.5rem; }
.rte-small { font-size: .82em; }
.rte-large { font-size: 1.25em; }
.rte-serif { font-family: Georgia, "Noto Serif SC", serif; }
.rte-sans { font-family: system-ui, sans-serif; }
.rte-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-check { display: flex; min-height: 2.5rem; align-items: center; gap: .6rem; font: .85rem/1.4 system-ui, sans-serif; }
.admin-check input { width: 1rem; height: 1rem; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.admin-publication { margin-top: 1.5rem; }
.admin-publication h2 { margin: 0; }
.admin-danger { display: grid; gap: 1rem; margin-top: 1.5rem; border: 1px solid #9d3636; padding: 1.25rem; background: #fff3f3; }
.admin-danger h2 { margin: 0; color: #7e1e1e; }
.admin-danger p { margin: 0; line-height: 1.7; }
.admin-danger-meta { color: var(--muted); font-size: .85rem; }
.admin-danger .admin-form { margin-top: 0; }
.danger-button { background: #8b1e1e; color: white; }
.admin-account { display: grid; gap: 1rem; margin-top: 1.5rem; border: 1px solid var(--line); padding: 1.25rem; background: var(--surface); }
.admin-account h2 { margin: 0; }
.admin-account p { margin: 0; color: var(--muted); line-height: 1.7; }
.admin-account .admin-form { margin-top: 0; }
.admin-backup { display: grid; gap: 1rem; margin-top: 1.5rem; border: 1px solid var(--line); padding: 1.25rem; background: var(--surface); }
.admin-backup h2 { margin: 0; }
.admin-backup p { margin: 0; color: var(--muted); line-height: 1.7; }
.admin-backup .admin-form { margin-top: 0; }
.empty-state { color: var(--muted); }
.prose-page { max-width: 48rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 3rem); }
.prose-page p { line-height: 2; }
.article-section { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.article-section h2 { font-size: 1.2rem; }
.source-list { padding-left: 1.5rem; line-height: 2; }
.source-list a { overflow-wrap: anywhere; }
.message-section { max-width: 48rem; margin: 3rem auto 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.message-section > h2 { margin-top: 0; }
.message-list { display: grid; gap: .75rem; }
.message-card { background: var(--surface); border: 1px solid var(--line); padding: 1rem; }
.message-card p { margin: 0 0 .5rem; }
.message-card small { color: var(--muted); }
.message-reply { border-left: 3px solid var(--brand); padding-left: .75rem; color: var(--muted); }
.message-form { display: grid; gap: .8rem; margin-top: 1.25rem; padding: 0; }
.message-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.message-form label { display: grid; gap: .3rem; font: 700 .85rem/1.4 system-ui, sans-serif; }
.message-contact-fields label { min-width: 0; }
.message-form input, .message-form textarea, .content-search select { width: 100%; min-width: 0; min-height: 2.75rem; border: 1px solid var(--line); background: white; padding: .5rem .75rem; font: .9rem/1.5 system-ui, sans-serif; }
.message-form textarea { resize: vertical; }
.message-form .admin-check { display: flex; min-height: 2.75rem; align-items: center; gap: .6rem; font-weight: 400; cursor: pointer; }
.message-form .admin-check input { flex: 0 0 auto; width: 1rem; min-width: 1rem; height: 1rem; min-height: 1rem; margin: 0; padding: 0; accent-color: var(--brand); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.media-admin-card { margin: 0; border: 1px solid var(--line); background: var(--canvas); padding: .5rem; }
.media-admin-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #ebe4dc; }
.media-admin-card figcaption { margin: .4rem 0; color: var(--muted); font: .72rem/1.4 system-ui, sans-serif; }
.media-upload { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; align-items: start; margin-top: 1rem; }
.media-upload-alt, .media-upload-submit { grid-column: 1 / -1; }
.media-upload-submit { justify-self: start; }
.source-form { margin-top: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.stat-card { display: grid; gap: .15rem; background: var(--surface); border: 1px solid var(--line); padding: 1rem; }
.stat-card strong { font-size: 2rem; }
.stat-card span, .stat-card small { color: var(--muted); font: .8rem/1.4 system-ui, sans-serif; }
.message-detail { margin-top: 1.5rem; }
@media (max-width: 760px) {
  .site-header { align-items: center; flex-wrap: nowrap; gap: .5rem; padding: .55rem .75rem; }
  .brand { font-size: 1.1rem; }
  .primary-navigation { display: none; }
  .mobile-navigation { position: relative; display: block; margin-left: auto; font: .85rem/1.3 system-ui, sans-serif; }
  .mobile-navigation summary { display: flex; min-width: 4.75rem; min-height: 2.75rem; align-items: center; justify-content: center; gap: .55rem; border: 1px solid var(--line); padding: .5rem .7rem; background: var(--surface); cursor: pointer; list-style: none; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation-icon { position: relative; width: 1rem; height: .7rem; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .mobile-navigation-icon::before { position: absolute; top: 50%; left: 0; width: 100%; border-top: 1px solid currentColor; content: ""; transform: translateY(-50%); }
  .mobile-navigation[open] summary { border-color: var(--brand); color: var(--brand); }
  .mobile-navigation-panel { position: absolute; top: calc(100% + .45rem); right: 0; z-index: 20; display: grid; width: min(15rem, calc(100vw - 1.5rem)); border: 1px solid var(--line); padding: .35rem; background: var(--surface); box-shadow: 0 .4rem 1.25rem rgb(36 32 28 / 14%); }
  .mobile-navigation-panel a, .mobile-navigation-panel .inline-form button { display: flex; width: 100%; min-height: 2.75rem; align-items: center; border: 0; padding: .6rem .75rem; background: none; text-decoration: none; cursor: pointer; }
  .mobile-navigation-panel a:hover, .mobile-navigation-panel .inline-form button:hover { background: var(--canvas); color: var(--brand); }
  .mobile-navigation-panel .navigation-admin-item { border-top: 1px solid var(--line); }
  .card-grid, .detail-layout, .home-hero { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; gap: 1rem; padding: .75rem 0 1rem; }
  .home-copy { order: 2; text-align: left; }
  .home-visual { order: 1; justify-self: stretch; width: 100%; }
  .home-copy h1 { margin: .25rem 0 .5rem; font-size: clamp(2rem, 10vw, 3rem); }
  .home-tagline { margin: .5rem 0 0; font-size: 1.15rem; line-height: 1.35; }
  .home-copy .lede { display: none; }
  h1 { font-size: clamp(2rem, 10vw, 3rem); margin: .25rem 0 .5rem; }
  .detail-title { font-size: clamp(1.75rem, 8vw, 2.25rem); line-height: 1.2; }
  .detail-copy .body-copy, .detail-copy .article-body { line-height: 1.75; }
  .eyebrow { margin-bottom: .25rem; font-size: .65rem; }
  .home-actions { justify-content: center; gap: .5rem; margin-top: 1rem; }
  .button-link { min-height: 2.5rem; padding: .4rem .75rem; font-size: .75rem; }
  .page-shell { width: min(100% - 1.5rem, 75rem); padding: 1rem 0 1.25rem; }
  .site-footer { width: min(100% - 1.5rem, 75rem); padding: .5rem 0 1rem; font-size: .7rem; }
  .gallery-heading { align-items: stretch; flex-direction: column; gap: .75rem; }
  .content-search { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
  .content-search input { width: 100%; min-width: 0; flex: none; font-size: 1rem; }
  .content-search button { min-width: 4rem; }
  .content-search a, .content-search span { grid-column: 1 / -1; }
  .content-view-tools { margin-top: .75rem; }
  .public-list-scroll { overflow: visible; }
  .public-list { display: block; width: 100%; max-width: 100%; font-size: .85rem; line-height: 1.4; }
  .public-list thead { display: none; }
  .public-list tbody { display: grid; }
  .public-list tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; border-bottom: 1px solid var(--line); padding: 1rem; }
  .public-list tbody tr:last-child { border-bottom: 0; }
  .public-list td,
  .public-list-artworks td:nth-child(n),
  .public-list-masterpieces td:nth-child(n) { display: block; width: auto; border: 0; padding: 0; overflow: visible; white-space: normal; text-overflow: clip; }
  .public-list td::before { display: block; margin-bottom: .12rem; color: var(--muted); content: attr(data-label); font-size: .65rem; letter-spacing: .04em; }
  .public-list .public-list-number { grid-column: 1 / -1; color: var(--brand); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
  .public-list .public-list-number::before, .public-list .public-list-title::before { display: none; }
  .public-list .public-list-title { grid-column: 1 / -1; font-size: 1.05rem; line-height: 1.35; }
  .public-list td a, .public-list td small { display: block; overflow: visible; white-space: normal; text-overflow: clip; }
  .public-list td small { margin-top: .2rem; font-size: .75rem; }
  .public-list-pagination { gap: .45rem; flex-wrap: wrap; }
  .public-list-pagination > .page-status { order: -1; width: 100%; text-align: center; }
  .public-list-pagination > a, .public-list-pagination > .disabled { flex: 1 1 0; text-align: center; }
  .gallery-shell { margin-top: 1rem; }
  .gallery-track { min-width: 0; }
  .content-card h2 { display: -webkit-box; font-size: 1.25rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .gallery-control { width: 2.75rem; height: 2.75rem; }
  .admin-table { table-layout: fixed; width: 100%; font-size: .75rem; }
  .admin-table th, .admin-table td { padding: .55rem .4rem; }
  .admin-table td { overflow-wrap: anywhere; }
  .admin-artworks-table th:nth-child(1), .admin-artworks-table td:nth-child(1) { width: 16%; }
  .admin-artworks-table th:nth-child(2), .admin-artworks-table td:nth-child(2) { width: 22%; }
  .admin-artworks-table th:nth-child(3), .admin-artworks-table td:nth-child(3) { width: 50%; }
  .admin-artworks-table th:nth-child(4), .admin-artworks-table td:nth-child(4) { width: 12%; }
  .admin-masterpieces-table th:nth-child(1), .admin-masterpieces-table td:nth-child(1) { width: 14%; }
  .admin-masterpieces-table th:nth-child(2), .admin-masterpieces-table td:nth-child(2) { width: 22%; }
  .admin-masterpieces-table th:nth-child(3), .admin-masterpieces-table td:nth-child(3) { width: 34%; }
  .admin-masterpieces-table th:nth-child(4), .admin-masterpieces-table td:nth-child(4) { width: 20%; }
  .admin-masterpieces-table th:nth-child(5), .admin-masterpieces-table td:nth-child(5) { width: 10%; }
  .admin-table .visibility { width: 100%; min-width: 0; padding: .3rem .2rem; font-size: .7rem; line-height: 1.25; }
  .admin-table td small { font-size: .65rem; line-height: 1.3; word-break: break-all; }
  .admin-heading-links { justify-content: flex-start; gap: .5rem; }
  .admin-form-section { grid-template-columns: 1fr; padding: 1rem; }
  .admin-field-wide { grid-column: auto; }
  .admin-publication { padding: 1rem; }
  .admin-danger { padding: 1rem; }
  .admin-account { padding: 1rem; }
  .admin-backup { padding: 1rem; }
  .admin-form-actions .button { min-height: 2.5rem; padding: .4rem .7rem; font-size: .75rem; }
  .media-upload, .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .message-contact-fields { grid-template-columns: 1fr; }
}

@media (max-width: 29.99rem) {
  .gallery-track { overflow-x: hidden; }
  .gallery-item:not(:first-child) { display: none; }
}

@media (min-width: 30rem) {
  .gallery-item { flex-basis: calc((100% - 1.25rem) / 2); min-width: calc((100% - 1.25rem) / 2); }
}

@media (min-width: 64rem) {
  .gallery-item { flex: 1 1 0%; min-width: 0; }
}

@media (max-width: 760px) and (max-height: 740px) {
  .page-shell { padding-top: .75rem; padding-bottom: .75rem; }
  .home-hero { gap: .6rem; padding: .25rem 0 .5rem; }
  .home-visual { width: 100%; }
  .home-actions { margin-top: .75rem; }
}

@media (max-width: 360px) {
  .home-copy .lede { white-space: normal; }
  .home-actions { display: grid; grid-template-columns: 1fr; }
  .button-link { width: 100%; min-height: 2.75rem; }
}
