:root {
  --dos-blue: #000084;
  --dos-cyan: #00ffff;
  --dos-yellow: #ffff00;
  --dos-white: #ffffff;
  --dos-black: #000000;
  --dos-gray: #a8a8a8;
}

html { scroll-behavior: smooth; }
body { padding-bottom: 2rem; }
a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
em { font-style: italic; }
em::before, em::after { content: none; }
a em { color: inherit; }
#content.container, .navbar-fixed-top .container { margin-left: auto; margin-right: auto; }
.personal-site { padding-bottom: 2rem; }
.navmargin, .retro-section { scroll-margin-top: 76px; }
.hero-panel { margin-top: 82px; padding: 22px; border: 4px double var(--dos-white); background: var(--dos-black); box-sizing: border-box; }
.portrait-column { text-align: center; }
.retro-portrait { width: min(100%, 280px); border: 5px double var(--dos-cyan); background: var(--dos-black); }
.portrait-caption, .file-label, .listing-command { color: var(--dos-cyan); letter-spacing: .04em; overflow-wrap: anywhere; }
.system-status { display: inline-block; padding: 5px 9px; color: var(--dos-black); background: #00ff00; }
.site-kicker { color: var(--dos-yellow); font-size: 1.15rem; }
.hero-actions .btn { margin: .35rem .35rem .35rem 0; }
.retro-section { margin-top: 42px; }
.page-header { border-bottom: 4px double var(--dos-white); }
.terminal-panel, .timeline-item, .retro-card, .blog-status, .list-entry { padding: 15px; border: 2px solid var(--dos-white); background: rgba(0, 0, 0, .42); box-sizing: border-box; }
.timeline-item, .list-entry { margin-bottom: 16px; }
.timeline-item h3, .retro-card h3, .list-entry h2 { margin-top: 4px; }
.timeline-date { color: var(--dos-yellow); }
.interest-list { margin: 4px 0 0 18px; list-style: square; }
.interest-list li { margin-bottom: 4px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-left: 0; }
.card-grid [class*="span"] { float: none; width: auto; margin-left: 0; }
.retro-card { min-height: 190px; }
.publication-list li { margin-bottom: 10px; }
.social-links a { display: inline-block; margin: 3px 4px 3px 0; }
.language-switcher a { color: var(--dos-yellow) !important; }
.site-footer { margin-top: 40px; }
.single-content img { max-width: 100%; height: auto; }

@media (max-width: 979px) {
  .hero-panel { margin-top: 24px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .language-switcher { float: none !important; }
}

@media (max-width: 600px) {
  .hero-panel { padding: 14px; }
  .hero-copy { margin-top: 18px; }
  .card-grid { grid-template-columns: 1fr; }
}
