/* ==========================================================
   bosphorify — shared theme
   XP-flavored window chrome shared across home + blog pages
   ========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
}

body {
  background: #d4d0c8;
  font-family: "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Arial, sans-serif;
  font-size: 13px;
  color: #000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.window {
  max-width: 820px;
  width: 100%;
  border: 2px outset #fff;
  background: #ece9d8;
  align-self: flex-start;
}

/* ---- Titlebar ---- */
.titlebar {
  background: linear-gradient(to right, #0a246a, #3a6ea5);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.titlebar-buttons {
  display: flex;
  gap: 2px;
}

.titlebar-buttons span {
  display: inline-block;
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 1px outset #fff;
  text-align: center;
  line-height: 12px;
  font-size: 10px;
  cursor: default;
  color: #000;
}

/* ---- Menubar ---- */
.menubar {
  background: #ece9d8;
  border-bottom: 1px solid #808080;
  padding: 2px 0;
  font-size: 12px;
  display: flex;
}

.menubar a {
  padding: 2px 10px;
  cursor: default;
  text-decoration: none;
  color: #000;
}

.menubar a:hover {
  background: #316ac5;
  color: #fff;
}

.menubar a.menu-link {
  cursor: pointer;
}

.menubar a.menu-active {
  background: #c8c4b6;
  font-weight: bold;
}

.menubar a.menu-active:hover {
  background: #316ac5;
  color: #fff;
}

.menubar .menu-spacer {
  flex: 1;
}

/* ---- Panels ---- */
.panel {
  border-bottom: 1px solid #808080;
}

.panel:last-of-type {
  border-bottom: none;
}

.panel-header {
  background: linear-gradient(to right, #0a246a, #3a6ea5);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header a {
  color: #fff;
  text-decoration: none;
  font-weight: normal;
}

.panel-header a:hover {
  text-decoration: underline;
}

.panel-body {
  padding: 20px;
}

/* ---- Terminal (home) ---- */
.terminal {
  background: #000;
  border: 2px inset #808080;
  padding: 24px;
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.7;
}

.slogan {
  color: #00ff00;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 20px;
}

.terminal p {
  color: #ccc;
  font-size: 13px;
  line-height: 1.6;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #00ff00;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---- Product (home) ---- */
.product-body {
  padding: 20px;
  font-size: 13px;
  line-height: 1.7;
}

.product-body h2 {
  font-size: 16px;
  margin-bottom: 10px;
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
}

.product-body p {
  margin-bottom: 10px;
}

.product-body .specs {
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 12px;
  color: #333;
  margin-top: 12px;
}

/* ---- About (home) ---- */
.about-body {
  padding: 20px;
}

.founders {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.founder {
  flex: 1;
  border: 1px solid #808080;
  background: #fff;
  padding: 12px;
}

.founder strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.founder .role {
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 11px;
  color: #555;
  font-style: italic;
}

.honest {
  font-size: 12px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 14px;
}

.links {
  font-size: 12px;
}

.links a {
  color: #0000ee;
  margin-right: 12px;
}

/* ---- Statusbar ---- */
.statusbar {
  background: #ece9d8;
  border-top: 1px solid #fff;
  padding: 3px 8px;
  font-size: 11px;
  color: #444;
  display: flex;
  justify-content: space-between;
}

.statusbar > div,
.statusbar > a {
  border: 1px inset #808080;
  padding: 1px 8px;
  color: #444;
  text-decoration: none;
}

.statusbar > a:hover {
  color: #0000ee;
}

/* ==========================================================
   Blog — index list + prose
   ========================================================== */

/* Blog index: explorer-style file rows */
.post-list {
  list-style: none;
  border: 1px inset #808080;
  background: #fff;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding: 10px 14px;
  border-bottom: 1px solid #d4d0c8;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list a.post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-list a.post-link:hover {
  background: transparent;
}

.post-list li:hover {
  background: #316ac5;
  color: #fff;
}

.post-list li:hover .post-title,
.post-list li:hover .post-meta,
.post-list li:hover .post-desc {
  color: #fff;
}

.post-list .post-title {
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  color: #0a246a;
}

.post-list .post-meta {
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 11px;
  color: #555;
  margin-top: 3px;
}

.post-list .post-desc {
  font-size: 12px;
  color: #333;
  margin-top: 4px;
  font-style: italic;
  line-height: 1.5;
}

.empty-state {
  padding: 20px;
  text-align: center;
  font-style: italic;
  color: #666;
  font-size: 12px;
}

/* Contact page — links list */
.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px inset #808080;
  background: #fff;
}

.contact-links li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #d4d0c8;
}

.contact-links li:last-child {
  border-bottom: none;
}

.contact-links .contact-label {
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 11px;
  color: #555;
  text-transform: lowercase;
  min-width: 60px;
}

.contact-links a {
  color: #0000ee;
  text-decoration: none;
  font-size: 13px;
  word-break: break-all;
}

.contact-links a:hover {
  text-decoration: underline;
}

/* Blog post — prose styles
   Tuned for long-form readability while keeping the XP palette */
.blog-prose {
  font-family: "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #1a1a1a;
  max-width: 68ch;
  margin: 0 auto;
}

.blog-prose h1 {
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 22px;
  line-height: 1.3;
  color: #0a246a;
  margin: 0 0 0.6em 0;
}

.blog-prose h2 {
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.3;
  color: #0a246a;
  margin: 2em 0 0.4em 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #808080;
}

.blog-prose h3 {
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 14px;
  color: #0a246a;
  margin: 1.6em 0 0.3em 0;
}

.blog-prose p {
  margin: 0 0 1.6em 0;
}

.blog-prose blockquote {
  margin: 0 0 1.6em 0;
  padding: 10px 16px;
  border-left: 3px solid #3a6ea5;
  background: #f5f3eb;
  color: #444;
  font-style: italic;
}

.blog-prose blockquote p {
  margin: 0 0 1em 0;
}

.blog-prose blockquote p:last-child {
  margin-bottom: 0;
}

.blog-prose a {
  color: #0000ee;
  text-decoration: underline;
}

.blog-prose a:visited {
  color: #551a8b;
}

.blog-prose a:hover {
  background: #316ac5;
  color: #fff;
  text-decoration: none;
}

.blog-prose code {
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 12.5px;
  background: #d4d0c8;
  border: 1px inset #808080;
  padding: 0 4px;
}

.blog-prose pre {
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  background: #000;
  color: #00ff00;
  border: 2px inset #808080;
  padding: 14px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0 0 1.6em 0;
}

.blog-prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.blog-prose ul,
.blog-prose ol {
  padding-left: 24px;
  margin: 0 0 1.6em 0;
}

.blog-prose li + li {
  margin-top: 4px;
}

.blog-prose hr {
  border: none;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
  margin: 2em 0;
}

.blog-prose > *:last-child {
  margin-bottom: 0;
}

.blog-prose strong { font-weight: bold; }
.blog-prose em { font-style: italic; }

.blog-prose img {
  max-width: 100%;
  height: auto;
  border: 1px solid #808080;
}

.blog-prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.blog-prose th,
.blog-prose td {
  border: 1px solid #808080;
  padding: 6px 10px;
  text-align: left;
}

.blog-prose thead {
  background: #d4d0c8;
}

/* Post footer-y meta (date + share row, sits below the article) */
.post-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 11px;
  color: #555;
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px dashed #808080;
}

.post-meta-row .post-share {
  font-size: 11px;
  color: #555;
}

.post-meta-row .post-share a {
  color: #0000ee;
  text-decoration: none;
  margin-left: 8px;
}

.post-meta-row .post-share a:hover {
  text-decoration: underline;
}

.post-meta-row .post-share .copy-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  color: #0000ee;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.post-meta-row .post-share .copy-link-btn:hover {
  text-decoration: underline;
}

.post-byline {
  font-style: italic;
}

/* Post footer (back nav) */
.post-footer {
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid #808080;
  font-family: "DejaVu Sans Mono", "Courier New", Courier, monospace;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.post-footer a {
  color: #0000ee;
  text-decoration: none;
}

.post-footer a:hover {
  text-decoration: underline;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  body { padding: 16px 8px; }

  .slogan { font-size: 17px; }

  .terminal { padding: 16px; }

  .founders {
    flex-direction: column;
  }

  .menubar { flex-wrap: wrap; }

  .blog-prose {
    font-size: 13.5px;
  }

  .blog-prose h1 { font-size: 19px; }
  .blog-prose h2 { font-size: 15px; }

  .post-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .post-footer {
    flex-direction: column;
    gap: 6px;
  }

  .contact-links li {
    flex-direction: column;
    gap: 4px;
  }

  .contact-links .contact-label {
    min-width: 0;
  }
}
