:root {
  color-scheme: light dark;
  --bg: #fdfdfc;
  --fg: #1f2328;
  --muted: #5d6670;
  --rule: #e2e4e8;
  --link: #1b6ac9;
  --code-bg: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1e1e;
    --fg: #e8e8e8;
    --muted: #a0a6ad;
    --rule: #3a3d42;
    --link: #9fc3e6;
    --code-bg: #2a2c30;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 0 16px;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a { color: var(--link); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

.brand img { display: block; }

.product { color: var(--muted); font-size: 0.95rem; }

main { padding: 1.5rem 0 3rem; }

h1, h2, h3 { line-height: 1.25; }

article > header { margin-bottom: 2rem; }
article > header h1 { margin-bottom: 0.25rem; }

time { color: var(--muted); font-size: 0.95rem; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.post-list a { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.post-list time { display: block; }
.post-list p { margin: 0.25rem 0 0; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

dt { font-weight: 600; }
dd { margin: 0 0 0.75rem 1.5rem; }

img { max-width: 100%; height: auto; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  background: var(--code-bg);
  border-radius: 6px;
}

pre code { padding: 0; background: none; }

/* Required by Zola's Giallo highlighter. */
.giallo-l { display: inline-block; min-height: 1lh; width: 100%; }
.giallo-ln { display: inline-block; user-select: none; margin-right: 0.4em; padding: 0.4em; min-width: 3ch; text-align: right; opacity: 0.8; }

blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

table { border-collapse: collapse; display: block; overflow-x: auto; }
th, td { padding: 0.35rem 0.75rem; border-bottom: 1px solid var(--rule); text-align: left; }

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
