:root {
  color-scheme: light;
  --bg: #eef3fb;
  --surface: rgba(255, 255, 255, .88);
  --surface-solid: #fff;
  --surface-soft: #e7edf8;
  --text: #243043;
  --heading: #0f1728;
  --muted: #516072;
  --subtle: #6f7d90;
  --border: rgba(118, 134, 163, .2);
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, .12);
  --accent-border: rgba(0, 122, 255, .24);
  --header: rgba(246, 249, 255, .84);
  --shadow: 0 18px 48px rgba(15, 23, 42, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #07111f;
    --surface: rgba(12, 22, 38, .82);
    --surface-solid: #0f1b30;
    --surface-soft: #15233a;
    --text: #e7edf7;
    --heading: #f8fbff;
    --muted: #c3cddd;
    --subtle: #99abc2;
    --border: rgba(148, 163, 184, .18);
    --accent: #5ac8fa;
    --accent-soft: rgba(0, 122, 255, .18);
    --accent-border: rgba(90, 200, 250, .3);
    --header: rgba(7, 17, 31, .9);
    --shadow: 0 24px 64px rgba(2, 8, 18, .34);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.shell { width: min(100% - 44px, 1180px); margin-inline: auto; }
main.shell { flex: 1; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--heading); font-size: 21px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { display: block; flex: none; width: 42px; height: 42px; border-radius: 13px; object-fit: cover; }
.brand strong { display: inline-block; margin-left: 10px; padding-left: 13px; border-left: 1px solid var(--border); color: var(--subtle); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.site-header nav, .footer-inner span:last-child { display: flex; align-items: center; gap: 10px; }
.site-header nav a { padding: 9px 15px; border: 1px solid transparent; border-radius: 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.site-header nav a:hover, .site-header nav a.nav-current { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-border); }
.intro { padding: 49px 0 25px; }
.intro h1 { margin: 0; color: var(--heading); font-size: clamp(36px, 4.7vw, 52px); line-height: 1.1; letter-spacing: -.055em; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 76px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); transition: border-color .18s, transform .18s; }
.post-card:hover { border-color: var(--accent-border); transform: translateY(-3px); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-cover { height: 164px; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.cover-identity { display: grid; place-items: center; background: linear-gradient(120deg, var(--surface-soft), var(--accent-soft)); }
.cover-identity img { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; box-shadow: 0 10px 28px rgba(0, 54, 140, .24); }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: 23px 25px 22px; }
.eyebrow { display: inline-flex; align-self: flex-start; align-items: center; padding: 4px 10px; border: 1px solid var(--accent-border); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.4; }
.card-copy h2 { margin: 13px 0 8px; color: var(--heading); font-size: clamp(21px, 2vw, 25px); line-height: 1.22; letter-spacing: -.038em; }
.card-copy p { margin: 0 0 23px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; }
.meta { color: var(--subtle); font-size: 12px; }
.read-link { white-space: nowrap; color: var(--accent); font-size: 13px; font-weight: 700; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 0 76px; color: var(--subtle); font-size: 14px; }
.pagination a { color: var(--accent); font-weight: 700; }
.article { width: min(100%, 860px); margin: 42px auto 88px; }
.back-link { display: inline-flex; align-items: center; margin-bottom: 22px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 650; }
.back-link:hover { border-color: var(--accent-border); color: var(--accent); }
.article-header { padding: 7px 2px 32px; }
.article h1 { margin: 17px 0 13px; color: var(--heading); font-size: clamp(36px, 5vw, 54px); line-height: 1.11; letter-spacing: -.055em; }
.article-lede { max-width: 760px; margin: 0 0 22px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.5; }
.article-body { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); font-size: 17px; line-height: 1.73; }
.article-body p, .article-body ul { margin: 0 0 24px; }
.article-body h2 { margin: 38px 0 12px; color: var(--heading); font-size: 26px; line-height: 1.25; letter-spacing: -.035em; }
.article-body h2:first-child { margin-top: 0; }
.article-body ul { padding-left: 24px; }
.article-body li { padding-left: 4px; margin: 7px 0; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { min-height: 82px; color: var(--subtle); font-size: 13px; }
.footer-inner a { padding: 5px; color: var(--muted); }
.footer-inner a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-cover { height: 180px; }
}
@media (max-width: 520px) {
  .shell { width: min(100% - 30px, 1180px); }
  .header-inner { min-height: 66px; gap: 8px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand strong { margin-left: 6px; padding-left: 8px; font-size: 14px; }
  .site-header nav { gap: 2px; }
  .site-header nav a { padding: 7px 8px; font-size: 12px; }
  .intro { padding: 34px 0 18px; }
  .card-cover { height: 148px; }
  .card-copy { padding: 20px; }
  .card-bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
  .article { margin: 24px auto 58px; }
  .article-header { padding-bottom: 24px; }
  .article-body { padding: 22px; font-size: 16px; }
  .article-body h2 { font-size: 23px; }
  .footer-inner { min-height: 84px; }
}
