/* ==========================================================================
   base.css — structure + reading typography shared by every theme.
   Colors, fonts and decoration live in style.css (the active theme).
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  background: #000;
}

body {
  margin: 0;
  background: #000;
  color: #ddd;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ---- skip link ---------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 6px 10px;
  background: #000;
  border: 1px solid currentColor;
}
.skip:focus { left: 8px; }

/* ---- page frame --------------------------------------------------------- */
.site-header .inner,
.wrap,
.site-footer .inner {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-title { margin: 0; }
.site-title a { text-decoration: none; }
.tagline { margin: 4px 0 0; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-nav li { margin: 0; }
.site-nav a { text-decoration: none; }

main { display: block; min-width: 0; }

.site-footer { font-size: 14px; }
.site-footer p { margin: 0.3em 0; }

/* ---- reading typography ------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 0.5em; }
h1 { font-size: 2em; margin-top: 0.6em; }
h2 { font-size: 1.4em; }
h3 { font-size: 1.15em; }

p, ul, ol, dl, blockquote, pre, table, figure { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.25em; }

blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 1em;
  border-left: 3px solid currentColor;
}

code, kbd, samp, pre {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}
pre {
  overflow-x: auto;
  padding: 12px 14px;
  border: 1px solid #333;
  line-height: 1.5;
}
pre code { font-size: 1em; }

table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 6px 10px; border: 1px solid #333; vertical-align: top; }

figure { margin-left: 0; margin-right: 0; }
figcaption { font-size: 0.85em; margin-top: 6px; }

hr { border: 0; border-top: 1px solid #333; margin: 2em 0; }

abbr[title] { text-decoration: underline dotted; }

sup a { text-decoration: none; }

/* ---- shared components -------------------------------------------------- */

/* list of posts: date + title + tags */
.post-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.post-list li { display: flex; flex-wrap: wrap; gap: 0 14px; padding: 6px 0; margin: 0; }
.post-list time { flex: 0 0 auto; min-width: 7.5em; font-variant-numeric: tabular-nums; }
.post-list a { flex: 1 1 14em; }
.post-list .tags { flex-basis: 100%; font-size: 0.85em; padding-left: 0; }
@media (min-width: 600px) {
  .post-list .tags { padding-left: calc(7.5em + 14px); }
}

.post-meta { font-size: 0.9em; margin-top: -0.2em; }
.post-footer { margin-top: 3em; font-size: 0.95em; }

.footnotes { font-size: 0.9em; }

/* experience entries */
.job { margin-bottom: 2em; }
.job h3 { margin: 0; }
.job .org { margin: 0; }
.job .when { margin: 0 0 0.5em; font-size: 0.9em; }

.sidebar section { margin-bottom: 1.6em; }
.sidebar h2 { font-size: 1em; margin: 0 0 0.5em; }
.sidebar ul { list-style: none; padding: 0; }
.sidebar p { margin: 0 0 0.6em; }

.status-dot { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: currentColor; margin-right: 0.35em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

::selection { color: #000; }
