@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

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

html {
  font-family: 'IBM Plex Sans', sans-serif;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 15px;
  font-weight: 400;
}

a { color: #1a56db; text-decoration: none; }
a:visited { color: #1a56db; }
a:hover, a:active { text-decoration: underline; }

h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.3em; line-height: 1.2; }
h2 { font-weight: 600; margin-top: 1.4em; margin-bottom: 0.3em; }
h3 { font-weight: 500; margin-top: 1.2em; margin-bottom: 0.2em; }
h4 { font-weight: 500; margin-top: 1em; margin-bottom: 0.2em; }

p { margin-top: 0; margin-bottom: 0.75em; font-weight: 300; color: #444; line-height: 1.75; font-size: 0.95rem; }

.clearfix { clear: both; }

/* ── Layout ── */
.wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 28px 64px;
}

.columns {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar {
  padding-right: 2em;
  margin-bottom: 2em;
}

.sidebar header {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 12px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.sidebar header a {
  color: #1a1a1a !important;
  text-decoration: none !important;
}

.sidebar .sidebar-sub {
  font-size: 0.78rem;
  color: #888;
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.5;
}

.sidebar .sidebar-sub a {
  color: #888;
  font-size: 0.78rem;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 1em;
  margin-bottom: 2em;
  gap: 2px;
}

@media screen and (min-width: 575px) {
  .wrapper { padding: 48px 28px 64px; }
  .columns { flex-direction: row; }
  .sidebar { width: 22%; min-width: 160px; margin-bottom: 0; }
  .main { width: 78%; padding-left: 2em; border-left: 1px solid #e8e8e8; }
  .menu { flex-direction: column; }
}

@media (max-width: 574px) {
  .wrapper { padding: 28px 18px 48px; }
}

.menu .menu-item,
.menu .menu-item-active {
  text-decoration: none;
  margin: 0.18em 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
}
.menu .menu-item a { color: #1a1a1a; }
.menu .menu-item a:hover { color: #1a56db; text-decoration: none; }
.menu .menu-item-active a { color: #1a56db; font-weight: 600; }
.menu .menu-item.active a { color: #1a56db; font-weight: 600; }

.menu .menu-subitem,
.menu .menu-subitem-active {
  text-decoration: none;
  margin: 0.06em 0 0.06em 0.9em;
  font-size: 0.78rem;
  font-weight: 400;
  color: #888;
}
.menu .menu-subitem a { color: #888; }
.menu .menu-subitem a:hover { color: #1a56db; text-decoration: none; }
.menu .menu-subitem-active a { color: #1a56db; font-weight: 500; }

/* ── Section title (mono label like virtualserv.uk) ── */
.section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
  margin-top: 2em;
}

.main > :first-child { margin-top: 0 !important; margin-left: 0 !important; }
.main > :last-child  { margin-bottom: 0 !important; margin-right: 0 !important; }

/* ── Callout boxes ── */
.callout {
  border-left: 3px solid #1a56db;
  background: #f0f4ff;
  padding: 0.75em 1em;
  margin: 1em 0;
  border-radius: 0 4px 4px 0;
}
.callout-warning {
  border-left: 3px solid #e3a008;
  background: #fffbf0;
  padding: 0.75em 1em;
  margin: 1em 0;
  border-radius: 0 4px 4px 0;
}
.callout-red {
  border-left: 3px solid #e02424;
  background: #fff5f5;
  padding: 0.75em 1em;
  margin: 1em 0;
  border-radius: 0 4px 4px 0;
}
.callout-green {
  border-left: 3px solid #057a55;
  background: #f0faf5;
  padding: 0.75em 1em;
  margin: 1em 0;
  border-radius: 0 4px 4px 0;
}
.callout-grey {
  border-left: 3px solid #9ca3af;
  background: #f9fafb;
  padding: 0.75em 1em;
  margin: 1em 0;
  border-radius: 0 4px 4px 0;
  font-style: italic;
}
.callout-title {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35em;
  color: #555;
}

/* ── Code ── */
pre {
  background-color: #f8f9fa;
  border: 1px solid #e8e8e8;
  padding: 0.9em 1em;
  overflow-x: auto;
  border-radius: 4px;
  line-height: 1.45em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
}
pre::-webkit-scrollbar { display: none; }
code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.84em;
  background-color: #f8f9fa;
  border: 1px solid #e8e8e8;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
pre code { border: none; padding: 0; background: none; font-size: inherit; }
pre.terminal { border: 1px solid #000; background-color: #1e1e1e; color: #f8f8f2; }
pre.terminal code { background-color: #1e1e1e; }

/* ── Lists ── */
ul, ol { margin-left: 1.35em; margin-top: 0.3em; margin-bottom: 0.3em; }
li { margin: 0.15em 0; }

/* ── HR ── */
hr { border: none; border-top: 1px solid #e8e8e8; margin: 1.5em 0; }
hr.postfooter { border-top: 1px solid #e8e8e8; margin: 2em 0 1em 0; }

/* ── Postfooter ── */
.postfooter {
  border-top: 1px solid #e8e8e8;
  margin-top: 3em;
  padding-top: 1em;
  font-size: 0.875rem;
  color: #888;
}
.postfooter a { color: #888; }
.postfooter a:hover { color: #1a56db; text-decoration: underline; }
.postfooter2 { border-top: 1px solid #e8e8e8; margin-top: 3em; }

/* ── Footer ── */
.footer {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid #e8e8e8;
  text-align: center;
  color: #aaa;
  font-size: 0.8rem;
}
.footer a { color: #aaa; border-bottom: none; }
.footer a:hover { color: #1a56db; text-decoration: underline; }
.footer a:visited { color: #aaa; }

/* ── Blockquote ── */
blockquote {
  font-style: italic;
  padding-left: 1em;
  border-left: 3px solid #e8e8e8;
  margin-left: 0;
  color: #555;
}

/* ── Images ── */
img { max-width: 100%; height: auto; }

/* ── Misc ── */
.avatar {
  width: 125px; height: 125px;
  float: left; border-radius: 6px;
  margin-bottom: 1em; margin-right: 2em; margin-top: 1em;
}
.meta { margin-top: 0.3em; font-weight: 300; color: #888; }
mark { background-color: #fef3c7; padding: 0 0.15em; border-radius: 2px; }

.book-detail { margin-top: 2em; margin-bottom: 2em; }
.book-detail h2 { margin-bottom: 0.2em; }
.book-detail .publication-date { font-weight: 300; margin-top: 0; color: #888; }
.book-detail .cover { float: left; margin-top: 10px; margin-right: 10px; }
.book-detail img { height: 126px; width: 100px; }

.posts tr td:first-child,
.talks tr td:first-child,
.podcasts tr td:first-child { min-width: 100px; font-weight: 300; text-align: right; }

ul.values { list-style-type: none; padding-left: 0; }
ul.values li { padding: 0.5em; }

.first-word-uppercase-p::first-letter {
  font-size: 1.4em; font-weight: 600; line-height: 1;
}

/* ── Button (login form) ── */
.button, button, input[type=submit] {
  background-color: #1a56db;
  border: none;
  color: white;
  padding: 8px 20px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
}
.button:hover, button:hover, input[type=submit]:hover {
  background-color: #1e429f;
}

/* ── Table ── */
table.data-table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
table.data-table td, table.data-table th { padding: 6px 10px; border: 1px solid #e8e8e8; }
table.data-table th { background: #f8f9fa; font-weight: 600; }

block { display: inline-block; font-weight: 600; }
