/* Base */
:root {
  --ink: #222;
  --ink-soft: #555;
  --bg: #fff;
  --bg-page: #f6f7f8;
  --line: #dcdfe3;
  --chip: #eef1f4;
  --accent: #0a66c2; /* soft blue for links */
}
/* Load OCR-A */
@font-face {
  font-family: "OCR A";
  src: url("/fonts/OCR-A Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Load Zilla Slab (regular) */
@font-face {
  font-family: "Zilla Slab";
  src: url("/public/fonts/ZillaSlab-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* 👇 use Zilla Slab globally */
body {
  margin: 0;
  font-family:
    "OCR A",
    monospace,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-page);
}

/* Make form controls inherit the same font */
:where(button, input, select, textarea) {
  font: inherit;
}

/* Top mini strip like LFS’s subproject bar */
.strip {
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.strip-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  justify-content: space-between;
}
.mini-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mini-links a {
  color: #444;
  text-decoration: none;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
}
.mini-links a:hover {
  background: var(--chip);
}

/* Simple search (non-functional placeholder) */
.search input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  min-width: 180px;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand {
  max-width: 1100px;
  margin: auto;
  padding: 16px 12px;
  display: flex;
  gap: 14px;
  align-items: center;
}

/* If your logo is an <img>, style it like this */
.logo {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain; /* or 'cover' if you prefer cropped fit */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
}

.titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600; /* Regular is 400; 600 looks nice without faux-bolding too hard */
  letter-spacing: 0.2px;
  /* no font-family here so it inherits Zilla Slab */
}
.titles h1 span {
  color: var(--accent);
}
.titles .tagline {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* Layout */
.layout {
  max-width: 1100px;
  margin: 16px auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
}

/* Sidebar */
.sidebar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar li {
  margin: 4px 0;
}
.sidebar a {
  display: block;
  padding: 6px 8px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
}
.sidebar a:hover {
  background: var(--chip);
}
.sidebar a.active {
  background: #e8eef9;
  color: #0a3d7a;
  font-weight: 600;
}

/* Main content */
.content {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
}
.content h2 {
  margin-top: 0;
}
.bullets,
.link-list {
  padding-left: 18px;
}
a {
  color: var(--accent);
}
a:hover {
  text-decoration: none;
}

/* Footer */
.site-footer {
  max-width: 1100px;
  margin: 24px auto;
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* Responsive: collapse sidebar on small screens */
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;
  }
  .content {
    order: 1;
  }
  .search input {
    min-width: 140px;
  }
}
