:root {
  color-scheme: light;
  --page: #c0c0c0;
  --paper: #efefef;
  --ink: #000;
  --blue: #0000ee;
  --visited: #551a8b;
  --red: #a40000;
  --green: #006400;
  --amber: #8a5600;
}

.dropcap::first-letter {
      float: left;
      margin: 2px 7px 0 0;
      color: var(--red);
      font-size: 54px;
      font-weight: 700;
      line-height: 0.78;
    }

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 4px),
    var(--page);
}

a { color: var(--blue); text-decoration: underline; }
a:visited { color: var(--visited); }
a:hover { color: #fff; background: var(--blue); text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f0f;
  outline-offset: 2px;
}

hr {
  height: 0;
  margin: 22px 0;
  border: 0;
  border-top: 2px groove #fff;
}

code { font-family: "Courier New", monospace; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px;
  color: #fff;
  background: #000;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site {
  width: min(1140px, calc(100% - 24px));
  margin: 14px auto 38px;
  border: 2px outset #fff;
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.22);
}

.browser-bar {
  display: flex;
  min-height: 29px;
  align-items: center;
  gap: 7px;
  padding: 4px 7px;
  border-bottom: 2px groove #fff;
  color: #fff;
  font: 700 12px Arial, sans-serif;
  background: linear-gradient(90deg, #000080, #1084d0);
}

.browser-icon {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #fff;
  color: #000080;
  font-family: "Times New Roman", serif;
  background: #fff;
}

.browser-back {
  display: inline-grid;
  width: 23px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px outset #ddd;
  color: #000;
  font: 700 14px/1 Arial, sans-serif;
  text-decoration: none;
  background: #c0c0c0;
}

.browser-back:visited { color: #000; }
.browser-back:hover { color: #000; background: #e2e2e2; }
.browser-back:active { border-style: inset; }

.browser-controls { display: flex; gap: 3px; margin-left: auto; }
.browser-controls i { width: 16px; height: 14px; border: 2px outset #ddd; background: #c0c0c0; }

.address-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-bottom: 2px groove #fff;
  font: 11px Arial, sans-serif;
}

.address-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  padding: 4px 6px;
  border: 2px inset #fff;
  white-space: nowrap;
  background: #fff;
  text-overflow: ellipsis;
}

.theme-button {
  min-width: 118px;
  white-space: nowrap;
}

.button {
  display: inline-block;
  min-height: 29px;
  padding: 5px 11px;
  border: 2px outset #fff;
  color: #000;
  cursor: pointer;
  font: 12px Arial, sans-serif;
  text-decoration: none;
  background: #c0c0c0;
}

.button:hover { color: #000; background: #d7d7d7; }
.button:active { border-style: inset; }
.page { padding: 12px 18px 24px; }
.masthead { text-align: center; }

.top-note {
  margin: 5px 0 13px;
  font: 11px "Courier New", monospace;
  letter-spacing: 0.08em;
}

.masthead h1 {
  margin: 4px 0 2px;
  font-size: clamp(38px, 8vw, 86px);
  letter-spacing: -0.06em;
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 3px 3px 1 #aaa;
}

.masthead h1 span { color: var(--red); }
.masthead-tagline { margin: 10px 0 13px; font-size: clamp(15px, 2vw, 20px); font-weight: 700; }

.marquee-shell {
  overflow: hidden;
  margin: 12px 0;
  padding: 5px 0;
  border: 1px solid #000;
  color: #fff;
  font: 700 12px "Courier New", monospace;
  background: #000;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: old-scroll 28s linear infinite;
}

.marquee-track > span { flex: 0 0 auto; padding-right: 18px; }

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 3px;
  padding: 4px;
  border: 2px inset #fff;
  font: 700 12px Arial, sans-serif;
  background: #aaa;
}

.primary-nav a {
  display: inline-flex;
  min-height: 34px;
  flex: 1 1 92px;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 2px outset #fff;
  color: #000;
  text-align: center;
  text-decoration: none;
  background: #d4d0c8;
}

.primary-nav a:visited { color: #000; }
.primary-nav a:hover { color: #000; background: #eee; }
.primary-nav a:active { border-style: inset; }
.primary-nav a[aria-current="page"] { border-style: inset; background: #fff; }

.jump-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 16px;
  margin: 0 -18px;
  padding: 8px 12px;
  border-top: 2px groove #fff;
  border-bottom: 2px groove #fff;
  font: 700 12px Arial, sans-serif;
  background: #c0c0c0;
}

.jump-nav span { color: #444; font-weight: 400; }

.layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 21px;
  align-items: start;
  margin-top: 18px;
}

.sidebar { display: grid; gap: 13px; }
.box { border: 2px groove #fff; background: #ddd; }

.box-title {
  margin: 0;
  padding: 5px 7px;
  color: #fff;
  font: 700 12px Arial, sans-serif;
  text-transform: uppercase;
  background: #000080;
}

.box-body { padding: 9px; font-size: 14px; }
.box-body p:first-child { margin-top: 0; }
.box-body p:last-child { margin-bottom: 0; }
.link-list { margin: 0; padding-left: 20px; line-height: 1.75; }
.quick-links li { margin-bottom: 5px; }
.quick-links li:last-child { margin-bottom: 0; }
.quick-links small { display: block; color: #555; font: 10px/1.2 "Courier New", monospace; text-transform: uppercase; }

.service-list { display: grid; gap: 10px; }
.service { padding-bottom: 9px; border-bottom: 1px dotted #777; }
.service:last-child { padding-bottom: 0; border-bottom: 0; }
.service-head { display: flex; justify-content: space-between; gap: 8px; font: 700 11px "Courier New", monospace; }
.service-state.online { color: var(--green); }
.service-state.offline { color: var(--red); }
.service-state.stale { color: var(--amber); }
.service-meta { display: block; margin-top: 4px; font: 14px/1.5 "Courier New", monospace; }
.status-note { margin-top: 9px !important; color: #555; font: 10px/1.4 "Courier New", monospace; }

.hit-counter {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 2px inset #fff;
  color: #0f0;
  font: 15px "Courier New", monospace;
  background: #000;
}

.ascii { overflow-x: auto; margin: 0; color: #111; font: 10px/1 "Courier New", monospace; text-align: center; }
.content { min-width: 0; }
.section { scroll-margin-top: 52px; }
.section h2 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 35px); line-height: 1; }
.section h2::before { content: "[ "; color: var(--red); }
.section h2::after { content: " ]"; color: var(--red); }
.lede { max-width: 720px; font-size: 19px; line-height: 1.45; }

.home-overview-copy {
  min-width: 0;
  padding: 16px;
  border: 2px groove #fff;
  background: #ddd;
}

.home-overview-copy > :first-child { margin-top: 0; }
.home-overview-copy > :last-child { margin-bottom: 0; }
.home-overview .lede { margin: 0; font-size: 17px; }

.home-eyebrow {
  margin: 0 0 6px;
  color: #555;
  font: 700 10px/1.2 "Courier New", monospace;
  letter-spacing: 0.1em;
}

.launch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.launch-card,
.launch-card:visited {
  display: flex;
  min-width: 0;
  min-height: 132px;
  flex-direction: column;
  gap: 7px;
  padding: 11px;
  border: 2px outset #fff;
  color: #000;
  text-decoration: none;
  background: #efefef;
}

.launch-card:hover {
  color: #000;
  border-style: inset;
  text-decoration: none;
  background: #fff;
}

.launch-card:focus-visible { outline: 3px solid #f0f; outline-offset: 2px; }
.launch-card-topline { display: flex; justify-content: space-between; gap: 8px; color: #555; font: 700 9px/1.2 "Courier New", monospace; }
.launch-card strong { font-size: 18px; line-height: 1.1; text-decoration: underline; }
.launch-card > span:nth-child(3) { flex: 1; font-size: 13px; line-height: 1.35; }
.launch-card small { color: #555; font: 700 9px/1.2 "Courier New", monospace; text-transform: uppercase; }

.service-directory { display: grid; gap: 18px; }
.service-group { display: grid; gap: 8px; }
.service-group h3 { margin: 0; font: 700 12px "Courier New", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-card { min-width: 0; padding: 12px; border: 2px outset #fff; background: #ddd; }
.service-card-heading { display: flex; min-height: 14px; align-items: start; justify-content: space-between; gap: 8px; }
.service-card h4 { margin: 9px 0 7px; font-size: 20px; }
.service-card p { margin: 7px 0; line-height: 1.35; }
.service-type,
.service-access { color: #555; font: 10px/1.35 "Courier New", monospace; text-transform: uppercase; }
.service-access { margin-top: 12px !important; }
.external-mark { color: #555; font: 12px Arial, sans-serif; }

.directory {
  width: 100%;
  border-collapse: collapse;
  border: 2px outset #000000;
  font: 13px Arial, sans-serif;
  background: #fff;
}

.directory th,
.directory td { padding: 7px 8px; border-right: 1px solid #aaa; border-bottom: 1px solid #aaa; text-align: left; }
.directory td:nth-child(2), .directory td:nth-child(3) { font: 11px "Courier New", monospace; white-space: nowrap; }
.new { color: var(--red); font-size: 10px; font-weight: 700; text-transform: uppercase; }

.thread-list { display: grid; gap: 10px; }
.thread-preview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  padding: 11px 12px;
  border: 1px dotted #555;
  background: #fff;
}
.thread-preview-copy { min-width: 0; }
.thread-preview-media {
  display: block;
  width: 112px;
  height: 88px;
  overflow: hidden;
  border: 2px inset #fff;
  color: #840000;
  font-family: "Courier New", monospace;
  text-align: center;
  text-decoration: none;
  background: #ccc;
}
.thread-preview-media:hover { color: #840000; background: #ddd; }
.thread-preview-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thread-preview-missing {
  display: grid;
  place-content: center;
  background: repeating-linear-gradient(135deg, #eee 0 8px, #d7d7d7 8px 16px);
}
.thread-preview-missing strong { display: block; font-size: 25px; line-height: 1; }
.thread-preview-missing span { display: block; margin-top: 4px; font-size: 8px; font-weight: 700; }
.thread-preview h3 { margin: 0 0 6px; font-size: 19px; }
.thread-preview p { margin: 6px 0; line-height: 1.4; }
.thread-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font: 10px "Courier New", monospace; }
.thread-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: 12px; }
.empty-state { padding: 16px; border: 1px dotted #555; background: #fff; }

.poll-card { max-width: 690px; padding: 16px; border: 2px groove #fff; background: #ddd; }
.poll-card h3 { margin-top: 0; font-size: 23px; }
.poll-home-grid { display: grid; gap: 14px; }
.poll-home-card { max-width: none; }
.poll-home-card > :last-child { margin-bottom: 0; }
.poll-home-winner { border-color: var(--green); }
.poll-home-options { display: grid; gap: 5px; margin: 14px 0; padding-left: 24px; }
.poll-home-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 16px; }
.poll-options { display: grid; gap: 8px; margin: 16px 0; }
.poll-option { display: grid; grid-template-columns: 20px 1fr; gap: 7px; align-items: start; }
.poll-option input { margin-top: 3px; }
.poll-source { display: inline-block; margin-left: 5px; color: var(--amber); font: 700 9px "Courier New", monospace; }
.write-in-box { margin-top: 18px; padding-top: 13px; border-top: 1px dotted #555; }
.write-in-box h3 { margin-bottom: 6px; font-size: 18px; }
.write-in-box form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.write-in-box label { width: 100%; font-weight: 700; }
.write-in-input { min-width: min(100%, 360px); min-height: 29px; padding: 5px 7px; border: 2px inset #fff; color: #000; background: #fff; }
.poll-result { margin: 12px 0; }
.poll-result-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.poll-meter { height: 18px; margin-top: 4px; border: 2px inset #fff; background: #fff; }
.poll-meter span { display: block; height: 100%; min-width: 2px; background: #000080; }
.poll-meta { color: #555; font: 11px/1.45 "Courier New", monospace; }
.poll-archive { display: grid; gap: 14px; }
.poll-archive-card { max-width: none; }
.poll-archive-card h2 { margin: 5px 0 10px; font-size: 22px; }
.poll-result-page { max-width: 760px; }
.poll-winner { padding: 8px; border: 2px solid var(--green); background: #f0fff0; }
.change-report { padding: 12px; border: 1px dotted #555; line-height: 1.5; background: #fff; }
.notice { margin: 13px 0; padding: 10px; border: 2px groove #fff; font-weight: 700; background: #fffdc7; }
.notice.error { color: #700; background: #ffd9d9; }

.footer { padding: 0 18px 22px; font-size: 12px; text-align: center; }
.footer p { margin: 8px 0; }
.best-viewed { font: 10px "Courier New", monospace; text-transform: uppercase; }

.dark-mode {
  color-scheme: dark;
  --page: #565856;
  --paper: #1d1f21;
  --ink: #c5c8c6;
  --blue: #81a2be;
  --visited: #b294bb;
  --red: #aa4444;
  --green: #b5bd68;
  --tomorrow-panel: #282a2e;
  --tomorrow-panel-alt: #232428;
  --tomorrow-border: #111;
  --tomorrow-muted: #969896;
  --tomorrow-hover: #5f89ac;
  --tomorrow-yellow: #f0c674;
  --tomorrow-orange: #de935f;
}

.dark-mode .site { border-color: #111; box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35); }
.dark-mode .browser-bar { border-bottom-color: #111; background: #282a2e; }
.dark-mode .address-bar { border-bottom-color: #111; }
.dark-mode hr { border-top: 1px solid #282a2e; }
.dark-mode .box,
.dark-mode .primary-nav,
.dark-mode .jump-nav,
.dark-mode .poll-card,
.dark-mode .button,
.dark-mode .directory th { color: #c5c8c6; border-color: #111; background: #282a2e; }

.dark-mode .directory,
.dark-mode .service-card,
.dark-mode .thread-preview,
.dark-mode .empty-state { color: #c5c8c6; background: #282a2e; }
.dark-mode .directory td,
.dark-mode .primary-nav,
.dark-mode .primary-nav a,
.dark-mode .service-card,
.dark-mode .thread-preview,
.dark-mode .box,
.dark-mode .poll-card,
.dark-mode .jump-nav,
.dark-mode .button,
.dark-mode .address-value,
.dark-mode .browser-icon { border-color: #111; }
.dark-mode .primary-nav { background: #111; }
.dark-mode .primary-nav a { color: #c5c8c6; background: #282a2e; }
.dark-mode .primary-nav a:visited { color: #c5c8c6; }
.dark-mode .primary-nav a:hover,
.dark-mode .primary-nav a[aria-current="page"] { color: #1d1f21; background: #81a2be; }
.dark-mode .jump-nav span,
.dark-mode .quick-links small,
.dark-mode .status-note,
.dark-mode .home-eyebrow,
.dark-mode .launch-card-topline,
.dark-mode .launch-card small,
.dark-mode .service-type,
.dark-mode .service-access,
.dark-mode .external-mark { color: #969896; }
.dark-mode .thread-preview-missing {
  color: #cc6666;
  background: repeating-linear-gradient(135deg, #282a2e 0 8px, #232428 8px 16px);
}
.dark-mode .ascii { color: #c5c8c6; }
.dark-mode .address-value,
.dark-mode .poll-meter { color: #c5c8c6; background: #282a2e; }
.dark-mode .poll-meter span { background: #81a2be; }
.dark-mode .poll-meta { color: #969896; }
.dark-mode .poll-source { color: #f0c674; }
.dark-mode .write-in-input { color: #c5c8c6; border-color: #111; background: #1d1f21; }
.dark-mode .poll-winner { border-color: #b5bd68; background: #293027; }
.dark-mode .change-report,
.dark-mode .notice { color: #c5c8c6; border-color: #111; background: #282a2e; }
.dark-mode .notice.error { color: #cc6666; background: #3a171c; }
.dark-mode .browser-back { color: #c5c8c6; border-color: #111; background: #282a2e; }
.dark-mode .browser-back:hover { color: #1d1f21; background: #81a2be; }
.dark-mode .browser-icon { color: #1d1f21; background: #c5c8c6; }
.dark-mode .button:hover { color: #c5c8c6; background: #373b41; }
.dark-mode .home-overview-copy { color: #c5c8c6; border-color: #111; background: #282a2e; }
.dark-mode .launch-card,
.dark-mode .launch-card:visited { color: #c5c8c6; border-color: #111; background: #1d1f21; }
.dark-mode .launch-card:hover { color: #1d1f21; background: #81a2be; }
.dark-mode a:hover { color: #5f89ac; background: transparent; text-decoration: underline; }

@media (max-width: 520px) {
  .theme-button {
    min-width: 0;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@keyframes old-scroll { to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  .site { width: calc(100% - 12px); margin-top: 6px; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2); }
  .page { padding-right: 12px; padding-left: 12px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); order: 2; }
  .content { order: 1; }
  .jump-nav { margin-right: -12px; margin-left: -12px; }
}

@media (max-width: 500px) {
  .browser-controls, .address-label { display: none; }
  .masthead h1 { font-size: 46px; }
  .primary-nav a { flex-basis: calc(33.333% - 3px); }
  .launch-grid { grid-template-columns: 1fr; }
  .launch-card { min-height: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .thread-footer { align-items: start; flex-direction: column; }
  .thread-preview { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
  .thread-preview-media { width: 84px; height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
