/* ==========================================================================
   Site styles: modern, mobile first, light/dark theme. No frameworks.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-contrast: #ffffff;
  --accent-soft: #ccfbf1;
  --header-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
  --code-bg: #0f172a;

  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 60px;
  --wrap: 1100px;
  --prose: 740px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #121a2f;
  --surface-2: #1a2440;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #243049;
  --accent: #5eead4;
  --accent-hover: #99f6e4;
  --accent-contrast: #042f2e;
  --accent-soft: #123b3a;
  --header-bg: rgba(11, 16, 32, 0.85);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --code-bg: #0a0f1e;
  color-scheme: dark;
}

/* Dark mode when JavaScript is off: follow the system */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b1020;
    --surface: #121a2f;
    --surface-2: #1a2440;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #243049;
    --accent: #5eead4;
    --accent-hover: #99f6e4;
    --accent-contrast: #042f2e;
    --accent-soft: #123b3a;
    --header-bg: rgba(11, 16, 32, 0.85);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --code-bg: #0a0f1e;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

.content { flex: 1 0 auto; outline: none; }

img, svg, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  margin: 1.8em 0 0.6em;
  letter-spacing: -0.01em;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--radius-sm);
  transition: top 0.15s;
}
.skip-link:focus { top: 8px; }

.text-center { text-align: center; }
.rounded { border-radius: var(--radius); }

/* --- Layout helpers ------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left));
}
.wrap.narrow { max-width: calc(var(--prose) + 2rem); }
.section { padding-top: 1.5rem; padding-bottom: 3rem; }

/* --- Header / navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-img { border-radius: 50%; width: 36px; height: 36px; object-fit: cover; }
.brand-name { white-space: nowrap; }

.bar-actions { display: flex; align-items: center; gap: 0.25rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }

/* Theme toggle icons */
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
html:not(.js) #theme-toggle { display: none; }

/* Hamburger */
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
html:not(.js) .menu-toggle { display: none; }

/* Mobile nav: panel under the bar */
.site-nav {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0.5rem max(1rem, env(safe-area-inset-left)) 1rem;
}
.js .site-nav { display: none; }
.js .site-nav.open { display: block; }

/* Without JavaScript the menu is simply part of the page flow */
html:not(.js) .bar { flex-wrap: wrap; padding-bottom: 0.5rem; }
html:not(.js) .site-nav { position: static; flex-basis: 100%; order: 3; max-height: none; border: 0; box-shadow: none; padding: 0; background: transparent; }
html:not(.js) .sub { display: block; }

.nav-list, .sub { list-style: none; margin: 0; padding: 0; }

.nav-link, .sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover, .sub-toggle:hover { background: var(--surface-2); color: var(--text); }

.chevron { transition: transform 0.2s; flex: none; }
.sub-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.sub { display: none; padding: 0 0 0.25rem 0.75rem; }
.has-sub.open > .sub { display: block; }
.sub a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
}
.sub a:hover { background: var(--surface-2); color: var(--text); }

