/*
Theme Name: Ngô Phụng Khánh
Theme URI: https://ngophungkhanh.com
Author: Ngô Phụng Khánh
Author URI: https://ngophungkhanh.com
Description: Theme blog tối giản kiểu tạp chí: một cột đọc, mục lục bên trái, sáng/tối tự động. Lấy cảm hứng từ felixrieseberg.com. Font hỗ trợ tiếng Việt: Archivo, Literata, Fira Sans, JetBrains Mono, VT323.
Version: 2.1.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ngophungkhanh
*/

:root {
  color-scheme: light;
  --ground: #f7f5f0;
  --sheet: #fbfaf7;
  --ink: #1c1b22;
  --soft: #3a3844;
  --muted: #65626f;
  --rule: rgba(28, 27, 34, .14);
  --accent: #2a45c8;
  --on-accent: #fff;
  --codebg: #14151c;
  --codeink: #e6e1d6;
  --shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -24px rgba(20, 18, 30, .35);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --osd: "VT323", ui-monospace, "Courier New", monospace;
  --wrap: 1180px;
  --measure: 660px;
  --read-size: clamp(17.5px, 1.35vw, 19px);
  --read-lh: 1.68;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #08090e;
    --sheet: #0e0f16;
    --ink: #ebe6da;
    --soft: #cfc9bc;
    --muted: #9a97a6;
    --rule: rgba(255, 255, 255, .12);
    --accent: #8aa4ff;
    --on-accent: #0b0a08;
    --codebg: #14151d;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 30px 60px -30px rgba(0, 0, 0, .9);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #08090e;
  --sheet: #0e0f16;
  --ink: #ebe6da;
  --soft: #cfc9bc;
  --muted: #9a97a6;
  --rule: rgba(255, 255, 255, .12);
  --accent: #8aa4ff;
  --on-accent: #0b0a08;
  --codebg: #14151d;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 30px 60px -30px rgba(0, 0, 0, .9);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  padding: 0 16px 70px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, video, iframe { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
  padding: 8px 12px; background: var(--ink); color: var(--ground);
}

