/*
  CQR Control — "The Certificate" design system
  Shared tokens + base chrome (site header, nav, buttons, footer) used across
  every page. Page-specific layout lives in landing.css / admin.css / login.css.
  Source of truth for the direction: design/certificate mockup, Direction A.
*/
:root {
  --paper: #f5f3ee;
  --card: #fdfcf8;
  --ink: #1c2733;
  --ink-soft: #515c68;
  --mill: #20496e;
  --mill-deep: #173650;
  --stamp: #a8432f;
  --stamp-soft: #c1664f;
  --line: #d9d4c8;
  --line-strong: #b9b2a1;
  --band: #132230;
  --band-ink: #e8e4da;
  --note: #8a6d1f;
  --note-bg: #f5ecd2;
  --ok: #3e7a52;
  --display: 'IBM Plex Sans Condensed', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mill); outline-offset: 3px; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---- site header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
}
.brand-logo { display: block; width: 26px; height: 26px; }
.brand-logo.small { width: 20px; height: 20px; }
.brand-name { text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.5rem; font-size: .9rem; }
.nav-link { color: var(--ink-soft); text-decoration: none; }
.nav-link:hover { color: var(--ink); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  border-radius: 2px;
  padding: .7rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--mill); color: #fff; }
.btn-primary:hover { background: var(--mill-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-stamp { background: var(--stamp); color: #fff; }
.btn-stamp:hover { background: #8f3624; }
.btn-secondary { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-secondary:hover { border-color: var(--ink); }
a.nav-btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  border-radius: 2px;
  padding: .55rem 1rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
a.nav-btn:hover { border-color: var(--ink); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mill);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--mill); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: .5rem;
}
.foot-links a { color: var(--ink-soft); text-decoration: none; margin-left: 1.1rem; }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav { display: none; }
}
