:root {
  --bg: #faf9f6; --text: #3a3a3a; --muted: #a8a49c; --faint: #ebe8e2;
  --accent: #c65a11; --accent-soft: rgba(198, 90, 17, 0.08); --code-bg: #f2efe9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #21232b; --text: #d6d8de; --muted: #8b90a0; --faint: #2e313b;
    --accent: #f2994a; --accent-soft: rgba(242, 153, 74, 0.10); --code-bg: #2a2d37;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text); line-height: 1.65;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
header {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 0 20px; height: 52px; border-bottom: 1px solid var(--faint);
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; color: inherit; text-decoration: none;
}
header nav { display: flex; gap: 16px; font-size: 14px; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--text); }
main { max-width: 680px; margin: 0 auto; padding: 40px 24px 72px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
h1 { font-size: 30px; line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: 19px; margin: 38px 0 10px; letter-spacing: -0.005em; }
p, li, td, th { font-size: 15px; }
p { margin-top: 12px; }
a { color: var(--accent); }
.answer { font-size: 17px; color: var(--muted); }
.answer strong { color: var(--text); font-size: 21px; }
code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px; background: var(--code-bg); padding: 1.5px 5px; border-radius: 4px;
}
.calc {
  margin-top: 24px; padding: 18px; border: 1px solid var(--faint);
  border-radius: 12px; background: var(--accent-soft);
}
.calc label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.calc input {
  width: 100%; padding: 12px 14px; font-size: 16px;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--faint); border-radius: 8px; outline: none;
}
.calc input:focus { border-color: var(--accent); }
.calc output {
  display: block; margin-top: 12px; min-height: 30px;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 22px; color: var(--accent);
}
.cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  padding: 9px 16px; font-size: 14px; font-weight: 500;
  color: #fff; background: var(--accent); border-radius: 8px; text-decoration: none;
}
.cta:hover { opacity: 0.9; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--faint); }
th { font-size: 13px; color: var(--muted); font-weight: 500; }
td:last-child, th:last-child { text-align: right; }
ul { margin: 10px 0 0 20px; }
li { margin: 5px 0; }
.related { columns: 2; column-gap: 24px; }
.grid { list-style: none; margin-left: 0; columns: 2; column-gap: 28px; }
.grid li { break-inside: avoid; margin: 4px 0; }
.grid .hint { color: var(--muted); font-size: 12.5px; }
.pitch {
  margin-top: 48px; padding: 22px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--faint);
}
.pitch h2 { margin-top: 0; }
footer {
  max-width: 680px; margin: 0 auto; padding: 0 24px 56px;
  font-size: 13px; color: var(--muted);
}
footer a { color: var(--muted); }
@media (max-width: 560px) {
  .related, .grid { columns: 1; }
  header nav a:first-child { display: none; }
}
.note {
  margin-top: 14px; padding: 12px 14px; font-size: 13.5px; color: var(--muted);
  background: var(--code-bg); border-radius: 8px; border-left: 2px solid var(--muted);
}
