:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #f0eee6;
  background: #171817;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  line-height: 1.85;
  --muted: #c1bfb5;
  --amber: #ffc86c;
  --panel: #20221e;
  --line: #45473f;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--amber); text-underline-offset: .18em; }
a:hover { color: #ffe0a6; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.page { width: min(920px, calc(100% - 36px)); margin: 0 auto; padding: 28px 0 64px; }
.site-head, .site-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .88rem; }
.brand { color: #f0eee6; font-weight: 750; text-decoration: none; letter-spacing: .04em; }
.article { margin: 52px auto 0; max-width: 760px; }
.eyebrow { margin: 0 0 10px; color: var(--amber); font-size: .82rem; font-weight: 750; letter-spacing: .12em; }
h1, h2, h3 { line-height: 1.45; }
h1 { max-width: 17em; margin: 0; font-size: clamp(2rem, 7vw, 3.35rem); letter-spacing: -.035em; }
h2 { margin: 2.2em 0 .6em; font-size: clamp(1.25rem, 4vw, 1.65rem); }
h3 { margin: 1.4em 0 .4em; font-size: 1.08rem; }
p, li { color: #e1dfd7; }
.lead { margin: 18px 0 0; color: #d0cec4; font-size: 1.08rem; }
.panel, .callout, .article-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: clamp(18px, 4vw, 28px); }
.panel { margin: 26px 0; }
.callout { margin: 22px 0; border-left: 4px solid var(--amber); }
.callout p:first-child, .panel p:first-child { margin-top: 0; }
.callout p:last-child, .panel p:last-child { margin-bottom: 0; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--amber); border-radius: 8px; padding: 8px 16px; color: #171817; background: var(--amber); font-weight: 750; text-decoration: none; }
.button:hover { color: #171817; background: #ffe0a6; }
.button.secondary { color: var(--amber); background: transparent; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--amber); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
figure { margin: 24px 0; }
figure svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #151714; }
figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.formula { display: block; overflow-x: auto; margin: 14px 0; border-radius: 8px; padding: 12px 15px; background: #111310; color: #ffe0a6; font: 1rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.article-list { display: grid; gap: 14px; margin: 26px 0; }
.article-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.article-card:hover { border-color: var(--amber); color: inherit; transform: translateY(-2px); }
.article-card h2 { margin: 0 0 6px; color: var(--amber); font-size: 1.22rem; }
.article-card p { margin: 0; color: var(--muted); }
.article-card .tag { display: block; margin-bottom: 4px; color: #a9a79d; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.site-foot { margin-top: 60px; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 560px) {
  .page { width: min(100% - 28px, 920px); padding-top: 18px; }
  .site-head { align-items: flex-start; }
  .article { margin-top: 38px; }
  .site-foot { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
