:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --surface: #fffefb;
  --text: #202326;
  --muted: #696b70;
  --line: #dcd9d1;
  --accent: #6757d9;
  --accent-soft: #e7e2ff;
  --mint: #b9e4d0;
  --shadow: 0 18px 55px rgba(36, 31, 63, .08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #242527;
  --surface: #2d2f32;
  --text: #f2efe9;
  --muted: #b7b4ae;
  --line: #45474b;
  --accent: #b4a7ff;
  --accent-soft: #3e385f;
  --mint: #41685a;
  --shadow: 0 18px 55px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  transition: background-color .2s ease, color .2s ease;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  width: min(1240px, calc(100% - 40px));
  height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.45rem; font-weight: 800; letter-spacing: -.06em; }
.brand span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: .94rem; font-weight: 650; }
.theme-toggle, .menu-toggle {
  width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 1rem;
}
.menu-toggle { border: 0; border-radius: 0; background: transparent; }
.account-menu { position: relative; margin-left: auto; }
.account-toggle { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.account-toggle:hover, .account-toggle[aria-expanded="true"] { background: var(--accent-soft); }
.account-toggle svg { width: 21px; height: 21px; }
.account-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 90; width: min(260px, calc(100vw - 40px)); padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgb(0 0 0 / .14); }
.account-panel[hidden] { display: none; }
.account-panel h2 { margin: 0; font-size: .95rem; font-weight: 700; }
.account-description { margin: 8px 0 16px; color: var(--muted); font-size: .8rem; }
.account-action { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .9rem; }
.account-action:disabled { cursor: not-allowed; }
.account-action small { font-size: .75rem; }
.theme-toggle svg { display: block; }
.hero { padding: clamp(88px, 12vw, 165px) 0 125px; position: relative; }
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 330px; height: 330px; right: 2%; top: 14%;
  background: radial-gradient(circle at 35% 35%, var(--accent-soft), transparent 67%); filter: blur(4px); opacity: .8;
}
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.hero h1 { max-width: 900px; margin: 0; font-size: clamp(3rem, 7.4vw, 6.8rem); line-height: .98; letter-spacing: -.07em; word-break: keep-all; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 580px; margin: 36px 0 24px; color: var(--muted); font-size: 1.12rem; }
.text-link { display: inline-block; font-weight: 750; border-bottom: 1px solid currentColor; }
.featured, .latest { padding: 100px 0; border-top: 1px solid var(--line); }
.section-heading h2, .page-intro h1 { margin: 0 0 30px; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.055em; }
.section-heading.inline { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading.inline h2 { margin-bottom: 0; }
.feature-card {
  display: grid; grid-template-columns: minmax(0, 1fr); padding: clamp(28px, 6vw, 70px);
  background: linear-gradient(135deg, var(--surface), var(--accent-soft)); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.feature-card h3 { margin: 18px 0; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.055em; }
.feature-card p:not(.post-meta) { color: var(--muted); }
.post-meta { display: flex; gap: 14px; color: var(--muted); font-size: .8rem; letter-spacing: .04em; }
.post-thumbnail { display: block; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.feature-card .post-thumbnail, .latest .post-thumbnail { max-width: none; height: 180px; aspect-ratio: auto; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.post-card { min-height: 310px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.post-card h3 { margin: 38px 0 12px; font-size: 1.65rem; line-height: 1.2; letter-spacing: -.035em; }
.post-card > p:not(.post-meta), .post-list article > div > p { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 0; padding: 0; list-style: none; }
.tag-list li { padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: .75rem; }
.page-space { min-height: 68vh; padding-block: 90px 130px; }
.page-intro { max-width: 650px; margin-bottom: 70px; }
.page-intro > p:last-child { color: var(--muted); font-size: 1.08rem; }
.browse-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 42px; align-items: start; }
.browse-sidebar { position: sticky; top: 24px; }
.browse-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 18px; }
.browse-panel summary { font-weight: 750; cursor: pointer; }
.filter-block { padding-top: 22px; }
.filter-block h2 { margin: 0 0 12px; font-size: .9rem; }
.filter-links { display: grid; gap: 6px; }
.filter-links a, .tag-chip-links a, .active-filters a {
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent;
}
.filter-links a { padding: 8px 12px; font-size: .9rem; }
.filter-links a.is-active, .tag-chip-links a.is-active, .active-filters a { color: var(--text); background: var(--accent-soft); border-color: transparent; }
.tag-chip-links, .active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip-links a, .active-filters a { padding: 6px 10px; font-size: .82rem; }
.post-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 18px; }
.post-search label { font-weight: 650; }
.post-search input[type="search"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.post-search button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--accent-soft); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
.active-filters { margin-bottom: 24px; }
.active-filters .reset-link { background: transparent; color: var(--muted); border-color: currentColor; }
.series-intro { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.series-intro h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.series-intro p:last-child { margin: 0; color: var(--muted); }
.post-list { border-top: 1px solid var(--line); }
.post-list article { display: grid; grid-template-columns: 220px 1fr; gap: 35px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.post-list article .post-meta { flex-direction: column; gap: 2px; }
.post-list h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.article { width: min(100% - 40px, 1120px); margin-inline: auto; padding: 90px 0 140px; }
.article-header { width: min(100%, 850px); margin: 0 auto 65px; text-align: center; }
.article-header .tag-list, .article-header .post-meta { justify-content: center; }
.back-link { display: inline-block; margin-bottom: 50px; color: var(--muted); font-size: .9rem; }
.article-header h1 { margin: 22px 0; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.05; letter-spacing: -.06em; word-break: keep-all; }
.article-summary { max-width: 700px; margin: 0 auto 26px; color: var(--muted); font-size: 1.18rem; }
.article-body { width: min(100%, 740px); margin-inline: auto; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(1.08rem, 1.7vw, 1.2rem); line-height: 1.9; }
.article-body p { margin: 0 0 1.75em; }
.article-body img { display: block; max-width: 100%; height: auto; }
.about-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 90px; align-items: start; }
.about-layout h1 { margin: 0; font-size: clamp(3.5rem, 8vw, 7rem); letter-spacing: -.07em; }
.about-copy { max-width: 600px; font-size: 1.3rem; }
.about-copy p { margin-top: 0; margin-bottom: 28px; }
.site-footer { width: min(1240px, calc(100% - 40px)); margin-inline: auto; padding: 36px 0 50px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .84rem; }

.home-more { display: none; }
.latest .post-card:nth-child(n + 7) { display: none; }
.featured-grid .feature-card:not(:first-child) { display: none; }

/* Desktop home: keep the existing mobile presentation unchanged. */
@media (min-width: 721px) {
  .hero { padding: 72px 0 64px; }
  .hero h1 { max-width: 760px; font-size: clamp(3rem, 4vw, 3.5rem); line-height: 1.15; }
  .featured, .latest { padding: 56px 0; }
  .featured .section-heading h2, .latest .section-heading h2 { font-size: 2rem; }
  .featured-grid, .latest .post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .featured-grid .feature-card:not(:first-child) { display: grid; }
  .latest-mobile-more { display: none; }
  .home-more { display: block; margin-top: 28px; text-align: center; }
  .featured-grid .feature-card, .latest .post-card { min-width: 0; overflow-wrap: anywhere; }
  .feature-card { padding: 32px; }
  .feature-card h3 { font-size: 1.75rem; }

  .latest .post-card { min-height: 0; padding: 24px; }
  .latest .post-card h3 { margin-top: 20px; font-size: 1.4rem; }
}

@media (max-width: 720px) {
  .feature-card .post-thumbnail, .latest .post-thumbnail { height: 100px; }
  .site-header { height: 72px; }
  .site-header nav { gap: 16px; }
  .hero { padding: 85px 0 90px; }
  .featured, .latest { padding: 72px 0; }
  .section-heading.inline { align-items: start; }
  .post-grid { grid-template-columns: 1fr; }
  .post-list article { grid-template-columns: 1fr; gap: 16px; }
  .post-list article .post-meta { flex-direction: row; }
  .browse-layout { grid-template-columns: 1fr; gap: 24px; }
  .browse-sidebar { position: static; }
  .browse-panel:not([open]) { padding-bottom: 18px; }
  .post-search { grid-template-columns: 1fr; }
  .post-search label { margin-bottom: -4px; }
  .about-layout { grid-template-columns: 1fr; gap: 45px; }
  .article { padding-top: 60px; }
  .article-header { text-align: left; }
  .article-header .tag-list, .article-header .post-meta { justify-content: flex-start; }
  .site-footer { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.empty-state { color: var(--muted); margin: 0; padding: 28px 0; }
.article-body h2, .article-body h3 { font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.25; letter-spacing: -.03em; }
.article-body h2 { margin: 2.2em 0 .8em; font-size: 1.7rem; }
.article-body h3 { margin: 1.8em 0 .7em; font-size: 1.35rem; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.75em; }
.article-body blockquote { margin: 0 0 1.75em; padding-left: 1.2em; border-left: 3px solid var(--line); color: var(--muted); }
.article-body code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .9em; }
.article-body pre { overflow-x: auto; padding: 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.article-body a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* Public archive: screenshot-aligned styles, isolated from home and article pages. */
.posts-page .shell, .posts-page .site-footer { width: min(1160px, calc(100% - 40px)); }
.posts-page .site-header nav > a[href="/posts"] { color: var(--accent); }
.posts-page .page-space { padding-block: 48px 50px; }
.posts-page .page-intro { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.posts-page .page-intro h1 { font-weight: 750; margin: 0; font-size: 42px; line-height: 1.3; }
.posts-page .page-intro div > p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.posts-page .page-intro > .eyebrow { margin: 0; font-size: 11px; color: var(--accent); }
.posts-page .browse-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 54px; }
.posts-page .browse-sidebar { position: static; align-self: stretch; border-right: 1px solid var(--line); padding-right: 26px; }
.posts-page .browse-panel { padding: 0; border: 0; border-radius: 0; background: transparent; }
.posts-page .browse-panel > summary { display: none; }
.posts-page .filter-block { padding: 0 0 28px; }
.posts-page .filter-block h2 { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.posts-page .filter-links { gap: 4px; }
.posts-page .filter-links a { font-size: 13px; border: 1px solid transparent; border-radius: 8px; color: var(--text); padding: 9px 11px; overflow-wrap: anywhere; }
.posts-page .filter-links a:hover { color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.posts-page .category-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.posts-page .filter-count { color: var(--muted); white-space: nowrap; font-size: 12px; }
.posts-page .filter-links a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.posts-page .filter-links a.is-active .filter-count { color: inherit; }
.posts-page .series-links a { display: block; }
.posts-page .series-links a.is-active { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.posts-page .series-name { display: block; line-height: 1.5; }
.posts-page .series-meta { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); font-weight: 400; }
.posts-page .filter-help { color: var(--muted); font-size: 12px; margin: 12px 0 0; overflow-wrap: anywhere; }
.posts-page .series-links + .filter-help { border-top: 1px solid var(--line); padding-top: 12px; }
.posts-page .browse-hint { margin: 0; }
.posts-page .tag-chip-links { gap: 7px; }
.posts-page .tag-chip-links a { border-radius: 7px; background: var(--surface); color: var(--text); padding: 5px 11px; font-size: 12px; overflow-wrap: anywhere; max-width: 100%; }
.posts-page .tag-chip-links a.is-active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.posts-page .tag-more { margin-top: 12px; padding: 6px 10px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: var(--bg); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.posts-page .tag-more[hidden] { display: none; }
.posts-page .browse-results { min-width: 0; }
.posts-page .browse-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.posts-page .active-filters { margin: 0; align-items: center; min-width: 0; }
.posts-page .active-filters a { color: var(--accent); font-size: 12px; font-weight: 650; padding: 6px 12px; max-width: 100%; overflow-wrap: anywhere; }
.posts-page .active-filters .reset-link { border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 400; }
.posts-page .sort-label, .posts-page .all-posts-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.posts-page .search-disclosure { margin: 4px 0; font-size: 11px; color: var(--muted); }
.posts-page .search-disclosure > summary { cursor: pointer; width: fit-content; margin-left: auto; }
.posts-page .post-search { margin: 12px 0; font-size: 13px; }
.posts-page .series-intro { margin: 0 0 22px; padding: 24px; border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg)); overflow-wrap: anywhere; }
.posts-page .series-intro .eyebrow { margin-bottom: 9px; font-size: 11px; }
.posts-page .series-intro h2 { font-weight: 750; font-size: 24px; line-height: 1.4; margin: 0 0 10px; }
.posts-page .series-description { font-size: 14px; margin: 0; color: var(--muted); }
.posts-page .series-intro .series-progress { color: var(--accent); margin: 18px 0 0; font-size: 12px; }
.posts-page .results-count { color: var(--muted); font-size: 12px; margin: 0; }
.posts-page .results-count strong { color: var(--text); margin-right: 3px; }
.posts-page .post-list-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.posts-page .post-page-size { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.posts-page .post-page-size select, .posts-page .post-page-size button { min-height: 44px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; }
.posts-page .post-page-size button { background: var(--accent-soft); cursor: pointer; }
.posts-page .post-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 10px; }
.posts-page .post-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.posts-page .post-pagination a.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.posts-page .post-list { border-top: 0; }
.posts-page .post-list article { display: block; padding: 24px 0 26px; overflow-wrap: anywhere; }
.posts-page .post-list article .post-meta { flex-direction: row; flex-wrap: wrap; gap: 5px; letter-spacing: 0; font-size: 11px; margin-bottom: 10px; }
.posts-page .post-category { color: var(--accent); margin-right: 7px; }
.posts-page .post-list h2 { font-weight: 750; font-size: 23px; line-height: 1.45; letter-spacing: -.045em; }
.posts-page .series-number { color: color-mix(in srgb, var(--accent) 55%, var(--muted)); }
.posts-page .post-summary { margin: 11px 0 0; color: var(--muted); font-size: 14px; }
.posts-page .tag-list { gap: 13px; margin: 14px 0 0; }
.posts-page .tag-list li { padding: 0; border-radius: 0; background: transparent; font-size: 11px; color: var(--muted); }
.posts-page .post-series-link { display: inline-block; max-width: 100%; font-size: 11px; margin-top: 13px; padding: 4px 9px; border-radius: 5px; color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.posts-page .site-footer { font-size: 11px; padding-block: 26px 40px; }
@media (max-width: 900px) and (min-width: 721px) {
  .posts-page .browse-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 28px; }
  .posts-page .browse-sidebar { padding-right: 18px; }
}
@media (max-width: 720px) {
  .posts-page .site-header { height: 72px; }
  .posts-page .page-space { padding-block: 34px 50px; }
  .posts-page .page-intro { display: block; margin-bottom: 26px; }
  .posts-page .page-intro h1 { font-size: 36px; }
  .posts-page .page-intro > .eyebrow { margin-top: 18px; }
  .posts-page .browse-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .posts-page .browse-sidebar { border: 0; padding: 0; min-width: 0; }
  .posts-page .browse-panel, .posts-page .browse-panel:not([open]) { padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
  .posts-page .browse-panel > summary { display: list-item; font-size: 13px; }
  .posts-page .browse-panel[open] > summary { margin-bottom: 22px; }
  .posts-page .browse-toolbar { align-items: start; gap: 10px; }
  .posts-page .series-intro { padding: 20px; }
  .posts-page .series-intro h2, .posts-page .post-list h2 { font-size: 21px; }
}

/* 공통 사이드 메뉴: 헤더 위치는 유지하고 테마 버튼은 스크롤 영역 밖 하단에 둔다. */
.site-header { width: 100%; margin-inline: 0; padding-inline: 28px; justify-content: flex-start; gap: 18px; }
.header-search { width: 38px; height: 38px; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.header-search:hover { background: var(--accent-soft); }
.header-search svg { width: 21px; height: 21px; }
.site-header .account-menu { margin-left: 0; }
.site-sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; height: 100dvh; z-index: 100; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); }
.site-sidebar[hidden], .sidebar-backdrop[hidden] { display: none; }
.sidebar-theme { display: flex; align-items: center; justify-content: flex-start; padding: 18px 20px; flex-shrink: 0; border-top: 1px solid var(--line); }
.sidebar-scroll { overflow-y: auto; min-height: 0; flex: 1; padding: 20px; overscroll-behavior: contain; }
.sidebar-nav { display: grid; gap: 8px; }
.sidebar-nav a { padding: 10px 12px; border-radius: 8px; }
.sidebar-nav a:hover { background: var(--accent-soft); }
.sidebar-filters { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.sidebar-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / .4); z-index: 99; }
.posts-page .browse-layout { display: block; }
@media (min-width: 721px) {
  .site-header { position: sticky; top: 0; z-index: 101; background: var(--bg); }
  .site-sidebar { top: 88px; height: calc(100dvh - 88px); }
  body.sidebar-open > main { margin-left: 280px; }
  body.sidebar-open > main.shell, body.sidebar-open > main.article { width: min(1120px, calc(100% - 320px)); margin-left: 300px; margin-right: 20px; }
  body.sidebar-open.posts-page > main.shell { width: min(1160px, calc(100% - 320px)); }
  body.sidebar-open > .site-footer { width: min(1240px, calc(100% - 320px)); margin-left: 300px; margin-right: 20px; }
}
@media (max-width: 720px) {
  html { overflow-x: clip; }
  .site-header { position: sticky; top: 0; z-index: 101; padding-inline: 20px; background: var(--bg); }
  .site-sidebar { top: 72px; height: calc(100dvh - 72px); width: min(280px, calc(100vw - 44px)); }
  .sidebar-backdrop { top: 72px; }
  body > main, body > .site-footer { transition: transform .25s ease; }
  body.sidebar-open > main, body.sidebar-open > .site-footer { transform: translateX(min(280px, calc(100vw - 44px))); }
  body.sidebar-open { overflow: hidden; }
}
