@charset "utf-8";
/* ============================================================
   ChainLabs — Tistory skin
   "DRIFT / LABS" editorial magazine look:
   near-black charcoal + lime accent + cream text + mono labels.
   Dark is the default; a full light ("paper") mode ships too.
   Author: built with Claude Code
   ============================================================ */

/* ---------- Design tokens (dark = default) ---------- */
:root {
  --bg: #0a0a0a;
  --bg-soft: #0f0f0e;
  --surface: #141413;
  --surface-2: #1f1f1d;
  --surface-3: #26261f;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4ef;
  --text-soft: #b8b8b0;
  --muted: #7a7a75;
  --accent: #d4ff3a;        /* lime — used for fills (pills, buttons, brand) */
  --accent-ink: #d4ff3a;    /* lime as readable text/links on dark */
  --on-accent: #0a0a0a;     /* ink that sits on a lime fill */
  --avatar: #2a2a28;
  --glow: rgba(212, 255, 58, 0.06);
  --g-empty: rgba(255, 255, 255, 0.07);   /* grass: zero-count cell */
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.85);
  --code-bg: #0d0d0c;
  --code-text: #e8e8e0;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --maxw: 1180px;
  --font: "Pretendard", "Inter", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  /* JetBrains Mono lacks Korean glyphs, so fall back to Pretendard for 한글 */
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas,
    "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", monospace;
}

/* ---------- Light ("paper") mode ---------- */
[data-theme="light"] {
  --bg: #f2f1ea;
  --bg-soft: #e9e8df;
  --surface: #ffffff;
  --surface-2: #f4f3ec;
  --surface-3: #ebeae1;
  --border: rgba(20, 20, 12, 0.12);
  --border-soft: rgba(20, 20, 12, 0.07);
  --border-strong: rgba(20, 20, 12, 0.22);
  --text: #16160e;
  --text-soft: #45453b;
  --muted: #7c7c70;
  --accent: #cdf226;        /* slightly deeper lime so the fill reads on white */
  --accent-ink: #5c7300;    /* dark olive-lime for readable accent text on paper */
  --on-accent: #13130a;
  --avatar: #e6e5db;
  --glow: rgba(120, 150, 0, 0.07);
  --g-empty: rgba(20, 20, 12, 0.08);       /* grass: zero-count cell */
  --shadow: 0 22px 50px -28px rgba(30, 30, 18, 0.30);
  --code-bg: #14140f;
  --code-text: #ececdf;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; }

/* mono label utility */
.mono-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono-label.is-accent { color: var(--accent-ink); }

/* lime pill button utility */
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; border: 0; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-accent:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 12px 26px -12px var(--accent); }
.btn-accent svg { width: 15px; height: 15px; }

/* ---------- Decorative background (kept very subtle / flat) ---------- */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(720px 420px at 88% -12%, var(--glow), transparent 70%);
}

/* ---------- Layout shell ---------- */
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.site-main { width: min(100% - 40px, var(--maxw)); margin: 0 auto; padding: 28px 0 80px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 28px; height: 28px; flex: none;
  border-radius: 7px;
  background: var(--accent);
  display: grid; place-items: center;
}
.brand__mark::after {
  content: "✳";
  font-size: 17px; line-height: 1;
  color: var(--on-accent); font-weight: 700;
}
.brand__name { white-space: nowrap; }
.brand__name b { color: var(--accent-ink); }

/* primary nav: per the design doc the header stays minimal (logo + search +
   theme + profile); the blog menu lives in the side drawer instead. */
