:root {
  --bg: #0c0e0d;
  --surface: #101311;
  --raised: #171c18;
  --line: #29302b;
  --text: #b9c1b9;
  --bright: #d8dfd5;
  --muted: #838e84;
  --accent: #a5cec2;
  --amber: #bda477;
  --font: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 12px/1.65 var(--font); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
button, input, select, textarea { background: var(--surface); border: 1px solid var(--line); }
button:hover { color: var(--bright); border-color: #59684f; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--bright); font-weight: 500; }
[hidden] { display: none !important; }
.site-shell { width: min(1100px, calc(100% - 64px)); margin: 30px auto 0; }
.masthead { display: flex; align-items: center; gap: 22px; padding: 16px 0 24px; }
.brand { font-size: 32px; font-weight: 500; letter-spacing: -2px; color: var(--bright); white-space: nowrap; }
.brand:hover { text-decoration: none; }

.cursor, .heading-cursor { color: var(--accent); }
.site-description { font-size: 11px; color: var(--muted); }
.edition { margin-left: auto; font-size: 10px; color: #6e786f; letter-spacing: 1px; }
.navigation { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 49px; gap: 20px; }
.navigation nav { display: flex; gap: 29px; align-self: stretch; }
.navigation nav a { display: flex; align-items: center; border-bottom: 1px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 11px; }
.navigation nav a[aria-current] { color: var(--accent); border-color: var(--accent); }
.global-search { display: flex; width: 245px; align-items: center; }
.global-search input { border: 0; background: transparent; width: 100%; min-width: 0; padding: 8px 0; font-size: 11px; }
.global-search button { border: 0; background: transparent; padding: 5px 10px; color: var(--muted); }
main { padding: 24px 0 0; min-height: 340px; }
.board-notice { display: flex; gap: 13px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.board-notice>span:first-child { color: var(--amber); white-space: nowrap; }
.notice-arrow { margin-left: auto; color: #677b5f; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 30px 0 22px; }
.path { display: block; font-size: 10px; color: #84967b; margin-bottom: 5px; }
h1 { font-size: 25px; letter-spacing: -1px; line-height: 1.4; }
.heading-cursor { margin-left: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 7px 13px; border: 1px solid #414c3c; background: transparent; color: var(--accent); font-size: 11px; line-height: 1.6; white-space: nowrap; }
.button:hover { background: #1b2219; text-decoration: none; }
.button.primary { background: #a0b68f; border-color: #a0b68f; color: #11160f; }
.button.primary:hover { background: #b5c6a7; }
.board-nav { display: flex; flex-wrap: wrap; gap: 5px 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.board-nav a { padding: 2px 17px; border-right: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.board-nav a:first-child { padding-left: 0; }
.board-nav a:last-child { border-right: 0; }
.board-nav a[aria-current] { color: var(--accent); }
.board-nav a span { color: #5e6c60; font-size: 9px; margin-left: 6px; }
.feed { border: 1px solid var(--line); }
.table-heading, .thread-row { display: grid; grid-template-columns: minmax(0,1fr) 70px 140px 37px; align-items: center; column-gap: 20px; }
.table-heading { background: #111512; padding: 8px 17px; color: #788578; font-size: 8px; letter-spacing: .8px; border-bottom: 1px solid var(--line); }
.table-heading>span:nth-child(2) { text-align: center; }
.thread-row { padding: 14px 17px; border-bottom: 1px solid #222923; min-height: 77px; }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: #111512; }
.thread-info { min-width: 0; }
.thread-info h2 { display: block; font-size: 12px; line-height: 1.6; font-weight: 400; color: #c7cfc3; }
.thread-flag { display: inline-block; padding: 0 4px; font-size: 8px; color: var(--amber); border: 1px solid #514631; margin-left: 6px; vertical-align: 1px; }
.thread-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 5px; font-size: 9px; color: #7e897e; }
.thread-meta .board-tag { color: #9bad8e; }
.thread-meta>span { color: #49584a; }
.reply-count { color: #a9b3a4; text-align: center; font-size: 12px; }
.last-post { font-size: 10px; }
.last-post>a { color: #a5b39c; }
.last-post time { display: block; color: #7f8b7e; margin-top: 4px; font-size: 9px; }
.save-button { padding: 5px 0; border: 0; background: transparent; color: #6e7f68; font-size: 12px; }
.save-button[aria-pressed=true] { color: #c5d6b6; }
.empty-state { padding: 35px 20px; color: var(--muted); }
.index-note { display: flex; gap: 10px; color: #7e897e; font-size: 9px; padding: 19px 0 0; }
.index-note>span { color: var(--accent); }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; border-top: 1px solid var(--line); padding: 19px 0 25px; font-size: 9px; color: #798478; }
footer>div { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
footer>div:first-child>a { color: var(--accent); font-size: 11px; }
.board-description { margin: -3px 0 23px; font-size: 11px; color: var(--muted); }
.board-directory { border-top: 1px solid var(--line); }
.board-entry { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 20px 16px; }
.board-entry:hover { background: var(--surface); text-decoration: none; }
.board-entry strong { font-weight: 400; color: var(--accent); font-size: 13px; }
.board-entry small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.board-entry>span:last-child { font-size: 10px; color: #8a9980; white-space: nowrap; align-self: center; }
.section-title { margin: 29px 0 15px; font-size: 13px; }
.thread-breadcrumb { color: #65785e; font-size: 10px; padding: 0 0 23px; }
.thread-breadcrumb a { color: #98a78d; }
.article-heading { padding: 0 0 23px; }
.thread-label { font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.thread-label>span { color: var(--amber); }
.article-heading h1 { max-width: 950px; font-size: 24px; }
.article-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 10px; }
.article-meta .button { font-size: 10px; padding: 5px 10px; }
.comment { display: grid; grid-template-columns: 155px minmax(0,1fr); border: 1px solid var(--line); margin-bottom: 13px; }
.comment-author { padding: 20px 16px; background: var(--surface); border-right: 1px solid var(--line); font-size: 12px; }
.comment-author>a { display: block; color: #b1c79e; }
.comment-author>span { display: block; color: #7c8b75; font-size: 9px; margin-top: 5px; }
.comment-author>small { display: inline-block; margin-top: 15px; font-size: 8px; color: var(--amber); border: 1px solid #4c4332; padding: 0 4px; }
.comment-main { padding: 17px 24px 23px; }
.comment-header { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; color: #778474; border-bottom: 1px solid #232b23; padding-bottom: 12px; margin-bottom: 20px; }
.prose { font-size: 12px; line-height: 1.9; color: #b1baad; overflow-wrap: anywhere; }
.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: #aec49b; text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .prose h3 { font-size: 14px; margin: 28px 0 14px; }
.prose li { margin-bottom: 8px; }
.prose code { font-family: inherit; color: #b8cda7; background: var(--raised); padding: 1px 4px; }
.prose pre { overflow-x: auto; padding: 16px; background: var(--surface); }
.thread-end { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 25px; font-size: 11px; }
.member-list { border-top: 1px solid var(--line); }
.member-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; border-bottom: 1px solid var(--line); padding: 20px 14px; font-size: 11px; color: var(--muted); }
.member-row:hover { background: var(--surface); }
.member-handle { color: #b1c39e; }
.member-row>span:last-child { font-size: 10px; }
.profile-intro { padding: 5px 0 20px; max-width: 750px; }
.profile-role { display: block; color: #889c7d; margin: 9px 0 20px; font-size: 10px; }
.document { max-width: 780px; padding: 10px 0; }
.document h1 { margin: 9px 0 25px; }
.search-page-form { display: flex; gap: 12px; max-width: 750px; margin-bottom: 24px; }
input, select, textarea { padding: 10px; min-width: 0; }
.search-page-form input { flex: 1; }
#search-status { font-size: 11px; margin-bottom: 22px; }
.search-result { display: block; padding: 20px 14px; border-top: 1px solid var(--line); }
.search-result:last-child { border-bottom: 1px solid var(--line); }
.search-result:hover { text-decoration: none; background: var(--surface); }
.search-result h2 { font-size: 14px; margin: 8px 0; }
.search-result p { color: var(--muted); font-size: 11px; }
.eyebrow { font-size: 9px; color: #7d9072; }
mark { background: #39472f; color: #d0dfc2; }
.muted { color: var(--muted); }
.error-page { padding: 65px 0 90px; }
.error-page p { color: var(--muted); margin: 18px 0 28px; }
dialog { background: var(--bg); color: var(--text); border: 1px solid #57684b; padding: 25px; width: min(590px,calc(100% - 28px)); max-height: 90dvh; }
dialog::backdrop { background: #000b; }
.modal-top { display: flex; justify-content: space-between; align-items: center; }
.icon-button { border: 0; background: none; color: #9baa8f; padding: 4px; }
dialog h2 { font-size: 22px; margin: 16px 0 9px; }
dialog p { font-size: 10px; }
dialog label { display: flex; flex-direction: column; gap: 7px; font-size: 10px; margin: 18px 0; color: #9cae8f; }
dialog input, dialog select, dialog textarea { width: 100%; font-size: 12px; color: var(--text); }
dialog textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-grid label { margin-top: 0; margin-bottom: 0; }
.draft-status { color: var(--muted); font-size: 9px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 22px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); width: max-content; background: #1b2518; border: 1px solid #607750; padding: 11px 17px; font-size: 11px; color: #b5c9a3; z-index: 100; display: none; }
.toast.visible { display: block; }
.sr-only, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip:focus { clip: auto; width: auto; height: auto; z-index: 200; top: 10px; left: 10px; padding: 12px; background: var(--accent); color: var(--bg); }
@media (max-width: 850px) {
  .site-shell { width: calc(100% - 40px); margin-top: 18px; }
  .site-description { font-size: 10px; }
  .edition { display: none; }
  .table-heading, .thread-row { grid-template-columns: minmax(0,1fr) 50px 110px 28px; gap: 13px; }
  .last-post { font-size: 9px; }
  .last-post time { font-size: 8px; }
  .thread-info h2 { font-size: 11px; }
  footer { flex-wrap: wrap; }
  .comment { grid-template-columns: 120px minmax(0,1fr); }
  .comment-main { padding: 16px 20px 22px; }
}
@media (max-width: 600px) {
  .site-shell { width: calc(100% - 28px); margin-top: 8px; }
  .masthead { padding: 12px 0 17px; display: block; }
  .brand { font-size: 30px; }
  .site-description { display: block; font-size: 9px; margin-top: 4px; }
  .navigation { flex-wrap: wrap; gap: 0; }
  .navigation nav { min-height: 44px; width: 100%; justify-content: space-between; padding-right: 4px; }
  .navigation nav a { font-size: 11px; }
  .global-search { border-top: 1px solid var(--line); width: 100%; }
  .global-search input { padding: 10px 0; font-size: 10px; }
  main { padding-top: 17px; }
  .board-notice { padding: 9px 10px; font-size: 9px; gap: 9px; }
  .board-notice>span:first-child { font-size: 8px; }
  .notice-arrow { display: none; }
  .page-heading { margin: 24px 0 20px; gap: 10px; }
  h1 { font-size: 22px; }
  .path { font-size: 9px; }
  .button { padding: 7px 10px; font-size: 10px; }
  .page-heading .button { font-size: 9px; }
  .board-nav { gap: 8px 0; padding-bottom: 14px; margin-bottom: 16px; }
  .board-nav a { padding: 0 10px; font-size: 9px; }
  .board-nav a span { display: none; }
  .board-nav a:last-child { padding-right: 0; }
  .table-heading, .thread-row { grid-template-columns: minmax(0,1fr) 30px 28px; column-gap: 8px; }
  .table-heading { font-size: 7px; padding: 8px 11px; letter-spacing: .4px; }
  .table-heading>span:nth-child(3), .last-post { display: none; }
  .thread-row { padding: 14px 11px; min-height: 87px; }
  .thread-info h2 { font-size: 11px; line-height: 1.7; }
  .thread-flag { font-size: 7px; margin-left: 2px; }
  .thread-meta { font-size: 8px; gap: 5px; }
  .reply-count { font-size: 11px; }
  .save-button { font-size: 12px; }
  .index-note { font-size: 8px; }
  footer { margin-top: 28px; font-size: 8px; gap: 14px; padding-bottom: 22px; }
  footer>div { gap: 13px; }
  footer>div:first-child>a { font-size: 10px; }
  .board-entry { padding: 17px 8px; }
  .board-entry strong { font-size: 12px; }
  .board-entry small { font-size: 10px; }
  .board-entry>span:last-child { font-size: 8px; }
  .article-heading h1 { font-size: 21px; overflow-wrap: anywhere; }
  .article-meta { font-size: 9px; }
  .comment { display: block; }
  .comment-author { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-right: 0; border-bottom: 1px solid var(--line); font-size: 11px; }
  .comment-author>span, .comment-author>small { margin-top: 0; }
  .comment-author>small { margin-left: auto; }
  .comment-main { padding: 14px 16px 20px; }
  .comment-header { font-size: 8px; gap: 5px; margin-bottom: 16px; }
  .prose { font-size: 12px; line-height: 1.95; }
  .thread-end { font-size: 9px; }
  .member-row { grid-template-columns: 1fr; padding: 17px 9px; gap: 10px; font-size: 11px; }
  .member-row>span:last-child { display: none; }
  .document h1 { font-size: 25px; }
  .search-page-form { gap: 8px; }
  .search-page-form input { font-size: 10px; padding: 9px; }
  .search-result { padding: 18px 8px; }
  .search-result h2 { font-size: 12px; }
  .search-result p { font-size: 10px; }
  dialog { padding: 20px; }
  dialog h2 { font-size: 21px; }
  .form-grid { gap: 12px; }
  .toast { font-size: 10px; }
}
@media (max-width: 360px) {
  .board-nav { gap: 9px; }
  .board-nav a { padding: 0 8px 0 0; }
  .thread-meta { font-size: 7px; }
  .thread-info h2 { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Ghost Front identity: use the supplied artwork without altering it. */
.brand { display: inline-flex; align-items: center; gap: 15px; font-size: 28px; letter-spacing: -1px; }
.brand-logo { display: block; width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.button.primary { background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: #bdded4; }
@media (max-width: 600px) {
  .brand { font-size: 26px; gap: 12px; }
  .brand-logo { width: 52px; height: 52px; }
  .site-description { margin-top: 10px; }
}
