:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfc;
  --text: #1d1d1f;
  --text-soft: #303035;
  --muted: #707078;
  --line: #e6e6ea;
  --line-strong: #d7d7dd;
  --accent: #111111;
  --blue: #0066cc;
  --tag: #f3f3f5;
  --focus-ring: rgba(0, 102, 204, 0.2);
  --radius-sm: 8px;
  --radius-md: 8px;
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 22px rgba(0, 0, 0, 0.05);
  --shadow-border:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px -1px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-border-hover:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 1px 2px -1px rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.no-js #postList,
.no-js #resultCount {
  display: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

button,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}

button,
input,
select {
  letter-spacing: 0;
}

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

img {
  display: block;
  height: auto;
  max-width: 100%;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

mark {
  border-radius: 4px;
  background: #fff1a8;
  color: inherit;
  padding: 0 2px;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
}

.skip-link:focus {
  left: 12px;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 40px;
  border-bottom: 1px solid rgba(230, 230, 234, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
}

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

.nav a,
.text-button,
.primary-button,
.tag-button {
  min-height: 44px;
  border-radius: var(--radius-sm);
}

.topic-card {
  min-height: 40px;
  border-radius: var(--radius-sm);
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 800;
}

.nav a:hover,
.nav a:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  background: var(--tag);
  color: var(--text);
  outline: none;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
  min-height: min(480px, calc(100vh - 132px));
  padding: 34px 0 24px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 60px;
  line-height: 1.02;
}

.lead {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.7;
}

.hero-stats,
.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions {
  gap: 10px;
}

.hero-stats span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tag);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.featured-post,
.recent-section,
.saved-section,
.toolbar,
.topic-map,
.archive-section,
.posts-section,
.about-section,
.post-view {
  margin: 36px 0;
}

.featured-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  column-gap: 28px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-border), var(--shadow-soft);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.featured-card:hover,
.featured-card:focus-within {
  box-shadow: var(--shadow-border-hover), var(--shadow-card);
  transform: translateY(-1px);
}

.featured-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.featured-media-link,
.featured-card-link {
  display: grid;
  border-radius: var(--radius-sm);
}

.featured-media-link:focus-visible,
.featured-card-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.featured-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  object-fit: cover;
  transition: transform 220ms ease;
}

.featured-card:hover img,
.featured-card:focus-within img {
  transform: scale(1.02);
}

.featured-card h2 {
  margin: 6px 0 10px;
  font-size: 40px;
  line-height: 1.16;
}

.featured-card p {
  color: var(--text-soft);
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.featured-meta,
.meta,
.article-meta {
  color: var(--muted);
  font-size: 14px;
}

.toolbar {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.posts-section .toolbar {
  margin: 0 0 18px;
}

.search-box,
.sort-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.sort-box select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  padding: 0 12px;
}

.search-box input:focus,
.sort-box select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.article-primary-actions,
.article-tool-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-button,
.primary-button,
.tag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.text-button:active,
.primary-button:active,
.tag-button:active {
  transform: scale(0.96);
}

.text-button {
  padding: 8px 12px;
}

.text-button.compact {
  min-height: 44px;
  padding: 7px 11px;
  font-size: 14px;
}

.primary-button {
  padding: 10px 14px;
  background: var(--accent);
  color: #ffffff;
}

.tag-button.active,
.list-pagination .text-button.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.tag-button.active .tag-filter-count {
  color: #111111;
  background: #ffffff;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-button {
  gap: 8px;
  padding: 7px 10px;
}

.tag-filter-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--tag);
  color: var(--muted);
  font-size: 12px;
}

.filter-summary,
.list-message,
.empty-state {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 620px;
}

.empty-state-detail {
  display: block;
}