.gnb { display: none; }
.gnb ul { display: flex; align-items: center; gap: 2px; list-style: none; flex-wrap: nowrap; overflow: hidden; }
.gnb li { white-space: nowrap; }
.gnb a {
  display: block;
  padding: 8px 13px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.gnb a:hover { color: var(--text); background: var(--surface-2); }
.gnb .open a, .gnb .selected > a { color: var(--accent-ink); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  transition: all .18s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .moon { display: none; }
[data-theme="light"] .icon-btn .sun { display: none; }
[data-theme="light"] .icon-btn .moon { display: block; }

/* profile dropdown — anchored to the header's right edge (the page content
   edge), not the avatar, so it stays flush even with the menu button beside it */
.profile-dropdown { position: static; }
.profile-btn {
  width: 38px; height: 38px; padding: 0;
  border-radius: 50%; border: 2px solid var(--border);
  background: var(--surface-2); overflow: hidden;
  transition: border-color .18s ease;
}
.profile-btn:hover { border-color: var(--accent); }
.profile-btn img { width: 100%; height: 100%; object-fit: cover; }

.profile-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 276px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .2s ease; z-index: 100;
}
.profile-menu.open { opacity: 1; visibility: visible; transform: none; }
/* Tistory-style account header */
.pm-head { padding: 6px 10px 12px; }
.pm-head__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-head__name { font-weight: 700; font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-head__link { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pm-head__link:hover { color: var(--accent-ink); }
.pm-head__sub { display: block; margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pm-head__blog { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.pm-head__blogname { font-weight: 600; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-head__actions { display: inline-flex; gap: 4px; flex: none; }
.pm-head__actions a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--text-soft); }
.pm-head__actions a:hover { background: var(--surface-2); color: var(--accent-ink); }
.pm-head__actions svg { width: 15px; height: 15px; }
.profile-menu .menu-item {
  display: block; text-align: center;
  padding: 11px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-soft);
}
.profile-menu .menu-item:hover { background: var(--surface-2); color: var(--accent-ink); }
.profile-menu hr { border: 0; border-top: 1px solid var(--border-soft); margin: 6px 0; }
.profile-menu__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 8px 2px 4px;
}
.profile-menu__stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.profile-menu__stats b { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.profile-menu__stats span { font-size: 10px; letter-spacing: 0.01em; color: var(--muted); white-space: nowrap; }

.catalog-toggle { display: grid; }

/* side drawer (mobile menu + categories) */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(330px, 86vw); z-index: 100;
  background: var(--bg); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer__header {
  height: 64px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}
.drawer__content { flex: 1; overflow-y: auto; padding: 24px 20px; }
.drawer-section { margin-bottom: 32px; }
.drawer-section h4 {
  font-family: var(--mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--muted); margin: 0 0 16px; font-weight: 500;
}
.drawer-section ul { list-style: none; }
.drawer-section li { margin: 4px 0; }
.drawer-section a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--text-soft);
}
.drawer-section a:hover { background: var(--surface-2); color: var(--accent-ink); }

/* category list inside drawer */
.category-list ul { list-style: none; }
.category-list li { margin: 2px 0; }
.category-list a { padding: 8px 14px; }
.category-list .sub_category_list { padding-left: 16px; margin-top: 4px; }
.category-list .c_cnt { font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 400; font-family: var(--mono); }

/* search panel */
.search-panel {
  display: none;
  border-bottom: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}
.search-panel.open { display: block; }
.search-panel .sbar { display: flex; gap: 10px; padding: 16px 0; }
.search-panel s_search { display: contents; }
.search-panel input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
}
.search-panel input:focus { border-color: var(--accent); }
.search-panel button {
  padding: 0 24px;
  border: 0; border-radius: 12px;
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
}

/* ---------- Hero (home only) : text + image slider ---------- */
.hero { display: none; }
#tt-body-index .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 44px;
  align-items: stretch;
  width: min(100% - 40px, var(--maxw));
  margin: 44px auto 0;
}
/* text column fills the slider's height; lead centers, grass pins to the
   bottom so the grass panel's base lines up with the slider's bottom edge */
