
:root {
  --ink: #000000;
  --paper: #ffffff;
  --bg: #c0c0c0;
  --bg-alt: #dcdcdc;
  --link: #0000ee;
  --visited: #551a8b;
  --active: #ff0000;
  --navy: #000080;
  --maroon: #800000;
  --muted: #555555;
  --rule: #808080;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: "Times New Roman", Times, Georgia, serif;
  line-height: 1.55; font-size: 17px;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.015) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.015) 0 1px, transparent 1px 3px);
}
a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--visited); }
a:hover { color: var(--active); }
a:active { color: var(--active); }
.wrap { max-width: 720px; margin: 0; padding: 0 28px; background: var(--paper); }
.wrap-wide { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.frame { max-width: 720px; margin: 0 auto; border-left: 2px solid var(--navy); border-right: 2px solid var(--navy); background: var(--paper); }
.frame-inner { padding: 0 28px; }

/* Win95 title bar */
.titlebar { background: linear-gradient(180deg, #dfdfdf 0%, #c0c0c0 100%);
  border-top: 2px solid #ffffff; border-left: 2px solid #ffffff;
  border-right: 2px solid #404040; border-bottom: 2px solid #404040;
  padding: 4px 8px; display: flex; justify-content: space-between; align-items: center;
  font-family: "MS Sans Serif", "Tahoma", Geneva, sans-serif; font-size: 13px; }
.titlebar .tb-left { display: flex; align-items: center; gap: 6px; background: var(--navy); color: #ffffff;
  padding: 3px 8px; font-weight: 700; flex: 1; margin-right: 6px; }
.titlebar .tb-icon { display: inline-block; width: 16px; height: 16px; background: #ffffff; color: var(--navy);
  text-align: center; font-weight: 700; font-size: 11px; line-height: 16px; border: 1px solid #000000; }
.titlebar .tb-buttons { display: flex; gap: 2px; }
.titlebar .tb-btn { width: 18px; height: 16px; border-top: 1px solid #ffffff; border-left: 1px solid #ffffff;
  border-right: 1px solid #404040; border-bottom: 1px solid #404040; background: #c0c0c0; text-align: center;
  font-family: "MS Sans Serif", Tahoma, sans-serif; font-size: 10px; line-height: 14px; color: var(--ink); }

/* nav */
nav.site { background: var(--bg-alt); padding: 6px 16px;
  border-top: 1px solid #ffffff; border-bottom: 1px solid #808080;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif; font-size: 13px; }
nav.site .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
nav.site a.brand { color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; }
nav.site a.brand:hover { text-decoration: underline; }
nav.site .links { display: flex; gap: 4px; align-items: center; }
nav.site .links a { color: var(--ink); text-decoration: none; padding: 3px 10px;
  border-top: 1px solid #ffffff; border-left: 1px solid #ffffff;
  border-right: 1px solid #808080; border-bottom: 1px solid #808080;
  background: var(--bg); font-size: 12px; }
nav.site .links a:active, nav.site .links a:hover {
  border-top: 1px solid #808080; border-left: 1px solid #808080;
  border-right: 1px solid #ffffff; border-bottom: 1px solid #ffffff;
}
nav.site .links a.cta { color: var(--maroon); font-weight: 700; }

/* hero on homepage */
.hero { padding: 28px 0 24px; border-bottom: 2px solid var(--navy); }
.hero .kicker { font-family: "Courier New", Courier, monospace; font-size: 12px; color: var(--maroon); margin-bottom: 10px; }
.hero h1 { font-family: "Times New Roman", Times, serif; font-size: 42px; line-height: 1.1; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.hero p { font-size: 16px; color: var(--ink); margin: 0; max-width: 60ch; font-style: italic; }

/* category section header */
.section-head { padding: 28px 0 12px; }
.section-head h2 { font-family: "Times New Roman", Times, serif; font-size: 22px; margin: 0 0 6px; color: var(--maroon); border-bottom: 1px dashed #808080; padding-bottom: 4px; }

/* post card on index */
article.card { padding: 18px 0; border-bottom: 1px dashed #808080; }
article.card:last-of-type { border-bottom: 0; }
article.card .eyebrow { font-family: "Courier New", Courier, monospace; font-size: 11px; color: var(--maroon); margin-bottom: 6px; }
article.card h3 { font-family: "Times New Roman", Times, serif; font-size: 22px; line-height: 1.25; margin: 0 0 6px; font-weight: 700; }
article.card h3 a { color: var(--link); text-decoration: underline; }
article.card h3 a:visited { color: var(--visited); }
article.card h3 a:hover { color: var(--active); }
article.card .subtitle { color: var(--ink); font-size: 15px; margin: 0 0 8px; line-height: 1.45; max-width: 60ch; }
article.card .meta { font-family: "Courier New", Courier, monospace; font-size: 11px; color: var(--muted); }

/* full post */
article.post { padding: 28px 0 24px; }
article.post .eyebrow { font-family: "Courier New", Courier, monospace; font-size: 12px; color: var(--maroon); margin-bottom: 12px; }
article.post .eyebrow a { color: var(--maroon); text-decoration: underline; }
article.post h1 { font-family: "Times New Roman", Times, serif; font-size: 36px; line-height: 1.15; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
article.post .subtitle { font-family: "Times New Roman", Times, serif; font-size: 17px; color: var(--ink); margin: 0 0 16px; line-height: 1.45; font-style: italic; }
article.post .byline { font-family: "Courier New", Courier, monospace; font-size: 12px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
article.post .byline strong { color: var(--ink); font-weight: 700; }
article.post .body { font-size: 16px; line-height: 1.65; }
article.post .body h2 { font-family: "Times New Roman", Times, serif; font-size: 18px; margin: 28px 0 4px; color: var(--maroon); font-weight: 700; }
article.post .body h2::before { content: "=== "; font-family: "Courier New", Courier, monospace; color: var(--navy); }
article.post .body h2::after { content: " ==="; font-family: "Courier New", Courier, monospace; color: var(--navy); }
article.post .body h3 { font-family: "Times New Roman", Times, serif; font-size: 17px; margin: 18px 0 6px; font-weight: 700; color: var(--navy); }
article.post .body p { margin: 0 0 14px; }
article.post .body p strong { color: var(--ink); font-weight: 700; }
article.post .body ul { padding-left: 0; margin: 0 0 14px; list-style: none; }
article.post .body ol { padding-left: 24px; margin: 0 0 14px; }
article.post .body ul li { margin-bottom: 4px; padding-left: 16px; position: relative; }
article.post .body ul li::before { content: "\25aa"; color: var(--navy); position: absolute; left: 0; }
article.post .body ol li { margin-bottom: 4px; }
article.post .body blockquote { border-left: 4px solid var(--navy); padding: 4px 12px; margin: 16px 0; color: var(--ink); font-style: italic; background: var(--bg-alt); }
article.post .body code { background: var(--bg-alt); padding: 1px 4px; font-size: 0.95em; font-family: "Courier New", Courier, monospace; color: var(--maroon); }
article.post .body pre { background: var(--bg-alt); padding: 10px 14px;
  border-top: 1px solid #808080; border-left: 1px solid #808080;
  border-right: 1px solid #ffffff; border-bottom: 1px solid #ffffff;
  overflow-x: auto; font-size: 13px; font-family: "Courier New", Courier, monospace; }
article.post .body pre code { background: transparent; padding: 0; color: var(--ink); }
article.post .body table { border-collapse: collapse; width: 100%; margin: 14px 0 18px; font-size: 14px;
  border: 1px solid var(--rule); }
article.post .body table th { text-align: left; background: var(--navy); color: #ffffff; padding: 6px 10px; font-weight: 700; font-size: 12px; }
article.post .body table td { border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); padding: 6px 10px; }
article.post .body table tr:nth-child(even) td { background: var(--bg-alt); }
article.post .body hr { border: 0; text-align: center; margin: 20px 0; color: var(--navy); }
article.post .body hr::after { content: "= = = = = = = = = = = = = = ="; font-family: "Courier New", Courier, monospace; color: var(--navy); font-size: 13px; }

/* subscribe block */
.subscribe { margin: 28px 0 16px; padding: 16px;
  background: var(--bg);
  border-top: 2px solid #ffffff; border-left: 2px solid #ffffff;
  border-right: 2px solid #404040; border-bottom: 2px solid #404040; }
.subscribe h3 { font-family: "Times New Roman", Times, serif; font-size: 16px; margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.subscribe p { color: var(--ink); margin: 0 0 10px; font-size: 13px; font-family: "MS Sans Serif", Tahoma, sans-serif; }
.subscribe form { display: flex; gap: 6px; max-width: 440px; }
.subscribe input[type=email] { flex: 1; padding: 4px 6px; font-family: "MS Sans Serif", Tahoma, sans-serif; font-size: 12px;
  border-top: 1px solid #404040; border-left: 1px solid #404040;
  border-right: 1px solid #ffffff; border-bottom: 1px solid #ffffff; background: #ffffff; }
.subscribe button { font-family: "MS Sans Serif", Tahoma, sans-serif; font-size: 12px; padding: 4px 14px;
  background: var(--bg);
  border-top: 1px solid #ffffff; border-left: 1px solid #ffffff;
  border-right: 1px solid #404040; border-bottom: 1px solid #404040;
  color: var(--ink); cursor: pointer; }
.subscribe button:active {
  border-top: 1px solid #404040; border-left: 1px solid #404040;
  border-right: 1px solid #ffffff; border-bottom: 1px solid #ffffff;
}

/* status-bar footer */
footer.site { margin-top: 0; padding: 4px 12px;
  background: var(--bg-alt);
  border-top: 1px solid #ffffff;
  color: var(--ink); font-size: 11px; font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif; }
footer.site .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
footer.site a { color: var(--link); text-decoration: underline; }
footer.site a:visited { color: var(--visited); }
footer.site .counter { display: inline-block; background: #000000; color: #00ff00; font-family: "Courier New", Courier, monospace;
  font-size: 11px; padding: 1px 5px; letter-spacing: 1px; border: 1px solid #404040; }
footer.site .browser-note { font-style: italic; color: var(--muted); }

@media (max-width: 600px) {
  .wrap, .frame { max-width: 100%; border: 0; }
  .hero h1 { font-size: 30px; }
  article.post h1 { font-size: 26px; }
  article.post .body { font-size: 15px; }
  article.card h3 { font-size: 18px; }
  .subscribe form { flex-direction: column; }
  nav.site .links { flex-wrap: wrap; }
}
