/* mottai.com — personal operational dashboard.
   Neutral near-black palette, monospace-led, dense-but-readable. Zero JS.
   Structural tokens in tokens.css (linked first). */

/* ── Palette ────────────────────────────────────────────────────────────── */
:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2e2e2e;
  --text: #e8e8e8;
  --muted: #888888;
  --accent: #3b82f6;
}

/* ── Reset / base ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.875rem; /* 14px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a:hover {
  text-decoration: underline;
}

/* ── Focus ring (global) ────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(var(--space-3), 4vw, var(--space-4));
}

main.wrap {
  padding-block: var(--space-4);
}

.section {
  margin-top: var(--space-5);
}

.section:first-of-type {
  margin-top: var(--space-4);
}

.eyebrow {
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

/* ── Top bar ────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: var(--nav-h);
}

.wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.wordmark:hover {
  text-decoration: none;
}

.topbar .meta {
  color: var(--muted);
  font-size: 0.8125rem; /* 13px */
}

.topbar .meta a {
  color: var(--muted);
}

/* ── Quick-link cards ───────────────────────────────────────────────────── */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  color: var(--text);
  transition: border-color 100ms ease, color 100ms ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.card .label {
  font-weight: 600;
}

.card .host {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: 0.8125rem; /* 13px */
}

/* host hint stays muted even when the card label goes accent on hover */
.card:hover .host,
.card:focus-visible .host {
  color: var(--muted);
}

/* ── Projects table ─────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: var(--surface);
}

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

/* ── Notes list ─────────────────────────────────────────────────────────── */
.notes li {
  padding-block: var(--space-1);
}

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

/* ── Doc pages ──────────────────────────────────────────────────────────── */
.doc {
  max-width: 760px;
}

.back {
  font-size: 0.8125rem;
}

details {
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-3);
}

summary {
  cursor: pointer;
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  color: var(--text);
}

details[open] summary {
  margin-bottom: var(--space-3);
}

.doc-body p {
  margin-bottom: var(--space-3);
}

.doc-body ul {
  list-style: disc;
  padding-left: var(--space-4);
}

.doc-body li {
  margin-bottom: var(--space-2);
}

.doc-body code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
  font-size: 0.8125rem;
}

.todo {
  color: var(--muted);
  font-style: italic;
}

/* ── Mobile (single breakpoint) ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .links {
    grid-template-columns: 1fr;
  }
}
