/* ===========================================================
   FFGG 手记 — 视觉层
   =========================================================== */

:root {
  --paper: #FAF7F1;
  --paper-2: #F3EEE4;
  --card: #FFFDF8;
  --ink: #1A1815;
  --ink-2: #3B362E;
  --muted: #8A8074;
  --line: #E4DCCB;
  --line-soft: #EFE8DA;
  --accent: #9C3D22;
  --accent-soft: rgba(156, 61, 34, 0.07);
  --code-bg: #F2ECE0;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, "SimSun", serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --max: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --paper: #14120F;
  --paper-2: #1C1915;
  --card: #1B1814;
  --ink: #F0EAE0;
  --ink-2: #D4CCBE;
  --muted: #9A9083;
  --line: #302A22;
  --line-soft: #262119;
  --accent: #D0723F;
  --accent-soft: rgba(208, 114, 63, 0.12);
  --code-bg: #1F1B16;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

::selection { background: var(--accent); color: #FFF9F2; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.nav a {
  position: relative;
  color: var(--muted);
  padding: 4px 0;
  transition: color .25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }

.theme-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .4s var(--ease);
}

.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(18deg); }

.theme-toggle svg { width: 15px; height: 15px; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.icon-sun { display: none; }
.icon-moon { display: block; }

/* ---------------- Hero ---------------- */

.hero { padding: 96px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 72px;
  align-items: end;
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding: 4px 0 6px 30px;
  margin-bottom: 8px;
}

.aside-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

/* 首屏侧栏：一个假终端 */
.terminal {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 16px 14px;
}

.t-line {
  display: flex;
  gap: 9px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-prompt { color: var(--accent); flex: none; }
.t-out { color: var(--muted); padding-left: 17px; white-space: normal; }
.t-cmt { color: var(--line); }

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.2s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .t-cursor { animation: none; }
}

.aside-note {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.9;
  color: var(--muted);
  margin: 14px 0 0;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::after {
  content: "";
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--line);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin: 0 0 26px;
  max-width: 15em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 0 34px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero-meta b { font-weight: 500; color: var(--ink); }

.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

/* ---------------- Featured ---------------- */

.featured {
  display: block;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 38px;
  margin-bottom: 68px;
  transition: background-color .4s var(--ease);
}

.featured:hover { background: var(--accent-soft); }

.featured-label {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: start;
}

.featured h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.featured-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}

.featured-excerpt {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 40em;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.more svg { width: 15px; transition: transform .3s var(--ease); }
.featured:hover .more svg { transform: translateX(5px); }

.featured-aside {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 6px;
}

.featured-aside dl { margin: 0; display: grid; gap: 12px; }

.featured-aside dt {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  margin-bottom: 2px;
}

.featured-aside dd { margin: 0; color: var(--ink-2); }

/* ---------------- Toolbar ---------------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.04em;
}

.section-title span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-left: 10px;
  letter-spacing: 0.06em;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .25s var(--ease);
  white-space: nowrap;
}

.chip:hover { color: var(--ink); border-color: var(--muted); }

.chip.is-on {
  color: var(--card);
  background: var(--ink);
  border-color: var(--ink);
}

[data-theme="dark"] .chip.is-on { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search svg {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 190px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px 7px 34px;
  outline: none;
  transition: border-color .25s var(--ease), width .3s var(--ease), background-color .25s var(--ease);
}

.search input::placeholder { color: var(--muted); opacity: .8; }

.search input:focus { border-color: var(--accent); width: 230px; background: var(--card); }

/* ---------------- List ---------------- */

.list { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 76px 1fr 150px;
  gap: 28px;
  align-items: baseline;
  padding: 30px 14px 30px 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: padding-left .35s var(--ease), background-color .35s var(--ease);
}

.row::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 4px;
  height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height .35s var(--ease);
}

.row:hover { padding-left: 14px; background: var(--accent-soft); }
.row:hover::before { height: 34px; }

.row-date {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
}

.row-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
  transition: color .25s var(--ease);
}

.row:hover .row-title { color: var(--accent); }

.row-excerpt {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 56em;
}

.row-meta { text-align: right; padding-top: 6px; }

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 9px;
  white-space: nowrap;
}

.row-time {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  opacity: .8;
  letter-spacing: 0.06em;
}

.empty {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--serif);
}

.empty b { display: block; font-size: 16px; color: var(--ink-2); margin-bottom: 8px; font-weight: 500; }

.more-wrap { padding: 44px 0 0; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 26px;
  transition: all .3s var(--ease);
}

.btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn svg { width: 14px; height: 14px; }

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 110px;
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.footer-note {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 26em;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 26px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-links a { transition: color .25s var(--ease); }
.footer-links a:hover { color: var(--accent); }

.copy {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  opacity: .75;
}

/* ---------------- Article ---------------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 60;
  transition: width .08s linear;
}

.article-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 0 44px;
}

.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.article-cat::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.article-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.article-sub {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 30px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-meta .spacer { flex: 1; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  transition: all .25s var(--ease);
}

.ghost-btn:hover { color: var(--accent); border-color: var(--accent); }
.ghost-btn svg { width: 12px; height: 12px; }

.article-body {
  max-width: 708px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
  color: var(--ink-2);
  letter-spacing: 0.005em;
}

.article-body p { margin: 0 0 1.55em; }

.article-body > p:first-child {
  font-size: 19px;
  color: var(--ink);
  padding-bottom: 0.2em;
}

.article-body h2 {
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  margin: 2.6em 0 0.9em;
  letter-spacing: 0.02em;
}

.article-body h2::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 2em 0 0.7em;
  letter-spacing: 0.02em;
}

.article-body blockquote {
  margin: 2.2em 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink);
}

.article-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6em;
}

.article-body li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.85em;
}

.article-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: .7;
}

.article-body strong { font-weight: 600; color: var(--ink); }

/* 行内代码 */
.article-body :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 2px 5px;
  border-radius: 2px;
  white-space: normal;
  word-break: break-word;
}

/* 代码块 */
.code {
  margin: 2.1em 0;
  border: 1px solid var(--line);
  background: var(--code-bg);
  overflow: hidden;
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.code-copy {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
  transition: color .2s var(--ease);
}

.code-copy:hover { color: var(--accent); }

.code pre {
  margin: 0;
  padding: 16px 18px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.4px;
  line-height: 1.8;
  color: var(--ink-2);
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}

.code pre code { font-family: inherit; font-size: inherit; background: none; padding: 0; }

.code pre::-webkit-scrollbar { height: 6px; }
.code pre::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.article-body ol {
  margin: 0 0 1.6em;
  padding-left: 1.3em;
}

.article-body ol li { margin-bottom: 0.7em; padding-left: 4px; }

.article-body ol li::marker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85em;
}

.article-tags {
  max-width: 708px;
  margin: 52px auto 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-tags .tag { font-size: 11.5px; }

.article-nav {
  max-width: 860px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.nav-card {
  background: var(--paper);
  padding: 28px 26px;
  transition: background-color .3s var(--ease);
}

.nav-card:hover { background: var(--accent-soft); }

.nav-card span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.nav-card strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  display: block;
}

.nav-card.next { text-align: right; }

.related { margin-top: 80px; }

.related .list { border-top: 1px solid var(--line); }

/* ---------------- About ---------------- */

.about-hero { padding: 84px 0 20px; max-width: 720px; }

.about-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.3;
  margin: 0 0 24px;
}

.about-body {
  max-width: 708px;
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 2;
  color: var(--ink-2);
}

.about-body p { margin: 0 0 1.5em; }
.about-body h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 3em 0 1.4em;
  font-weight: 500;
}

.about-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6em;
}

.about-body li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.8em;
}

.about-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: .7;
}

.about-body :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--accent-soft);
  padding: 2px 5px;
  border-radius: 2px;
}

.about-stack {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin: 2.2em 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 3em 0;
}


.fact { background: var(--paper); padding: 22px 20px; }
.fact b {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 4px;
}
.fact span { font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; font-family: var(--sans); }

.archive { margin-top: 26px; }

.archive-year {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0 12px;
  border-bottom: 1px solid var(--line);
}

.archive-year h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.06em;
}

.archive-year span { font-size: 11.5px; color: var(--muted); }

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color .25s var(--ease);
}

.archive-item:hover { color: var(--accent); }

.archive-item time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 54px;
}

.archive-item span { font-family: var(--serif); font-size: 15.5px; }

/* ---------------- Reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-aside { display: none; }
  .featured-grid { grid-template-columns: 1fr; gap: 26px; }
  .featured-aside { display: none; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .hero { padding: 64px 0 46px; }
  .hero h1 { font-size: clamp(32px, 9vw, 46px); }
  .lede { font-size: 16px; }
  .header-inner { height: 64px; }
  .brand-sub { display: none; }
  .nav { gap: 20px; }
  .featured { margin-bottom: 48px; padding: 28px 0 30px; }
  .row { grid-template-columns: 1fr; gap: 10px; padding: 24px 8px 24px 0; }
  .row-date { padding: 0; }
  .row-meta { text-align: left; padding: 0; display: flex; align-items: center; gap: 10px; }
  .row-time { margin: 0; }
  .row-title { font-size: 19px; }
  .toolbar { width: 100%; }
  .search { width: 100%; }
  .search input { width: 100%; }
  .search input:focus { width: 100%; }
  .article-head { padding: 44px 0 32px; }
  .article-body { font-size: 17px; line-height: 1.95; }
  .article-body > p:first-child { font-size: 18px; }
  .code { margin: 1.8em 0; }
  .code pre {
    font-size: 11.8px;
    padding: 14px 14px 16px;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .code-bar { padding: 6px 12px; }
  .article-nav { grid-template-columns: 1fr; }
  .nav-card.next { text-align: left; }
  .facts { grid-template-columns: 1fr; }
  .site-footer { margin-top: 72px; }
  .footer-grid { flex-direction: column; gap: 24px; }
}