/* ------------------------------------------------------------ header */
.site-header {
  position: relative;
  z-index: 11;
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-block: 16px 12px;
}
.site-name {
  margin-right: auto;
  font-family: var(--display);
  font-weight: 850;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 14px;
  text-decoration: none;
}
.site-nav ul { display: flex; gap: 2px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 2px 8px 1px;
  font-family: var(--osd);
  font-size: 19px;
  letter-spacing: .07em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 3px;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current_page_parent > a,
.site-nav .current-menu-ancestor > a { background: var(--ink); color: var(--ground); }
.theme-toggle {
  display: grid; place-items: center;
  width: 32px; height: 28px; margin-left: 6px; padding: 0;
  background: none; border: 1px solid var(--rule); border-radius: 3px;
  color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

/* ------------------------------------------------------------ shared bits */
.main-col { max-width: var(--measure); margin: 0 auto; padding-top: clamp(28px, 6vw, 76px); }
.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* ------------------------------------------------------------ home */
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-dek {
  margin: .55em 0 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  color: var(--soft);
  text-wrap: pretty;
}
.hero-more {
  margin: 14px 0 0;
  padding-bottom: clamp(24px, 4vw, 36px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.hero-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.hero-more a:hover { text-decoration-color: currentColor; }
.hero-image { margin: clamp(24px, 4vw, 36px) 0 0; line-height: 0; border-radius: 4px; overflow: hidden; background: #07080d; }
.hero-image img { width: 100%; display: block; aspect-ratio: 2560 / 1066; object-fit: cover; }

.home-section { margin-top: clamp(40px, 6vw, 60px); scroll-margin-top: 24px; }
.home-section h2 {
  margin: 0 0 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.group-label { margin: 22px 0 2px; }

.item { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.item-title { font-family: var(--serif); font-weight: 500; font-size: 19.2px; line-height: 1.3; color: var(--ink); text-decoration: none; }
a.item-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.item-years { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 56ch; }
.item p a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.item p a:hover { text-decoration-color: currentColor; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.link-list a { font-family: var(--serif); font-weight: 500; font-size: 17px; text-decoration: none; }
.link-list a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.link-list .when { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* post index grouped by year */
.year-group {
  display: grid;
  grid-template-columns: 6ch minmax(0, 1fr);
  gap: 0 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.year-group > .year { font-family: var(--mono); font-size: 12.5px; color: var(--ink); padding-top: 7px; }
.post-index { list-style: none; margin: 0; padding: 0; }
.post-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 16px;
  align-items: baseline;
  padding: 5px 8px;
  margin-inline: -8px;
  border-radius: 3px;
  text-decoration: none;
}
.post-index a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.post-index .t { font-family: var(--serif); font-size: 17px; line-height: 1.4; color: var(--ink); }
.post-index .d { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.view-all { padding: 14px 0 0 calc(6ch + 18px); margin: 0; font-family: var(--mono); font-size: 12.5px; }
.view-all a { text-underline-offset: 3px; text-decoration-color: var(--rule); }

/* ------------------------------------------------------------ article shell */
.post { position: relative; max-width: var(--wrap); margin: 0 auto; }
.post-main { max-width: var(--measure); margin: 0 auto; }

/* sticky strip under the header (posts only) */
.strip {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-inline: -16px;
  background: var(--ground);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}
.strip-in {
  position: relative;
  max-width: calc(var(--wrap) + 32px);
  margin: 0 auto;
  padding: 9px 16px 8px;
  display: flex;
  align-items: center;
  gap: 1.2ch;
  white-space: nowrap;
}
.strip a { text-decoration: none; }
.strip .back { color: var(--accent); }
.strip .back:hover { text-decoration: underline; text-underline-offset: 3px; }
.strip .ttl {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink); text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 13.5px;
  opacity: 0; transition: opacity .25s;
}
.strip.scrolled .ttl { opacity: 1; }
.strip .sub {
  margin-left: auto; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; font-variant-numeric: tabular-nums;
}
.strip .sub:hover { color: var(--ink); }
.strip .sub::after { content: "▼"; font-size: .8em; margin-left: .45ch; vertical-align: .08em; }
.strip .bar { height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.partmenu {
  position: absolute; right: 16px; top: 100%;
  min-width: 240px; max-width: calc(100vw - 32px); margin: 0; padding: 6px;
  list-style: none; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow);
  text-transform: none; letter-spacing: 0; white-space: normal;
}
.partmenu a { display: block; padding: 6px 8px; border-radius: 3px; font-size: 12.5px; color: var(--muted); }
.partmenu a:hover, .partmenu a.here { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }

/* contents rail (left of the column on wide screens) */
.toc { display: none; }
@media (min-width: 1100px) {
  .toc { display: block; position: absolute; top: 0; bottom: 0; left: 0; right: calc(50% + var(--measure) / 2 + 40px); z-index: 0; }
  .toc .rail { position: sticky; top: 70px; padding-top: clamp(34px, 6vw, 76px); font-family: var(--mono); font-size: 12.5px; line-height: 1.35; }
}
.toc nav { max-height: calc(100vh - 70px - 100px); overflow: hidden auto; scrollbar-width: thin; padding: 4px; margin: -4px; }
.toc .h { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.toc a:hover, .toc a.here { color: var(--ink); }

/* head */
.phead {
  padding-block: clamp(34px, 6vw, 76px) clamp(26px, 4vw, 40px);
  border-bottom: 1px solid var(--rule);
}
.phead h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; margin: clamp(22px, 3vw, 32px) 0 0; }
.meta dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); display: flex; gap: .7ch; flex-wrap: wrap; }
.meta dd::before { content: "└"; font-family: var(--mono); color: var(--muted); }
.meta dd a { text-decoration: none; }
.meta dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* body */
.entry-content {
  margin-top: clamp(26px, 4vw, 40px);
  font-family: var(--serif);
  font-size: var(--read-size);
  line-height: var(--read-lh);
  color: var(--soft);
  padding-bottom: 30px;
  overflow-wrap: break-word;
}
.entry-content > * { margin: 0 0 1.15em; }
.entry-content > figure:first-child, .entry-thumb { margin-top: 0; }
.entry-thumb { margin: clamp(26px, 4vw, 40px) 0 0; }
.entry-thumb img { display: block; width: 100%; border-radius: 3px; box-shadow: var(--shadow); }
.entry-thumb + .entry-content { margin-top: 2em; }
.entry-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.entry-content a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.entry-content strong { color: var(--ink); font-weight: 620; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: var(--body); color: var(--ink); font-weight: 700; scroll-margin-top: 80px;
}
.entry-content h2 { font-size: clamp(21px, 1.7vw, 24px); line-height: 1.25; letter-spacing: -.005em; margin: 2.1em 0 .6em; }
.entry-content h3 { font-size: 1.02em; line-height: 1.3; margin: 1.8em 0 .5em; }
.entry-content h4 { font-size: .9em; margin: 1.7em 0 .4em; }
.entry-content h5, .entry-content h6 { font-size: .9em; font-weight: 600; color: var(--muted); margin: 1.6em 0 .35em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin: .3em 0; text-wrap: pretty; }
.entry-content li::marker { color: var(--muted); font-family: var(--mono); font-size: .85em; }
.entry-content blockquote {
  margin: 1.8em 0; padding: 0 0 0 1.1em; border-left: 2px solid var(--accent); color: var(--soft);
}
.entry-content blockquote p { margin: 0 0 .6em; }
.entry-content hr { border: 0; margin: 2.4em 0; text-align: center; overflow: visible; }
.entry-content hr::after {
  content: ""; display: inline-block; width: 11px; height: 13px; vertical-align: middle;
  background: linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px, var(--muted) 7px);
}
.entry-content figure { margin: 2em 0; }
.entry-content img { display: block; margin: 0 auto; border-radius: 3px; box-shadow: var(--shadow); }
.entry-content figcaption {
  margin-top: .8em; font-family: var(--body); font-size: 14.5px; line-height: 1.45; color: var(--muted);
  padding-left: 20px; text-indent: -20px;
}
.entry-content figcaption::before { content: "▲"; font-family: var(--osd); color: var(--accent); font-size: 13px; display: inline-block; width: 20px; text-indent: 0; }
.entry-content :not(pre) > code {
  font-family: var(--mono); font-size: .84em; background: var(--rule); color: var(--ink);
  padding: .1em .35em; border-radius: 3px; word-break: break-word;
}
.entry-content pre {
  margin: 1.8em 0; padding: 16px 18px; overflow: auto; border-radius: 4px;
  background: var(--codebg); color: var(--codeink); font-family: var(--mono); font-size: 14.5px; line-height: 1.6; tab-size: 2;
}
.entry-content pre code { font: inherit; background: none; padding: 0; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--body); font-size: 15.5px; }
.entry-content th, .entry-content td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; }
.entry-content mark { background: rgba(255, 179, 65, .36); color: inherit; padding: 0 .12em; border-radius: 2px; }
.entry-content kbd { font-family: var(--mono); font-size: .85em; padding: .06em .36em; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 3px; background: var(--sheet); color: var(--ink); }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.page-links { font-family: var(--mono); font-size: 13px; }

/* end of post */
.pend { margin: 10px 0 0; padding-bottom: 50px; }
.ende { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); text-align: center; margin: 10px 0 36px; }
.author {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.author .av, .author img { width: 52px; height: 52px; border-radius: 2px; object-fit: cover; display: block; }
.author p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.author strong { color: var(--ink); font-weight: 700; }
.entry-tags { margin: 22px 0 0; font-family: var(--mono); font-size: 12px; display: flex; gap: 6px 10px; flex-wrap: wrap; }
.entry-tags a { color: var(--muted); text-decoration: none; padding: 2px 8px; border: 1px solid var(--rule); border-radius: 2px; }
.entry-tags a:hover { color: var(--ink); border-color: var(--muted); }

.nextprev { margin-top: 26px; font-family: var(--mono); font-size: 14px; }
.nextprev .lbl { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.nextprev a { display: block; padding: 12px 0 13px; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.nextprev a:hover { background: var(--sheet); }
.nextprev a:hover .tt { text-decoration: underline 1px var(--accent); text-underline-offset: 3px; }
.nextprev .k { display: block; font-size: 11px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.nextprev .tt { font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.3; text-wrap: balance; }

/* ------------------------------------------------------------ archive / search */
.archive-head { padding-bottom: clamp(22px, 3vw, 30px); border-bottom: 1px solid var(--rule); }
.archive-head .hero-title { margin-top: .4em; }
.archive-head p:not(.label) { margin: 10px 0 0; color: var(--soft); font-family: var(--serif); }
.archive-list { margin-top: 8px; }
.pagination { display: flex; justify-content: center; gap: 1.2em; margin: 2em 0 0; font-family: var(--mono); font-size: 13px; }
.pagination .current { color: var(--accent); }
.pagination a { text-decoration: none; color: var(--muted); }
.pagination a:hover { color: var(--ink); }
.search-form { display: flex; gap: 8px; margin-top: 18px; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; padding: 8px 10px; font: 15px var(--body);
  color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px;
}
.search-form button {
  padding: 8px 14px; font: 12.5px var(--mono); cursor: pointer;
  color: var(--ground); background: var(--ink); border: 1px solid var(--ink); border-radius: 2px;
}
.search-form button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ------------------------------------------------------------ comments */
.comments-area { margin-top: 8px; padding: 24px 0 20px; border-top: 1px solid var(--rule); }
.comments-area h2, .comment-reply-title { font-size: 20px; margin: 0 0 16px; font-family: var(--body); font-weight: 700; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.comment-meta, .comment-metadata { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.comment-meta .avatar { vertical-align: middle; border-radius: 2px; margin-right: 8px; }
.comment-respond label { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.comment-respond input[type="text"], .comment-respond input[type="email"],
.comment-respond input[type="url"], .comment-respond textarea {
  width: 100%; padding: 8px 10px; font: 15px var(--body);
  color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px;
}
.comment-respond .submit {
  padding: 8px 14px; font: 12.5px var(--mono); cursor: pointer;
  color: var(--ground); background: var(--ink); border: 1px solid var(--ink); border-radius: 2px;
}
.comment-respond .submit:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ------------------------------------------------------------ footer */
.site-footer {
  max-width: var(--wrap);
  margin: clamp(32px, 6vw, 70px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 640px) {
  .site-nav { flex-basis: 100%; order: 3; margin: -6px 0 -6px -5px; padding-block: 6px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { flex-wrap: nowrap; }
  .site-nav a { flex-shrink: 0; font-size: 16px; padding: 2px 5px 1px; white-space: nowrap; }
  .site-header { position: relative; }
  .site-header .theme-toggle { position: absolute; top: 12px; right: 0; margin: 0; }
  .year-group { grid-template-columns: minmax(0, 1fr); }
  .year-group > .year { padding: 4px 0 2px; color: var(--muted); }
  .view-all { padding-left: 0; }
  .meta { grid-template-columns: 1fr 1fr; }
  .meta > div:nth-child(3) { grid-column: 1 / -1; }
}
@media print {
  .site-header, .site-footer, .strip, .toc, .nextprev, .comments-area { display: none; }
}