.hero__text { min-width: 0; display: flex; flex-direction: column; }
.hero__lead { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.hero__title {
  position: relative;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}
.hero__title .accent { color: var(--accent-ink); font-style: italic; }
.hero__spark { position: absolute; top: -6px; margin-left: 10px; width: 26px; height: 26px; }
.hero__spark path { fill: var(--accent); }
.hero__desc { max-width: 460px; margin: 26px 0 0; color: var(--text-soft); font-size: 1.05rem; line-height: 1.6; }

/* DailyProof contribution grass — rendered from JSON, framed like the skin's
   other cards. Each cell shows its date·count on hover; legend = less → more. */
.hero__grass {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}
.hero__grass .grass-cap { display: block; margin-bottom: 12px; }
.grass { position: relative; }
.grass__months { display: grid; gap: 3px; margin-bottom: 5px; }
.grass__months span {
  font-family: var(--mono); font-size: 9px; line-height: 1;
  color: var(--muted); white-space: nowrap;
}
.grass__grid {
  display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(7, 1fr); grid-auto-columns: 1fr; gap: 3px;
}
.grass__cell { border-radius: 2px; background: var(--g-empty); }
.grass__cell.is-empty { background: transparent; }
.grass__cell[data-lvl="1"] { background: color-mix(in srgb, var(--accent) 30%, var(--g-empty)); }
.grass__cell[data-lvl="2"] { background: color-mix(in srgb, var(--accent) 55%, var(--g-empty)); }
.grass__cell[data-lvl="3"] { background: color-mix(in srgb, var(--accent) 78%, var(--g-empty)); }
.grass__cell[data-lvl="4"] { background: var(--accent); }
.grass__cell:not(.is-empty):hover { outline: 1px solid var(--accent-ink); outline-offset: 0; }
.grass__legend {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  margin-top: 10px; font-family: var(--mono); font-size: 9px; color: var(--muted);
}
.grass__legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--g-empty); }
.grass__legend i[data-lvl="1"] { background: color-mix(in srgb, var(--accent) 30%, var(--g-empty)); }
.grass__legend i[data-lvl="2"] { background: color-mix(in srgb, var(--accent) 55%, var(--g-empty)); }
.grass__legend i[data-lvl="3"] { background: color-mix(in srgb, var(--accent) 78%, var(--g-empty)); }
.grass__legend i[data-lvl="4"] { background: var(--accent); }
.grass__tip {
  position: absolute; z-index: 6; pointer-events: none;
  transform: translate(-50%, -100%);
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 9px; font-family: var(--mono); font-size: 11px; white-space: nowrap;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .12s ease;
}
.grass__tip.show { opacity: 1; }

/* hero image slider */
.image-slot {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #1f1f1d 0%, #141413 60%, #0f0f0e 100%);
}
.image-slot .slides { position: absolute; inset: 0; }
.image-slot .slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.04); pointer-events: none;
  transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform 1.2s cubic-bezier(.4, 0, .2, 1);
}
.image-slot .slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.image-slot .bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.image-slot .placeholder {
  position: absolute; left: 0; right: 0; bottom: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.image-slot .placeholder-label-1 { font-size: 11px; }
.image-slot .placeholder-label-2 { color: #b8b8b0; letter-spacing: 0.14em; }
.image-corner {
  position: absolute; z-index: 3;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: rgba(244, 244, 239, 0.75); text-transform: none;
  max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.image-corner.tl { top: 14px; left: 14px; }
.image-corner.bl { bottom: 14px; left: 14px; }
.image-corner.br { bottom: 14px; right: 14px; }
.image-corner .current-slide { color: var(--accent); }

.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10, 10, 10, 0.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14); color: #f4f4ef;
  display: grid; place-items: center; z-index: 4;
  opacity: 0; transition: opacity .3s ease, background .2s ease, color .2s ease;
}
.image-slot:hover .slide-nav { opacity: 1; }
.slide-nav:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.slide-nav svg { width: 18px; height: 18px; }
.slide-nav.prev { left: 12px; }
.slide-nav.next { right: 12px; }

.slide-indicators {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.indicator {
  width: 24px; height: 3px; padding: 0; border: 0; border-radius: 2px;
  background: rgba(244, 244, 239, 0.28);
  transition: background .3s ease, width .3s ease;
}
.indicator.active { background: var(--accent); width: 36px; }

/* ---------- Categories pill band (home only) ---------- */
.cat-band { display: none; }
#tt-body-index .cat-band {
  display: block;
  margin: 36px 0 8px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}
.cat-band__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.cat-band__title { font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: 0.01em; }
.cat-pills ul { list-style: none; }
/* Tistory nests every category inside the "분류 전체보기" <li> (and may nest
   sub-categories deeper). Flatten the whole tree with display:contents so all
   links become one continuous, wrapping pill flow — no stretched giant oval. */
.cat-pills > ul { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.cat-pills li { display: contents; }
.cat-pills ul ul { display: contents; }
.cat-pills a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-soft); white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.cat-pills a:hover { border-color: var(--accent-ink); color: var(--accent-ink); background: var(--glow); }
.cat-pills .c_cnt, .cat-pills .count { color: var(--muted); font-size: 10px; font-weight: 400; }
/* first link = "분류 전체보기" → lime solid emphasis (matches the mockup) */
.cat-pills > ul > li:first-child > a {
  background: var(--accent); color: var(--on-accent);
  border-color: transparent; font-weight: 600;
}
.cat-pills > ul > li:first-child > a:hover { color: var(--on-accent); background: var(--accent); }
.cat-pills > ul > li:first-child > a .c_cnt,
.cat-pills > ul > li:first-child > a .count { color: var(--on-accent); opacity: .55; }

/* ---------- Article list / card grid ---------- */
#tt-body-index .article-list,
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}
#tt-body-index .article-list { margin-top: 18px; }

