/* Hanna Consulting — shared stylesheet
   Palette: charcoal-navy ground, brass/bronze accent (seal, insignia, ribbon device)
   Type: IBM Plex Serif (headline) / IBM Plex Sans (body) / IBM Plex Mono (record, labels, data) */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0c0f14;
  --bg-raised: #12161d;
  --bg-stamp: #171b23;
  --text: #e7e4db;
  --text-muted: #8b9098;
  --text-dim: #5b6169;
  --accent: #a8823f;
  --accent-bright: #c9a35f;
  --rule: #232830;
  --rule-bright: #3a4048;

  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header / nav ---------- */

header.site {
  border-bottom: 1px solid var(--rule);
  background: rgba(12, 15, 20, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  max-width: 920px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.wordmark strong { font-weight: 600; }

.wordmark .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

nav.primary {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}

nav.primary a {
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--accent-bright);
}

nav.primary a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.eyebrow .sep { color: var(--text-dim); margin: 0 10px; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.22;
  margin: 0 0 28px;
  max-width: 15ch;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-bright);
}

.hero .lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 16px;
}

.hero .lede strong { color: var(--text); font-weight: 500; }

.hero-links {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 13px;
}

.hero-links a {
  color: var(--accent-bright);
  border-bottom: 1px solid var(--accent-dim, var(--accent));
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}

.hero-links a:hover { opacity: 0.75; }

/* ---------- Section scaffolding ---------- */

section {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}

section.tight { padding: 48px 0; }

h2.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 36px;
  letter-spacing: -0.005em;
}

/* ---------- Chain of custody (ledger / signature element) ---------- */

.ledger {
  border: 1px solid var(--rule);
  background: var(--bg-stamp);
  border-radius: 2px;
  overflow: hidden;
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ledger-entry {
  display: grid;
  grid-template-columns: 128px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s ease;
}

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

.ledger-entry:hover { background: rgba(168, 130, 63, 0.04); }

.ledger-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 3px;
}

.ledger-body .role {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 3px;
}

.ledger-body .org {
  color: var(--text-muted);
  font-size: 14px;
}

.ledger-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--rule-bright);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  height: fit-content;
}

@media (max-width: 620px) {
  .ledger-entry { grid-template-columns: 1fr; gap: 6px; }
  .ledger-date { padding-top: 0; }
  .ledger-tag { justify-self: start; }
}

/* ---------- Credentials grid ---------- */

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.cred-cell {
  background: var(--bg-raised);
  padding: 18px 16px;
}

.cred-cell .code {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent-bright);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cred-cell .name {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.cred-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Prose blocks (background page) ---------- */

.record {
  margin-bottom: 56px;
}

.record:last-child { margin-bottom: 0; }

.record-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.record-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  margin: 0;
}

.record-head .period {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.record p {
  color: var(--text-muted);
  max-width: 66ch;
  margin: 0 0 14px;
}

.record p strong { color: var(--text); font-weight: 500; }

.record ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--text-muted);
  max-width: 66ch;
}

.record li { margin-bottom: 8px; }
.record li::marker { color: var(--accent); }

/* ---------- Note / secondary block ---------- */

.note-block {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 28px 28px;
}

.note-block p {
  color: var(--text-muted);
  margin: 0 0 14px;
  max-width: 66ch;
}

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

.note-block a {
  color: var(--accent-bright);
  border-bottom: 1px solid var(--accent);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 620px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-item .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.contact-item .value {
  font-size: 17px;
}

.contact-item a {
  color: var(--accent-bright);
  border-bottom: 1px solid var(--accent);
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--rule);
  padding: 36px 0 48px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

footer.site .foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

footer.site a:hover { color: var(--accent-bright); }

/* ---------- Utility ---------- */

.stack { display: flex; flex-direction: column; gap: 4px; }
