:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --paper-deep: #e9e4d8;
  --surface: #fbfaf5;
  --ink: #15221c;
  --muted: #68716b;
  --line: #cdc9bd;
  --line-strong: #a5aaa2;
  --forest: #173f31;
  --forest-light: #285845;
  --lime: #c7d991;
  --amber: #d59a42;
  --blue: #759cc8;
  --violet: #a58ac4;
  --red: #c67664;
  --shadow: 0 18px 55px rgba(22, 36, 29, 0.09);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Noto Serif SC", "Source Han Serif SC", STSong, Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: 1180px;
  --ease: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(199, 217, 145, 0.16), transparent 22rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  pointer-events: none;
  content: "";
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

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

[hidden] {
  display: none !important;
}

.shell,
.article-shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(21, 34, 28, 0.15);
  background: rgba(244, 241, 232, 0.96);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-content: center;
  gap: 3px;
  overflow: hidden;
  background: var(--forest);
}

.brand-mark::after {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.brand-mark i {
  display: block;
  width: 19px;
  height: 2px;
  transform: rotate(-16deg);
  background: var(--paper);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.desktop-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  position: relative;
  padding: 27px 0 24px;
  color: #4f5b54;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--forest);
  content: "";
  transition: transform var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button,
.menu-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}

.icon-button:hover,
.menu-button:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.primary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 20px;
  background: var(--forest);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.02em;
  transition: background var(--ease), transform var(--ease);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--forest-light);
}

.primary-button.compact {
  min-height: 42px;
  gap: 12px;
  padding-inline: 16px;
}

.menu-button {
  display: none;
  align-content: center;
  gap: 6px;
}

.menu-button span {
  width: 19px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--ease);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* Hero */
.hero {
  display: grid;
  min-height: 640px;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  align-items: center;
  gap: 72px;
  padding-block: 68px 76px;
}

.hero-main {
  padding-left: clamp(0px, 3vw, 44px);
}

.eyebrow,
.section-index,
.side-label,
.ticker-title,
.ticker-date {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-light);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8eb445;
  box-shadow: 0 0 0 4px rgba(142, 180, 69, 0.15);
}