.post-card {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.post-card__link { display: flex; flex-direction: column; height: 100%; }
.post-card__link:hover { color: inherit; }
.post-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin: 16px 16px 0;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--surface-2);
  /* branded placeholder shown when a post has no thumbnail */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 36 36'%3E%3Cpath d='M18 2 L20 16 L34 18 L20 20 L18 34 L16 20 L2 18 L16 16 Z' fill='%23d4ff3a' opacity='0.55'/%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 42%, rgba(212, 255, 58, 0.12), transparent 55%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 40px 40px, cover;
}
/* real thumbnail overlays (and hides) the placeholder when a post has one */
.post-card__thumb-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}
.post-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
/* card category = mono uppercase lime eyebrow */
.chip {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-accent);
  padding: 6px 13px; border-radius: 999px;
  background: var(--accent);
}
.chip:hover { color: var(--on-accent); }
.post-card .chip {
  background: none; color: var(--accent-ink);
  padding: 0; letter-spacing: 0.06em; font-size: 11px; font-weight: 600;
}
.post-card__title {
  font-size: 1.18rem; font-weight: 600; margin: 0; line-height: 1.4; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card:hover .post-card__title { color: var(--accent-ink); }
.post-card__summary {
  margin: 0; color: var(--text-soft); font-size: .94rem; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__meta {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.post-card__meta .cmt { display: inline-flex; align-items: center; gap: 5px; }
.post-card__meta .cmt::before { content: "✦"; color: var(--accent-ink); }

/* ---------- Featured layout (home only) ----------
   When the home has enough posts (≥4): card 1 = cover story (big, left, spans
   2 rows), cards 2 & 3 = stacked side cards on the right (card 3 = lime solid),
   cards 4+ = uniform grid below. The :has() guard keeps short pages on the
   plain auto-fill grid so a 1–3 post home never looks broken. */
#tt-body-index .article-list:has(> .post-card:nth-child(4)) {
  grid-template-columns: repeat(12, 1fr);
}
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(1) {
  grid-column: 1 / 8; grid-row: 1 / 3; min-height: 340px;
  background: linear-gradient(135deg, #1f1f1d, #0d0d0c);
}
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 2; }
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) { grid-column: 8 / 13; grid-row: 2 / 3; }
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(n+4) { grid-column: span 4; }
/* "More" section label sits between the featured block (rows 1–2) and the
   rest of the grid (which auto-flows from row 4 onward) */
#tt-body-index .article-list:has(> .post-card:nth-child(4))::before {
  content: "More";
  grid-column: 1 / -1; grid-row: 3 / 4; align-self: end;
  margin-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600;
  letter-spacing: -0.02em; color: var(--text);
}

/* cover story: thumbnail fills the card, text overlays the bottom */
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(1) .post-card__link { position: relative; height: 100%; }
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(1) .post-card__thumb {
  position: absolute; inset: 0; height: 100%; aspect-ratio: auto;
  margin: 0; border: 0; border-radius: 0; background: none;
}
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(1) .post-card__body {
  position: relative; z-index: 1; margin-top: auto; gap: 12px;
  padding: 72px 34px 30px;
  background: linear-gradient(to top, rgba(8, 8, 6, 0.94), rgba(8, 8, 6, 0.5) 58%, transparent);
}
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(1) .post-card__title {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.18; -webkit-line-clamp: 3; color: #f4f4ef;
}
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(1) .post-card__summary {
  font-size: 1rem; -webkit-line-clamp: 2; color: rgba(244, 244, 239, 0.8);
}
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(1) .chip { color: var(--accent); }
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(1) .post-card__meta { color: rgba(244, 244, 239, 0.72); }
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(1):hover .post-card__title { color: var(--accent); }

