/* devoorhof.net — merged styles (shared + index + post + archive) */

:root {
  --bg: #fafaf7;
  --bg-soft: #f3f2ec;
  --bg-card: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #3b3b38;
  --muted: #7a7a74;
  --line: #e6e4dc;
  --line-strong: #d6d3c8;
  --accent: #2f3a2a;
  --tag-bg: #eeece3;
  --ad-bg: #f6f4ec;

  --serif: "Nanum Myeongjo", "Noto Serif KR", Georgia, serif;
  --sans: "Pretendard", ui-sans-serif, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --container: 1200px;
  --content-w: 720px;
  --side-w: 220px;
  --gap: 40px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto; padding: 14px 24px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
}
.brand {
  font-family: var(--sans); font-weight: 800;
  letter-spacing: -0.02em; font-size: 18px;
}
.brand .dot { color: var(--accent); }
.nav {
  display: flex; gap: 18px; justify-content: center;
  font-size: 14px; color: var(--ink-2);
  flex-wrap: nowrap; min-width: 0;
}
.nav a {
  padding: 6px 2px;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.nav a.active { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.nav a:hover { color: var(--ink); }

.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  width: 200px; min-width: 0; flex-shrink: 1;
}
.search input {
  border: 0; outline: 0; background: transparent;
  width: 100%; font-size: 13px; color: var(--ink);
  font-family: var(--sans);
}
.search svg { flex: 0 0 14px; color: var(--muted); }

/* ---------- Shell ---------- */
.shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 80px; padding: 40px 24px;
  font-size: 13px; color: var(--muted);
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 20px; flex-wrap: wrap;
}
.footer .footer-nav { display: flex; gap: 18px; }

/* ---------- Reusable ---------- */
.eyebrow {
  display: inline-block; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--tag-bg);
  border-radius: 999px; font-size: 12px; color: var(--ink-2);
}
.divider { height: 1px; background: var(--line); margin: 32px 0; border: 0; }

.side-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}

.ad-slot {
  background: repeating-linear-gradient(135deg, #f1efe6 0 8px, #ebe9df 8px 16px);
  border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.08em;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.ad-slot .ad-label {
  background: rgba(255,255,255,0.85);
  padding: 4px 10px; border-radius: 4px;
  border: 1px solid var(--line);
}

.img-ph {
  background: linear-gradient(135deg, #efece3 0%, #e9e6dc 100%);
  border: 1px solid var(--line); border-radius: 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 16px; position: relative; overflow: hidden;
}
.img-ph::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,0.025) 14px 15px);
  pointer-events: none;
}
.img-ph span {
  position: relative; background: rgba(255,255,255,0.7);
  padding: 6px 10px; border-radius: 3px; border: 1px solid var(--line);
}

/* ---------- Card (post list) ---------- */
.post-card {
  display: grid; grid-template-columns: 1fr 220px;
  gap: 28px; padding: 24px 0;
  border-bottom: 1px solid var(--line); align-items: start;
}
.post-card:last-child { border-bottom: 0; }
.post-card .cat {
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 8px;
}
.post-card h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 22px; letter-spacing: -0.01em;
  line-height: 1.35; margin: 0 0 10px;
}
.post-card h3 a:hover { color: var(--accent); }
.post-card p {
  font-family: var(--serif); font-size: 15px;
  line-height: 1.7; color: var(--ink-2); margin: 0 0 14px;
}
.post-card .meta {
  font-size: 12px; color: var(--muted);
  display: flex; gap: 10px; align-items: center;
}
.post-card .meta .sep { color: var(--line-strong); }
.post-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, #efece3 0%, #e9e6dc 100%);
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sidebar: related posts ---------- */
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.related-list li:first-child { padding-top: 0; }
.related-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.related-list .r-cat {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 600; display: block; margin-bottom: 4px;
}
.related-list .r-title {
  font-size: 13.5px; font-weight: 500;
  color: var(--ink); line-height: 1.45;
}
.related-list .r-title:hover { color: var(--accent); }
.related-list .r-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- Tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  font-size: 12px; padding: 4px 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2);
}
.tag-cloud a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Category list ---------- */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li a {
  display: flex; justify-content: space-between;
  align-items: baseline; padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink);
}
.cat-list li:last-child a { border-bottom: 0; }
.cat-list li a:hover { color: var(--accent); }
.cat-list .count { font-size: 11px; color: var(--muted); }

