/* Darkpost text-mode interface. Fonts and artwork are served locally. */
@font-face { font-family: Terminal; src: url('fonts/VT323-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
/* Change these colours to change the whole site. */
:root {
  --bg: #000000;
  --text: #eeeeee;
  --muted: #a6a6a6;
  --green: #ff4d5a; /* Accent colour; the existing variable name is retained. */
  --bright: #ffffff;
  --line: #a6424c;
  --panel: #0c0c0c;
  --mono: Terminal, 'Courier New', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--text); background: var(--bg); font: 22px/1.18 var(--mono); font-weight: 400; }
::selection { color: var(--bg); background: var(--bright); }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--bg); background: var(--green); }
button, input, textarea, select { font: inherit; font-weight: 400; border-radius: 0; }
button { cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1px solid var(--bright); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; font-size: inherit; font-weight: 400; }
h1 { font-size: 28px; line-height: 1.15; margin-bottom: 12px; text-transform: uppercase; color: var(--bright); }
h2 { font-size: 23px; color: var(--green); }
h3 { margin-bottom: 0; }
strong, b { font-weight: 400; color: var(--green); }
input, textarea, select { border: 1px solid var(--line); background: var(--panel); color: var(--bright); padding: 3px 8px; min-width: 0; max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
textarea { resize: vertical; line-height: 1.25; }
input[type=file] { font-size: 19px; }
select { cursor: pointer; }
small { color: var(--muted); font-size: 19px; }
hr { border: 0; border-top: 1px dashed var(--line); width: 100%; margin: 12px 0; }
code { color: var(--bright); font: inherit; }
.muted { color: var(--muted); }
.bright { color: var(--bright); }
.skip { position: absolute; left: 10px; top: -100px; z-index: 110; background: var(--green); color: var(--bg); padding: 5px 12px; }
.skip:focus { top: 10px; }
/* Fill the browser window; change the side padding here for more/less space. */
.shell { width: 100%; min-height: 100vh; min-height: 100svh; margin: 0; padding: 16px clamp(16px, 3vw, 64px) 0; background: var(--bg); display: flex; flex-direction: column; }
.page-content { flex: 1; min-width: 0; }
.system-strip { display: flex; justify-content: space-between; gap: 2ch; border-bottom: 1px solid var(--line); padding-bottom: 6px; color: var(--muted); font-size: 18px; }
.system-strip span:last-child { text-align: right; overflow-wrap: anywhere; }
.masthead { text-align: center; padding: 22px 0 16px; }
.wordmark { display: inline-block; max-width: 90%; }
.wordmark:hover { background: none; }
.wordmark img { display: block; width: 576px; max-width: 100%; height: auto; image-rendering: pixelated; }
.wordmark-sub { margin: 2px 0 12px; color: var(--green); font-size: 18px; }
.connection { color: var(--muted); margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.main-nav { display: flex; gap: 5px 1.7ch; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 21px; }
.main-nav > a, .main-nav button { white-space: nowrap; }
.main-nav a[aria-current] { color: var(--bg); background: var(--green); }
.main-nav span { color: var(--bright); }
.main-nav a:hover span, .main-nav a[aria-current] span, .main-nav button:hover span { color: inherit; }
.main-nav form { margin: 0; display: inline-flex; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--green); line-height: inherit; font-size: inherit; }
.text-button:hover { color: var(--bg); background: var(--green); }
.bulletin { margin: 20px 0 24px; }
.bulletin > div { margin: 4px 0; }
.system-totals { color: var(--muted); font-size: 19px; padding-top: 6px; }
.area-directory { position: relative; border: 1px solid var(--line); padding: 12px 14px 8px; margin: 14px 0 26px; scroll-margin-top: 20px; }
.section-label { position: absolute; top: -12px; left: 12px; background: var(--bg); padding: 0 8px; margin: 0; font-size: 20px; }
.area-caption, .area-row { display: grid; grid-template-columns: 4ch 15ch minmax(0,1fr) 6ch; gap: 1ch; align-items: baseline; padding: 2px 0; }
.area-caption { color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 5px; margin-bottom: 3px; font-size: 18px; }
.area-row { color: var(--text); }
.area-row > :last-child, .area-caption > :last-child { text-align: right; }
.area-row > :first-child { color: var(--muted); }
.area-row strong { color: var(--green); }
.area-row.selected > :first-child::before { content: '>'; position: absolute; left: 2px; color: var(--bright); }
.area-row:hover { color: var(--bg); }
.area-row:hover * { color: inherit; }
.list-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1ch; margin-bottom: 9px; }
.list-heading h2 { color: var(--bg); background: var(--green); margin: 0; padding: 0 7px; font-size: 21px; }
.list-heading > a { font-size: 20px; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 16px; padding: 5px 0 12px; font-size: 20px; }
.search { display: flex; flex: 1; align-items: baseline; gap: 8px; min-width: 0; }
.search input { width: 100%; padding: 0 7px; background: transparent; border: 0; border-bottom: 1px dashed var(--line); }
.sort-label { display: flex; align-items: baseline; gap: 8px; }
.sort-label select { border: 0; padding: 0; background: var(--bg); font-size: 20px; }
.button { display: inline-block; color: var(--green); border: 0; background: transparent; padding: 0; font-size: 21px; line-height: 1.25; text-align: center; cursor: pointer; border-radius: 0; }
.button:hover { background: var(--green); color: var(--bg); }
.button.primary { color: var(--bg); background: var(--green); padding: 2px 10px; }
.button.primary:hover { background: var(--bright); }
.button.small { font-size: 20px; }
.search-summary { margin: 8px 0 12px; }
.table-caption, .thread-row { display: grid; grid-template-columns: 5ch minmax(0,1fr) 12ch 4ch 8ch; column-gap: 1ch; align-items: baseline; }
.table-caption { font-size: 18px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
.table-caption > :nth-last-child(-n+2) { text-align: right; }
.thread-row { padding: 7px 0 6px; border-bottom: 1px dotted var(--line); }
.thread-number { font-size: 20px; color: var(--muted); position: relative; white-space: nowrap; }
.thread-number > span { color: var(--bright); }
.thread-summary { min-width: 0; }
.thread-summary h3 { font-size: 22px; line-height: 1.1; margin: 0; }
.thread-summary h3 a { display: block; width: max-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-tags { display: flex; flex-wrap: wrap; gap: 1ch; font-size: 17px; color: var(--muted); margin-top: 2px; }
.thread-tags > a { color: var(--muted); }
.thread-tags > a:hover { color: var(--bg); }
.thread-author { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 20px; }
.reply-count, .thread-time { color: var(--muted); font-size: 19px; text-align: right; white-space: nowrap; }
.reply-count strong { color: inherit; }
.pinned .thread-summary h3 a { color: var(--bright); }
.pinned .thread-summary h3 a:hover { color: var(--bg); }
.list-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 9px 0 14px; color: var(--muted); font-size: 18px; }
.pagination { display: flex; gap: 1.5ch; }
.empty-state { min-height: 110px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.empty-state p { margin-bottom: 8px; }
.footer { border-top: 1px solid var(--line); margin-top: 18px; }
.command-line { display: flex; align-items: center; gap: 1ch; padding: 10px 0; font-size: 23px; }
.command-line > :first-child { color: var(--bright); }
.menu-hint { color: var(--muted); }
.block-cursor { color: var(--green); font-size: 20px; }
.footer-tools { display: flex; gap: 5px 2ch; flex-wrap: wrap; padding: 4px 0 12px; font-size: 18px; }
.footer-tools > .muted { margin-left: auto; }
.board-heading { padding: 20px 0 8px; }
.board-heading h1 { font-size: 25px; }
.board-heading p { margin-bottom: 18px; color: var(--muted); }
.notice { margin: 15px 0; border-left: 3px solid var(--green); padding: 7px 12px; background: var(--panel); color: var(--bright); }
.notice.error { border: 1px dashed var(--bright); background: transparent; }
.form-page, .compose-page, .readme-page, .admin-page { margin: 25px 0 35px; }
.form-page { max-width: 62ch; }
.compose-page { max-width: none; }
.page-intro { color: var(--muted); font-size: 20px; margin-bottom: 20px; }
.eyebrow { color: var(--muted); font-size: 18px; margin-bottom: 8px; }
.form-panel { border: 1px solid var(--line); background: transparent; }
.panel-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1ch; color: var(--bg); background: var(--green); padding: 1px 9px; font-size: 20px; }
.panel-title > span { color: var(--bg); }
.stacked-form { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; }
.stacked-form label { margin-top: 12px; color: var(--green); }
.stacked-form label:first-of-type { margin-top: 0; }
.stacked-form input, .stacked-form textarea, .stacked-form select { font-size: 22px; }
.stacked-form small { line-height: 1.2; }
.stacked-form > .button { align-self: flex-start; margin-top: 18px; }
.form-panel > .notice { margin: 12px 18px 0; }
.form-help { color: var(--muted); font-size: 19px; margin: 12px 0 0; }
.form-after { margin-top: 14px; font-size: 20px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 2ch; align-items: baseline; flex-wrap: wrap; margin-top: 14px; }
::file-selector-button { font: inherit; color: var(--bg); background: var(--green); border: 0; padding: 1px 7px; cursor: pointer; margin-right: 12px; }
.thread-page { margin: 20px 0; }
.breadcrumb { color: var(--muted); margin-bottom: 15px; font-size: 20px; display: flex; flex-wrap: wrap; gap: 1ch; }
.thread-page-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 2ch; margin-bottom: 12px; }
.thread-page-heading h1 { overflow-wrap: anywhere; font-size: 26px; }
.thread-page-heading > .button { flex-shrink: 0; }
.moderation-bar { display: flex; flex-wrap: wrap; gap: 1ch 3ch; padding: 8px 0; border-block: 1px dashed var(--line); margin-bottom: 15px; font-size: 20px; }
.moderation-bar form, .post-actions form { margin: 0; display: inline-flex; }
.post { margin: 0 0 18px; border-bottom: 1px dashed var(--line); scroll-margin-top: 18px; }
.post:target { outline: 1px solid var(--green); outline-offset: 4px; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 2ch; padding: 6px 0; border-bottom: 1px dotted var(--line); font-size: 20px; }
.post-meta > div { display: flex; gap: 1ch; flex-wrap: wrap; align-items: baseline; }
.post-meta time { font-size: 18px; color: var(--muted); }
.post-avatar { display: none; }
.role-tag, .op-tag { color: var(--bright); font-size: 18px; }
.role-tag::before, .op-tag::before { content: '['; }
.role-tag::after, .op-tag::after { content: ']'; }
.post-content { display: flow-root; padding: 14px 0 16px; }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 22px; line-height: 1.3; }
.greentext { color: var(--green); }
.quote-ref { color: var(--bright); text-decoration: underline; text-underline-offset: 3px; }
.post-image { float: left; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 20px 16px 0; font-size: 18px; }
.post-image img { display: block; max-width: 220px; max-height: 220px; border: 1px solid var(--line); }
.post-image:hover { background: transparent; }
.post-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 2ch; padding-bottom: 7px; font-size: 18px; }
.post-actions a, .post-actions button { color: var(--muted); }
.post-actions a:hover, .post-actions button:hover { color: var(--bg); }
.deleted { color: var(--muted); }
.reply-panel { margin-top: 25px; border: 1px solid var(--line); }
.reply-panel > .notice { margin: 0; border: 0; padding: 12px; }
.guest-reply { padding: 14px 18px; }
.guest-reply p { margin-bottom: 0; }
.guest-reply h2 { margin-bottom: 10px; }
.readme-section, .admin-section { border-top: 1px dashed var(--line); padding: 16px 0 10px; }
.readme-section { line-height: 1.3; }
.readme-section h2 { font-size: 23px; margin-bottom: 12px; }
.readme-section p { margin-bottom: 12px; }
.readme-section ul { padding-left: 3ch; }
.readme-section li { margin-bottom: 8px; }
.admin-section h2 { font-size: 23px; }
.admin-section > .stacked-form { padding-inline: 0; }
.count-label { color: var(--muted); font-size: 18px; margin-left: 1ch; }
.count-label::before { content: '('; }
.count-label::after { content: ')'; }
.table-scroll { overflow-x: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; font-size: 20px; }
th, td { border-bottom: 1px dotted var(--line); padding: 5px 8px; font-weight: 400; }
th { color: var(--bright); }
.report-card { margin: 12px 0; padding: 10px; border: 1px solid var(--line); }
blockquote { border-left: 2px solid var(--line); margin: 10px 0; padding-left: 1.5ch; color: var(--muted); overflow-wrap: anywhere; }
.removed-thread { display: flex; justify-content: space-between; gap: 2ch; padding: 7px 0; }
.error-page { margin: 35px 0; min-height: 220px; }
.error-code { display: block; font-size: 42px; color: var(--bright); margin-bottom: 12px; }
.error-page p { margin: 14px 0 22px; }
.scanlines::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, #00000020 2px, #00000020 3px); }
@media (max-width: 760px) {
  body { font-size: 21px; }
  .shell { padding: 10px 13px 0; }
  .system-strip { font-size: 16px; gap: 1ch; }
  .system-strip > :first-child { max-width: 26ch; }
  .masthead { padding: 20px 0 14px; }
  .wordmark { max-width: 100%; }
  .wordmark-sub { font-size: 15px; white-space: nowrap; letter-spacing: -.35px; }
  .connection { font-size: 19px; }
  .main-nav { font-size: 20px; gap: 5px 1.8ch; }
  .bulletin { font-size: 20px; }
  .area-directory { padding-inline: 10px; }
  .area-caption, .area-row { grid-template-columns: 3ch 12ch minmax(0,1fr) 4ch; column-gap: .8ch; font-size: 20px; }
  .area-caption { font-size: 16px; }
  .area-row.selected > :first-child::before { left: 0; }
  .table-caption, .thread-row { grid-template-columns: 4ch minmax(0,1fr) 4ch 7ch; column-gap: .8ch; }
  .table-caption > :nth-child(3), .thread-author { display: none; }
  .table-caption { font-size: 16px; }
  .thread-summary h3 { font-size: 21px; }
  .thread-number { font-size: 18px; }
  .thread-tags { font-size: 17px; }
  .thread-time, .reply-count { font-size: 17px; }
  .list-heading { align-items: flex-start; gap: 1ch; }
  .list-heading h2 { font-size: 20px; }
  .list-heading > a { font-size: 18px; white-space: nowrap; }
  .search { flex-basis: 100%; }
  .filter-bar { gap: 8px 1.5ch; }
  .filter-bar > .button { margin-left: auto; }
  .list-bottom { font-size: 17px; }
  .command-line { font-size: 21px; }
  .footer-tools { font-size: 17px; gap: 6px 1.5ch; }
  .footer-tools > .muted { margin-left: 0; }
  .post-meta { font-size: 19px; }
  .post-content { padding-block: 12px; }
  .post-text { font-size: 21px; }
  .post-image { float: none; margin-right: 0; }
  .post-image img { max-width: 100%; max-height: 260px; }
  .stacked-form { padding: 14px 12px; }
  .thread-page-heading h1 { font-size: 25px; }
}
@media (max-width: 420px) {
  .shell { padding-inline: 10px; }
  .area-row > :nth-child(3) { font-size: 18px; }
  .area-caption, .area-row { grid-template-columns: 2ch 10ch minmax(0,1fr) 4ch; }
  .wordmark-sub { font-size: 13px; }
  .system-strip { font-size: 15px; }
  .table-caption, .thread-row { grid-template-columns: 4ch minmax(0,1fr) 3ch 6ch; column-gap: .5ch; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }

/* Mail, VPN and account forms use the same terminal screen as the board. */
.page-content > h1:first-child { margin-top: 24px; }
.page-content > h2 { margin-top: 20px; }
.page-content > p { line-height: 1.3; }
.service-form, form.form-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 60ch;
  margin: 18px 0 24px;
}
.service-form label, form.form-card label { margin-top: 10px; color: var(--bright); }
.service-form input, .service-form select, form.form-card input { width: 100%; }
.service-form button, form.form-card button { align-self: flex-start; margin-top: 12px; }
.page-content button:not(.text-button):not(.button) {
  color: var(--green);
  background: transparent;
  border: 0;
  padding: 2px 0;
  text-align: left;
}
.page-content button:not(.text-button):not(.button):hover { color: var(--bg); background: var(--green); }
.address-field { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.address-field input { flex: 1; min-width: 12ch; }
.service-form .checkbox-label { display: flex; align-items: flex-start; gap: 10px; line-height: 1.25; }
.service-form input[type=checkbox], form.form-card input[type=checkbox] { width: auto; margin-top: 4px; }
.help { color: var(--muted); font-size: 19px; line-height: 1.3; }
.account-record { margin-top: 25px; border-top: 1px dashed var(--line); padding-top: 16px; }
.account-record h2 { overflow-wrap: anywhere; }
.account-control { margin-top: 12px; }
.page-content td form { margin: 2px 0; }
