/* Hard Target website. System fonts only: the site makes no third-party requests. */
:root {
  --ink: #14181f;
  --muted: #5b6472;
  --paper: #fbfaf7;
  --panel: #f1eee7;
  --rule: #ddd8cc;
  --accent: #a8360a;
  --accent-ink: #ffffff;
  --code-bg: #f1eee7;
  --measure: 42rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8e6e1;
    --muted: #9aa3b1;
    --paper: #0d1117;
    --panel: #161b22;
    --rule: #2b323c;
    --accent: #ff7a3d;
    --accent-ink: #0d1117;
    --code-bg: #161b22;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8e6e1; --muted: #9aa3b1; --paper: #0d1117; --panel: #161b22;
  --rule: #2b323c; --accent: #ff7a3d; --accent-ink: #0d1117; --code-bg: #161b22;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
}
main, .masthead, .pager, footer { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }
.masthead { padding-top: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.brand { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.brand::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.45em; border: 3px solid var(--accent); border-radius: 50%; vertical-align: -0.05em; }

h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 1.4em 0 0.6em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2em 0 0.6em; }
h3 { font-size: 1.1rem; margin: 1.6em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin: 0.25em 0; }
a { color: var(--accent); text-underline-offset: 0.15em; }
strong { font-weight: 700; }

blockquote {
  margin: 1.5em 0;
  padding: 0.9em 1.1em;
  background: var(--panel);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}
blockquote p:last-child { margin-bottom: 0; }

table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; }
th, td { border-bottom: 1px solid var(--rule); padding: 0.5em 0.7em; text-align: left; vertical-align: top; }
th { font-weight: 700; white-space: nowrap; }

code { font: 0.9em/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:not(pre) > code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 4px; }
pre {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt { position: relative; }
.prompt pre { padding-top: 2.6em; }
.copy {
  position: absolute; top: 0.5em; right: 0.5em; z-index: 1;
  font: 600 0.8rem/1 system-ui, sans-serif;
  padding: 0.45em 0.7em; border-radius: 6px; border: 0;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
}

ul.task-list, ul:has(> li > input[type="checkbox"]) { list-style: none; padding-left: 0.2em; }
input[type="checkbox"] { accent-color: var(--accent); margin-right: 0.5em; transform: scale(1.15); }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75em; margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--rule); }
.pager a { text-decoration: none; font-weight: 600; }
footer { color: var(--muted); font-size: 0.85rem; padding-top: 2em; padding-bottom: 3em; }

.hero { display: grid; gap: 1.5em; margin-top: 1.5em; align-items: start; }
.hero img { width: min(100%, 240px); height: auto; border-radius: 6px; box-shadow: 0 8px 30px rgb(0 0 0 / 0.25); }
.hero h1 { margin-top: 0; }
.subtitle { font-size: 1.2rem; color: var(--muted); margin-top: -0.3em; }
@media (min-width: 640px) { .hero { grid-template-columns: 240px 1fr; } }
.downloads { display: flex; flex-wrap: wrap; gap: 0.6em; }
.button { display: inline-block; padding: 0.6em 1.1em; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.button.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.toc { list-style: none; padding-left: 0; }
.toc li { margin: 0.4em 0; }
.edition { color: var(--muted); font-size: 0.9rem; }
