/* bmauck.info — one stylesheet, no frameworks, no webfonts, no trackers. */

:root {
  --bg: #0b0b0c;
  --surface: #121214;
  --line: #26262a;
  --text: #e9e7e2;
  --muted: #98958d;
  --accent: #c8a165;
  --accent-dim: #8a6f45;
  --max: 44rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaf7;
    --surface: #f3f1ec;
    --line: #ded9cf;
    --text: #1c1b19;
    --muted: #6a665e;
    --accent: #8a6320;
    --accent-dim: #b08c4f;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* ---------- masthead ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  margin-bottom: 3.5rem;
}

header.site .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

nav {
  display: flex;
  gap: 1.15rem;
  font-size: 0.9rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav a:hover, nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- type ---------- */

h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  font-weight: 600;
}

h2 {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 3.2rem 0 1.1rem;
}

h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
  font-weight: 600;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

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

code, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ---------- blocks ---------- */

.hero { padding: 0.5rem 0 0; }
.hero .kicker {
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 3rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 0.9rem;
}

.card p:last-child { margin-bottom: 0; }

.stack { list-style: none; margin: 0; padding: 0; }

.stack li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.stack li:last-child { border-bottom: 0; }

.stack .what { color: var(--muted); font-size: 0.93rem; }

/* inline tag row for the homepage */
.tags {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags li {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  color: var(--muted);
}

/* definition rows for the /uses page */
dl { margin: 0; }

dt {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.5rem;
}

dd { margin: 0.3rem 0 0; }
dd ul { margin: 0; padding-left: 1.1rem; }
dd li { margin: 0.2rem 0; }

/* ---------- contact ---------- */

.contact {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.3rem 1.4rem;
  background: var(--surface);
}

.contact .addr {
  font-size: 1.15rem;
  font-weight: 500;
  word-break: break-word;
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 4.5rem;
  padding: 1.6rem 0 3rem;
  color: var(--muted);
  font-size: 0.86rem;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.colophon { margin-top: 0.9rem; line-height: 1.5; }

/* ---------- a11y ---------- */

a:focus-visible, nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  border: 1px solid var(--accent);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  header.site nav, footer.site .colophon { display: none; }
  body { background: #fff; color: #000; }
}
