/* Base — reset, page shell, and shared typography. Layout primitives that every
   page uses (the centered wrap, the brand header, the site footer). */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

/* Brand header */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.brand-name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
}
.brand-name b {
  color: var(--accent);
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Typography helpers shared across pages */
h1 {
  font-size: 19px;
  margin: 0 0 4px;
}
.muted {
  color: var(--text-dim);
  font-size: 13px;
}
.link-accent {
  color: var(--accent);
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
}
label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* Flex rows / action bars */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}
/* Right-aligned cluster of header controls (nav links + sign out). */
.hdr-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.spacer {
  flex: 1;
}

/* Site footer */
.site-foot {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-foot .muted {
  font-size: 12px;
  color: var(--text-faint);
}