.hero h1,
.principles-intro h2,
.article-hero h1 {
  margin: 24px 0 22px;
  font-family: var(--serif);
  font-size: clamp(45px, 5.35vw, 76px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero h1 em,
.principles-intro h2 em {
  color: var(--forest-light);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 10px;
  text-underline-offset: -4px;
  text-decoration-skip-ink: none;
}

.hero-intro {
  max-width: 610px;
  margin: 0;
  color: #566159;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 36px;
  gap: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 700;
  transition: border-color var(--ease), gap var(--ease);
}

.text-link:hover {
  gap: 15px;
  border-color: var(--ink);
}

.hero-map {
  position: relative;
  min-height: 438px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #e9e6dc;
  isolation: isolate;
}

.map-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(21, 34, 28, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 34, 28, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.map-grid::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 16%, rgba(233, 230, 220, 0.2) 40%, rgba(233, 230, 220, 0.95) 83%);
  content: "";
}

.map-label {
  position: absolute;
  top: 22px;
  left: 24px;
  color: #59635d;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.45;
}

.map-label span {
  color: var(--forest);
}

.map-orbit,
.map-core {
  position: absolute;
  top: 50%;
  left: 53%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.map-orbit {
  z-index: -1;
  border: 1px dashed rgba(23, 63, 49, 0.38);
}

.orbit-one {
  width: 224px;
  height: 224px;
}

.orbit-two {
  width: 340px;
  height: 340px;
  border-color: rgba(23, 63, 49, 0.22);
}

.map-core {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  background: var(--forest);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(199, 217, 145, 0.36), var(--shadow);
}

.map-core span {
  font-family: var(--serif);
  font-size: 34px;
}

.map-node {
  position: absolute;
  display: grid;
  min-width: 64px;
  min-height: 55px;
  place-items: center;
  border: 1px solid rgba(21, 34, 28, 0.32);
  background: rgba(251, 250, 245, 0.91);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  transition: transform var(--ease), background var(--ease);
}

.map-node:hover {
  z-index: 2;
  transform: translateY(-4px);
  background: var(--lime);
}

.map-node span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.node-software {
  top: 90px;
  right: 42px;
}

.node-tutorial {
  bottom: 87px;
  left: 39px;
}

.node-notes {
  right: 55px;
  bottom: 72px;
}

.map-caption {
  position: absolute;
  bottom: 19px;
  left: 23px;
  margin: 0;
  color: #68716b;
  font-size: 11px;
  line-height: 1.55;
}

/* Activity strip */
.ticker {
  border-block: 1px solid var(--line-strong);
  background: var(--surface);
}

.ticker-inner {
  display: grid;
  min-height: 58px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.ticker-title {
  padding-right: 28px;
  border-right: 1px solid var(--line);
  color: var(--forest-light);
}

.ticker p {
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-date {
  color: var(--muted);
}

/* Home content */
.content-section {
  padding-block: 105px 120px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-index {
  color: var(--forest-light);
}

.section-heading h2,
.newsletter h2 {
  margin: 11px 0 0;
  font-family: var(--serif);
  font-size: clamp(35px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  text-align: right;
}

.topic-toolbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  border-block: 1px solid var(--line-strong);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-tabs button {
  padding: 9px 15px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background var(--ease), color var(--ease);
}

.filter-tabs button:hover,
.filter-tabs button.is-active {
  background: var(--forest);
  color: #fff;
}

.sort-label {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 62px;
  margin-top: 14px;
}

.post-list {
  min-width: 0;
}

.post-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 8px 31px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--ease), padding var(--ease);
}

.post-row:hover {
  padding-right: 18px;
  padding-left: 10px;
  background: rgba(251, 250, 245, 0.65);
}

.post-number {
  padding-top: 4px;
  color: #949a94;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.post-content {
  min-width: 0;
}

.post-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.category-tag {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  background: #dde6d5;
  color: #264b39;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.category-tag::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.category-tag.tutorial,
.category-tag[data-category="教程"] {
  background: #dbe5ef;
  color: #315a80;
}

.category-tag.notes,
.category-tag[data-category="随笔"] {
  background: #eee0dc;
  color: #8a4d40;
}

.post-title {
  margin: 15px 0 8px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.post-title a {
  background: linear-gradient(var(--forest), var(--forest)) 0 100% / 0 1px no-repeat;
  transition: color var(--ease), background-size var(--ease);
}

.post-title a:hover {
  background-size: 100% 1px;
  color: var(--forest-light);
}

.post-summary {
  max-width: 680px;
  margin: 0;
  color: #657068;
  font-size: 14px;
  line-height: 1.8;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 17px;
}

.tag-list,
.post-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag-list span,
.tag-list a {
  padding: 2px 7px;
  border: 1px solid var(--line);
  color: #6c746f;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.post-stats {
  gap: 14px;
  color: #858b86;
  font-family: var(--mono);
  font-size: 10px;
}

.post-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-stats svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.post-row.accent-amber { --row-accent: var(--amber); }
.post-row.accent-blue { --row-accent: var(--blue); }
.post-row.accent-violet { --row-accent: var(--violet); }
.post-row.accent-red { --row-accent: var(--red); }
.post-row.accent-green { --row-accent: #719c6b; }

.post-row::after {
  position: absolute;
  top: 31px;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--row-accent, #719c6b);
  content: "";
}

.sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 20px;
  padding-top: 18px;
}

.side-card {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.featured-card {
  padding: 22px;
}

.side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.side-label b {
  color: var(--forest-light);
  font-weight: 700;
}

.featured-visual {
  position: relative;
  height: 138px;
  margin: 18px 0 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49%, rgba(199, 217, 145, 0.12) 50%, transparent 51%),
    var(--forest);
}

.featured-visual::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 17px 0 0 rgba(199, 217, 145, 0.5), 34px 0 0 rgba(199, 217, 145, 0.25);
  content: "";
}

.terminal-line {
  position: absolute;
  left: 18px;
  height: 4px;
  background: rgba(244, 241, 232, 0.42);
}

.line-a { top: 58px; width: 74%; }
.line-b { top: 76px; width: 49%; }
.line-c { top: 94px; width: 63%; }

.featured-visual i {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: var(--lime);
  font-family: var(--mono);
  font-style: normal;
  animation: cursor-blink 1.1s steps(2, start) infinite;
}

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

.featured-card h3 {
  margin: 13px 0 9px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
}

.featured-card > p:not(.side-label) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.featured-card > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 750;
}

.stats-card {
  padding: 19px 22px 10px;
  background: transparent;
}

.stats-card dl {
  margin: 13px 0 0;
}

.stats-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.stats-card dt {
  color: var(--muted);
  font-size: 12px;
}

.stats-card dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}

.empty-state,
.article-not-found,
.not-found {
  padding: 76px 24px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.empty-state span,
.article-not-found > span,
.not-found > span {
  display: block;
  color: var(--forest-light);
  font-family: var(--serif);
  font-size: 48px;
}

.empty-state h3,
.article-not-found h1,
.not-found h1 {
  margin: 8px 0;
  font-family: var(--serif);
  font-size: 30px;
}

.empty-state p,
.article-not-found p,
.not-found p {
  margin: 0;
  color: var(--muted);
}

/* Principles */
.principles-section {
  padding-block: 110px;
  background: var(--forest);
  color: #f5f2e8;
}

.principles-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
}

.section-index.light {
  color: var(--lime);
}

.principles-intro h2 {
  margin-bottom: 0;
  font-size: clamp(44px, 5vw, 68px);
}

.principles-intro h2 em {
  color: #fff;
}

.principles-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  padding: 27px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.principles-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.principles-list > li > span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
}

.principles-list h3 {
  margin: -4px 0 7px;
  font-family: var(--serif);
  font-size: 23px;
}

.principles-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

/* Newsletter and footer */
.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.72fr);
  align-items: end;
  gap: 90px;
  padding-block: 105px;
}

