:root {
  color-scheme: dark;
  --ink: #eeece4;
  --muted: #a19f94;
  --ground: #11120f;
  --surface: #191a16;
  --surface-raised: #20211c;
  --line: rgba(238, 236, 228, .12);
  --accent: #c5a276;
  --accent-soft: #dfc8a3;
  --mono: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ground); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.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-header { position: relative; z-index: 5; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 7.2%; border-bottom: 1px solid var(--line); background: #11120ff2; }
.wordmark { display: flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -.035em; }
.wordmark-mark { width: 29px; height: 29px; display: grid; place-items: center; color: var(--ground); background: var(--accent); font-family: Georgia, serif; font-size: 19px; }
.wordmark-light { color: #aaa89e; font-weight: 400; }
.main-nav { display: flex; gap: 37px; margin-left: 55px; color: #b3b1a7; font-size: 12px; }
.main-nav a, .sign-in, .browse-link { transition: color .18s ease; }
.main-nav a:hover, .sign-in:hover, .browse-link:hover { color: var(--accent-soft); }
.sign-in { font-size: 11px; letter-spacing: .025em; }
.sign-in[aria-disabled="true"] { cursor: default; }
.sign-in span { color: var(--accent); padding-left: 5px; }
.auth-nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.auth-label { color: var(--accent-soft); font-size: 11px; }
.sign-out { color: var(--muted); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.sign-out:hover { color: var(--ink); }
.auth-message { padding: 14px 7.2%; border-bottom: 1px solid #6f5940; background: #30271d; color: #e3d2b8; font-size: 12px; line-height: 1.5; }
.hero { position: relative; min-height: 520px; padding: 103px 7.2% 76px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .hero-index, .art-caption, .site-footer, .results-line, .detail-facts > div > span { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.eyebrow { color: #aaa89e; display: flex; align-items: center; gap: 9px; margin: 0 0 22px; }
.eyebrow > span:not(.status-dot) { color: #706e64; }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #c5a27666; }
h1 { max-width: 640px; margin: 0; font-size: clamp(49px, 6.3vw, 80px); line-height: .98; font-weight: 500; letter-spacing: -.065em; }
h1 em, h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--accent); letter-spacing: -.045em; }
.intro { margin: 23px 0 28px; color: #c0beb4; font-size: 14px; }
.browse-link { display: inline-flex; align-items: center; gap: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--accent); font-size: 11px; }
.browse-link span { color: var(--accent); }
.hero-art { position: absolute; width: 54%; height: 100%; right: 0; top: 0; overflow: hidden; opacity: .86; background: radial-gradient(ellipse at 64% 43%, #514b3c 0, #29271f 30%, #171714 70%); }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ground), transparent 39%), linear-gradient(0deg, var(--ground), transparent 30%); }
.sun { position: absolute; z-index: 0; width: 180px; height: 180px; top: 77px; right: 27%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ddc59f, #b59465 70%); box-shadow: 0 0 80px #d5b77c33; }
.ridge { position: absolute; left: -5%; width: 115%; clip-path: polygon(0 70%,14% 43%,25% 61%,42% 25%,55% 51%,70% 33%,82% 60%,94% 39%,100% 52%,100% 100%,0 100%); }
.ridge-back { height: 58%; bottom: 20%; background: #494638; }
.ridge-mid { height: 49%; bottom: 7%; background: #302f27; transform: scaleX(-1); }
.ridge-front { height: 34%; bottom: -2%; background: #1b1b17; }
.art-caption { position: absolute; z-index: 2; bottom: 45px; right: 12%; color: #c0b9a8; font-size: 8px; }
.hero-index { position: absolute; left: 7.2%; bottom: 25px; color: #76746c; }
.hero-index span { color: var(--accent); }
.archive-section { padding: 76px 7.2% 86px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 37px; }
.section-heading .eyebrow { margin-bottom: 17px; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 49px); line-height: 1.08; letter-spacing: -.055em; font-weight: 500; }
.section-summary { max-width: 300px; margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.archive-tools { padding: 20px 0 21px; border-top: 1px solid var(--line); }
.search-box { width: min(100%, 410px); height: 43px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid #35362e; background: var(--surface); color: var(--muted); }
.search-box > span:first-child { font-size: 22px; line-height: 1; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #858379; }
.search-box:focus-within { border-color: var(--accent); }
kbd { border: 1px solid #49483e; padding: 2px 5px; color: #99968b; font-family: var(--mono); font-size: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.filter-chip { padding: 7px 12px; border: 1px solid #34352e; border-radius: 2px; background: transparent; color: #a5a398; font-size: 10px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.filter-chip:hover { border-color: #77705e; color: var(--ink); }
.filter-chip.is-active { border-color: var(--accent); background: #c5a27619; color: var(--accent-soft); }
.results-line { display: flex; justify-content: space-between; color: #807e73; font-size: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.results-line span:last-child { color: var(--accent); }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; padding-top: 18px; }
.mod-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid rgba(238,236,228,.06); transition: border-color .18s, transform .18s; }
.mod-card:hover { border-color: #c5a27666; transform: translateY(-2px); }
.mod-card.is-featured { grid-column: span 2; display: grid; grid-template-columns: 1.05fr 1fr; }
.card-image { position: relative; display: block; height: 184px; overflow: hidden; background: #25251e; }
.is-featured .card-image { height: 100%; min-height: 260px; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: transform .35s ease; }
.mod-card:hover .card-image img { transform: scale(1.025); }
.image-badge { position: absolute; left: 12px; top: 12px; padding: 6px 8px; background: #11120fd9; border: 1px solid #ffffff20; color: #ddd4c2; font-family: var(--mono); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.card-body { padding: 17px 17px 16px; }
.is-featured .card-body { display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--accent); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.card-meta span:last-child { color: #88867d; }
.card-body h3 { margin: 14px 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.is-featured .card-body h3 { font-size: 27px; }
.card-body h3 a:hover { color: var(--accent-soft); }
.card-body > p { min-height: 36px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 15px; margin-top: 18px; color: #ddd9ce; font-size: 10px; }
.card-link span { color: var(--accent); }
.card-link:hover { color: var(--accent-soft); }
.empty-state { padding: 68px 20px; text-align: center; border: 1px dashed #37372f; background: #151612; }
.empty-mark { display: block; margin-bottom: 11px; color: var(--accent); font-family: Georgia, serif; font-size: 34px; }
.empty-state h3 { margin: 0 0 8px; font-size: 21px; font-weight: 500; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.text-button { margin-top: 18px; padding: 0; border: 0; background: transparent; color: var(--accent-soft); font-size: 11px; cursor: pointer; }
.archive-note { padding: 67px 7.2% 52px; border-top: 1px solid var(--line); }
.archive-note > .eyebrow span { color: #69675e; }
.note-content { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; max-width: 910px; gap: 12%; margin: 43px 0 48px; }
.note-content > p { max-width: 340px; margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.note-rule { height: 1px; background: var(--line); }
.note-foot { margin: 16px 0 0; color: #aaa89f; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 8px; }
.note-foot span { color: var(--accent); }
.site-footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 7.2%; border-top: 1px solid var(--line); color: #77756d; font-size: 8px; }
.detail-page { padding: 35px 7.2% 85px; }
.back-link { display: inline-flex; align-items: center; gap: 11px; color: #b7b4aa; font-size: 11px; }
.back-link span { color: var(--accent); }
.back-link:hover { color: var(--accent-soft); }
.detail-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: 33px 0 55px; }
.detail-art { position: relative; height: clamp(280px, 35vw, 440px); background: var(--surface); }
.detail-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-intro .eyebrow { margin-bottom: 22px; }
.detail-category { margin: 0 0 13px; color: var(--accent); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.detail-intro h1 { font-size: clamp(38px, 5vw, 62px); }
.detail-lede { max-width: 450px; margin: 16px 0 25px; color: #aaa89e; font-size: 13px; line-height: 1.7; }
.detail-facts { display: grid; gap: 13px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts > div { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; gap: 12px; }
.detail-facts > div > span { color: #838176; font-size: 8px; }
.detail-facts strong { font-size: 11px; font-weight: 400; color: #d7d4ca; }
.download-button { display: inline-block; margin-top: 22px; min-width: 170px; padding: 13px 16px; border: 1px solid #555044; background: #292820; color: #aaa79b; font-size: 11px; text-align: center; text-decoration: none; cursor: not-allowed; }
.download-button.is-enabled { border-color: var(--accent); color: var(--accent); cursor: pointer; }
.download-button[href^="/auth/"] { color: var(--accent); cursor: pointer; }
.download-button span { padding-left: 22px; color: var(--accent); }
.download-note { margin: 9px 0 0; color: var(--accent); font-size: 10px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 70px; max-width: 1050px; margin: 0 auto; padding-top: 27px; border-top: 1px solid var(--line); }
.detail-section { padding: 21px 0 25px; border-bottom: 1px solid var(--line); }
.detail-section .eyebrow { margin-bottom: 13px; }
.detail-section h2 { font-size: 27px; }
.long-copy { max-width: 680px; margin: 15px 0 0; color: #aaa89e; font-size: 12px; line-height: 1.9; }
.placeholder-note { margin: 12px 0 0; color: #77756d; font-family: var(--mono); font-size: 9px; }
.changelog-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; color: #aaa89e; font-size: 11px; }
.changelog-row span:first-child { color: var(--accent); font-family: var(--mono); }
.detail-aside { padding-top: 23px; }
.aside-block { padding: 0 0 22px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.aside-block .eyebrow { margin-bottom: 13px; }
.aside-block ul { padding-left: 15px; margin: 0; color: #c2bfb4; font-size: 11px; line-height: 1.8; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { padding: 6px 8px; border: 1px solid #383830; color: #b7b4aa; font-size: 9px; }
.aside-copy { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.page-error { max-width: 640px; margin: 100px auto; padding: 50px 20px; border: 0; background: transparent; }
.page-error .eyebrow { justify-content: center; margin-bottom: 20px; }
.page-error h1 { max-width: none; font-size: clamp(42px, 7vw, 68px); }
.page-error h1 em { color: var(--accent); }
.page-error > p:not(.eyebrow) { margin: 15px 0 0; }
.page-error .card-link { margin-top: 22px; }
@media (max-width: 900px) {
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-card.is-featured { grid-column: span 2; }
  .detail-hero { gap: 30px; }
  .detail-layout { gap: 38px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 68px; padding: 0 5%; }
  .main-nav { display: none; }
  .wordmark { gap: 8px; font-size: 13px; }
  .wordmark-mark { width: 26px; height: 26px; }
  .sign-in { font-size: 9px; }
  .auth-nav { gap: 7px; }
  .auth-label, .sign-out { font-size: 9px; }
  .auth-message { padding: 12px 6%; }
  .hero { min-height: 490px; padding: 105px 6% 74px; }
  .hero-art { width: 100%; opacity: .5; }
  .hero-art::after { background: linear-gradient(90deg, #11120f 0%, #11120f99 32%, transparent 100%), linear-gradient(0deg, #11120f, transparent 30%); }
  .hero-index { left: 6%; }
  .archive-section { padding: 55px 6% 64px; }
  .section-heading { display: block; margin-bottom: 27px; }
  .section-summary { margin-top: 15px; }
  .mod-grid { grid-template-columns: 1fr; gap: 12px; }
  .mod-card.is-featured { grid-column: auto; display: block; }
  .is-featured .card-image { height: 200px; min-height: 0; }
  .is-featured .card-body { padding: 17px; }
  .is-featured .card-body h3 { font-size: 20px; }
  .card-image { height: 205px; }
  .archive-note { padding: 53px 6% 44px; }
  .note-content { grid-template-columns: 1fr; gap: 21px; margin: 33px 0 37px; }
  .site-footer { padding: 0 5%; gap: 10px; font-size: 7px; }
  .detail-page { padding: 27px 6% 58px; }
  .detail-hero { grid-template-columns: 1fr; gap: 28px; padding: 24px 0 38px; }
  .detail-art { height: 245px; }
  .detail-intro h1 { font-size: 45px; }
  .detail-layout { grid-template-columns: 1fr; gap: 8px; }
  .detail-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .page-error { margin: 70px 6%; padding: 25px 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
/* Owner metadata dashboard and editor */
.admin-page { width: min(1180px, calc(100% - 48px)); margin: 72px auto 120px; }
.admin-heading, .admin-editor-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.admin-heading h1 { margin: 8px 0 0; font-size: clamp(2.3rem, 5vw, 4rem); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { color: #a8a28e; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.admin-table td:first-child { white-space: normal; min-width: 220px; }
.admin-message { min-height: 1.5em; color: #c9c39e; }
.admin-message.is-error { color: #ef9d89; }
.admin-editor { margin-top: 56px; padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); background: var(--surface); }
.admin-editor[hidden] { display: none; }
.admin-editor-heading { align-items: center; margin-bottom: 32px; }
.admin-editor-heading .eyebrow { margin-bottom: 12px; }
.admin-editor-heading h1 { max-width: 100%; margin: 0; font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.admin-editor-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }
.admin-back, .admin-cancel, .admin-save, .admin-delete { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.admin-back { color: var(--accent-soft); border-color: #c5a27666; }
.admin-form { display: grid; gap: 18px; }
.admin-form-section { min-width: 0; padding: 23px; border: 1px solid var(--line); background: #151611; }
.admin-section-heading { margin-bottom: 20px; }
.admin-section-heading h2 { margin: 0; font-size: 1.12rem; font-weight: 500; letter-spacing: -.015em; }
.admin-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.admin-grid-three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(130px, .55fr); }
.admin-field { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; color: #dfddcf; font-size: .88rem; }
.admin-span-two { grid-column: 1 / -1; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid rgba(233, 227, 209, .25); border-radius: 2px; background: var(--ground); color: var(--ink); font: inherit; font-size: 1rem; }
.admin-form textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.admin-form input:focus-visible, .admin-form textarea:focus-visible, .admin-form select:focus-visible, .admin-back:focus-visible, .admin-cancel:focus-visible, .admin-save:focus-visible, .admin-delete:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.admin-form small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.admin-file-size:empty { display: none; }
.admin-image-preview { display: block; width: min(100%, 520px); max-height: 320px; object-fit: contain; object-position: left center; background: var(--ground); border: 1px solid var(--line); }
.admin-message.is-error { color: #ef9d89; }
.admin-sort-field input { max-width: 190px; }
.admin-publishing-section { padding-bottom: 18px; }
.admin-publishing-section .admin-section-heading { margin-bottom: 16px; }
.admin-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-action-primary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-save { border-color: var(--accent); background: #c5a2761a; color: var(--accent-soft); }
.admin-cancel { color: #c2bfb4; }
.admin-delete { border-color: #a35b4d; color: #efaa9b; }
.admin-save:hover, .admin-cancel:hover, .admin-back:hover { background: #ffffff0a; }
.admin-delete:hover { background: #a35b4d22; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
  .admin-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-sort-field input { max-width: none; }
}
@media (max-width: 680px) {
  .admin-page { width: min(100% - 32px, 1180px); margin-top: 44px; }
  .admin-heading { align-items: start; flex-direction: column; }
  .admin-editor { margin-top: 36px; padding: 20px 16px; }
  .admin-editor-heading { align-items: start; flex-direction: column; }
  .admin-form-section { padding: 18px 15px; }
  .admin-section-grid, .admin-grid-three { grid-template-columns: 1fr; gap: 17px; }
  .admin-span-two { grid-column: auto; }
  .admin-actions, .admin-action-primary { width: 100%; flex-direction: column; align-items: stretch; }
  .admin-back, .admin-action-primary button, .admin-delete { width: 100%; }
}
