:root { color-scheme: light; font-family: system-ui, sans-serif; background: #faf8f5; color: #292d3a; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #34598b; }
button, input, select { font: inherit; }
button { cursor: pointer; background: #a34d42; color: white; border: 0; border-radius: .55rem; padding: .65rem 1rem; }
button:hover { background: #873d36; }
button:disabled { cursor: not-allowed; opacity: .52; }
.site-header { display: flex; align-items: center; gap: 1.2rem; min-height: 4.3rem; padding: .75rem max(1rem, calc((100vw - 84rem)/2)); background: #252c40; color: white; }
.site-header a { color: white; text-decoration: none; }
.site-header nav { display: flex; gap: .8rem; margin-left: auto; }
.site-header nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .3rem; }
.brand { font-size: 1.45rem; font-weight: 800; letter-spacing: -.045em; }
.site-header button { background: #3b455e; }
main { max-width: 84rem; margin: auto; padding: 1.5rem 1rem 4rem; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(22rem, 40vw, 32rem); width: 100vw; left: 50%; margin: -1.5rem 0 1.2rem -50vw; overflow: hidden; background: linear-gradient(125deg, #37445c, #252c40 62%, #6e5560); color: white; }
.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; object-fit: cover; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, #1e2335e6, #1e23358c 56%, #1e233542); }
.hero-content { width: min(100%, 57rem); margin-left: max(1.5rem, calc((100vw - 84rem)/2)); padding: 3.8rem 1.2rem 4.4rem 0; }
.hero h1 { max-width: 17ch; margin: .3rem 0 .55rem; font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: 1.06; letter-spacing: -.045em; }
.hero-content > p:not(.eyebrow) { font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.45; }
.hero-credit { position: absolute; right: max(1rem, calc((100vw - 84rem)/2)); bottom: 1rem; color: #fff; font-size: .8rem; text-shadow: 0 1px 4px #000; }
.eyebrow { color: #756578; font-size: .73rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: #ffdfd0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search { display: flex; align-items: center; gap: .35rem; max-width: 51rem; margin-top: 1.7rem; padding: .38rem; background: white; border-radius: .65rem; box-shadow: 0 .7rem 2.3rem #0003; }
.search input, .search select { border: 0; background: white; color: #292d3a; padding: .75rem .9rem; min-width: 0; }
.search input { flex: 1 1 20rem; }
.search select { max-width: 10rem; border-left: 1px solid #e5dcda; }
.search button { white-space: nowrap; }
.topic-nav { display: flex; gap: .5rem; overflow-x: auto; padding: .65rem 0 1.15rem; border-bottom: 1px solid #e8e0df; }
.topic-nav a { flex: none; padding: .6rem 1.05rem; border-radius: 2rem; color: #373a49; text-decoration: none; font-weight: 650; }
.topic-nav a:hover, .topic-nav a[aria-current="page"] { background: #f5e6e0; color: #873d36; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 1.7rem 0 1.1rem; }
.catalog-heading h2 { margin: .2rem 0; font-size: clamp(1.5rem, 2.3vw, 2.15rem); letter-spacing: -.03em; }
.catalog-heading > p { color: #686773; font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.3rem 1.15rem; align-items: start; }
.card { min-width: 0; background: transparent; overflow: hidden; }
.card-media { display: block; position: relative; aspect-ratio: 4 / 3; background: #e8e0dd; overflow: hidden; border-radius: .55rem; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 1rem; bottom: 1rem; background: #252c40dd; color: white; border-radius: 100%; padding: .55rem .7rem; }
.card-body { padding: .58rem .1rem 0; }
.card-body h2 { font-size: 1.04rem; margin: .28rem 0; line-height: 1.35; }
.card-body h2 a { color: #292d3a; text-decoration: none; }
.card-body h2 a:hover { text-decoration: underline; }
.excerpt { color: #636371; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: .35rem 0; }
.credit-line { font-size: .8rem; color: #777582; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid #e8e0df; }
.empty { padding: 2rem; background: white; border-radius: .65rem; }
.detail { background: white; border-radius: .8rem; padding: clamp(1rem, 3vw, 2rem); }
.detail h1 { margin-top: .2rem; }
.viewer { display: grid; place-items: center; background: #252c40; min-height: 18rem; }
.viewer img, .viewer video { display: block; max-width: 100%; max-height: 70vh; }
.description { line-height: 1.6; white-space: pre-wrap; }
.like-bar { display: flex; align-items: center; gap: .8rem; margin: 1.5rem 0; }
.credit { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr; gap: .6rem; padding-top: 1rem; border-top: 1px solid #e8e0df; overflow-wrap: anywhere; }
.credit dt { font-weight: 700; }
.credit dd { margin: 0; }
.account-panel { position: fixed; z-index: 10; top: 4.5rem; right: 1rem; width: min(25rem, calc(100vw - 2rem)); max-height: calc(100vh - 5rem); overflow: auto; padding: 1.2rem; border: 1px solid #e1d8d6; border-radius: .65rem; background: white; box-shadow: 0 .7rem 2rem #252c4055; }
.account-panel form { border-top: 1px solid #e1d8d6; padding: .5rem 0 1rem; }
.account-panel label { display: block; margin: .8rem 0; }
.account-panel input { display: block; width: 100%; padding: .65rem; border: 1px solid #bdb4b8; border-radius: .4rem; }
.admin-tabs { display: flex; gap: .4rem; margin: 1.4rem 0; border-bottom: 1px solid #ded4d4; }
.admin-tabs button { background: transparent; color: #56576a; border-radius: .45rem .45rem 0 0; padding: .8rem 1.1rem; border-bottom: .2rem solid transparent; }
.admin-tabs button:hover { background: #f5e6e0; color: #873d36; }
.admin-tabs button[aria-selected="true"] { color: #873d36; border-bottom-color: #a34d42; background: #fff; }
[role="tabpanel"][hidden] { display: none; }
.moderation-controls, .moderation-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: .65rem 0; }
.moderation-controls label { display: flex; align-items: center; gap: .45rem; }
.moderation-controls select { padding: .4rem .55rem; border: 1px solid #bdb4b8; border-radius: .4rem; background: white; }
.moderation-controls button, .moderation-toolbar button { padding: .42rem .7rem; }
.moderation-form label { display: block; margin: .55rem 0; }
.moderation-form input, .moderation-form textarea { display: block; width: 100%; padding: .4rem; border: 1px solid #bdb4b8; border-radius: .4rem; }
.moderation-toolbar { margin: .55rem 0; }
.moderation-toolbar span, #moderation-scan-status { color: #686773; font-size: .9rem; }
.moderation-scroll { overflow-x: auto; background: white; border: 1px solid #e1d8d6; border-radius: .65rem; }
.moderation-table { width: 100%; min-width: 49rem; table-layout: fixed; border-collapse: collapse; }
.moderation-check { width: 2.6rem; }
.moderation-material { width: 48%; }
.moderation-rights { width: 19%; }
.moderation-table th, .moderation-table td { padding: .42rem .5rem; border-bottom: 1px solid #e1d8d6; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.moderation-table th { background: #f2ecea; }
.moderation-table tr:hover td { background: #faf5f2; }
.moderation-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.3; }
.moderation-meta, .moderation-links, .moderation-preview { display: block; margin-top: .15rem; font-size: .82rem; line-height: 1.3; color: #686773; }
.moderation-preview { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.moderation-links { display: flex; gap: .5rem; }
.moderation-rights-cell { font-size: .85rem; }
.moderation-rights-cell .blocked { display: block; color: #8f3b25; }
.moderation-actions-cell button { padding: .36rem .55rem; font-size: .85rem; }
.moderation-table details { max-width: 100%; }
.moderation-table summary { cursor: pointer; color: #34598b; }
.moderation-table button { margin: .3rem .3rem .3rem 0; }
.moderation-table small { color: #8f3b25; }
.moderation-table textarea { min-height: 4rem; }
.admin-access { padding: 1.5rem; background: white; border-radius: .65rem; }
.admin-access h3 { margin: 1.5rem 0 .5rem; }
.admin-access label { display: block; margin: .8rem 0; }
.admin-access input, .admin-access select, .admin-access textarea { display: block; width: min(100%, 40rem); padding: .55rem; border: 1px solid #bdb4b8; border-radius: .4rem; }
.admin-access form { margin: 1rem 0 1.5rem; }
.admin-table-scroll { overflow-x: auto; border: 1px solid #e1d8d6; border-radius: .6rem; }
.access-table { width: 100%; min-width: 43rem; border-collapse: collapse; font-size: .88rem; }
.access-table th, .access-table td { padding: .55rem .7rem; border-bottom: 1px solid #ede7e5; text-align: left; }
.access-table th { background: #f2ecea; white-space: nowrap; }
.access-table tr:last-child td { border-bottom: 0; }
.access-table td:nth-child(2) { font-weight: 600; }
.access-table button { padding: .35rem .58rem; font-size: .85rem; }
.danger-button { background: #8e392d; }
.danger-button:hover { background: #71291f; }
footer { text-align: center; color: #686773; padding: 2rem; }
@media (max-width: 48rem) { .site-header { gap: .6rem; } .hero-content { padding: 2.5rem 1rem 3.8rem 0; } .hero-credit { max-width: 50%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .search { flex-wrap: wrap; } .search input { flex-basis: 100%; } .search select { flex: 1; max-width: none; border-left: 0; } .catalog-heading { align-items: start; flex-direction: column; } .catalog-heading > p { margin: 0; } .credit { grid-template-columns: 1fr; } }