.newsletter h2 {
  max-width: 620px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.newsletter-form input {
  min-width: 0;
  height: 53px;
  padding: 0 16px;
  border: 0;
  border-block: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  border-radius: 0;
  outline-offset: 0;
  background: transparent;
}

.newsletter-form input::placeholder {
  color: #8b918c;
}

.newsletter-form button {
  height: 53px;
  padding-inline: 19px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.form-note {
  grid-column: 1 / -1;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.form-note.is-success {
  color: var(--forest-light);
  font-weight: 700;
}

.site-footer {
  padding-block: 60px 26px;
  background: #101a16;
  color: rgba(255, 255, 255, 0.84);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: start;
  gap: 60px;
}

.brand-mark.inverse {
  background: var(--paper);
}

.brand-mark.inverse i {
  background: var(--forest);
}

.footer-brand .brand-copy small {
  color: rgba(255, 255, 255, 0.45);
}

.footer-main > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-family: var(--serif);
  font-size: 15px;
}

.site-footer nav {
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
}

.site-footer nav a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.footer-bottom .status-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

/* Search */
.search-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: min(620px, calc(100vh - 40px));
  padding: 0;
  overflow: visible;
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.search-dialog::backdrop {
  background: rgba(12, 20, 16, 0.67);
}

.search-box {
  padding: 26px;
}

.search-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-topline h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
}

.dialog-close {
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.search-input-wrap:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(23, 63, 49, 0.12);
}

.search-input-wrap svg {
  width: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.search-input-wrap input {
  width: 100%;
  height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-results {
  max-height: 340px;
  margin-top: 15px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-result,
.search-result-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}

.search-result:hover,
.search-result.is-active,
.search-result-item:hover,
.search-result-item.is-active {
  background: var(--paper-deep);
}

.search-result strong,
.search-result-item strong {
  font-family: var(--serif);
  font-size: 17px;
}

.search-result p,
.search-result-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.search-empty {
  padding: 42px 10px;
  color: var(--muted);
  text-align: center;
}

.search-hint {
  margin: 16px 0 0;
  color: #888f8a;
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

kbd {
  display: inline-block;
  min-width: 22px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  text-align: center;
}

/* Article */
.article-page main {
  min-height: 60vh;
}

.article-hero {
  position: relative;
  padding-block: 68px 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}

.article-hero::after {
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -70px;
  width: 470px;
  height: 470px;
  border: 1px dashed rgba(23, 63, 49, 0.19);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(199, 217, 145, 0.08), 0 0 0 140px rgba(23, 63, 49, 0.025);
  content: "";
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.article-back:hover {
  color: var(--forest);
}

.article-kicker,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.article-hero h1 {
  max-width: 940px;
  margin-block: 23px 18px;
  font-size: clamp(42px, 6vw, 78px);
}

.article-lead,
.article-hero > .article-shell > p:not(.article-kicker) {
  max-width: 780px;
  margin: 0;
  color: #59655d;
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.8;
}

.article-meta {
  margin-top: 27px;
}

.article-meta span + span::before {
  margin-right: 12px;
  color: var(--line-strong);
  content: "·";
}

.article-layout,
.article-body {
  display: grid;
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
  grid-template-columns: 190px minmax(0, 690px) minmax(190px, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 70px);
  padding-block: 68px 110px;
}

.article-layout > .article-prose,
.article-body > .article-prose,
.article-layout > .prose,
.article-body > .prose {
  grid-column: 2;
}

.article-toc,
.toc {
  position: sticky;
  top: 112px;
  grid-column: 1;
  grid-row: 1;
  padding-top: 8px;
}

.article-toc h2,
.toc h2,
.article-info h2 {
  margin: 0 0 15px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-toc ol,
.article-toc ul,
.toc ol,
.toc ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  list-style: none;
}

.article-toc a,
.toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  color: #747c76;
  font-size: 11px;
  line-height: 1.55;
}

.article-toc a:hover,
.article-toc a.is-active,
.toc a:hover,
.toc a.is-active {
  border-left-color: var(--forest);
  color: var(--ink);
}

.article-info {
  position: sticky;
  top: 112px;
  grid-column: 3;
  grid-row: 1;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(251, 250, 245, 0.72);
}

.article-info dl {
  margin: 0;
}

.article-info dl > div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.article-info dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.article-info dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.article-prose,
.prose {
  min-width: 0;
  color: #2c3932;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
}

.article-prose > :first-child,
.prose > :first-child {
  margin-top: 0;
}

.article-prose h2,
.prose h2 {
  margin: 2.6em 0 0.8em;
  padding-top: 0.2em;
  color: var(--ink);
  font-size: clamp(27px, 3vw, 35px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.article-prose h2::before,
.prose h2::before {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 15px;
  background: var(--lime);
  content: "";
}

.article-prose h3,
.prose h3 {
  margin: 2.1em 0 0.7em;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.4;
}

.article-prose p,
.prose p {
  margin: 1.25em 0;
}

.article-prose a,
.prose a {
  color: var(--forest-light);
  text-decoration: underline;
  text-decoration-color: #9aaa72;
  text-underline-offset: 4px;
}

.article-prose strong,
.prose strong {
  color: var(--ink);
}

.article-prose ul,
.article-prose ol,
.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.article-prose li,
.prose li {
  margin-block: 0.45em;
  padding-left: 0.25em;
}

.article-prose li::marker,
.prose li::marker {
  color: var(--forest-light);
  font-family: var(--mono);
  font-size: 0.8em;
}

.article-prose blockquote,
.prose blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 4px solid var(--lime);
  background: #e9ecdf;
  color: #34423a;
  font-size: 0.98em;
}

.article-prose blockquote > :first-child,
.article-prose blockquote > :last-child,
.prose blockquote > :first-child,
.prose blockquote > :last-child {
  margin-block: 0;
}

.article-prose code,
.prose code {
  padding: 0.15em 0.35em;
  background: #e4e2da;
  color: #214c39;
  font-family: var(--mono);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.article-prose pre,
.prose pre {
  position: relative;
  margin: 2em 0;
  padding: 24px;
  overflow-x: auto;
  border: 1px solid #2c4037;
  background: #111d18;
  color: #e8eee7;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  tab-size: 2;
}

.article-prose pre code,
.prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

.article-prose table,
.prose table {
  display: block;
  width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}

.article-prose th,
.article-prose td,
.prose th,
.prose td {
  min-width: 120px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  text-align: left;
}

.article-prose th,
.prose th {
  background: var(--paper-deep);
  color: var(--ink);
}

.article-loading {
  min-height: 55vh;
  padding-block: 100px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.copy-button,
.code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #1d2e26;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
}

.copy-button:hover,
.code-copy:hover,
.copy-button.is-copied,
.code-copy.is-copied {
  border-color: var(--lime);
  color: var(--lime);
}

.article-note {
  margin: 2em 0;
  padding: 20px 22px;
  border: 1px solid #b5bca5;
  background: #eef0e5;
}

.article-note > strong {
  display: block;
  margin-bottom: 5px;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.article-note p {
  margin: 0;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-share > span {
  margin-right: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.article-share button,
.article-share a {
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
}

.article-share button:hover,
.article-share a:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.article-navigation,
.related-nav {
  display: grid;
  width: min(900px, calc(100% - 48px));
  margin: 0 auto 100px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.article-navigation a,
.related-nav a {
  display: grid;
  gap: 7px;
  min-height: 130px;
  align-content: center;
  padding: 25px;
}

.article-navigation a + a,
.related-nav a + a {
  border-left: 1px solid var(--line);
  text-align: right;
}

.article-navigation small,
.related-nav small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.article-navigation strong,
.related-nav strong {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
}

.article-navigation a:hover,
.related-nav a:hover {
  background: var(--paper-deep);
}

.article-not-found,
.not-found {
  width: min(760px, calc(100% - 48px));
  margin: 100px auto;
}

/* Runtime-rendered home cards */
.post-card {
  --row-accent: #719c6b;
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  gap: 24px;
  padding: 32px 7px 31px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--ease), padding var(--ease);
}

.post-card:hover {
  padding-right: 16px;
  padding-left: 10px;
  background: rgba(251, 250, 245, 0.65);
}

.post-card::before {
  position: absolute;
  top: 31px;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--row-accent);
  content: "";
}

.post-card.accent-amber { --row-accent: var(--amber); }
.post-card.accent-blue { --row-accent: var(--blue); }
.post-card.accent-violet { --row-accent: var(--violet); }
.post-card.accent-red { --row-accent: var(--red); }
.post-card.accent-green { --row-accent: #719c6b; }

.post-body {
  min-width: 0;
}

.post-body h3 {
  margin: 15px 0 8px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.post-body h3 a {
  background: linear-gradient(var(--forest), var(--forest)) 0 100% / 0 1px no-repeat;
  transition: color var(--ease), background-size var(--ease);
}

.post-body h3 a:hover {
  background-size: 100% 1px;
  color: var(--forest-light);
}

.post-body > p {
  max-width: 680px;
  margin: 0;
  color: #657068;
  font-size: 14px;
  line-height: 1.8;
}

.post-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.post-tags b {
  padding: 2px 7px;
  border: 1px solid var(--line);
  color: #6c746f;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.post-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  align-self: center;
  border: 1px solid var(--line);
  color: var(--forest);
  font-size: 17px;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.post-card:hover .post-arrow {
  transform: translate(2px, -2px);
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

/* Runtime-rendered search results */
.search-results > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-count {
  margin: 0;
  padding: 2px 12px 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.search-result {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.search-result p {
  grid-column: auto;
}

.search-result small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.search-result i {
  color: var(--forest);
  font-style: normal;
}

/* Runtime-rendered article structure */
body[data-page="article"] main {
  min-height: 60vh;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: end;
  gap: clamp(38px, 7vw, 90px);
}

.article-publish-meta {
  display: grid;
  gap: 9px;
  padding: 17px 0;
  border-block: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.035em;
  line-height: 1.55;
}

.article-layout {
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: center;
  gap: clamp(42px, 7vw, 90px);
}

.article-sidebar {
  position: sticky;
  top: 106px;
  grid-column: 1;
  align-self: start;
}

.article-sidebar .article-toc,
.article-sidebar .article-info {
  position: static;
  grid-column: auto;
  grid-row: auto;
}

.article-sidebar .article-toc {
  padding-top: 0;
}

.article-toc > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px;
}

.article-toc a span {
  color: #9ba09c;
  font-family: var(--mono);
  font-size: 9px;
}

.article-sidebar .article-info {
  margin-top: 34px;
}

.article-info-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-info-label span {
  color: var(--forest);
}

.article-info-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.article-info-note .status-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.article-layout > .article-body {
  display: block;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  grid-column: 2;
  color: #2c3932;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
}

.article-section {
  scroll-margin-top: 104px;
}

.article-section + .article-section {
  margin-top: 4.4em;
}

.article-section-index {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 3px 7px;
  background: var(--lime);
  color: var(--forest);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.article-body .article-section > h2 {
  margin: 0 0 0.8em;
  color: var(--ink);
  font-size: clamp(27px, 3vw, 35px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.article-body .article-section > h2::before {
  display: none;
}

.article-body h3 {
  margin: 2.1em 0 0.7em;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.4;
}

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

.article-body a {
  color: var(--forest-light);
  text-decoration: underline;
  text-decoration-color: #9aaa72;
  text-underline-offset: 4px;
}

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

.article-body ul,
.article-body ol {
  padding-left: 1.35em;
}

.article-body li {
  margin-block: 0.45em;
  padding-left: 0.25em;
}

.article-body li::marker {
  color: var(--forest-light);
  font-family: var(--mono);
  font-size: 0.8em;
}

.article-body blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 4px solid var(--lime);
  background: #e9ecdf;
  color: #34423a;
  font-size: 0.98em;
}

.article-body blockquote > :first-child,
.article-body blockquote > :last-child {
  margin-block: 0;
}

.article-body code {
  padding: 0.15em 0.35em;
  background: #e4e2da;
  color: #214c39;
  font-family: var(--mono);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.article-body pre {
  position: relative;
  margin: 2em 0;
  padding: 24px;
  overflow-x: auto;
  border: 1px solid #2c4037;
  background: #111d18;
  color: #e8eee7;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  tab-size: 2;
}

.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

.copy-code {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #1d2e26;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
}

.copy-code:hover,
.copy-code:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

.article-nav {
  display: grid;
  max-width: 940px;
  margin: 0 auto 100px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.article-nav a,
.article-nav > span {
  display: grid;
  min-height: 130px;
  align-content: center;
  gap: 7px;
  padding: 25px;
}

.article-nav a + a,
.article-nav > span + a,
.article-nav a + span {
  border-left: 1px solid var(--line);
}

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

.article-nav small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.article-nav strong {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
}

.article-nav a:hover {
  background: var(--paper-deep);
}

.article-missing {
  width: min(760px, calc(100% - 48px));
  margin-block: 100px;
  padding: 76px 24px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.article-missing h1 {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.25;
}

.article-missing > p:not(.section-index) {
  margin: 0 auto 24px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1050px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(44px, 5.8vw, 64px);
  }

  .topic-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 36px;
  }

  .article-layout,
  .article-body {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 45px;
  }

  .article-info {
    position: static;
    grid-column: 2;
    grid-row: auto;
    margin-top: 35px;
  }
}

@media (max-width: 820px) {
  .shell,
  .article-shell {
    width: min(100% - 36px, var(--shell));
  }

  .desktop-nav,
  .header-actions .primary-button {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-nav {
    display: grid;
    width: min(100% - 36px, var(--shell));
    margin-inline: auto;
    padding: 6px 0 18px;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
  }

  .mobile-nav a {
    padding: 12px 5px 4px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 70px;
  }

  .hero-main {
    padding-left: 0;
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(45px, 10vw, 68px);
  }

  .hero-map {
    width: min(100%, 560px);
    min-height: 390px;
    margin-inline: auto;
  }

  .topic-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 10px;
  }

  .principles-grid,
  .newsletter,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .principles-grid {
    gap: 55px;
  }

  .newsletter {
    gap: 38px;
  }

  .newsletter-form {
    max-width: 570px;
  }

  .footer-main {
    gap: 36px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .article-layout,
  .article-body {
    width: min(100% - 36px, 760px);
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 42px 80px;
  }

  .article-sidebar {
    position: static;
    grid-column: 1;
  }

  .article-layout > .article-body {
    grid-column: 1;
  }

  .article-toc,
  .toc,
  .article-layout > .article-prose,
  .article-body > .article-prose,
  .article-layout > .prose,
  .article-body > .prose,
  .article-info {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }

  .article-toc,
  .toc {
    padding: 17px 19px;
    border: 1px solid var(--line);
    background: rgba(251, 250, 245, 0.65);
  }

  .article-sidebar .article-toc {
    padding: 17px 19px;
  }

  .article-toc ol,
  .article-toc ul,
  .toc ol,
  .toc ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 18px;
  }

  .article-info {
    margin-top: 25px;
  }

  .article-sidebar .article-info {
    margin-top: 20px;
  }
}

@media (max-width: 560px) {
  .shell,
  .article-shell {
    width: min(100% - 28px, var(--shell));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-block: 54px 58px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(39px, 12.5vw, 54px);
  }

  .hero h1 br {
    display: none;
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-map {
    min-height: 340px;
  }

  .orbit-one {
    width: 180px;
    height: 180px;
  }

  .orbit-two {
    width: 270px;
    height: 270px;
  }

  .map-core {
    width: 64px;
    height: 64px;
  }

  .node-software { top: 72px; right: 20px; }
  .node-tutorial { bottom: 72px; left: 20px; }
  .node-notes { right: 25px; bottom: 54px; }

  .ticker-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
  }

  .ticker-title {
    padding-right: 15px;
  }

  .ticker-date {
    display: none;
  }

  .content-section {
    padding-block: 78px 84px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 14px;
    text-align: left;
  }

  .topic-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 14px;
  }

  .filter-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .filter-tabs button {
    padding-inline: 6px;
  }

  .sort-label {
    align-self: flex-end;
  }

  .post-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding-block: 26px;
  }

  .post-row:hover {
    padding-right: 8px;
    padding-left: 0;
  }

  .post-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding-block: 26px;
  }

  .post-card:hover {
    padding-right: 7px;
    padding-left: 0;
  }

  .post-card .post-arrow {
    display: none;
  }

  .post-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .post-title {
    font-size: 22px;
  }

  .post-body h3 {
    font-size: 22px;
  }

  .post-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .principles-section {
    padding-block: 80px;
  }

  .principles-list li {
    grid-template-columns: 32px 1fr;
  }

  .newsletter {
    padding-block: 78px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form input {
    border-right: 1px solid var(--ink);
  }

  .newsletter-form button {
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box {
    padding: 19px;
  }

  .search-hint {
    display: none;
  }

  .search-result {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .search-result small {
    display: none;
  }

  .article-hero {
    padding-block: 48px 52px;
  }

  .article-hero h1 {
    font-size: clamp(38px, 11.5vw, 56px);
  }

  .article-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-publish-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-publish-meta span:last-child {
    grid-column: 1 / -1;
  }

  .article-layout,
  .article-body {
    width: min(100% - 28px, 760px);
  }

  .article-toc ol,
  .article-toc ul,
  .toc ol,
  .toc ul {
    grid-template-columns: 1fr;
  }

  .article-prose,
  .prose {
    font-size: 16px;
    line-height: 1.9;
  }

  .article-layout > .article-body {
    font-size: 16px;
    line-height: 1.9;
  }

  .article-prose pre,
  .prose pre {
    margin-inline: -14px;
    padding: 20px 14px;
    font-size: 12px;
  }

  .article-share {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .article-share > span {
    width: 100%;
  }

  .article-navigation,
  .related-nav {
    width: min(100% - 28px, 900px);
    margin-bottom: 70px;
    grid-template-columns: 1fr;
  }

  .article-navigation a + a,
  .related-nav a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .article-nav {
    margin-bottom: 70px;
    grid-template-columns: 1fr;
  }

  .article-nav a + a,
  .article-nav > span + a,
  .article-nav a + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .article-nav-next {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .article-toc,
  .toc,
  .article-info,
  .article-share,
  .article-navigation,
  .related-nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  body::before,
  .article-hero::after {
    display: none;
  }

  .article-hero {
    padding-block: 20px 30px;
  }

  .article-layout,
  .article-body {
    display: block;
    width: 100%;
    padding-block: 30px;
  }

  .article-prose,
  .prose {
    color: #000;
    font-size: 11pt;
  }

  .article-prose pre,
  .prose pre {
    border-color: #aaa;
    background: #f2f2f2;
    color: #000;
    white-space: pre-wrap;
  }
}