/* ========== Home ========== */
.home-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 56px; align-items: end;
}
.home-hero .kicker {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 700; margin-bottom: 16px;
}
.home-hero h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: 54px; line-height: 1.1;
  letter-spacing: -0.025em; margin: 0 0 20px;
  text-wrap: balance;
}
.home-hero .sub {
  font-family: var(--serif); font-size: 18px;
  line-height: 1.7; color: var(--ink-2);
  max-width: 540px; margin: 0;
}
.home-hero .right { display: grid; grid-template-columns: 1fr; gap: 14px; }
.home-hero .stat {
  border-top: 1px solid var(--line); padding: 14px 0;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans);
}
.home-hero .stat:last-child { border-bottom: 1px solid var(--line); }
.home-hero .stat .l {
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.home-hero .stat .v {
  font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums;
}

.featured {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 32px; margin-bottom: 56px;
}
.featured .big { grid-row: span 2;}
.featured .card { display: flex; flex-direction: column; gap: 14px; }
.featured .card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden; border-radius: 4px;
  background: linear-gradient(135deg, #efece3 0%, #e9e6dc 100%);
}
.featured .card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured .big .thumb { aspect-ratio: 4/3; }
.featured .card .cat {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.featured .card h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 19px; letter-spacing: -0.01em;
  line-height: 1.35; margin: 4px 0 0;
}
.featured .big h3 { font-size: 32px; line-height: 1.2; }
.featured .card h3 a:hover { color: var(--accent); }
.featured .card p {
  font-family: var(--serif); font-size: 15px;
  color: var(--ink-2); line-height: 1.7; margin: 0;
}
.featured .card .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; margin-top: 4px; }

.home-grid {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 56px; align-items: start;
}
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; margin: 0;
}
.section-head .more {
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent); font-weight: 600;
}
.home-side > section { margin-bottom: 40px; }

.chip-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 20px 0; margin-bottom: 40px;
  border-bottom: 1px solid var(--line); overflow-x: auto;
}
.chip-row a {
  font-size: 13px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap; color: var(--ink-2);
}
.chip-row a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-row a:hover { border-color: var(--ink); color: var(--ink); }
.chip-row a.active:hover { color: #fff; }

/* ========== Post (Option A Classic) ========== */
.post-a .hero {
  max-width: 900px; margin: 0 auto 48px;
  text-align: center; padding: 20px 0 0;
}
.post-a .hero .cat {
  color: var(--accent); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 18px;
}
.post-a .hero h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: 46px; line-height: 1.25;
  letter-spacing: -0.02em; margin: 0 0 20px;
  text-wrap: balance;
}
.post-a .hero .lede {
  font-family: var(--serif); font-size: 19px;
  line-height: 1.7; color: var(--ink-2);
  max-width: 680px; margin: 0 auto 28px;
  text-wrap: pretty;
}
.post-a .hero .byline {
  font-size: 13px; color: var(--muted);
  display: flex; justify-content: center; gap: 10px;
  align-items: center; margin-bottom: 28px;
}
.post-a .hero .byline .sep { color: var(--line-strong); }
.post-a .hero .cover {
  aspect-ratio: 16 / 9;
  max-width: 1000px; margin: 0 auto;
  overflow: hidden; border-radius: 4px;
  background: linear-gradient(135deg, #efece3 0%, #e9e6dc 100%);
}
.post-a .hero .cover img { width: 100%; height: 100%; object-fit: cover; }

.layout-3col {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, var(--content-w)) var(--side-w);
  gap: var(--gap); margin-top: 56px; align-items: start;
}
.layout-3col > aside > div { position: sticky; top: 84px; }

