/* Spare Mug — sparemug.com
   One stylesheet, no build step, no JavaScript. Dark, quiet, readable. */

:root {
  --bg: #101318;
  --surface: #161a21;
  --border: #262c36;
  --text: #d5dae1;
  --muted: #8a93a1;
  --accent: #d9a662;
  --accent-bright: #e8bd7f;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.wordmark {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover { color: var(--accent-bright); }

.wordmark .tilde { color: var(--accent); }

nav.site {
  font-family: var(--mono);
  font-size: 0.85rem;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
}

nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--accent-bright); }

/* Main */

main {
  padding: 3rem 0 4rem;
}

h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 { font-size: 1.6rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.05rem; margin: 2.75rem 0 0.75rem; color: var(--accent); }
h3 { font-size: 0.95rem; margin: 1.75rem 0 0.5rem; }

p { margin: 0.75rem 0; }

a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: var(--accent-bright); }

ul { padding-left: 1.2rem; margin: 0.75rem 0; }
li { margin: 0.35rem 0; }

kbd, code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.lede {
  font-size: 1.15rem;
  color: var(--text);
}

.muted { color: var(--muted); }

.small {
  font-size: 0.85rem;
  font-family: var(--mono);
}

/* ASCII mug */

pre.mug {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--muted);
  margin: 0 0 1.5rem;
  user-select: none;
}

pre.mug .steam { color: var(--accent); }

/* App card (home) */

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  text-decoration: none;
  color: var(--text);
}

.card:hover { border-color: var(--accent); }

.card .name {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent-bright);
}

.card .desc {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* Fact list — the trust block */

dl.facts {
  margin: 1.25rem 0;
  border-left: 2px solid var(--border);
  padding-left: 1.1rem;
}

dl.facts dt {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.9rem;
}

dl.facts dd {
  margin: 0.15rem 0 0;
}

/* Footer */

footer.site {
  border-top: 1px solid var(--border);
}

footer.site .wrap {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent-bright); }

footer.site .links { margin-bottom: 0.5rem; }
footer.site .links a { margin-right: 1.1rem; }
