/* Hatcheck's site: the styles index.html, guides.html and the guides, agents.html, commands.html and rules.html share.
   Light and dark follow the system; colours are the tokens on :root. */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --bg-soft: #f5f5f7; --line: #e3e3e8; --text: #1d1d1f; --muted: #6e6e73;
  --accent: #4f46e5; --accent-text: #ffffff; --violet: #7c3aed; --ok: #34a853; --mid: #e8a317; --low: #d93025;
  --far: #4a8fe7; --code-bg: #1c1c1e; --code-text: #f2f2f7;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1c1c1e; --bg-soft: #2a2a2d; --line: #3a3a3e; --text: #f2f2f7; --muted: #a1a1a8; --accent: #818cf8;
          --accent-text: #111114; --code-bg: #0f0f10; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
code { background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; border-radius: 10px; overflow-x: auto; line-height: 1.45; margin: 0; }
pre code { background: none; padding: 0; color: inherit; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
header { padding: 36px 0 28px; }
.hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero svg { width: 96px; height: 96px; flex: none; border-radius: 22px; }
h1 { font-size: 40px; margin: 0; letter-spacing: -0.02em; }
.tagline { font-size: 20px; color: var(--muted); margin: 6px 0 0; max-width: 640px; }
.unofficial { color: var(--muted); font-size: 14px; margin: 18px 0 22px; }
.nowrap { white-space: nowrap; }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.button { display: inline-block; padding: 9px 16px; border-radius: 8px; background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; }
.button.ghost { background: var(--bg-soft); color: var(--text); }
section { padding: 26px 0; border-top: 1px solid var(--line); }
h2 { font-size: 24px; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 22px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; }
.card h3 { margin-top: 0; }
.card p, .card li { color: var(--muted); font-size: 15px; margin: 6px 0; }
.card ul { padding-left: 18px; margin: 6px 0 0; }
.plans { display: grid; gap: 8px; max-width: 560px; margin: 14px 0 6px; }
.limit { display: grid; grid-template-columns: 110px 46px 1fr 1fr 110px; gap: 10px; align-items: center; font-size: 14px; }
.limit .name.violet { color: var(--violet); }
.pct { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; }
.ok i { background: var(--ok); } .mid i { background: var(--mid); } .low i { background: var(--low); }
.violet-bar i { background: var(--violet); } .time i { background: var(--far); }
.reset { color: var(--muted); font-size: 13px; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.downloads a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
.downloads a span { display: block; color: var(--muted); font-size: 13px; }
.downloads a[href]:hover, .downloads a[href]:focus-visible { border-color: var(--accent); }
.downloads.apps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rules li { margin: 6px 0; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 14px 0 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.video a { display: block; width: 100%; height: 100%; color: inherit; }
.video a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.video a:hover .play, .video a:focus-visible .play { transform: scale(1.06); }
.video .play svg { width: 32px; height: 32px; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.table { overflow-x: auto; margin: 14px 0 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 880px; }
.shorts table { min-width: 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
td:first-child { white-space: nowrap; font-weight: 600; }
.none { color: var(--muted); }
.helps { margin-top: 14px; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 8px 0; }
details[open] { background: var(--bg-soft); }
summary { cursor: pointer; font-weight: 600; }
summary span { color: var(--muted); font-weight: 400; margin-left: 6px; }
details pre { margin: 10px 0 6px; }
footer { padding: 26px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 560px) {
  h1 { font-size: 32px; } .tagline { font-size: 18px; }
  .limit { grid-template-columns: 70px 40px 1fr 1fr; } .limit .reset { display: none; }
}
  
.top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding-top: 18px; font-size: 15px; }
.top a { color: var(--muted); text-decoration: none; }
.top a:hover, .top a[aria-current="page"] { color: var(--text); }
.top .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; margin-right: auto; }
.top .brand img { width: 24px; height: 24px; border-radius: 6px; }
.page h1 { font-size: 32px; margin: 32px 0 10px; letter-spacing: -0.02em; }
.page { padding-bottom: 20px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card h3 a { color: var(--accent); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
@media (max-width: 560px) { .page h1 { font-size: 28px; } }
/* Colours in the samples of hatcheck's output, as a terminal shows them: bold, dim and the basic colours. */
pre .b { font-weight: 700; } pre .d { opacity: 0.62; }
pre .r { color: #ff6b6b; } pre .g { color: #4fd18b; } pre .y { color: #f2c94c; } pre .bl { color: #6ea8fe; } pre .m { color: #c58af9; } pre .c { color: #5fd3e8; }
/* The guides: a page each, with the same h1 as the other pages and room between their sections. */
.guide h2 { margin-top: 30px; }
.guide pre { margin: 10px 0 14px; }
.guide li { margin: 6px 0; }
.guide li pre { margin: 8px 0 4px; }
.guides li { margin: 10px 0; }
.guides li span { display: block; color: var(--muted); font-size: 15px; }