.article {
  font-family: var(--serif); font-size: 18px;
  line-height: 1.85; color: var(--ink);
}
.article p { margin: 0 0 24px; text-wrap: pretty; }
.article > p:first-child::first-letter {
  font-family: var(--serif); float: left;
  font-size: 56px; line-height: 0.9;
  padding: 6px 10px 0 0; color: var(--accent);
  font-weight: 700;
}
.article h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: 26px; letter-spacing: -0.01em;
  margin: 44px 0 18px; scroll-margin-top: 90px;
}
.article h2::before {
  content: ""; display: block;
  width: 28px; height: 2px;
  background: var(--ink); margin-bottom: 14px;
}
.article h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 19px; margin: 28px 0 12px;
}
.article ul, .article ol { padding-left: 22px; margin: 0 0 24px; }
.article li { margin-bottom: 8px; }
.article figure { margin: 28px 0; }
.article figure img { width: 100%; border-radius: 4px; }
.article figcaption {
  font-family: var(--sans); font-size: 13px;
  color: var(--muted); text-align: center; margin-top: 10px;
}
.article img { border-radius: 4px; margin: 28px 0; }
.article blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.55; color: var(--ink);
  border-left: 3px solid var(--accent);
  margin: 32px 0; padding: 4px 0 4px 22px;
}
.article a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

/* ========== Post — 특수 컴포넌트 ========== */

/* 준비물 박스 */
.prep-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0;
  font-family: var(--sans);
}
.prep-box h4 {
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px; font-weight: 700;
}
.prep-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px; font-size: 14px;
}
.prep-grid > div {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.prep-grid > div span:last-child { color: var(--muted); }

/* 주의/경고 박스 */
.warn-box {
  background: #fdf8ec;
  border: 1px solid #e9dcb8;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: #5a4a20;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.warn-box .badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em;
  background: #c59a3a; color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 3px;
}

/* 단계 (넘버링된 step) */
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  margin: 28px 0;
  align-items: start;
}
.step .num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
  padding-top: 2px;
}
.step .body { font-family: var(--serif); }
.step .body h4 {
  font-family: var(--sans);
  font-size: 18px; font-weight: 700;
  margin: 0 0 8px;
}
.step .body p { margin: 0 0 12px; }
.step .body img { margin-top: 8px; border-radius: 4px; }

/* 정보/팁 박스 (추가) */
.info-box {
  background: #eef3ee;
  border: 1px solid #d4dfd4;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--accent);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.info-box .badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--accent); color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 3px;
}

/* TOC */
.toc { font-family: var(--sans); font-size: 13px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; line-height: 1.45; }
.toc a {
  display: block; padding: 8px 0 8px 24px;
  position: relative; color: var(--ink-2);
  border-left: 1.5px solid var(--line);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 8px;
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.05em; top: 11px;
}
.toc a.is-active {
  color: var(--ink); border-left-color: var(--accent); font-weight: 600;
}
.toc a:hover { color: var(--ink); }
.toc:empty { display: none; }

.share { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.share button {
  font-family: var(--sans); font-size: 12.5px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 9px 12px;
  cursor: pointer; color: var(--ink-2);
  display: flex; align-items: center; gap: 10px; text-align: left;
}
.share button:hover { border-color: var(--ink); color: var(--ink); }
.share button svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--muted); }

.side-ad { aspect-ratio: 1 / 1.2; max-height: 320px; }
.side-ad-wide { aspect-ratio: 1 / 1; margin-top: 24px; }
.inline-ad { aspect-ratio: 5 / 1; margin: 40px 0; }

