/* PocketQube build journal — dark, academic, minimal */

:root {
  --bg: #0b0e13;
  --bg-raised: #10151d;
  --ink: #d7dee8;
  --ink-muted: #8b97a5;
  --ink-faint: #5c6773;
  --rule: #1e2631;
  --accent: #62c6b5;
  --accent-dim: #3d7d73;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
}

a:hover {
  border-bottom-color: var(--accent);
}

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

.masthead {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.masthead .kicker {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.masthead h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.masthead h1 a {
  color: var(--ink);
  border-bottom: none;
}

.masthead .subtitle {
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2.5rem;
}

.top-nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: none;
}

.top-nav a:hover {
  border-bottom: 1px solid var(--accent);
}

/* ---------- mono metadata ---------- */

.meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.meta .sep {
  color: var(--rule);
  padding: 0 0.375rem;
}

.meta .status {
  color: var(--accent);
}

/* ---------- index: entry list ---------- */

.entries h2 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.entry {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
}

.entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.entry h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0.5rem 0 0.625rem;
}

.entry h3 a {
  color: var(--ink);
  border-bottom: none;
}

.entry h3 a:hover {
  color: var(--accent);
}

.entry .excerpt {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.entry .read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- article ---------- */

.crumb {
  margin-bottom: 2.5rem;
}

.crumb a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: none;
}

.crumb a:hover {
  color: var(--accent);
}

article header {
  margin-bottom: 2.5rem;
}

article h1 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0.75rem 0 0;
}

article h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.75rem 0 1rem;
}

article h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

article p {
  margin-bottom: 1.375rem;
}

article ul {
  margin: 0 0 1.375rem 1.25rem;
  padding-left: 0;
}

article li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

article li::marker {
  color: var(--accent-dim);
}

.spec-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 1.25rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

article p:last-child {
  margin-bottom: 0;
}

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

.signature {
  margin-top: 2.5rem;
  color: var(--ink-muted);
  font-style: italic;
}

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding-top: 1.5rem;
}
