:root {
  color-scheme: dark;
  --page: #181414;
  --ink: #f6ead6;
  --muted: #ccbaa7;
  --line: #705446;
  --accent: #f0c987;
  --glow: #95623642;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.62 system-ui, "Segoe UI", sans-serif; }
body.thuy-yen-kiem { --accent: #c7e8fa; --glow: #49708b60; }
body.ngu-doc { --accent: #d3e5a5; --glow: #61763a66; }
.shell { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #fff5dd; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.top { background: #211616; border-bottom: 1px solid var(--line); }
.top .shell { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { display: block; width: 126px; height: auto; }
.top nav { display: flex; align-items: center; gap: 24px; }
.top nav a { text-decoration: none; }
.hero {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 86% 18%, var(--glow), transparent 61%), linear-gradient(120deg, #36211e, #201819 72%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 36px; padding-block: 56px 48px; }
.date { color: var(--accent); font-weight: 650; font-size: .88rem; margin: 0 0 8px; }
h1, h2 { font-family: system-ui, "Segoe UI", sans-serif; line-height: 1.15; text-wrap: balance; }
h1 { color: var(--accent); margin: 0; font-size: clamp(2.05rem, 5.8vw, 4rem); }
.lead { font-size: 1.08rem; max-width: 63ch; margin: 16px 0 0; }
.hero-icons { display: flex; gap: 10px; }
.skill-icon {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
  background: #2c2323;
  outline: 1px solid #947051;
  outline-offset: 2px;
}
.hero-icons img { width: 53px; height: 53px; box-shadow: 0 6px 24px #130d0d88; }
.body { padding-block: 34px 52px; }
.section-nav { display: flex; gap: 12px 22px; flex-wrap: wrap; margin: 0 0 13px; }
.section-nav a { color: var(--accent); font-weight: 650; text-decoration: none; }
.scope { color: var(--muted); font-size: .91rem; margin: 0 0 36px; }
.patch-section { margin-bottom: 40px; scroll-margin-top: 18px; }
h2 { margin: 0 0 15px; color: var(--accent); font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.comparison { width: 100%; table-layout: fixed; border: 1px solid var(--line); border-collapse: collapse; background: #221a1b; }
.comparison th, .comparison td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison thead th { background: #392723; color: #f2d7b0; }
.comparison thead th:first-child { width: 25%; }
.comparison tbody td:last-child { background: #2b2220; color: #fff0db; }
.comparison tbody th { font-weight: 650; }
.skill { display: flex; align-items: center; gap: 12px; }
.skill small { display: block; color: var(--muted); font-weight: 450; margin-top: 3px; }
.related { border-top: 1px solid var(--line); padding-top: 26px; }
.related ul { padding: 0; margin: 10px 0 0; list-style: none; display: flex; gap: 12px; flex-wrap: wrap; }
.related a { display: block; border: 1px solid var(--line); padding: 9px 14px; text-decoration: none; background: #2c201d; }
footer { border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) {
  .shell { width: min(1080px, calc(100% - 30px)); }
  .top .shell { min-height: 60px; }
  .top nav { gap: 13px; font-size: .9rem; }
  .brand img { width: 100px; }
  .hero-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 36px 31px; }
  .hero-icons img { width: 44px; height: 44px; }
  .comparison { display: block; border: 0; background: transparent; }
  .comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .comparison tbody { display: grid; gap: 12px; }
  .comparison tr { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: #221a1b; }
  .comparison th, .comparison td { min-width: 0; padding: 12px 14px; }
  .comparison td:last-child { border-bottom: 0; }
  .comparison td::before { display: block; content: attr(data-column); color: var(--accent); font-size: .8rem; font-weight: 700; margin-bottom: 3px; }
}
