:root {
  --ink: #f4f4f0;
  --muted: #a4a49f;
  --soft-muted: #73736e;
  --line: #343432;
  --canvas: #080808;
  --paper: #101010;
  --paper-strong: #151515;
  --accent: #f4f4f0;
  --accent-focus: #ffffff;
  --accent-dark: #f4f4f0;
  --accent-soft: #1b1b1b;
  --accent-line: #4a4a46;
  --nav-muted: #8e8e89;
  --nav-text: #f4f4f0;
  --button-ink: #080808;
  --shadow: none;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Helvetica Neue", "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

.initial-home-content {
  width: min(840px, calc(100% - 64px));
  min-height: 240px;
  margin: 32px auto;
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.initial-home-kicker { margin: 0 0 22px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .14em; }
.initial-home-content h1 { margin: 0 0 18px; font-size: clamp(36px, 7vw, 64px); letter-spacing: -.08em; line-height: 1; }
.initial-home-content p:not(.initial-home-kicker) { margin: 8px 0 0; color: var(--muted); font-size: 18px; }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 840px);
  grid-template-rows: auto auto;
  align-content: start;
  gap: 28px;
  width: min(1100px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0 24px;
}

.sidebar {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: 342px;
  padding: 22px 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.nav-intro { padding: 2px 6px 16px; }
.nav-intro-row { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: block; flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; filter: invert(1) contrast(1.15); }
.nav-intro h1 { margin: 0; color: var(--ink); font-size: 23px; font-weight: 600; letter-spacing: -.08em; line-height: 1.2; }
.nav-intro p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.about-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  color: var(--button-ink);
  background: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.sidebar-divider { height: 1px; margin: 0 4px 12px; background: var(--line); }
.primary-nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; min-height: 35px; padding: 0 6px; color: var(--nav-muted); font-size: 13px; letter-spacing: .07em; text-transform: uppercase; transition: color .18s ease, font-weight .18s ease; }
.nav-link:hover { color: var(--nav-text); }
.nav-link.is-active { color: var(--nav-text); font-weight: 600; }
.nav-group { position: relative; border-radius: 0; }
.nav-group-row { display: flex; align-items: center; }
.nav-group-row > .nav-link { flex: 1; }
.nav-group-row > .nav-toggle-link { border: 0; text-align: left; background: transparent; cursor: pointer; }
.accordion-toggle { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 4px; border: 1px solid transparent; border-radius: 0; color: var(--nav-muted); background: transparent; cursor: pointer; }
.accordion-toggle:hover { background: #20201e; border-color: var(--line); color: var(--nav-text); }
.chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.chevron.is-open { transform: rotate(225deg) translate(-1px, -1px); }
.sub-nav { display: grid; max-height: 0; overflow: hidden; padding-left: 39px; transition: max-height .25s ease, padding-bottom .25s ease; }
.sub-nav.is-open { max-height: 120px; padding-bottom: 5px; }
.sub-nav-link { padding: 5px 8px; color: var(--nav-muted); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.sub-nav-link:hover, .sub-nav-link.is-active { color: var(--accent-dark); }
.sub-nav-link.is-active::before { background: var(--accent); }

.page-column { grid-column: 2; grid-row: 1; min-width: 0; }
.content-layout { display: grid; gap: 28px; align-items: start; }
.home-layout { grid-template-columns: minmax(0, 1fr); max-width: 840px; }
.single-layout { grid-template-columns: minmax(0, 840px); }
.not-found-layout { width: 100%; max-width: none; }
.main-content { min-width: 0; }
.list-content { padding: 0 24px 30px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); box-shadow: var(--shadow); }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 32px; min-height: 112px; padding: 28px 2px 24px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.2; }
.section-header h1 { max-width: 620px; margin: 0; color: var(--ink); font-size: clamp(30px, 4vw, 40px); font-weight: 600; letter-spacing: -.065em; line-height: 1.1; }
.section-description { max-width: 235px; margin: 0 0 2px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.post-list { display: grid; gap: 12px; padding-top: 20px; }
.post-card { display: block; padding: 24px 22px 25px; border: 1px solid var(--line); border-radius: 0; background: var(--paper-strong); transition: border-color .18s ease, background-color .18s ease; }
.post-card:hover { border-color: var(--accent-focus); background: #1a1a18; }
.post-card-top { display: flex; align-items: center; min-height: 18px; }
.post-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border: 1px solid var(--ink); border-radius: 1px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 500; letter-spacing: .01em; line-height: 1.1; }
.post-tag--filled { color: var(--button-ink); background: var(--ink); }
.post-tag--outline { color: var(--ink); background: transparent; }
.post-date { display: block; margin-top: 10px; color: var(--soft-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.post-card-main { padding: 13px 0 0; }
.post-card h2 { margin: 0; color: var(--ink); font-size: clamp(19px, 2vw, 25px); font-weight: 500; letter-spacing: -.055em; line-height: 1.3; }

.profile-card { align-self: start; margin-top: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); box-shadow: var(--shadow); }
.profile-art { position: relative; display: grid; place-items: center; min-height: 178px; overflow: hidden; border-radius: 10px; background: #eaf2fb; }
.profile-art::before, .profile-art::after { position: absolute; border-radius: 50%; content: ""; }
.profile-art::before { width: 170px; height: 170px; background: #d5e7ff; transform: translate(44px, -38px); }
.profile-art::after { width: 120px; height: 120px; background: #f5e1c8; transform: translate(-65px, 62px); opacity: .9; }
.profile-art img { position: relative; z-index: 1; width: 94px; height: 94px; filter: drop-shadow(0 8px 12px rgba(29, 29, 31, .13)); }
.profile-stamp { position: absolute; right: 10px; bottom: 9px; z-index: 2; padding: 3px 7px; border-radius: 5px; color: var(--accent-dark); background: rgba(255, 255, 255, .66); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .04em; transform: rotate(-4deg); }
.profile-card .eyebrow { margin: 20px 0 8px; font-size: 9px; }
.profile-card h2 { margin: 0; font-size: 24px; letter-spacing: -.06em; line-height: 1.2; }
.profile-copy { margin: 10px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.profile-line { height: 1px; background: var(--line); }
.profile-meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 11px; color: var(--soft-muted); font-size: 10px; }

.empty-state { position: relative; display: grid; place-items: center; min-height: 290px; overflow: hidden; padding: 42px 24px; border: 1px solid #242424; border-radius: 0; text-align: center; background: #000; }
.empty-state-copy { position: relative; z-index: 2; display: grid; justify-items: center; }
.empty-chai-icon { display: block; width: 78px; height: 78px; margin: 0 auto 20px; object-fit: contain; }
.empty-state h2 { margin: 0; font-size: 18px; letter-spacing: -.04em; }

.about-page { overflow: hidden; padding: 0; border: 1px solid #242424; background: #000; }
.about-hero { padding: 58px 44px 76px; border-bottom: 1px solid #242424; }
.about-kicker { margin: 0 0 34px; color: #a8a8a8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .04em; line-height: 1.2; }
.about-hero h1 { max-width: none; margin: 0; color: var(--ink); font-size: clamp(44px, 5vw, 72px); font-weight: 400; letter-spacing: -.09em; line-height: 1.03; white-space: nowrap; }
.about-introduction { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 30px; padding: 30px 44px 52px; border-bottom: 1px solid #242424; }
.about-label { display: block; align-self: start; width: max-content; margin: 0; color: #a8a8a8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 500; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.about-introduction p { margin: 0; color: var(--ink); font-size: 21px; letter-spacing: -.045em; line-height: 1.55; }
.about-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-detail { min-height: 190px; padding: 28px 44px 34px; border-right: 1px solid #242424; }
.about-detail:last-child { border-right: 0; }
.about-detail p { margin: 24px 0 0; color: #b8b8b8; font-size: 16px; letter-spacing: -.025em; line-height: 1.7; }
.detail-layout { max-width: 840px; }
.detail-page { padding: 0 0 8px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--accent-dark); }
.back-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-strong); font-size: 16px; transition: transform .18s ease; }
.back-link:hover .back-icon { transform: translateX(-3px); }
.detail-header { margin-top: 0; padding: 40px 36px 34px; border: 1px solid var(--line); border-radius: 0; background: var(--paper-strong); box-shadow: var(--shadow); }
.detail-header .post-tag { margin-bottom: 18px; }
.detail-header h1 { max-width: 760px; margin: 0; font-size: clamp(30px, 4vw, 48px); font-weight: 400; letter-spacing: -.075em; line-height: 1.08; }
.detail-meta { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--soft-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .03em; }
.detail-divider { width: 24px; height: 1px; background: var(--line); }
.article-body { max-width: none; margin-top: 16px; padding: 56px 64px 66px; border: 1px solid var(--line); border-radius: 0; background: var(--paper-strong); box-shadow: var(--shadow); }
.article-body p { margin: 0 0 27px; color: var(--ink); font-size: 17px; line-height: 1.75; letter-spacing: -.02em; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 { margin: 52px 0 18px; color: var(--ink); font-weight: 600; letter-spacing: -.05em; line-height: 1.3; }
.article-body h1 { font-size: 34px; }
.article-body h2 { font-size: 28px; }
.article-body h3 { font-size: 24px; }
.article-body h4 { font-size: 21px; }
.article-body h5 { font-size: 18px; }
.article-body h6 { font-size: 16px; color: var(--muted); }
.article-body blockquote { margin: 46px 0; padding: 20px 0 20px 24px; border-left: 2px solid var(--accent); color: var(--accent-dark); font-size: 21px; letter-spacing: -.045em; line-height: 1.6; }
.article-body ul, .article-body ol { margin: 18px 0 36px; padding-left: 24px; color: var(--ink); font-size: 17px; line-height: 1.75; }
.article-body li { padding-left: 7px; }
.article-body .markdown-list-item--depth-1 { margin-left: 22px; }
.article-body .markdown-list-item--depth-2 { margin-left: 44px; }
.article-body .markdown-list-item--depth-3 { margin-left: 66px; }
.article-body .markdown-list-item--depth-4 { margin-left: 88px; }
.article-body .is-task { list-style: none; margin-left: 0; padding-left: 0; }
.article-body .is-task input, .cms-preview .is-task input { width: 13px; height: 13px; margin: 0 8px 0 0; accent-color: var(--accent); vertical-align: -.08em; }
.article-body a, .cms-preview a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.article-body strong, .cms-preview strong { font-weight: 700; }
.article-body del, .cms-preview del { color: var(--muted); }
.article-body code, .cms-preview code { padding: 2px 5px; border: 1px solid var(--line); color: var(--ink); background: #0b0b0b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.article-body pre, .cms-preview pre { overflow-x: auto; margin: 30px 0 36px; padding: 20px; border: 1px solid var(--line); color: var(--ink); background: #0b0b0b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.65; }
.article-body pre[data-language], .cms-preview pre[data-language] { position: relative; padding-top: 38px; }
.article-body pre[data-language]::before, .cms-preview pre[data-language]::before { content: attr(data-language); position: absolute; top: 11px; right: 14px; color: var(--soft-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.article-body pre code, .cms-preview pre code { padding: 0; border: 0; background: transparent; font-size: inherit; }
.markdown-code-keyword { color: #d7bd8d; }
.markdown-code-string { color: #b9d39b; }
.markdown-code-comment { color: #777772; }
.article-body hr, .cms-preview hr { margin: 42px 0; border: 0; border-top: 1px solid var(--line); }
.article-body .markdown-inline-image, .cms-preview .markdown-inline-image { max-width: 100%; height: auto; vertical-align: middle; }
.markdown-table-wrap { overflow-x: auto; margin: 30px 0 36px; border: 1px solid var(--line); }
.article-body table, .cms-preview table { width: 100%; min-width: 520px; border-collapse: collapse; color: var(--ink); font-size: 15px; line-height: 1.6; }
.article-body th, .article-body td, .cms-preview th, .cms-preview td { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th:last-child, .article-body td:last-child, .cms-preview th:last-child, .cms-preview td:last-child { border-right: 0; }
.article-body tr:last-child td, .cms-preview tr:last-child td { border-bottom: 0; }
.article-body th, .cms-preview th { color: var(--ink); background: #161615; font-weight: 600; }
.markdown-align-center { text-align: center; }
.markdown-align-right { text-align: right; }
.article-image { margin: 42px 0; }
.article-image img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line); object-fit: contain; }
.article-image figcaption { margin-top: 10px; color: var(--soft-muted); font-size: 12px; line-height: 1.5; }
.post-neighbors { display: grid; grid-template-columns: 1fr; margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 0; background: var(--paper-strong); box-shadow: var(--shadow); }
.neighbor-card, .neighbor-current { min-height: 86px; padding: 18px 22px; }
.neighbor-card { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); transition: background .18s ease; }
.neighbor-card:hover { background: #1a1a18; }
.neighbor-card--previous { text-align: left; }
.neighbor-current { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); text-align: left; background: #1b1b1a; }
.neighbor-label { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.neighbor-label span { font-size: 14px; }
.neighbor-card strong, .neighbor-current strong { display: -webkit-box; max-width: 72%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; letter-spacing: -.035em; line-height: 1.45; }
.neighbor-current > span { color: var(--soft-muted); font-size: 10px; letter-spacing: .08em; }
.neighbor-current strong { color: var(--ink); }
.neighbor-card:last-child, .neighbor-current:last-child { border-bottom: 0; }
.neighbor-card.is-disabled { cursor: default; opacity: .42; pointer-events: none; }
.not-found-page { position: relative; min-height: 342px; overflow: hidden; padding: 58px 44px 70px; border: 1px solid #242424; background: #000; }
.not-found-copy { position: relative; z-index: 2; max-width: 700px; }
.not-found-kicker { margin: 0 0 34px; color: #a8a8a8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .08em; line-height: 1.2; }
.not-found-page h1 { max-width: 650px; margin: 0; color: var(--ink); font-size: clamp(30px, 3vw, 40px); font-weight: 400; letter-spacing: -.09em; line-height: 1.12; }
.not-found-home { display: inline-flex; align-items: center; gap: 14px; margin-top: 58px; padding: 10px 14px; border: 1px solid var(--ink); color: var(--ink); background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .05em; transition: color .18s ease, background-color .18s ease; }
.not-found-home:hover { color: var(--button-ink); background: var(--ink); }
.not-found-home span { font-size: 16px; }
.empty-spice-field, .not-found-spice-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.empty-spice, .not-found-spice { position: absolute; display: grid; place-items: center; color: #5f5f5a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1; opacity: .72; animation: not-found-float 9s ease-in-out infinite; }
.empty-spice--anise, .not-found-spice--anise { top: 13%; right: 13%; font-size: 92px; }
.empty-spice--cardamom, .not-found-spice--cardamom { top: 48%; right: 26%; font-size: 72px; animation-delay: -2.5s; }
.empty-spice--thought, .not-found-spice--thought { right: 12%; bottom: 18%; font-size: 108px; animation-delay: -5s; }
.empty-spice--cinnamon, .not-found-spice--cinnamon { bottom: 12%; left: 58%; font-size: 92px; animation-delay: -7s; }
.empty-spice--star, .not-found-spice--star { top: 31%; left: 72%; font-size: 32px; animation-delay: -1.5s; }
.empty-spice--label-one, .not-found-spice--label-one { top: 25%; right: 5%; font-size: 10px; letter-spacing: .16em; animation-delay: -4s; }
.empty-spice--label-two, .not-found-spice--label-two { bottom: 8%; left: 75%; font-size: 10px; letter-spacing: .16em; animation-delay: -6s; }

@keyframes not-found-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(10px, -16px, 0) rotate(5deg); }
}

.site-footer { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: space-between; width: min(100%, 840px); gap: 20px; padding: 36px 0 0; color: var(--soft-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.footer-email { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; padding: 7px 11px; border: 1px solid var(--ink); color: var(--ink); background: transparent; letter-spacing: .02em; text-transform: none; transition: color .18s ease, background-color .18s ease; }
.footer-email:hover { color: var(--button-ink); background: var(--ink); }
.footer-email-label { color: #a8a8a8; letter-spacing: .12em; }
.footer-email:hover .footer-email-label { color: var(--button-ink); }

.cms-layout { max-width: 840px; }
.cms-page { min-width: 0; }
.cms-hero { padding: 34px 36px 30px; border: 1px solid var(--line); border-bottom: 0; background: var(--paper); }
.cms-hero h1 { margin: 0; color: var(--ink); font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: -.075em; line-height: 1.1; }
.cms-hero > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.cms-card { padding: 30px 36px 36px; border: 1px solid var(--line); background: var(--paper-strong); }
.cms-editor-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.cms-card h2 { margin: 0; color: var(--ink); font-size: 26px; font-weight: 500; letter-spacing: -.06em; }
.cms-kicker { margin: 0 0 10px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .12em; }
.cms-copy { margin: 12px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.cms-form { display: grid; gap: 18px; }
.cms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cms-field-wide { grid-column: 1 / -1; }
.cms-label { display: grid; gap: 8px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .06em; }
.cms-input, .cms-textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: #0b0b0b; font: inherit; letter-spacing: 0; outline: none; }
.cms-input { min-height: 46px; padding: 11px 13px; }
.cms-textarea { min-height: 320px; padding: 15px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.7; }
.cms-input:focus, .cms-textarea:focus { border-color: var(--ink); }
.cms-code-input { max-width: 210px; font-size: 22px; letter-spacing: .28em; }
.cms-actions, .cms-upload-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cms-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 14px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; cursor: pointer; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .03em; }
.cms-button:hover { color: var(--button-ink); background: var(--ink); }
.cms-button--primary { color: var(--button-ink); background: var(--ink); }
.cms-button--primary:hover { color: var(--ink); background: transparent; }
.cms-publish-button { width: 100%; min-height: 50px; margin-top: 4px; }
.cms-upload-button { cursor: pointer; }
.cms-helper { margin: 0; color: var(--soft-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.55; }
.cms-file-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 20px; }
.cms-file-chip { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.cms-preview-wrap { display: grid; gap: 8px; }
.cms-preview { min-height: 120px; padding: 20px; border: 1px solid var(--line); background: #0b0b0b; }
.cms-preview p { margin: 0 0 16px; color: var(--ink); font-size: 15px; line-height: 1.7; }
.cms-preview h1, .cms-preview h2, .cms-preview h3, .cms-preview h4, .cms-preview h5, .cms-preview h6 { margin: 0 0 14px; color: var(--ink); line-height: 1.35; }
.cms-preview h1 { font-size: 30px; }
.cms-preview h2 { font-size: 26px; }
.cms-preview h3 { font-size: 21px; }
.cms-preview h4 { font-size: 18px; }
.cms-preview h5 { font-size: 16px; }
.cms-preview h6 { font-size: 14px; color: var(--muted); }
.cms-preview blockquote { margin: 22px 0; padding: 12px 0 12px 16px; border-left: 2px solid var(--accent); color: var(--accent-dark); line-height: 1.6; }
.cms-preview ul, .cms-preview ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink); line-height: 1.7; }
.cms-preview li { padding-left: 5px; }
.cms-preview .markdown-list-item--depth-1 { margin-left: 16px; }
.cms-preview .markdown-list-item--depth-2 { margin-left: 32px; }
.cms-preview .markdown-list-item--depth-3 { margin-left: 48px; }
.cms-preview .markdown-list-item--depth-4 { margin-left: 64px; }
.cms-preview-empty { color: var(--soft-muted) !important; }
.cms-preview-image { margin: 24px 0; }
.cms-preview-image img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
.cms-message { margin: 0; padding: 12px 14px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
.cms-message.is-success { border-color: #676761; color: var(--ink); }
.cms-message.is-error { border-color: #8a5f5f; color: #efbebe; }
.cms-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 36px; border: 1px solid var(--line); border-bottom: 0; background: var(--paper); }
.cms-tab { min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .04em; }
.cms-tab:hover, .cms-tab.is-active { color: var(--button-ink); background: var(--ink); border-color: var(--ink); }
.cms-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cms-markdown-editor { display: grid; gap: 8px; }
.cms-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); border-bottom: 0; background: #101010; }
.cms-tool-button { min-height: 30px; padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.cms-tool-button:hover { color: var(--button-ink); background: var(--ink); border-color: var(--ink); }
.cms-markdown-editor .cms-textarea { border-top: 1px solid var(--line); }
.cms-file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 7px 5px 9px; }
.cms-file-chip-label { overflow: hidden; max-width: 260px; text-overflow: ellipsis; white-space: nowrap; }
.cms-file-chip-kind { color: var(--soft-muted); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.cms-image-remove { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; line-height: 1; }
.cms-image-remove:hover { color: var(--button-ink); background: var(--ink); border-color: var(--ink); }
.cms-post-list { display: grid; gap: 10px; }
.cms-post-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); background: #101010; }
.cms-post-row:hover { border-color: #676761; }
.cms-post-row-main { min-width: 0; }
.cms-post-row h3 { margin: 10px 0 0; color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -.045em; line-height: 1.35; }
.cms-post-row-meta { margin: 7px 0 0; color: var(--soft-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .03em; }
.cms-post-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.cms-post-row-actions .cms-button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
.cms-list-empty { padding: 52px 20px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.cms-modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .78); }
.cms-preview-modal { display: flex; flex-direction: column; width: min(760px, 100%); max-height: min(760px, calc(100vh - 48px)); border: 1px solid var(--ink); background: var(--paper-strong); }
.cms-preview-modal-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cms-preview-modal-top h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; }
.cms-preview-modal-body { overflow: auto; padding: 24px; }
.cms-preview-modal-body .cms-preview { min-height: 160px; border: 0; padding: 0; background: transparent; }
.cms-preview-modal-body .cms-preview-image img { max-height: 420px; object-fit: contain; }
.cms-preview-modal-close { min-height: 34px; padding: 6px 10px; }
.cms-preview strong { color: var(--ink); font-weight: 700; }
.cms-preview em { color: var(--ink); font-style: italic; }
.cms-preview code { padding: 2px 4px; border: 1px solid var(--line); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.cms-preview a { text-decoration: underline; }
@media (max-width: 760px) {
  .initial-home-content { width: min(100% - 24px, 640px); margin: 12px auto; padding: 28px 22px; }
  .initial-home-content p:not(.initial-home-kicker) { font-size: 15px; }
  .cms-tabs { padding: 12px 20px; }
  .cms-post-row { grid-template-columns: 1fr; gap: 14px; }
  .cms-post-row-actions { justify-content: flex-start; }
  .cms-modal-backdrop { padding: 12px; }
  .cms-preview-modal { max-height: calc(100vh - 24px); }
  .cms-preview-modal-body { padding: 20px; }
}

@media (max-width: 760px) {
  .cms-hero { padding: 26px 20px 24px; }
  .cms-card { padding: 24px 20px 26px; }
  .cms-grid { grid-template-columns: 1fr; }
  .cms-field-wide { grid-column: auto; }
  .cms-textarea { min-height: 260px; }
  .cms-editor-top { align-items: stretch; flex-direction: column; }
  .cms-editor-top .cms-button { align-self: start; }
}
.mobile-nav-header, .mobile-menu-panel { display: none; }

@keyframes mobile-menu-reveal {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@keyframes mobile-menu-row-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); gap: 22px; width: min(100% - 40px, 1000px); }
  .home-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-card { max-width: 480px; margin-top: 0; }
  .profile-art { min-height: 150px; }
  .section-header { min-height: 112px; }
}

@media (max-width: 760px) {
  .article-image { margin: 32px 0; }
  .app-shell { display: block; width: min(100% - 24px, 640px); padding: 12px 0 28px; }
  .app-shell.is-not-found { display: block; width: min(100% - 24px, 640px); }
  .home-layout { gap: 12px; }
  .sidebar { position: static; min-height: auto; height: auto; margin-bottom: 16px; padding: 88px 0 0; border: 0; background: transparent; }
  .sidebar.has-open-subnav { border-bottom-color: transparent; }
  .nav-intro, .sidebar-divider, .primary-nav { display: none; }
  .mobile-nav-header { position: fixed; top: 0; right: 0; left: 0; z-index: 31; display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: 16px 18px; border: 0; background: #050505; }
  .mobile-brand { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; background: transparent; }
  .mobile-brand img { display: block; width: 64px; height: 64px; object-fit: contain; filter: invert(1) contrast(1.15); }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; min-width: 48px; min-height: 48px; padding: 0; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; cursor: pointer; }
  .menu-icon { display: grid; gap: 3px; width: 18px; }
  .menu-icon i { display: block; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .mobile-menu-toggle.is-open .menu-icon i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .mobile-menu-toggle.is-open .menu-icon i:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.is-open .menu-icon i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-menu-panel { display: block; max-height: 0; overflow: hidden; visibility: hidden; border: 1px solid transparent; border-top: 0; background: #1b1b1a; opacity: 0; pointer-events: none; transition: max-height .3s ease, opacity .2s ease, visibility .3s ease; }
  .sidebar.mobile-menu-open .mobile-nav-header { border-bottom: 1px solid var(--line); background: #1b1b1a; }
  .mobile-menu-panel.is-open { position: fixed; inset: 0; z-index: 30; display: flex; height: auto; min-height: 0; max-height: none; flex-direction: column; overflow-y: auto; visibility: visible; border: 0; background: #1b1b1a; opacity: 1; pointer-events: auto; padding: 88px 0 24px; }
  body.mobile-menu-is-open { overflow: hidden; }
  .mobile-menu-panel.is-open .mobile-primary-nav { animation: mobile-menu-reveal .42s cubic-bezier(.22, .61, .36, 1) both; transform-origin: top; }
  .mobile-primary-nav > .mobile-nav-link, .mobile-primary-nav > .mobile-nav-group { animation: mobile-menu-row-in .42s ease both; }
  .mobile-primary-nav > :nth-child(1) { animation-delay: .06s; }
  .mobile-primary-nav > :nth-child(2) { animation-delay: .1s; }
  .mobile-primary-nav > :nth-child(3) { animation-delay: .14s; }
  .mobile-primary-nav > :nth-child(4) { animation-delay: .18s; }
  .mobile-primary-nav > :nth-child(5) { animation-delay: .22s; }
  .mobile-primary-nav { display: grid; flex: 0 0 auto; }
  .mobile-menu-footer-copy { margin: auto 0 0; padding: 28px 26px 8px; border-top: 1px solid var(--line); color: #a8a8a8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .02em; line-height: 1.4; }
  .mobile-nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 74px; padding: 0 26px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 400; letter-spacing: .04em; line-height: 1.2; text-align: left; text-transform: uppercase; }
  .mobile-nav-link.is-active { font-weight: 700; }
  .mobile-row-start { display: inline-flex; align-items: center; gap: 20px; }
  .mobile-row-chevron { width: 11px; height: 11px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
  .mobile-nav-group-row { display: flex; border-bottom: 1px solid var(--line); }
  .mobile-nav-group-row > .mobile-nav-section-link { flex: 1; border-bottom: 0; cursor: pointer; }
  .mobile-sub-nav { display: grid; max-height: 0; overflow: hidden; padding: 0 26px 0 58px; background: #151514; transition: max-height .25s ease, padding .25s ease; }
  .mobile-sub-nav.is-open { max-height: 160px; padding-top: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .mobile-sub-nav-link { padding: 9px 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-sub-nav-link.is-active { color: var(--ink); font-weight: 700; }
  .list-content { padding: 0 12px 24px; }
  .section-header { display: block; min-height: auto; padding: 26px 2px 22px; }
  .section-header h1 { font-size: clamp(30px, 10vw, 42px); }
  .post-card { padding: 22px 18px 23px; }
  .post-card-top { flex-wrap: wrap; gap: 8px; }
  .post-card-main { padding: 15px 0 0; }
  .post-card h2 { font-size: 20px; }
  .profile-card { max-width: none; }
  .about-page { padding: 0; }
  .about-hero { padding: 40px 20px 50px; }
  .about-kicker { margin-bottom: 28px; font-size: 12px; }
  .about-hero h1 { max-width: 100%; font-size: clamp(48px, 14vw, 72px); white-space: normal; }
  .about-introduction { grid-template-columns: 1fr; gap: 16px; padding: 25px 20px 40px; }
  .about-introduction p { font-size: 19px; line-height: 1.65; }
  .about-details { grid-template-columns: 1fr; }
  .about-detail { min-height: auto; padding: 24px 20px 30px; border-right: 0; border-bottom: 1px solid #242424; }
  .about-detail:last-child { border-bottom: 0; }
  .about-detail p { margin-top: 16px; font-size: 17px; line-height: 1.7; }
  .not-found-page { min-height: 342px; padding: 40px 20px 56px; }
  .not-found-kicker { margin-bottom: 28px; font-size: 12px; }
  .not-found-page h1 { max-width: 100%; font-size: clamp(28px, 8vw, 36px); }
  .not-found-home { margin-top: 44px; font-size: 12px; }
  .empty-spice--anise, .not-found-spice--anise { top: 18%; right: 10%; font-size: 62px; }
  .empty-spice--cardamom, .not-found-spice--cardamom { top: 46%; right: 16%; font-size: 48px; }
  .empty-spice--thought, .not-found-spice--thought { right: 8%; bottom: 18%; font-size: 74px; }
  .empty-spice--cinnamon, .not-found-spice--cinnamon { bottom: 10%; left: 52%; font-size: 62px; }
  .empty-spice--star, .not-found-spice--star { top: 34%; left: 76%; font-size: 24px; }
  .empty-spice--label-one, .not-found-spice--label-one { top: 27%; right: 4%; font-size: 8px; }
  .empty-spice--label-two, .not-found-spice--label-two { bottom: 7%; left: 68%; font-size: 8px; }
  .site-footer { flex-wrap: wrap; gap: 12px; padding-top: 27px; }
  .footer-email { margin-left: auto; font-size: 10px; }
  .detail-page { padding-top: 0; }
  .detail-header { margin-top: 0; padding: 30px 20px 26px; }
  .detail-header h1 { font-size: clamp(28px, 9vw, 36px); }
  .article-body { padding: 38px 20px 46px; }
  .article-body p { font-size: 17px; line-height: 1.75; }
  .neighbor-card, .neighbor-current { min-height: auto; padding: 15px 16px; }
  .neighbor-card, .neighbor-current { align-items: flex-start; flex-direction: column; gap: 8px; }
  .neighbor-card strong, .neighbor-current strong { max-width: none; }
}

@media (max-width: 420px) {
  .mobile-nav-header { min-height: 76px; padding: 12px 14px; }
  .mobile-brand, .mobile-brand img { width: 52px; height: 52px; }
  .mobile-menu-toggle { width: 44px; min-width: 44px; min-height: 44px; }
  .sidebar { height: auto; padding-top: 76px; }
  .mobile-menu-panel.is-open { padding-top: 76px; }
  .mobile-nav-link { min-height: 64px; font-size: 18px; }
  .mobile-row-start { gap: 17px; }
}