.empty-state-action {
  margin-top: 2px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.posts-section.is-empty-production .section-heading {
  display: grid;
  justify-content: start;
  gap: 8px;
}

.posts-section.is-empty-production #resultCount {
  max-width: 620px;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: 38px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.compact-heading h2 {
  font-size: 28px;
}

.recent-section {
  padding: 2px 0;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.recent-link {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.recent-link:hover,
.recent-link:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  outline: none;
}

.recent-link span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.recent-link strong {
  font-size: 17px;
  line-height: 1.4;
}

.recent-progress {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tag);
}

.recent-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.recent-progress.progress-5 span { width: 5%; }
.recent-progress.progress-10 span { width: 10%; }
.recent-progress.progress-15 span { width: 15%; }
.recent-progress.progress-20 span { width: 20%; }
.recent-progress.progress-25 span { width: 25%; }
.recent-progress.progress-30 span { width: 30%; }
.recent-progress.progress-35 span { width: 35%; }
.recent-progress.progress-40 span { width: 40%; }
.recent-progress.progress-45 span { width: 45%; }
.recent-progress.progress-50 span { width: 50%; }
.recent-progress.progress-55 span { width: 55%; }
.recent-progress.progress-60 span { width: 60%; }
.recent-progress.progress-65 span { width: 65%; }
.recent-progress.progress-70 span { width: 70%; }
.recent-progress.progress-75 span { width: 75%; }
.recent-progress.progress-80 span { width: 80%; }
.recent-progress.progress-85 span { width: 85%; }
.recent-progress.progress-90 span { width: 90%; }
.recent-progress.progress-95 span { width: 95%; }
.recent-progress.progress-100 span { width: 100%; }

.saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.saved-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.saved-card a {
  display: grid;
  gap: 6px;
}

.saved-card a:focus-visible {
  border-radius: var(--radius-sm);
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.saved-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.saved-card strong {
  font-size: 17px;
  line-height: 1.4;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-border), var(--shadow-soft);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.post-card-link {
  display: grid;
  height: 100%;
}

.post-card:hover,
.post-card:focus-within {
  box-shadow: var(--shadow-border-hover), var(--shadow-card);
  transform: translateY(-1px);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 220ms ease;
}

.post-card:hover img,
.post-card:focus-within img {
  transform: scale(1.02);
}

.post-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.post-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(10px);
}

.post-card:hover .post-card-actions,
.post-card:focus-within .post-card-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.icon-button span,
.icon-button svg {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.25);
  transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1), filter 180ms cubic-bezier(0.2, 0, 0, 1), transform 180ms cubic-bezier(0.2, 0, 0, 1);
}

.post-card:hover .icon-button span,
.post-card:hover .icon-button svg,
.post-card:focus-within .icon-button span,
.post-card:focus-within .icon-button svg,
.icon-button:focus-visible span,
.icon-button:focus-visible svg {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:active {
  transform: scale(0.96);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line-strong);
  background: var(--tag);
  outline: none;
}

