:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #1d2430;
  --muted: #6d7580;
  --line: #e8e0d5;
  --accent: #a6532a;
  --accent-soft: #fff1e8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.boke-wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.boke-head { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.78); }
.boke-head__inner { padding: 34px 0 24px; }
.boke-brand { font-size: 30px; font-weight: 800; letter-spacing: .02em; }
.boke-head p { max-width: 680px; margin: 8px 0 0; color: var(--muted); }
.boke-nav { border-top: 1px solid var(--line); }
.boke-nav .boke-wrap { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
.boke-nav a { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; color: #48515d; font-size: 14px; }
.boke-nav a.is-active, .boke-nav a:hover { background: var(--accent-soft); color: var(--accent); }

.boke-home { padding: 34px 0 50px; }
.boke-hero { max-width: 820px; padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
.boke-kicker { display: inline-block; margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.boke-hero h1 { margin: 0; font-size: clamp(30px, 5vw, 54px); line-height: 1.15; }
.boke-hero p { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.boke-hero time { display: block; margin-top: 16px; color: var(--muted); font-size: 14px; }
.boke-layout, .boke-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; padding-top: 32px; align-items: start; }
.boke-section p, .boke-list__head p { margin: 0; color: var(--accent); font-size: 13px; font-weight: 700; }
.boke-section h2, .boke-list__head h1 { margin: 2px 0 20px; font-size: 26px; line-height: 1.25; }
.boke-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.boke-card time { color: var(--muted); font-size: 14px; }
.boke-card__cat { color: var(--accent); font-size: 13px; font-weight: 700; }
.boke-card h3 { margin: 4px 0 8px; font-size: 22px; line-height: 1.35; }
.boke-card p { margin: 0; color: var(--muted); }
.boke-aside { position: sticky; top: 20px; }
.boke-aside section { margin-bottom: 24px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.boke-aside h2 { margin: 0 0 14px; font-size: 18px; }
.topic-pill { display: inline-block; margin: 0 8px 8px 0; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: #3f4650; font-size: 14px; }
.boke-aside ol { margin: 0; padding-left: 20px; color: var(--muted); }
.boke-aside li { margin: 0 0 10px; }

.boke-crumb { display: flex; gap: 8px; padding-top: 22px; color: var(--muted); font-size: 14px; }
.boke-list { padding: 26px 0 50px; }
.boke-list__head { max-width: 760px; margin-bottom: 10px; }
.boke-list__head span { color: var(--muted); }
.boke-pager { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; color: var(--muted); }
.boke-pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }

.boke-article { min-width: 0; }
.boke-article header { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.boke-article h1 { margin: 0; font-size: clamp(30px, 4.8vw, 48px); line-height: 1.2; }
.boke-article header p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.boke-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.boke-body { padding: 28px 0; font-size: 18px; }
.boke-body p { margin: 0 0 1.1em; }
.boke-body h2, .boke-body h3 { line-height: 1.35; margin: 1.6em 0 .6em; }
.boke-body blockquote { margin: 20px 0; padding-left: 18px; border-left: 3px solid var(--accent); color: #414954; }
.boke-prevnext { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.boke-prevnext p { margin: 0; }
.boke-related { margin-top: 28px; }
.boke-related h2 { font-size: 22px; }
.boke-related ul { margin: 0; padding-left: 20px; }
.boke-related li { margin-bottom: 10px; }
.boke-footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.boke-footer p { margin: 4px 0; }
.boke-footer a { margin-right: 12px; }

@media (max-width: 820px) {
  .boke-layout, .boke-article-layout { grid-template-columns: 1fr; gap: 24px; }
  .boke-aside { position: static; }
  .boke-card { grid-template-columns: 1fr; gap: 6px; }
}