.end-meta {
  margin-top: 48px; padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.end-meta .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.end-meta .tags a { font-size: 12px; color: var(--muted); }
.end-meta .tags a::before { content: "#"; color: var(--line-strong); margin-right: 2px; }
.end-meta .tags a:hover { color: var(--accent); }

.prev-next {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 40px;
}
.prev-next a {
  padding: 20px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff;
}
.prev-next .dir {
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 6px; font-weight: 600;
}
.prev-next .t {
  font-family: var(--sans); font-weight: 600;
  font-size: 14.5px; line-height: 1.4;
}
.prev-next a:hover { border-color: var(--ink); }
.prev-next .next { text-align: right; }

/* ========== Category ========== */
.cat-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line); margin-bottom: 40px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: end;
}
.cat-hero .crumb {
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em; margin-bottom: 14px;
}
.cat-hero .crumb a { color: var(--muted); }
.cat-hero .crumb a:hover { color: var(--ink); }
.cat-hero h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: 48px; letter-spacing: -0.02em; margin: 0 0 12px;
}
.cat-hero .desc {
  font-family: var(--serif); color: var(--ink-2);
  font-size: 17px; line-height: 1.7;
  max-width: 620px; margin: 0;
}
.cat-hero .count {
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-align: right;
}
.cat-hero .count strong {
  display: block; font-size: 40px; color: var(--ink);
  font-weight: 800; letter-spacing: -0.02em; margin-top: 4px;
}

.cat-grid, .t-grid {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 56px; align-items: start;
}
.filter-bar {
  display: flex; justify-content: space-between;
  align-items: baseline; padding-bottom: 12px;
  border-bottom: 2px solid var(--ink); margin-bottom: 8px;
  font-family: var(--sans);
}
.filter-bar .label {
  font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700;
}
.filter-bar .sort { display: flex; gap: 14px; font-size: 12px; }
.filter-bar .sort a { color: var(--muted); letter-spacing: 0.06em;}
.filter-bar .sort a.active { color: var(--ink); font-weight: 700; }

.side-section { margin-bottom: 40px; }
.side-section h2 {
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; padding-bottom: 12px;
  border-bottom: 2px solid var(--ink); margin: 0 0 16px;
}

/* ========== Tag ========== */
.t-hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--line); margin-bottom: 40px;
}
.t-hero .crumb {
  font-size: 12px; color: var(--muted);
  margin-bottom: 12px; letter-spacing: 0.08em;
}
.t-hero h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: 40px; letter-spacing: -0.02em; margin: 0 0 12px;
  display: flex; align-items: baseline; gap: 14px;
}
.t-hero h1 .hash { color: var(--accent); font-weight: 400; }
.t-hero h1 .n {
  font-size: 15px; color: var(--muted);
  font-weight: 500; letter-spacing: 0.08em;
}

.tags-wall {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px; padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.tags-wall a {
  font-family: var(--sans); font-size: 13px;
  padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2);
  display: inline-flex; align-items: baseline; gap: 6px;
}
.tags-wall a .n { font-size: 11px; color: var(--muted); }
.tags-wall a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tags-wall a.active .n { color: rgba(255,255,255,0.6); }
.tags-wall a:hover { border-color: var(--ink); color: var(--ink); }
.tags-wall a.active:hover { color: #fff; }

.alpha-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.alpha-cloud a {
  font-family: var(--sans); font-size: 13px;
  color: var(--ink-2); padding: 4px 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px;
}
.alpha-cloud a:hover { border-color: var(--ink); color: var(--ink); }

/* ========== Responsive ========== */
@media (max-width: 1080px) {
  .layout-3col { grid-template-columns: 1fr; }
  .layout-3col > aside { display: none; }
}
@media (max-width: 1000px) {
  .nav { display: none; }
  .home-hero { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr 1fr; }
  .featured .big { grid-row: span 1; grid-column: span 2; }
  .home-grid, .cat-grid, .t-grid { grid-template-columns: 1fr; }
  .cat-hero { grid-template-columns: 1fr; }
  .cat-hero .count { text-align: left; }
}
@media (max-width: 720px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .search { width: 160px; }
  .post-card { grid-template-columns: 1fr; }
  .post-card .thumb { aspect-ratio: 16 / 9; }
  .home-hero h1 { font-size: 38px; }
  .featured { grid-template-columns: 1fr; }
  .featured .big { grid-column: span 1; }
  .post-a .hero h1 { font-size: 32px; }
}
