:root {
  --green: #22c55e; --green-ink: #22c55e; --green-btn: #16a34a;
  --bg: #FAFAFA; --surface: #FFFFFF; --surface-2: #F4F4F4;
  --text: #111111; --text-2: #4a4a4a; --text-3: #737373;
  --line: rgba(17,17,17,.09); --line-strong: rgba(17,17,17,.16);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B10; --surface: #141419; --surface-2: #1B1B21;
    --text: #EDEDF0; --text-2: #A8A8B3; --text-3: #7C7C88;
    --line: rgba(237,237,240,.08); --line-strong: rgba(237,237,240,.16); --green-ink: #22c55e;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B10; --surface: #141419; --surface-2: #1B1B21;
  --text: #EDEDF0; --text-2: #A8A8B3; --text-3: #7C7C88;
  --line: rgba(237,237,240,.08); --line-strong: rgba(237,237,240,.16); --green-ink: #22c55e;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; }
.logo img { width: 28px; height: 28px; }
.logo b { color: var(--green-ink); }
.links { display: flex; gap: 28px; list-style: none; }
.links a { color: var(--text-2); font-size: .9rem; font-weight: 500; }
.links a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px; font-weight: 600; font-size: .9rem; white-space: nowrap; background: var(--green-btn); color: #fff; }
.btn:hover { background: #15803d; }

article { max-width: 720px; margin: 0 auto; padding: 64px 0 32px; }
.crumb { font-size: .85rem; color: var(--text-3); }
.crumb a:hover { color: var(--text); }
article h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin: 16px 0 16px; }
.meta { font-size: .85rem; color: var(--text-3); padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
article h2 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.25; margin: 44px 0 12px; }
article h3 { font-size: 1.1rem; margin: 28px 0 8px; }
article p { color: var(--text-2); font-size: 1.05rem; margin-bottom: 18px; }
article ul, article ol { color: var(--text-2); font-size: 1.05rem; margin: 0 0 18px 22px; }
article li { margin-bottom: 8px; }
article strong { color: var(--text); font-weight: 600; }
article a.in { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
article table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .95rem; }
article th, article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
article th { color: var(--text-3); font-weight: 500; font-size: .85rem; background: var(--surface-2); }
article td.num { font-family: var(--mono); }
article figure { margin: 8px 0 28px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
article figure img { display: block; width: 100%; height: auto; }
article figcaption { padding: 10px 14px; font-size: .85rem; color: var(--text-3); border-top: 1px solid var(--line); }
.cta { margin: 40px 0 0; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta p { margin: 0; color: var(--text); font-weight: 600; font-size: 1.05rem; }
.cta span { display: block; font-weight: 400; color: var(--text-2); font-size: .95rem; }
.more { max-width: 720px; margin: 24px auto 0; }
.more h2 { font-size: 1.1rem; margin-bottom: 12px; }
.more a { display: block; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 500; }
.more a:hover { color: var(--green-ink); }
footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 24px 0 40px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--text-3); }
.foot a:hover { color: var(--text); }
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .links { display: none; }
  article { padding-top: 40px; }
}