.icon-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.list-reaction-button {
  font-size: 15px;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.save-button.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.post-card h3 {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.28;
}

.post-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.search-context {
  display: flex;
  align-items: start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-size: 14px;
  line-height: 1.55;
}

.search-context span {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.post-list.is-loading {
  pointer-events: none;
}

.list-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px auto 0;
}

.pagination-pages {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pagination-summary {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.skeleton-card {
  min-height: 360px;
}

.skeleton-media,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: #ededf0;
}

.skeleton-media::after,
.skeleton-line::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  transform: translateX(-100%);
  animation: skeleton-sweep 1.3s ease-in-out infinite;
}

.skeleton-media {
  aspect-ratio: 16 / 9;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 32%;
}

.skeleton-line.medium {
  width: 68%;
}

.skeleton-line.title {
  width: 86%;
  height: 22px;
}

@keyframes skeleton-sweep {
  to {
    transform: translateX(100%);
  }
}

.topic-grid,
.about-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.archive-list {
  display: grid;
  gap: 16px;
}

.archive-month {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.archive-month h3 {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.archive-items {
  display: grid;
  gap: 8px;
}

.archive-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(180px, 0.34fr);
  gap: 14px;
  align-items: baseline;
  min-height: 48px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
}

.archive-item:hover,
.archive-item:focus-visible {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  outline: none;
}

.archive-item span,
.archive-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.archive-item strong {
  min-width: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.42;
}

.topic-card,
.about-grid article,
.related-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
}

.topic-card {
  cursor: pointer;
}

.topic-card:hover,
.topic-card:focus-visible,
.topic-card.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.topic-card.active span {
  color: var(--accent);
}

.topic-card span,
.topic-card em,
.related-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.topic-card em {
  overflow: hidden;
  font-style: normal;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.topic-card strong,
.about-grid strong,
.related-card strong {
  font-size: 18px;
}

.article-tools {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
}

.reading-settings {
  position: relative;
}

.reading-settings summary {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.reading-settings summary::-webkit-details-marker {
  display: none;
}

.article-tool-group {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  width: min(320px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.article {
  width: min(100%, 780px);
  margin: 0 auto;
}

.static-article {
  padding: 52px 0 22px;
}

.static-article-back {
  width: min(100%, 780px);
  margin: 28px auto 56px;
}

.static-toc {
  margin-bottom: 26px;
}

.post-pagination {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  width: min(100%, 920px);
  margin: 34px auto 0;
}

.article.width-narrow {
  width: min(100%, 680px);
}

.article.width-wide {
  width: min(100%, 920px);
}

.article-header {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.article-breadcrumb a {
  color: var(--text-soft);
}

.article-breadcrumb a:hover,
.article-breadcrumb a:focus-visible {
  color: var(--accent);
  outline: none;
}

.article-breadcrumb [aria-current="page"] {
  max-width: min(100%, 520px);
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-header h1 {
  font-size: 58px;
}

.article-header p {
  color: var(--text-soft);
  font-size: 19px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 34px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.article-loading {
  display: grid;
  gap: 16px;
}

.article-loading .skeleton-media {
  border-radius: var(--radius-md);
}

.article-loading-header {
  opacity: 0.88;
}

.article-content {
  font-size: calc(18px * var(--article-scale, 1));
  line-height: 1.82;
}

.article.scale-90 .article-content { --article-scale: 0.9; }
.article.scale-95 .article-content { --article-scale: 0.95; }
.article.scale-100 .article-content { --article-scale: 1; }
.article.scale-105 .article-content { --article-scale: 1.05; }
.article.scale-110 .article-content { --article-scale: 1.1; }
.article.scale-115 .article-content { --article-scale: 1.15; }
.article.scale-120 .article-content { --article-scale: 1.2; }

.article.leading-compact .article-content { line-height: 1.62; }
.article.leading-wide .article-content { line-height: 2; }
.article.font-serif .article-content { font-family: ui-serif, Georgia, "Noto Serif KR", serif; }
.article.paragraph-compact .article-content p { margin-bottom: 14px; }
.article.paragraph-wide .article-content p { margin-bottom: 30px; }

.article-content h2 {
  display: flex;
  gap: 8px;
  align-items: baseline;
  scroll-margin-top: 104px;
  margin: 42px 0 12px;
  font-size: 30px;
  line-height: 1.24;
}

.article-content h3 {
  display: flex;
  gap: 8px;
  align-items: baseline;
  scroll-margin-top: 104px;
  margin: 30px 0 10px;
  font-size: 23px;
}

.heading-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  color: var(--muted);
  font-size: 0.72em;
  opacity: 0;
  text-decoration: none;
}

.article-content h2:hover .heading-anchor,
.article-content h2:focus-within .heading-anchor,
.article-content h3:hover .heading-anchor,
.article-content h3:focus-within .heading-anchor {
  opacity: 1;
}

.heading-anchor:focus-visible {
  opacity: 1;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-content li {
  padding-left: 2px;
}

.article-content blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--accent);
  color: var(--text-soft);
}

.article-content code {
  border-radius: 5px;
  background: var(--tag);
  padding: 2px 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.article-content pre {
  overflow-x: auto;
  margin: 28px 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: #202326;
  color: #f7f7f8;
}

.article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.article-content figure {
  margin: 32px 0;
}

.article-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.toc {
  width: min(100%, 780px);
  margin: 0 auto 24px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.toc a {
  display: block;
  min-height: 40px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 750;
  line-height: 1.45;
}

.toc a:hover,
.toc a:focus-visible,
.toc a[aria-current="true"] {
  background: var(--tag);
  color: var(--text);
  outline: none;
}

.toc a[aria-current="true"] {
  box-shadow: inset 3px 0 0 var(--accent);
}

.toc .nested {
  margin-left: 18px;
}

.related-posts {
  width: min(100%, 920px);
  margin-left: auto;
  margin-right: auto;
}

.post-engagement {
  display: grid;
  gap: 22px;
  width: min(100%, 920px);
  margin: 34px auto 0;
}

.engagement-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.metric-card strong {
  font-size: 24px;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.engagement-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.like-button.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.like-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  margin-left: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 13px;
}

.like-button.active span {
  background: rgba(255, 255, 255, 0.22);
}

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

.reaction-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 64px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.reaction-button:hover,
.reaction-button:focus-visible {
  border-color: var(--accent);
  outline: none;
  transform: translateY(-1px);
}

.reaction-button:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.reaction-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.reaction-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.reaction-button span {
  font-size: 17px;
  line-height: 1;
}

.reaction-button strong {
  min-width: 18px;
  font-size: 13px;
}

.engagement-status,
.comments-panel .section-heading p,
.empty-comments {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.comments-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.compact-heading {
  align-items: end;
  padding: 0;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.comment-form input {
  min-height: 44px;
  padding: 0 12px;
}

.comment-form textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
}

.comment-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.reply-label {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.comments-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.comment-item header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.comment-item strong {
  font-size: 15px;
}

.comment-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.comment-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.comment-item .text-button {
  justify-self: start;
}

.comment-replies {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-left: 14px;
  border-left: 3px solid var(--line);
}

.related-card {
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  outline: none;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
  padding: 26px 0 54px;
}

.about-section p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 38px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--text);
  font-size: 15px;
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
}

.not-found-card {
  display: grid;
  gap: 18px;
  width: min(100%, 560px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.not-found-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-height: 44px;
  font-weight: 900;
}

.not-found-card h1 {
  margin: 0;
  font-size: 44px;
}

.not-found-card p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.not-found-card .eyebrow {
  margin-top: 4px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .hero,
  .about-section {
    grid-template-columns: 1fr;
  }

  .post-list,
  .topic-grid,
  .about-grid,
  .related-grid,
  .recent-grid,
  .saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engagement-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  html {
    scroll-padding-top: 122px;
  }

  .site-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 24px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 0;
    padding: 30px 0 26px;
  }

  .hero-image {
    aspect-ratio: 16 / 7;
    max-height: 220px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card .featured-copy {
    order: -1;
  }

  h1 {
    font-size: 54px;
  }

  .featured-card h2,
  .section-heading h2 {
    font-size: 32px;
  }

  .article-header h1 {
    font-size: 46px;
  }

  .article-tools,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-month,
  .archive-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 76px;
  }

  main {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px 14px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand > span:not(.brand-mark) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav {
    width: auto;
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .post-list,
  .topic-grid,
  .about-grid,
  .related-grid,
  .recent-grid,
  .saved-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-actions,
  .article-primary-actions,
  .hero-actions,
  .engagement-bar,
  .comment-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-button,
  .primary-button,
  .sort-box {
    width: 100%;
  }

  .hero {
    gap: 22px;
    padding-bottom: 18px;
  }

  .hero-image {
    max-height: 180px;
  }

  .tag-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .tag-button {
    flex: 0 0 auto;
  }

  .toc {
    display: none;
  }

  .toolbar {
    gap: 12px;
    padding: 16px;
  }

  .toolbar .toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(118px, 0.42fr);
    align-items: end;
    gap: 10px;
  }

  .toolbar .sort-box {
    width: auto;
  }

  .toolbar .text-button.compact {
    min-height: 38px;
    padding-inline: 9px;
  }

  .engagement-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    min-height: 70px;
    padding: 12px;
  }

  .reaction-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .reaction-button {
    width: 100%;
  }

  #clearSearchButton:not([hidden]),
  #resetDiscoveryButton:not([hidden]),
  #copyDiscoveryButton:not([hidden]) {
    grid-column: 1 / -1;
    width: 100%;
  }

  .reading-settings[open] {
    display: grid;
    gap: 8px;
  }

  .reading-settings[open] .article-tool-group {
    position: static;
    width: 100%;
  }

  .comments-panel {
    padding: 16px;
  }

  .reply-label {
    margin-right: 0;
  }

  .comment-replies {
    padding-left: 10px;
  }

  .site-footer {
    flex-direction: column;
    padding: 30px 24px;
  }

  h1 {
    font-size: 42px;
  }

  .featured-card h2,
  .section-heading h2,
  .not-found-card h1 {
    font-size: 30px;
  }

  .not-found-card {
    padding: 24px;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .featured-card h2 {
    font-size: 28px;
  }

  .article-header h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .article-header {
    gap: 10px;
    margin-bottom: 24px;
  }

  .article-header p {
    font-size: 18px;
    line-height: 1.58;
  }

  .article-meta {
    gap: 8px;
  }

  .article-cover {
    margin-bottom: 24px;
  }
}

@media (max-width: 420px) {
  .featured-card h2 {
    font-size: 26px;
  }

  .article-header h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .post-card:hover,
  .post-card:focus-within {
    transform: none;
  }

  .post-card-actions {
    transform: none;
  }

  .icon-button span,
  .icon-button svg {
    transition-duration: 0.01ms !important;
  }

  .skeleton-media::after,
  .skeleton-line::after {
    animation: none !important;
  }
}

@media (hover: none) {
  .post-card-actions {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .icon-button span,
  .icon-button svg {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@media print {
  .site-header,
  .hero,
  .featured-post,
  .toolbar,
  .topic-map,
  .archive-section,
  .article-tools,
  .toc,
  .post-engagement,
  .related-posts,
  .site-footer {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  .post-view,
  .article {
    display: block !important;
    width: 100%;
  }
}