/* Desktop nav */
@media (min-width: 900px) {
  .brand { margin-right: 1rem; }
  .site-nav {
    position: static;
    display: block !important;
    flex: 1;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav-list { display: flex; justify-content: flex-end; gap: 0.25rem; }
  .nav-link, .sub-toggle { width: auto; gap: 0.35rem; min-height: 40px; font-weight: 500; }
  .menu-toggle { display: none !important; }

  .has-sub { position: relative; }
  .sub {
    position: absolute;
    right: 0; top: calc(100% + 4px);
    z-index: 10;
    min-width: 200px;
    padding: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .sub a { color: var(--text); }
  /* Invisible bridge over the gap between the button and the menu, so the hover is not lost on the way down */
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  html:not(.js) .has-sub:hover > .sub,
  html:not(.js) .has-sub:focus-within > .sub { display: block; }
}

/* --- Buttons & chips ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-contrast); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0.75rem 0 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover { color: var(--accent-hover); box-shadow: inset 0 0 0 1px var(--accent); }
.chip-count { opacity: 0.7; font-weight: 500; }
.chips-lg .chip { padding: 0.35rem 0.9rem; font-size: 0.95rem; }

/* --- Home hero ------------------------------------------------------------ */
.hero {
  background:
    radial-gradient(900px 300px at 85% -20%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg));
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.hero-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.hero-hello { margin: 0; color: var(--muted); font-weight: 600; }
.hero h1 { margin: 0.1rem 0 0.5rem; font-size: clamp(2rem, 7vw, 3.25rem); }
.hero-sub { margin: 0 0 1.25rem; max-width: 34rem; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

@media (min-width: 700px) {
  .hero-inner { flex-direction: row; align-items: center; gap: 2rem; padding-top: 4rem; padding-bottom: 4rem; }
  .hero-avatar { width: 140px; height: 140px; }
}

.section-title { margin: 0 0 1rem; font-size: 1.35rem; }

/* --- Post cards ------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--accent); transform: translateY(-2px); }
.card-meta { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.85rem; }
.card-title { margin: 0 0 0.4rem; font-size: 1.2rem; }
.card-link { color: var(--text); text-decoration: none; }
.card-link:hover { color: var(--accent); }
/* Whole card is clickable, tag chips stay above the overlay */
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-text { margin: 0 0 0.5rem; color: var(--muted); }
.card .chips { margin-top: auto; padding-top: 0.5rem; position: relative; z-index: 1; }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
}
.pager-info { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 480px) { .pager { flex-wrap: wrap; justify-content: center; } .pager-info { order: -1; width: 100%; text-align: center; } }

/* --- Page / post headings ---------------------------------------------------- */
.page-header {
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.page-header h1 { margin: 0; font-size: clamp(1.75rem, 5.5vw, 2.5rem); }
.page-subtitle { margin: 0.5rem 0 0; color: var(--muted); font-size: 1.1rem; }
.post-meta { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.9rem; }

/* Breadcrumbs */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.5rem; opacity: 0.7; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

#header-gh-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; min-height: 20px; }

/* --- Prose (page & post content) ----------------------------------------- */
.prose { font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: 1.7rem; }
.prose h2 { font-size: 1.45rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 1.2rem; }
.prose h4 { font-size: 1.05rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin-top: 0; margin-bottom: 1.1rem; }
.prose li + li { margin-top: 0.25rem; }
.prose img { border-radius: var(--radius-sm); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose blockquote {
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose iframe { width: 100%; min-height: 320px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* Inline code */
.prose code, .prose kbd {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
/* Code blocks: always dark */
.prose pre, .highlight {
  border-radius: var(--radius-sm);
}
.prose pre {
  padding: 1rem;
  overflow-x: auto;
  background: var(--code-bg);
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-overflow-scrolling: touch;
}
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; }
.prose div.highlighter-rouge { margin-bottom: 1.1rem; }
.prose div.highlighter-rouge pre { margin-bottom: 0; }

/* Tables: scroll sideways on narrow screens */
.prose table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
  -webkit-overflow-scrolling: touch;
}
.prose th, .prose td {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--surface-2); white-space: nowrap; }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }

/* Tables that turn into cards on mobile (page front matter: css-class: cards-table) */
.cards-table table { width: 100%; }
.cards-table td { vertical-align: middle; }
.cards-table td:last-child a {
  display: inline-block;
  margin: 0.15rem 0.3rem 0.15rem 0 !important;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.cards-table td:last-child a:hover { border-color: var(--accent); }
.cards-table td img { display: block; margin: 0 auto; width: 160px; height: 160px; object-fit: contain; max-width: 100% !important; max-height: 160px !important; }

@media (max-width: 700px) {
  .cards-table table,
  .cards-table tbody,
  .cards-table tr,
  .cards-table td { display: block; width: 100%; }
  .cards-table thead { position: absolute; left: -9999px; }
  .cards-table tbody tr:nth-child(even) { background: var(--surface); }
  .cards-table tr {
    margin: 0 0 1rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .cards-table td { padding: 0.2rem 0; border: 0; }
  .cards-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .cards-table td:first-child { text-align: center; padding-bottom: 0.6rem; }
  .cards-table td:first-child::before { display: none; }
  .cards-table td:nth-child(3) { font-weight: 700; font-size: 1.05rem; }
}

/* --- Code window (About me page): editor tab, line numbers and status bar ------------ */
.code-window {
  margin: 0 0 1.5rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-window-bar {
  display: flex;
  background: rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.code-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  background: var(--code-bg);
  border-top: 2px solid #14b8a6;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  margin-bottom: -1px;
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.code-tab-icon { margin-right: 0.55rem; color: #fbbf24; font-weight: 700; }
.prose .code-window pre {
  margin: 0;
  padding: 1rem 1.25rem 1.1rem 0.75rem;
  border-radius: 0;
  background: transparent;
  font-size: 0.95rem;
  line-height: 1.75;
  tab-size: 2;
  counter-reset: line;
}
/* Line numbers (not copied with the text) */
.code-window .line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2ch;
  margin-right: 1.25rem;
  text-align: right;
  color: #64748b;
  user-select: none;
  -webkit-user-select: none;
}
.code-window-status {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 0.25rem 1rem;
  background: #0f766e;
  color: #f0fdfa;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.code-window a { color: inherit; text-decoration: underline dotted; text-underline-offset: 0.2em; }
.code-window a:hover { color: #fff; text-decoration-style: solid; }
@media (max-width: 480px) {
  .prose .code-window pre { font-size: 0.85rem; padding: 0.9rem 0.75rem 1rem 0.5rem; }
  .code-window .line::before { margin-right: 0.75rem; }
}
/* --- Share, post navigation ---------------------------------------------------- */
.share { display: flex; align-items: center; gap: 0.5rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.share-label { color: var(--muted); font-weight: 600; margin-right: 0.25rem; }

.post-nav { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 600px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav-link.next { grid-column: 2; text-align: right; } }
.post-nav-link {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.post-nav-link:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.post-nav-label { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.post-nav-title { display: block; font-weight: 600; }

/* --- Tags page ------------------------------------------------------------------- */
.tag-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.tag-entry {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.entry-date { color: var(--muted); font-size: 0.9rem; }
.linked-section { font-size: 1.25rem; }
.linked-section .fa-tag { color: var(--accent); font-size: 0.9em; }

/* --- Footer ------------------------------------------------------------------------ */
.site-footer {
  flex-shrink: 0;
  margin-top: 2rem;
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.social-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.social:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); transform: translateY(-2px); }
.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: inherit; }

/* --- Comments (third party widgets) ----------------------------------------------- */
#disqus_thread, .utterances { margin-top: 2rem; }

/* --- Motion & print ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .share, .post-nav, #header-gh-btns, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}
