@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/static/fonts/ibm-plex-mono-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/static/fonts/ibm-plex-mono-medium.ttf') format('truetype');
  font-weight: 500 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --background: #e8e1d3;
  --surface: #f4efe5;
  --hover: #eee7da;
  --ink: #171612;
  --muted: #655f54;
  --line: #aa9f8c;
  --accent: #d84a24;
  --mono: 'IBM Plex Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--ink); font: 13px/1.6 var(--mono); min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #d84a24; color: #fffaf0; }
[hidden] { display: none !important; }
.site-header { max-width: 1240px; margin: auto; padding: 24px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; letter-spacing: -.3px; }
.brand-mark { color: var(--accent); font-size: 21px; letter-spacing: -3px; padding-right: 4px; }
.brand-separator { color: #737d6c; padding: 0 2px; }
.account { display: flex; align-items: center; gap: 26px; }
.text-button { padding: 9px 0; font-size: 11px; color: var(--muted); }
.text-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #657355; border-radius: 4px; background: #2d3529; padding: 11px 17px; color: #c1ceaa; font-size: 12px; font-weight: 500; transition: background .15s, border-color .15s; }
.button:hover { background: #384130; border-color: #82956b; }
.button span { font-size: 17px; line-height: 16px; }
.outline { background: transparent; border-color: var(--line); }
.breakroom { max-width: 984px; margin: auto; padding: 36px 30px 28px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .2px; }
h1 { font-size: 32px; font-weight: 500; letter-spacing: -1.4px; line-height: 1.25; margin: 10px 0 0; }
h1 > span { color: var(--accent); margin-left: 6px; }
.margin-note { color: var(--muted); font-size: 10px; line-height: 1.9; }
.view-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.view-tabs button { position: relative; padding: 10px 2px 13px; color: var(--muted); font-size: 13px; }
.view-tabs button[aria-selected=true] { color: var(--accent); font-weight: 500; }
.view-tabs button[aria-selected=true]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); }
.view-tabs button span { color: #78866c; margin-left: 7px; }
#search-panel { padding-top: 24px; }
#feed-panel { padding-top: 24px; }
#search-panel .search { margin-bottom: 24px; }
.search { display: flex; align-items: center; gap: 15px; padding: 14px 17px; border: 1px solid #48513f; border-radius: 4px; background: #20251f; }
.search-prompt { font-size: 19px; color: var(--accent); }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); outline: none; font-size: 12px; }
.search input::placeholder { color: #929b89; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.search-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
#posts, #search-posts { display: grid; }
.post { position: relative; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); padding: 25px 27px 21px; }
.post:first-child { border-radius: 5px 5px 0 0; }
.post:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 5px 5px; }
.post:only-child { border-radius: 5px; }
.post:hover { background: #252a25; }
.post::before { content: ''; position: absolute; top: 26px; left: -1px; height: 27px; width: 2px; background: #738263; }
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 10px; color: var(--muted); }
.avatar { color: var(--accent); font-size: 16px; line-height: 1; }
.alias { font-weight: 400; color: #b3c29f; overflow-wrap: anywhere; }
.post-time::before { content: '/ '; color: #6c7864; }
.example { font-size: 9px; color: #a0a995; margin-left: auto; }
.example::before { content: '['; }
.example::after { content: ']'; }
.post h2 { font-size: 19px; line-height: 1.55; font-weight: 500; letter-spacing: -.4px; margin: 13px 0 11px; max-width: 790px; }
.post h2 a:hover { color: #c5d2b1; }
.post-excerpt { font-size: 12px; line-height: 1.9; color: #a5ad9d; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-actions { display: flex; align-items: center; gap: 22px; }
.post-actions button, .post-actions a { color: var(--muted); font-size: 10px; padding: 6px 0; }
.post-actions .vote { border: 1px solid #48533e; background: #293024; color: var(--accent); border-radius: 3px; padding: 5px 10px; }
.post-actions .vote[aria-pressed=true] { background: #3c4930; border-color: #94a879; color: #d3e1bc; }
.post-actions .share { margin-left: auto; }
.post-actions button:hover, .post-actions a:hover { color: #d3e1bc; }
.demo-note { color: var(--muted); text-align: center; font-size: 9px; line-height: 1.9; padding: 21px 12px 0; }
.empty { padding: 45px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.empty h2, .empty h3 { font-size: 19px; color: var(--ink); font-weight: 500; }
#active-filter, #search-active-filter { font-size: 11px; padding: 0 0 16px; color: var(--muted); }
#active-filter button, #search-active-filter button { color: var(--accent); margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; }
#load-more, #search-load-more { display: flex; margin: 25px auto 0; }
footer { max-width: 1168px; margin: auto; border-top: 1px solid var(--line); padding: 20px 0 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { color: #8a997b; font-size: 12px; }
footer button { font-size: 10px !important; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 14px; background: var(--surface); color: var(--accent); }
.skip-link:focus { top: 10px; }
dialog { background: var(--surface); color: var(--ink); border: 1px solid #56634b; border-radius: 5px; padding: 38px; width: 620px; max-width: calc(100% - 28px); max-height: 85dvh; overflow: auto; box-shadow: 0 25px 70px #0006; }
dialog::backdrop { background: #111610b0; backdrop-filter: blur(3px); }
.modal-close { position: absolute; right: 14px; top: 12px; padding: 5px; font-size: 24px; line-height: 1; color: var(--muted); }
dialog h2 { font-size: 25px; font-weight: 500; line-height: 1.4; letter-spacing: -.7px; margin: 17px 0; overflow-wrap: anywhere; }
dialog p { font-size: 12px; line-height: 1.9; color: #a5ad9d; }
dialog form { display: grid; gap: 17px; margin-top: 25px; }
dialog, #modal-content, dialog form, dialog label { min-width: 0; }
dialog label { display: grid; gap: 8px; font-size: 11px; color: var(--accent); }
dialog input, dialog textarea, dialog select { width: 100%; min-width: 0; max-width: 100%; border: 1px solid #4d5845; border-radius: 3px; background: #1c211b; color: var(--ink); padding: 13px; font-size: 12px; }
dialog textarea { min-height: 150px; resize: vertical; line-height: 1.8; }
.form-error { color: #dfb3a1 !important; margin: 0; font-size: 12px !important; }
.form-note { font-size: 10px !important; margin: 0; }
.switch-auth { color: var(--accent); font-size: 11px; margin-top: 20px; text-decoration: underline; text-underline-offset: 4px; }
.google-signin { width: 100%; min-height: 44px; margin-top: 22px; display: flex; justify-content: center; overflow: hidden; }
.google-unavailable { color: var(--muted); font-size: 10px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 19px 0 -8px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.modal-post-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px !important; }
.thread-divider { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 17px; }
.comment { padding: 15px 0; border-bottom: 1px solid var(--line); }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; }
.comment .alias { font-size: 11px; }
.pending-comment { opacity: .62; }
.comment-status { display: block; margin-top: 8px; color: var(--muted); }
#comment-form textarea { min-height: 85px; }
.rules-list { padding-left: 20px; font-size: 12px; line-height: 1.9; color: #a5ad9d; }
.rules-list li { padding: 8px 0; }
.rules-list strong { color: var(--ink); font-weight: 500; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 30px); padding: 14px 23px; border: 1px solid #667957; border-radius: 4px; background: #2d3828; color: #d0dbbe; font-size: 12px; box-shadow: 0 4px 18px #0004; }
body.modal-open { overflow: hidden; }
.site-header { max-width: none; display: grid; grid-template-columns: 235px minmax(240px, 620px) auto; justify-content: center; gap: 30px; padding: 13px 32px; position: sticky; top: 0; z-index: 10; background: var(--background); }
.brand { font-size: 15px; gap: 10px; line-height: 1.25; }
.brand strong { font-weight: 500; color: var(--accent); }
.brand-logo { flex-shrink: 0; width: 52px; height: 52px; }
.header-search { margin: 0; min-width: 0; }
.header-search .search { border-radius: 28px; border-color: #3e483a; background: #2b312b; padding: 13px 20px; gap: 14px; }
.header-search .search svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.6; flex-shrink: 0; }
.header-search input { font-size: 13px; }
.account { justify-content: flex-end; gap: 22px; }
.community-layout { max-width: 1240px; margin: 0 auto; padding: 24px 26px 40px; display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 40px; align-items: start; }
.breakroom { margin: 0; padding: 0; min-width: 0; max-width: none; }
.feed-heading-row { min-height: 42px; display: flex; justify-content: space-between; align-items: center; padding: 0 0 15px; border-bottom: 1px solid var(--line); }
.feed-heading-row h1 { margin: 0; font-size: 13px; letter-spacing: 0; line-height: 1.5; font-weight: 500; color: var(--accent); }
#feed-panel, #search-panel { padding-top: 0; }
#search-active-filter { padding: 17px 0; }
.post, .post:first-child, .post:last-child, .post:only-child { background: transparent; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: 24px 18px; }
.post:hover { background: #222722; }
.post::before { display: none; }
.post h2 { font-size: 20px; line-height: 1.5; }
.popular-sidebar { position: sticky; top: 106px; border: 1px solid #343c32; border-radius: 7px; background: #20251f; padding: 21px 20px 15px; }
.sidebar-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sidebar-title h2 { font-size: 12px; font-weight: 500; color: #bdcaa9; margin: 0; }
.sidebar-title>span { color: #849873; }
.popular-note { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 10px 0 8px; }
.popular-thread { display: flex; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.popular-thread:hover strong { color: var(--accent); }
.thread-number { font-size: 10px; color: #7e916b; padding-top: 3px; }
.popular-thread strong { display: block; font-size: 11px; line-height: 1.75; font-weight: 400; }
.popular-thread small { display: block; font-size: 9px; line-height: 1.7; color: var(--muted); margin-top: 7px; }
.sidebar-footer { padding-top: 13px; }
.sidebar-footer p { color: #a6b398; font-size: 12px; line-height: 1.7; margin: 8px 0; }
.sidebar-footer button { font-size: 10px; }
@media(max-width:1050px) {
  .site-header { grid-template-columns: 190px minmax(180px,1fr) auto; gap: 18px; padding: 12px 22px; }
  .brand { font-size: 13px; }
  .account { gap: 15px; }
  .community-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 24px; }
}
@media(max-width:1240px) { footer { margin: 0 36px; } }
@media(max-width:760px) {
  .site-header { padding: 18px; gap: 12px; }
  .brand { font-size: 11px; gap: 9px; }
  .brand-mark { font-size: 17px; }
  .brand-separator { padding: 0; }
  .account { gap: 12px; }
  .header-post { padding: 9px 11px; gap: 12px; white-space: nowrap; font-size: 10px; }
  .header-post span { display: none; }
  .account #auth-button { max-width: 65px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
  .breakroom { padding: 28px 18px; }
  .section-title { margin-bottom: 22px; }
  .eyebrow { font-size: 10px; }
  h1 { font-size: 27px; letter-spacing: -1.2px; }
  .margin-note { display: none; }
  .search { padding: 12px; gap: 10px; }
  .search-label { display: none; }
  .search input { font-size: 11px; }
  .post { padding: 21px 17px 17px; }
  .post h2 { font-size: 16px; line-height: 1.6; margin: 13px 0 10px; letter-spacing: -.3px; }
  .post-meta { gap: 6px; font-size: 9px; }
  .example { font-size: 8px; }
  .post-excerpt { font-size: 11px; }
  .post-actions { gap: 15px; }
  .post-actions button, .post-actions a { font-size: 9px; }
  .demo-note { font-size: 8px; }
  footer { margin: 0 18px; padding: 20px 0; flex-wrap: wrap; gap: 12px; }
  .footer-brand { font-size: 11px; }
  dialog { width: calc(100vw - 24px); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 30px 20px 24px; overflow-x: hidden; overscroll-behavior: contain; }
  dialog form .button { width: 100%; }
  dialog h2 { font-size: 22px; }
}
@media(max-width:380px) { .brand-mark { display: none; } .account { gap: 8px; } .site-header { padding: 15px; } }
@media(max-width:760px) {
  .site-header { grid-template-columns: 1fr auto; gap: 12px; padding: 10px 18px 13px; }
  .brand { font-size: 12px; max-width: none; }
  .brand-logo { width: 42px; height: 42px; }
  .header-search { grid-column: 1/-1; grid-row: 2; }
  .header-search .search { padding: 10px 15px; }
  .header-search input { font-size: 12px; }
  .community-layout { display: flex; flex-direction: column; padding: 16px 18px 30px; gap: 24px; }
  .breakroom { width: 100%; padding: 0; }
  .feed-heading-row { min-height: 32px; padding-bottom: 10px; }
  .feed-heading-row h1 { font-size: 12px; }
  .post, .post:first-child, .post:last-child, .post:only-child { padding: 21px 3px; }
  .post h2 { font-size: 16px; line-height: 1.6; }
  .popular-sidebar { width: 100%; position: static; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Editorial grid: warm paper, black type and a vermilion structural accent. */
body { background-color: var(--background); background-image: radial-gradient(#796f5e18 .7px, transparent .7px); background-size: 4px 4px; }
.site-header { background: #f4efe5f2; border-color: var(--ink); box-shadow: none; }
.brand strong, .brand-mark, .search-prompt, .avatar, .alias, .footer-brand,
.view-tabs button[aria-selected=true], #active-filter button, #search-active-filter button,
dialog label, .switch-auth { color: var(--accent); }
.brand-separator, .view-tabs button span, .post-time::before, .example,
.search input::placeholder { color: var(--muted); }
.button { background: var(--accent); border-color: var(--ink); color: #fff8ed; border-radius: 0; box-shadow: 3px 3px 0 var(--ink); text-transform: uppercase; }
.button:hover { background: var(--ink); border-color: var(--ink); color: #fff8ed; box-shadow: 3px 3px 0 var(--accent); }
.outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.search, .header-search .search { background: #f7f2e9; border-color: var(--ink); border-radius: 0; }
.search:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.header-search .search svg { stroke: var(--accent); }
.community-layout { border-left: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.post, .post:first-child, .post:last-child, .post:only-child { background: #eee7da99; border-color: var(--ink); border-left: 1px solid var(--accent); padding-left: 28px; }
.post:nth-child(3n+2) { margin-left: 8%; }
.post:hover { background: #f7f1e7; }
.post h2 { font-family: Arial, Helvetica, sans-serif; font-size: clamp(22px, 3vw, 38px); line-height: 1.03; letter-spacing: -1.5px; font-weight: 900; max-width: 760px; }
.post h2 a:hover, .post-actions button:hover, .post-actions a:hover { color: var(--accent); }
.post-excerpt, dialog p, .rules-list { color: #4f493f; }
.post-actions .vote { background: transparent; border-color: var(--ink); color: var(--ink); border-radius: 0; box-shadow: 2px 2px 0 var(--accent); }
.post-actions .vote[aria-pressed=true] { background: var(--accent); border-color: var(--ink); color: #fff8ed; box-shadow: 2px 2px 0 var(--ink); }
.empty { background: #f4efe580; border-color: var(--ink); }
dialog { background: #f4efe5; border-color: var(--ink); border-radius: 0; box-shadow: 8px 8px 0 var(--accent); }
dialog::backdrop { background: #17161299; backdrop-filter: blur(2px); }
dialog input, dialog textarea, dialog select { background: #fffaf1; border-color: var(--ink); border-radius: 0; color: var(--ink); caret-color: var(--accent); }
.form-error { color: #9e2410 !important; }
.pending-comment, .comment-status { color: #9e2410; }
#toast { background: var(--ink); border-color: var(--accent); border-radius: 0; color: #fff8ed; box-shadow: 4px 4px 0 var(--accent); }
.popular-sidebar { background: #f4efe5; border-color: var(--ink); border-radius: 0; }
.sidebar-title h2, .sidebar-footer p, .thread-number { color: var(--accent); }

@media(max-width:760px) {
  .community-layout { border-right: 0; }
  .post:nth-child(3n+2) { margin-left: 0; }
  .post h2 { font-size: 25px; letter-spacing: -1px; }
}

/* A single reading column, without section chrome or a sidebar. */
.community-layout { display: block; max-width: 940px; }
