:root {
  color-scheme: dark;
  --bg: #111110;
  --panel: #191918;
  --surface: #22211f;
  --line: #383633;
  --text: #f4efe9;
  --muted: #bdb5ab;
  --accent: #ff9e55;
  --accent-bright: #ffab6b;
  --accent-wash: #322319;
  --ink: #16110c;
  --chrome: #0b0b0a;
  --mono: "Cascadia Code", Consolas, ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.65 "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { width: min(100% - 48px, 1060px); margin-inline: auto; }
.layout { flex: 1; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 8px; background: var(--panel); }
.utility-inner, .foot, .panel-title, .pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-label { font-weight: 760; text-decoration: none; }
.search-page button { border: 1px solid var(--line); border-left: 0; border-radius: 0 7px 7px 0; padding-inline: 12px; background: var(--panel); color: var(--text); font: inherit; font-size: .82rem; white-space: nowrap; cursor: pointer; }
.tabs, .category-drawer nav {
  display: grid;
  border: 1px solid var(--line);
  background: var(--bg);
}
.tabs, .category-drawer { display: none; }
.category-drawer {
  position: fixed;
  z-index: 2;
  bottom: 18px;
  left: 14px;
}
.category-drawer summary {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  font-size: .8rem;
  cursor: pointer;
}
.category-drawer nav {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: 164px;
  max-height: min(60vh, 300px);
  overflow-y: auto;
  box-shadow: 0 4px 14px #1818181a;
}
.category-heading { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.tabs a, .category-drawer a { padding: 8px 12px; font-size: .85rem; text-decoration: none; color: var(--muted); }
.tabs a[aria-current], .tabs a:hover, .category-drawer a[aria-current], .category-drawer a:hover { color: var(--accent); background: var(--accent-wash); }
h1, h2, h3 { margin: 0; line-height: 1.28; font-weight: 720; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.6875rem, 1.25rem + 1.35vw, 2.125rem); }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .07em; }
.button { display: inline-flex; gap: 10px; align-items: center; padding: 8px 13px; border-radius: 6px; background: var(--accent); color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 750; }
.button:hover { color: var(--ink); background: var(--accent-bright); }
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.entry { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.entry a { display: block; height: 100%; text-decoration: none; }
.tile-image { aspect-ratio: 16/9; overflow: hidden; background: var(--surface); }
.tile-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-image img[src^="/covers/"] { object-fit: contain; }
.tile-icon img { object-fit: contain; padding: 23%; }
.tile-copy { padding: 11px 12px 15px; }
.tile-copy p { margin: 0 0 5px; font-size: .74rem; color: var(--muted); }
.tile-copy h3 { font-size: clamp(.91rem, 1.5vw, 1.12rem); }
.hero { padding-block: 34px 26px; }
.hero p:not(.eyebrow), .empty { color: var(--muted); }
.article { max-width: 820px; margin: 27px auto; padding: clamp(17px, 4vw, 46px); border-radius: 12px; background: var(--panel); color: var(--text); }
.article h1 { font-size: clamp(1.5625rem, 1.125rem + 1.65vw, 2.25rem); }
.article-head { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.dates, .status, figcaption { color: var(--muted); font-size: .83rem; }
.lede { font-size: 1.06rem; }
.post-thumbnail { margin: 22px 0 28px; }
.post-thumbnail img { display: block; width: 100%; max-height: 480px; object-fit: contain; background: var(--surface); }
.post-icon img { height: 125px; padding: 34px; }
figcaption { padding-top: 7px; }
.prose { overflow-wrap: anywhere; }
.prose h2 { margin: 30px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.28rem; }
.prose img { max-width: 100%; height: auto; }
.prose pre, .contents { background: var(--surface); padding: 12px 16px; }
.prose pre { overflow: auto; }
.prose blockquote { margin-left: 0; padding-left: 14px; border-left: 2px solid var(--line); }
.prose a { color: var(--accent); }
.contents ol { margin-bottom: 0; }
.project-list, .search-page ol { list-style: none; padding: 0; }
.project-list li, .search-page li { padding: 10px 0; border-top: 1px solid var(--line); }
.project-list li { display: flex; justify-content: space-between; gap: 12px; }
.search-page li a { display: block; color: var(--accent); font-weight: 700; }
.search-page li p { margin: 2px 0; font-size: .9rem; }
.search-page li p, .search-page small { color: var(--muted); }
.search-page button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; }
.pager { padding-block: 24px; }
.footer { margin-top: clamp(42px, 6vw, 72px); border-top: 1px solid var(--line); background: var(--chrome); color: var(--text); }
.foot { min-height: 94px; padding-block: clamp(34px, 5vw, 58px); flex-wrap: wrap; color: var(--muted); font-size: .83rem; }
.foot p { margin: 3px 0 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 690px) {
  .shell { width: calc(100% - 28px); }

  .tabs a { font-size: .77rem; }
  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

.press { padding-block: 50px 24px; }
.press-front { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.29fr) minmax(0, 1fr); align-items: start; gap: 27px; }
.press a { text-decoration: none; }
.press ul { padding: 0; margin: 0; list-style: none; }
.press time { display: block; margin-top: 9px; color: var(--muted); font-size: .75rem; }
.press-brief { border: 1px solid var(--line); }
.press-brief h2 { font-size: 1.05rem; padding: 13px; }
.press-brief li, .press-list li { border-top: 1px solid var(--line); }
.press-brief li a, .press-list li a { display: block; padding: 13px; font-size: .9rem; line-height: 1.45; }
.press-all { display: block; padding: 10px 13px; color: var(--accent); font-size: .8rem; }
.press-lead-image { position: relative; border-bottom: 4px solid var(--accent); }
.press-lead-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.press-lead-image span { position: absolute; top: 9px; left: 9px; background: #181818; color: #fff; border-radius: 14px; padding: 3px 8px; font-size: .75rem; }
.press-lead h3 { margin-top: 16px; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.875rem); }
.press-lead p { color: var(--muted); margin: 10px 0; font-size: .93rem; }
.press-top { display: grid; gap: 15px; }
.press-top a { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); min-height: 120px; border: 1px solid var(--line); }
.press-thumb { border-right: 3px solid var(--accent); background: var(--surface); }
.press-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.press-top a > div:last-child { padding: 8px; }
.press-top h3 { font-size: .91rem; }
.press-topic { display: block; font-size: .73rem; color: var(--accent); margin-bottom: 4px; }
.press-bottom { display: grid; grid-template-columns: 1.35fr 1fr; gap: 27px; margin-top: 42px; }
.press-list h2 { border-top: 3px solid #181818; padding: 11px 0; font-size: 1.125rem; }
.press-list li a { padding-inline: 0; }
@media (max-width: 840px) {
 .press-front { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
 .press-brief { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
 .press { padding-top: 22px; }
 .press-front, .press-bottom { grid-template-columns: 1fr; }
 .press-brief { grid-row: auto; grid-column: auto; order: 2; }
 .press-top { order: 1; }
 .press-bottom { margin-top: 27px; }
}

.news-feed .entry { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.news-feed .entry a { display: flex; align-items: center; min-height: 70px; gap: 12px; }

.news-feed .tile-copy { padding-inline: 0; }

@media (min-width: 1430px) {
  .layout { display: grid; grid-template-columns: 0 minmax(0, 1fr); }
  .layout > main { grid-column: 2; min-width: 0; }
  .tabs {
    position: sticky;
    top: 16px;
    align-self: start;
    grid-column: 1;
    margin: 21px 0 16px -180px;
    z-index: 2;
    width: 164px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    display: grid;
  }
}
@media (min-width: 691px) and (max-width: 1429px) {
  .category-drawer { display: block; }
}
@media (max-width: 690px) {
  .tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    overflow-x: auto;
    border-width: 0 0 1px;
    white-space: nowrap;
  }
  .category-heading { display: none; }
  .tabs a { flex: 0 0 auto; }
}

.utility {
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--accent);
}
.utility-inner { min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand-copy { display: grid; gap: 1px; line-height: 1.25; font-size: clamp(1rem, 2.5vw, 1.55rem); letter-spacing: -.04em; }
.brand-copy small { color: var(--accent); font-size: .67rem; font-weight: 680; letter-spacing: .07em; }
.utility form { width: min(43%, 310px); display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.utility input { flex: 1; min-width: 0; padding: 7px 8px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .83rem; }
.utility button { padding: 6px 12px; border: 0; border-radius: 6px; background: var(--surface); color: #fff; font: inherit; font-size: .8rem; white-space: nowrap; cursor: pointer; }
.utility button:hover { background: var(--accent); }
.post-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
.post-pagination a { display: grid; align-content: start; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; overflow-wrap: anywhere; }
.post-pagination a:hover { border-color: currentColor; background: var(--bg); }
.post-pagination a span, .post-related time { color: var(--muted); font-size: .76rem; }
.post-newer { grid-column: 2; text-align: right; }
.post-related { margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--line); }
.post-related-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.post-related-heading h2 { font-size: 1.12rem; }
.post-related-heading a { color: var(--accent); font-size: .8rem; }
.post-related ul { padding: 0; margin: 8px 0 0; list-style: none; }
.post-related li + li { border-top: 1px solid var(--line); }
.post-related li a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; text-decoration: none; }
.post-related li strong { min-width: 0; overflow-wrap: anywhere; }
.post-related time { flex: 0 0 auto; }
@media (max-width: 560px) {
  .utility-inner { min-height: 68px; gap: 8px; }
  .brand { gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .brand-copy small { font-size: .57rem; }
  .utility form { width: min(48%, 190px); }
  .utility button { padding-inline: 7px; }
  .post-pagination a { padding: 9px; font-size: .84rem; }
  .post-related li a { display: grid; gap: 2px; }
}

/* Editorial layout */
.utility { background: var(--chrome); border: 0; box-shadow: inset 0 3px 0 var(--accent); }
.utility-inner { min-height: 82px; }
.brand, .brand:hover { color: #fff; }
.brand-copy small { color: var(--accent); }
.utility form { border-color: var(--line); background: var(--panel); }
.utility button { background: var(--accent); color: var(--ink); font-weight: 750; }
.utility button:hover { background: var(--accent-bright); }

.tabs { background: var(--panel); }
.tabs a[aria-current], .tabs a:hover { background: var(--accent-wash); color: var(--accent); }
.tabs a[aria-current] { font-weight: 750; }
.press { padding-top: 24px; }
.press-masthead { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 0 0 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.press-masthead h1 { font-size: clamp(1.625rem, 1.2rem + 1.25vw, 2rem); }
.press-masthead p { margin: 0; color: var(--muted); font-size: .88rem; }
.press-front { grid-template-columns: minmax(0, .73fr) minmax(0, 1.64fr) minmax(0, 1.08fr); gap: 16px; }
.press-lead { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px #0004; }
.press-lead a { display: block; }
.press-lead-image { border-bottom: 0; }
.press-lead-image img { aspect-ratio: 16 / 10; }
.press-lead-image span { top: 14px; left: 14px; background: var(--chrome); padding: 4px 11px; }
.press-lead h3 { margin: 17px 19px 0; }
.press-lead p { margin: 8px 19px 0; }
.press-lead time { margin: 10px 19px 17px; }
.press-brief, .press-list { background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.press-brief h2, .press-list h2 { color: var(--text); background: var(--surface); padding: 13px 15px; border: 0; }
.press-list li a { padding-inline: 15px; }
.press-top { gap: 10px; }
.press-top a { overflow: hidden; background: var(--panel); grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); min-height: 91px; }
.press-top a > div:last-child { padding: 9px 10px; }
.press-thumb { border: 0; background: var(--surface); }
.press-thumb img { object-fit: cover; }
.press-topic { font-weight: 730; }
.press-bottom { gap: 16px; margin-top: 24px; }
.article { background: var(--panel); border: 1px solid var(--line); }
.entry, .news-feed .entry { background: var(--panel); }

@media (min-width: 1430px) {
  .tabs { border-radius: 12px; box-shadow: 0 4px 14px #0004; }
  .tabs a[aria-current] { box-shadow: inset 3px 0 var(--accent); }
}
@media (max-width: 1429px) {
  .category-drawer { display: none; }
  .tabs { display: flex; position: sticky; top: 0; z-index: 2; overflow-x: auto; white-space: nowrap; border-width: 0 0 1px; }
  .category-heading { display: none; }
  .tabs a { flex: 0 0 auto; }
  .tabs a[aria-current] { box-shadow: inset 0 -2px var(--accent); }
}
@media (max-width: 840px) {
  .press-front { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .utility-inner { min-height: 67px; }
  .press { padding-top: 17px; }
  .press-masthead { display: block; padding-bottom: 12px; margin-bottom: 13px; }
  .press-masthead p { margin-top: 3px; }
  .press-front, .press-bottom { grid-template-columns: 1fr; }
  .press-lead h3 { margin-inline: 14px; }
  .press-lead p, .press-lead time { margin-inline: 14px; }
}
/* Image-led article lists */
.press .digest-row { display:grid; grid-template-columns: var(--list-thumbnail-width) minmax(0,1fr); gap:10px; align-items:start; }
.digest-thumb { display:block; aspect-ratio:4/3; overflow:hidden; border-radius:6px; background:var(--surface); }
.digest-thumb img { width:100%; height:100%; display:block; object-fit:cover; }

.digest-icon img { object-fit:contain; padding:18%; }
.digest-copy { display:block; min-width:0; overflow-wrap:anywhere; }
.press .digest-copy time { margin-top:4px; }

.news-feed { display:block; border-block:1px solid var(--line); background:var(--panel); }
.news-feed .entry { border:0; border-radius:0; box-shadow:none; }
.news-feed .entry + .entry { border-top:1px solid var(--line); }
.news-feed .entry a { display:grid; grid-template-columns:var(--list-thumbnail-width) minmax(0,1fr); gap:0; min-height:0; align-items:center; }

.news-feed .tile-image img { object-fit:cover; }
.news-feed .tile-icon img { object-fit:contain; }
.news-feed .tile-copy { padding:10px 12px; }
.news-feed .tile-copy h3 { font-size:1rem; font-weight:680; line-height:1.4; }

.press-front { grid-template-columns: minmax(0, 2.37fr) minmax(0, 1.08fr); }
.press-devlog { min-width: 0; background: var(--panel); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 8px 24px #0004; }
.press-devlog > h2 { padding: 13px 15px; font-size: 1.125rem; color: var(--text); background: var(--surface); border-bottom: 1px solid var(--line); }
.press-devlog-body { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.64fr); }
.press-devlog .press-lead { grid-column: 2; grid-row: 1; border: 0; border-radius: 0; box-shadow: none; }
.press-devlog .press-brief { grid-column: 1; grid-row: 1; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.press-devlog .press-brief li:first-child { border-top: 0; }
@media (max-width: 940px) {
  .press-front { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .press-devlog-body { display: block; }
  .press-devlog .press-brief { border-right: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 690px) {
  .press-front { grid-template-columns: minmax(0, 1fr); }
}

.press-bottom { grid-template-columns:minmax(0,1fr); gap:22px; }
.press-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; }
.press .press-panel-head h2 { padding:0; background:none; color:inherit; }
.press-more { font-size:.8rem; font-weight:650; white-space:nowrap; }
.press-news { border-radius:0; border-top:3px solid #ff8b3b; }
.press-news .press-panel-head { background:#302016; color:#ffab72; }
.press-news .press-topic { color:#ffab72; }
.press-stories { border-top:3px solid #dc964f; }
.press-stories .press-panel-head { background:#2a2119; color:#eeb784; }

.press-tech { border-color:var(--line); border-top:3px solid #e9b96f; background:var(--panel); }
.press-tech .press-panel-head { background:#2e2619; color:#f5cc8a; }
.press-tech ul { padding:8px 12px 12px; }
.press-tech li { background:var(--panel); border:1px solid var(--line); }
.press-tech li + li { margin-top:6px; }



@media (min-width: 941px) {
  .press-front { align-items: stretch; }
  .press-devlog { display: flex; flex-direction: column; }
  .press-devlog-body { flex: 1; }
  .press-devlog .press-brief { display:flex; flex-direction:column; }
  .press-devlog .press-all { margin-top:auto; }
  .press-devlog .press-lead > a { display:flex; flex-direction:column; height:100%; }
  .press-devlog .press-lead time { margin-top:8px; }
  .press-top a { height:100%; }
}

.board-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.board-count { display: inline-block; border-radius: 999px; background: var(--accent-wash); color: var(--accent); padding: 3px 8px; font-size: .78rem; font-weight: 700; white-space: nowrap; }

.tile-copy .post-preview, .press .post-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}
.press .press-lead .post-preview { margin: 8px 19px 0; font-size: .9rem; }
@media (max-width: 690px) { .press .press-lead .post-preview { margin-inline: 14px; } }

.section-count { margin-inline-start: 7px; color: var(--muted); font-size: .7rem; font-weight: 500; white-space: nowrap; }
.press-top .section-count { margin-inline-start: 3px; }
.press-front .digest-row { padding-block: 9px; }
.press-front .press-brief .post-preview, .press-front .press-top .post-preview { -webkit-line-clamp: 1; }
.press-top .press-thumb { position: relative; min-height: 0; }
.press-top .press-thumb img { position: absolute; inset: 0; }
.press-top h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.press-top .press-topic { margin-bottom: 2px; }
.press-top time { margin-top: 3px; }
.press-lead-image img { aspect-ratio: 16 / 9; }

.card-placeholder { display: grid; gap: 9px; padding: 12px; min-block-size: 90px; align-content: center; }
.card-placeholder span { display: block; block-size: 9px; background: #393632; }
.card-placeholder span:first-child { inline-size: 65%; }
.card-placeholder span:last-child { inline-size: 42%; }
.card-placeholder, .image-pending {
  background: linear-gradient(105deg, var(--surface) 34%, #302e2a 48%, var(--surface) 62%) 100% 0 / 230% 100%;
  animation: card-shimmer 1.45s ease-in-out infinite;
}
.image-pending img { visibility: hidden; }
.entry:not(.news-feed .entry) > .card-placeholder { aspect-ratio: 4 / 3; }
.press-lead > .card-placeholder { aspect-ratio: 1.35; }
.press-top .card-placeholder { min-block-size: 102px; }
.press-brief .card-placeholder { min-block-size: 84px; }
.press-list .card-placeholder { min-block-size: 100px; }
.deferred-fallback { display: block; padding: 12px; }
@keyframes card-shimmer { to { background-position-x: -75%; } }
@media (prefers-reduced-motion: reduce) {
  .card-placeholder, .image-pending { animation: none; }
}

.press, .news-feed { --list-thumbnail-width: 80px; }
.list-thumbnail { inline-size: 100%; aspect-ratio: 4 / 3; overflow: hidden; }

.ad-mock {
  box-sizing: border-box;
  display: grid;
  place-content: center;
  gap: 5px;
  min-block-size: 90px;
  padding: 14px;
  border: 1px dashed #756355;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}
.ad-mock[hidden] { display: none; }
.ad-mock span { font-size: .72rem; }
.ad-mock strong { font-size: .9rem; }
.ad-mock--home { margin-block-start: 24px; }
.ad-mock--feed { grid-column: 1 / -1; margin-block: 20px; }
.ad-mock--article { margin-block: 30px; }
@media (max-width: 690px) {
  .ad-mock { min-block-size: 64px; }
  .ad-mock--feed { margin-block: 14px; }
  .ad-mock--article { margin-block: 22px; }
}

.sidebar-profile { display: none; }
@media (min-width: 1430px) {
  .sidebar-profile {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 14px 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .sidebar-profile img { width: 96px; height: 96px; object-fit: cover; }
  .sidebar-profile strong { font-size: .92rem; }
  .sidebar-profile p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; word-break: keep-all; }
}

.utility form { position: relative; z-index: 5; }
.utility form:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.utility input:focus-visible { outline: none; }
.utility button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-preview {
  position: absolute;
  inset: calc(100% + 8px) 0 auto auto;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 12px 34px #0009;
}
.search-preview-label { margin: 0; padding: 8px 12px; color: var(--muted); font-size: .76rem; }
.search-preview ul { list-style: none; margin: 0; padding: 0; }
.search-preview-all { display: block; padding: 8px 12px; color: var(--accent); font-size: .8rem; text-decoration: none; border-top: 1px solid var(--line); }
.search-preview-empty { padding: 8px 12px; font-size: .85rem; }
.search-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
}
.search-card:hover, .search-card:focus-visible, .search-preview-all:hover { background: var(--accent-wash); }
.search-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: var(--surface); }
.search-card strong, .search-card small { display: block; overflow-wrap: anywhere; }
.search-card small { color: var(--muted); font-size: .76rem; }
.search-card p { margin: 4px 0 0; }
.search-preview .search-card { grid-template-columns: 56px minmax(0, 1fr); gap: 9px; padding: 7px 12px; font-size: .83rem; }
.search-page #search-results { display: grid; gap: 8px; }
.search-page #search-results li { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.search-page #search-results .search-card { display: grid; color: var(--text); font-weight: 400; border-radius: inherit; }
.search-page .search-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (max-width: 690px) {
  .search-page .search-card { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
}

/* Post detail uses the same content column as the home and category pages. */
.article.post-detail { max-width: none; margin: 0; border-radius: 0; }
.post-detail .article-head { padding-bottom: clamp(18px, 3vw, 32px); }
.post-detail .prose { line-height: 1.8; }
.post-detail .prose :is(h2, h3, h4) { line-height: 1.4; }
.post-detail .prose h2 { margin-block: clamp(34px, 5vw, 60px) 16px; padding-block-start: clamp(16px, 2.4vw, 26px); }
.post-detail .prose :is(h3, h4) { margin-block: 26px 10px; }
.post-detail .prose :is(p, ul, ol, blockquote) { margin-block: 0 1em; }
.post-detail .prose > :is(p, ul, ol, blockquote) { max-inline-size: 76ch; }
.post-detail .prose > :is(figure, pre, table) { margin-block: 22px 26px; }
.ad-preview-control { display: flex; justify-content: flex-end; margin-block: 0 16px; }
.ad-preview-control[hidden] { display: none; }
#ad-preview-toggle { padding: 7px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: .83rem; cursor: pointer; }
#ad-preview-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Developer journal: neutral surfaces, warm status accents and compact metadata. */
.brand-copy small, .eyebrow, .press-topic, .section-count, .board-count,
.press time, .digest-row time, .article .dates { font-family: var(--mono); }
.brand-copy small { letter-spacing: .045em; }
.press-masthead { border-bottom-color: var(--line); }
.press-masthead h1 { border-inline-start: 3px solid var(--accent); padding-inline-start: 12px; }
.press-devlog { border-top: 3px solid var(--accent); }
.category-heading { color: var(--accent); }
.utility form { border-radius: 5px; }
.utility button { border-radius: 3px; }
.utility button:focus-visible { outline-color: var(--text); }
.search-preview { border-radius: 5px; }
.press-lead-image span { color: var(--accent); border: 1px solid var(--line); }
.post-detail .prose h2 { border-top-color: var(--line); }
.post-detail .prose h2[data-chapter]::before {
  content: attr(data-chapter) " / ";
  color: var(--accent);
  font: 700 .76em var(--mono);
  margin-inline-end: .55em;
}
::selection { background: var(--accent); color: var(--ink); }
