:root {
  --bg: #fbfcfd; --panel: #fff; --text: #0f1b2d; --muted: #566377; --line: #e2e8ef;
  --navy: #003068; --signal: #00b0e0; --link: #0a5aa8; --abyss: #061733; --cta-bg: #061733; --cta-text: #eaf4fb;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
}
:root[data-theme="dark"] {
  --bg: #0a1220; --panel: #101a2c; --text: #e6edf6; --muted: #98a6ba; --line: #1f2c43; --link: #5cc8f0; --cta-bg: #0d2142;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--font); }
a { color: var(--link); }
img { max-width: 100%; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.top { border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.logo-d { display: none; } :root[data-theme="dark"] .logo-l { display: none; } :root[data-theme="dark"] .logo-d { display: inline; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 10px; background: var(--signal); color: var(--abyss); font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--cta-text); box-shadow: inset 0 0 0 1.5px rgb(234 244 251 / 0.5); }

main { padding-block: 40px 72px; }
.hero { padding-block: 16px 28px; max-width: 680px; }
.hero h1, .post h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 19px; margin: 0; }

.cards { list-style: none; margin: 0 0 48px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.cards a:hover { border-color: var(--signal); transform: translateY(-2px); }
.cards h2 { font-size: 20px; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
.cards p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.tag { font: 500 13px/1 var(--mono); color: var(--link); }
.meta { color: var(--muted); font-size: 14px; }

.post { max-width: 720px; margin-inline: auto; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.prose h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; margin: 44px 0 12px; }
.prose p, .prose li { max-width: 68ch; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 650; }

.cta { margin-top: 56px; padding: 32px; border-radius: 20px; background: var(--cta-bg); color: var(--cta-text); }
.cta h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; }
.cta p { margin: 0 0 20px; color: rgb(234 244 251 / 0.8); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
main > .cta { max-width: 720px; margin-inline: auto; }

.more { margin-top: 48px; }
.more h2 { font-size: 20px; margin: 0 0 12px; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.more a { font-weight: 600; }
.more li span { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; }

.foot { border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav a:not(.btn) { display: none; }
  .cta { padding: 24px; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .cards a { transition: none; } .cards a:hover { transform: none; } }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.cats a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; background: var(--panel); }
.cats a:hover { border-color: var(--signal); }
.cats a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .cats a[aria-current="page"] { background: var(--signal); border-color: var(--signal); color: var(--abyss); }
.hero .crumbs { margin-bottom: 12px; }

.fig { margin: 28px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.tbl { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--panel); font-weight: 650; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.faq { margin-top: 48px; }
.faq h2 { font-size: 26px; margin: 0 0 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 68ch; }