/* side cards (2 & 3): compact, no thumbnail / summary */
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(2) .post-card__thumb,
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) .post-card__thumb,
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(2) .post-card__summary,
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) .post-card__summary { display: none; }
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(2) .post-card__body,
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) .post-card__body {
  justify-content: space-between; min-height: 158px; gap: 16px; padding: 22px 22px 20px;
}
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(2) .post-card__title,
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) .post-card__title {
  font-size: 1.3rem; -webkit-line-clamp: 2;
}

/* card 3 = lime solid (the "interview" accent card) */
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) {
  background: var(--accent); border-color: transparent;
}
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) .chip,
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) .post-card__title,
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) .post-card__meta { color: var(--on-accent); }
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) .post-card__meta .cmt::before { color: var(--on-accent); }
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3):hover .post-card__title,
#tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) .post-card__link:hover { color: var(--on-accent); }

/* The home already shows posts via the magazine grid (s_index_article_rep).
   Some home configurations ALSO emit the "전체 글" list block (s_list),
   duplicating the same posts — hide that duplicate on the home only. */
#tt-body-index .list-head,
#tt-body-index .list-grid { display: none; }

/* list header (category / search / tag) */
.list-head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
.list-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.list-head h1 .count {
  font-family: var(--mono); font-size: .9rem; color: var(--accent-ink); font-weight: 500;
  vertical-align: middle; margin-left: 10px;
}
.list-head p { margin: 10px 0 0; color: var(--muted); }
.empty {
  grid-column: 1 / -1;
  text-align: center; padding: 80px 20px;
  color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius);
}

/* ---------- Single post ---------- */
/* article header — centered category chip + huge title + meta */
.article-header {
  max-width: 760px;
  margin: 8px auto 48px;
  padding: 20px 0 40px;
  text-align: center;
}
.article-category {
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--on-accent);
  padding: 7px 18px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  text-decoration: none;
}
.article-category:hover { color: var(--on-accent); opacity: 0.92; }
.article-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500; line-height: 1.15;
  margin: 0 0 28px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.article-meta {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.15em;
}
.article-meta .author { color: var(--text); font-weight: 500; text-transform: uppercase; }
.article-meta .divider { color: var(--border-strong); }

.article-body { max-width: 720px; margin: 0 auto; }

/* Hide Tistory's auto-injected post toolbar (share / stats / more)
   and "이 카테고리의 다른 글" block — we render our own .action-bar
   and .related-compact instead, so the natives are duplicates. */
.container_postbtn,
.area_postbtn,
.postbtn_type1,
.tt_box_subscribe_postbtn,
.tt-tools-postbtn,
.box_attribute,
.area_share,
.tt_useless_p,
.another_category,
.tt_another_category,
.tt-related-post,
.area_relate,
.related_articles {
  display: none !important;
}

.article-body { font-size: 1.06rem; color: var(--text-soft); line-height: 1.85; word-break: break-word; }
.article-body > *:first-child { margin-top: 0; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
  color: var(--text); margin: 2em 0 .7em; line-height: 1.3;
}
.article-body h2 { font-size: 1.6rem; padding-bottom: .35em; border-bottom: 1px solid var(--border); }
.article-body h3 { font-size: 1.3rem; }
.article-body p { margin: 1.1em 0; }
.article-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body img { border-radius: 12px; margin: 1.4em 0; }
.article-body ul, .article-body ol { margin: 1.1em 0; padding-left: 1.4em; }
.article-body li { margin: .4em 0; }
.article-body blockquote {
  margin: 1.6em 0; padding: 14px 22px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
}
.article-body code {
  font-family: var(--mono); font-size: .9em;
  background: var(--surface-2); padding: .15em .45em; border-radius: 6px;
  border: 1px solid var(--border-soft);
}
.article-body pre {
  background: var(--code-bg); color: var(--code-text);
  padding: 20px 22px; border-radius: 12px; overflow: auto;
  border: 1px solid var(--border); margin: 1.6em 0;
}
.article-body pre code { background: none; border: 0; padding: 0; font-size: .9rem; color: inherit; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--surface-2); }

