/* Staple site: one stylesheet, no external fonts, scripts or trackers.
   Shared with Plainview, Gaugeline and Quoth (victorshammas.com); only the hero figure and the four-tile app bar differ. */
:root {
  /* Brand palette, matching the extension icon: espresso (#553E27 → #261B10), amber (#FFD27E → #F39C2F). Same as Gaugeline's. */
  --bg: #f4f1ec;
  --surface: #fffdf9;
  --surface-2: #ece6dd;
  --text: #24180f;
  --muted: #6e5f52;
  --line: #e2d9cc;
  --accent: #b8610f;
  --accent-ink: #ffffff;
  --link: #9a4f0b;
  --glow: rgba(238, 138, 37, .14);
  --ok: #3fa66b;
  --warn: #e8a33a;
  --bad: #e0563a;
  --track: #e7dfd3;
  --code-bg: #ede6dc;
  --shadow: 0 1px 2px rgba(36, 24, 15, .06), 0 8px 28px rgba(36, 24, 15, .09);
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c140e;
    --surface: #2a1f16;
    --surface-2: #241a12;
    --text: #f6ebdd;
    --muted: #bca892;
    --line: #46321f;
    --accent: #ffb457;
    --accent-ink: #1c140e;
    --link: #ffc56a;
    --glow: rgba(255, 197, 106, .12);
    --track: #46321f;
    --code-bg: #33261b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
code, kbd {
  font: .9em/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--code-bg);
  border-radius: 6px;
  padding: .12em .4em;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
}
pre code { background: none; padding: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 40px; background: radial-gradient(60% 70% at 78% 40%, var(--glow), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-icon { width: 96px; height: 96px; margin-bottom: 18px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 18px; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 12px 20px; border-radius: 12px;
  font-weight: 600; text-decoration: none; font-size: 16px;
}
.btn:hover { opacity: .9; }
.btn small { font-weight: 500; opacity: .75; }
.fineprint { color: var(--muted); font-size: 14px; }

/* Screenshot frame: a real 1280×800 screenshot in a plain window. */
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; margin-right: 8px; }
.shot img { display: block; width: 100%; height: auto; }
.shot-wide { max-width: 880px; margin: 32px auto 0; }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.01em; }
.section-lede { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px; }
.band { background: var(--surface-2); border-block: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Docs pages */
.doc { padding: 48px 0 24px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc h3 { margin-top: 26px; }
.doc p, .doc li { color: var(--text); }
.doc .meta-line { color: var(--muted); margin-top: -6px; }
.tldr { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 28px; margin: 24px 0; }
.tldr ul { margin: 8px 0 0; padding-left: 20px; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 28px; margin: 12px 0; }
details[open] { padding-bottom: 18px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: inside; }
summary::-webkit-details-marker { margin-right: 6px; }
details > :not(summary) { margin-left: 0; margin-right: 0; }
summary::marker { color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 14.5px; background: var(--surface); }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  details, .card, .tldr { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 40px; }
  .hero .wrap, .grid, .steps { grid-template-columns: 1fr; }
  .hero .wrap { gap: 32px; }
  .checks { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
}
@media (max-width: 600px) {
  .stack thead { display: none; }
  .stack, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .stack td { border: 0; padding: 4px 0; }
  .stack td:first-child { font-weight: 600; }
  .stack td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
}
@media (max-width: 420px) {
  .nav a.hide-sm { display: none; }
  body { font-size: 16px; }
  .lede { font-size: 18px; }
}

/* App bar: the family of apps, shared by every site (Plainview, Gaugeline, Quoth, Staple, Claude Usage Meter, Lectern, Commonplace). */
.app-bar { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 8px; }
.app-bar + footer { margin-top: 0; border-top: 0; }
.app-bar-title { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.app-bar-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 18px; margin: 0 0 12px; }
.app-bar-head p { margin: 0; color: var(--muted); font-size: 14px; }
.app-bar-title a { color: inherit; text-decoration: none; }
.app-bar-title a:hover { color: var(--text); text-decoration: underline; }
.app-bar-coffee a { color: var(--link); font-weight: 600; }
.app-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.app-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.app-tile:hover { border-color: var(--accent); }
.app-tile img { width: 44px; height: 44px; flex: none; }
.app-tile span { display: grid; line-height: 1.3; }
.app-tile strong { font-size: 15.5px; }
.app-tile small { color: var(--muted); font-size: 13px; }
.app-tile em { color: var(--accent); font-size: 12px; font-style: normal; font-weight: 600; }
.app-tile.current { box-shadow: inset 0 0 0 1px var(--accent); border-color: var(--accent); }
/* Seven apps: four across, then three; icon beside the text. */
@media (max-width: 1000px) { .app-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .app-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .app-tiles { grid-template-columns: 1fr; } }