/* action bar — like / share / comments / more */
.action-bar-wrapper {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
}
.action-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-soft);
}
.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: transparent; border: none;
  color: var(--text); font-size: 13px; cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.action-btn:hover { background: var(--surface-2); color: var(--accent-ink); }
.action-btn.liked { color: var(--accent-ink); }
.action-btn.liked svg { fill: var(--accent-ink); }
.action-btn.copied::after {
  content: "복사됨"; font-family: var(--mono); font-size: 11px;
  color: var(--accent-ink); margin-left: 4px;
}
.action-btn svg { width: 16px; height: 16px; }
.action-btn .count { font-family: var(--mono); font-size: 12px; }
.action-divider { width: 1px; height: 20px; background: var(--border); }

/* more menu (admin actions dropdown) */
.more-menu { position: relative; }
.action-dropdown {
  position: absolute;
  bottom: calc(100% + 12px); right: -8px;
  min-width: 170px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 50;
}
.action-dropdown::after {
  content: ''; position: absolute; bottom: -6px; right: 18px;
  width: 12px; height: 12px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.action-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-action {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 13px;
  transition: background .15s ease, color .15s ease;
  cursor: pointer;
}
.dropdown-action:hover { background: var(--surface); color: var(--accent-ink); }
.dropdown-action svg { width: 15px; height: 15px; flex: none; }
.dropdown-action.danger { color: var(--text); }
.dropdown-action.danger:hover { background: rgba(255,80,80,.1); color: #ff6b6b; }

/* related — compact list (title + date) */
.related-compact {
  max-width: 720px;
  margin: 48px auto 0;
  border: 1px solid var(--border-soft); border-radius: 12px;
  overflow: hidden;
}
.related-compact-header {
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px; color: var(--text-soft);
}
.related-compact-header .cat-name { color: var(--accent-ink); font-weight: 500; }
.related-compact-list { padding: 4px 0; }
.related-compact-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  color: var(--text); text-decoration: none;
  font-size: 14px; gap: 14px;
  transition: background .15s ease, color .15s ease;
}
.related-compact-item:hover { background: var(--surface); color: var(--accent-ink); }
.related-compact-item .title-row {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1;
}
.related-compact-item .title {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-compact-item .date {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: .1em;
  white-space: nowrap;
}

/* tags */
.article-tags {
  max-width: 720px; margin: 32px auto 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.article-tags a {
  border: 1px solid var(--border);
  color: var(--text); background: transparent;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.article-tags a::before { content: "#"; color: var(--muted); margin-right: 2px; }
.article-tags a:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--surface); }
.article-tags a:hover::before { color: var(--accent-ink); }

/* prev / next nav */
.post-nav {
  max-width: 720px; margin: 64px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.post-nav .prev { grid-column: 1; grid-row: 1; }
.post-nav .next { grid-column: 2; grid-row: 1; }
/* if a real prev/next exists, hide the placeholder sibling */
.post-nav a.prev ~ .prev.placeholder,
.post-nav a.next ~ .next.placeholder { display: none; }
.post-nav-item {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  text-decoration: none;
  min-height: 96px;
  display: flex; flex-direction: column; justify-content: center;
  transition: border-color .18s ease, transform .18s ease;
}
.post-nav-item:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.post-nav-item.next { text-align: right; align-items: flex-end; }
.post-nav-label {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.2em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase;
}
.post-nav-label svg { width: 12px; height: 12px; }
.post-nav-item.next .post-nav-label { flex-direction: row-reverse; }
.post-nav-title {
  font-size: 15px; font-weight: 500;
  color: var(--text); line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-nav-item.placeholder {
  opacity: 0.5; cursor: default; pointer-events: none;
}
.post-nav-item.placeholder .post-nav-title { color: var(--muted); }

/* ---------- Comments ---------- */
.comments-section {
  max-width: 720px; margin: 80px auto 0;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.comments-header {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 24px;
}
.comments-header h3 {
  font-size: 20px; font-weight: 500;
  color: var(--text); margin: 0;
  letter-spacing: -0.01em;
}
.comments-count {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent-ink); letter-spacing: 0.1em;
}
/* style Tistory default comment app */
.comments-section .tt-box-total { display: none; }
.comments-section .tt-item-reply { padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.comments-section .tt-link-user { font-weight: 600; color: var(--text); }
.comments-section .tt_desc { color: var(--text-soft); margin: 6px 0; }
.comments-section .tt_date { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.comments-section .tt-box-textarea,
.comments-section .tt-box-account input,
.comments-section .tt-cmt {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
}
.comments-section .tt-btn_register {
  background: var(--accent) !important;
  color: var(--on-accent) !important;
  border: 0 !important; border-radius: 999px !important;
  font-weight: 600 !important;
  font-family: var(--mono); letter-spacing: 0.08em;
}
.comments-section ol, .comments-section ul { list-style: none; }

/* comment form (mockup-styled, wraps Tistory's <s_rp_input_form>) */
.comment-form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}
.comment-form textarea {
  width: 100%;
  min-height: 80px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  padding: 0;
}
.comment-form textarea::placeholder { color: var(--muted); }
.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.comment-form-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.1em;
}
.comment-submit {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 12px;
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.comment-submit:hover { opacity: 0.92; }

/* empty state */
.comment-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--border-soft);
  border-radius: 12px;
}
.comment-empty svg {
  width: 28px; height: 28px;
  display: block;
  margin: 0 auto 12px;
  color: var(--border-strong);
}

/* ---------- Guestbook ---------- */
.guestbook { max-width: 760px; margin: 8px auto 0; }
.guestbook h3 { font-size: 1.6rem; margin: 0 0 24px; }
.guestbook textarea, .guestbook input[type="text"], .guestbook input[type="password"] {
  width: 100%; padding: 12px 16px; margin: 6px 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 15px;
}
.guestbook textarea { min-height: 120px; resize: vertical; }
.guestbook input[type="submit"] {
  margin-top: 10px; padding: 11px 24px; border: 0; border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent); font-family: var(--mono); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; font-size: 12px;
}
.guestbook .guestList ol { list-style: none; }
.guestbook .guestList li { padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.guestbook .name { font-weight: 600; }
.guestbook .date { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 8px; }

/* ---------- Paging ---------- */
.paging { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; }
.paging a {
  min-width: 42px; height: 42px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); color: var(--text-soft);
  font-family: var(--mono); font-weight: 500; font-size: 13px;
  transition: all .16s ease;
}
.paging a:hover { border-color: var(--accent); color: var(--accent-ink); }
.paging .numbox { display: inline-flex; gap: 8px; }
.paging .num.selected, .paging .num[class*="current"] {
  background: var(--accent);
  color: var(--on-accent); border-color: transparent;
}
.paging .no_more_prev, .paging .no_more_next { opacity: .35; pointer-events: none; }

/* ---------- Footer (minimal single row) ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  margin-top: 72px;
}
.site-footer__inner {
  width: min(100% - 40px, var(--maxw)); margin: 0 auto;
  padding: 28px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 28px;
}
.footer-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-left .brand { font-size: 14px; }
.footer-copy { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.footer-mail { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--text-soft); }
.footer-mail:hover { color: var(--accent-ink); }
.footer-right { display: flex; gap: 22px; }
.footer-right a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.footer-right a:hover { color: var(--accent-ink); }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  #tt-body-index .hero { grid-template-columns: 1fr; gap: 32px; }
  .image-slot { aspect-ratio: 16 / 11; max-height: 60vh; }
  .slide-nav { opacity: 1; }
}
@media (max-width: 720px) {
  .post-nav { grid-template-columns: 1fr; }
  .article-title { font-size: 1.8rem; }
  .article-body { font-size: 1rem; }
  .action-bar { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  /* stack the featured block in one column; keep the "More" label between the
     featured cards and the rest of the grid */
  #tt-body-index .article-list:has(> .post-card:nth-child(4)) { grid-template-columns: 1fr; }
  #tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(1) { grid-column: 1; grid-row: 1; min-height: 280px; }
  #tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(2) { grid-column: 1; grid-row: 2; }
  #tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(3) { grid-column: 1; grid-row: 3; }
  #tt-body-index .article-list:has(> .post-card:nth-child(4))::before { grid-column: 1; grid-row: 4; }
  #tt-body-index .article-list:has(> .post-card:nth-child(4)) > .post-card:nth-child(n+4) { grid-column: 1; grid-row: auto; }
}
@media (max-width: 520px) {
  .brand__name { font-size: 14px; }
  #tt-body-index .article-list, .list-grid { grid-template-columns: 1fr; }
}
