/* Keeler Consulting — Shared Styles */

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

:root {
  --bg: #f5ede0;
  --bg-soft: #ebe2cf;
  --bg-card: #fbf6e9;
  --ink: #1f2d3a;
  --ink-mid: #5e6471;
  --ink-dim: #9ba0a7;
  --rule: #d6cdb8;
  --atlantic: #2c4f6b;
  --atlantic-soft: #5780a2;
  --brass: #b87a4e;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* ── LOGO (Shared) ── */
.nav-logo { display: block; }
.nav-logo svg {
  height: 164px;
  width: auto;
  display: block;
  margin-left: -1.8rem;
  margin-top: -1.8rem;
  margin-bottom: -2rem;
  animation: logoIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.nav-logo .logo-word,
.h-logo .logo-word {
  fill: var(--ink);
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
}
.nav-logo .logo-mark,
.h-logo .logo-mark {
  fill: var(--atlantic);
}

.h-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.h-logo svg {
  height: 96px;
  width: auto;
  display: block;
  animation: logoIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.h-divider {
  width: 1px;
  height: 20px;
  background: var(--rule);
}
.h-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── TYPOGRAPHY ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); }
strong { font-weight: 500; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.78rem 1.6rem;
  background: var(--atlantic);
  color: var(--bg-card);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--atlantic);
  cursor: pointer;
  margin-right: 0.85rem;
  transition: background 0.18s, color 0.18s;
}
.btn:hover { background: transparent; color: var(--atlantic); }

.btn-plain {
  display: inline-block;
  padding: 0.78rem 0;
  color: var(--ink-mid);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: var(--atlantic-soft);
  text-underline-offset: 5px;
  transition: color 0.18s;
}
.btn-plain:hover { color: var(--atlantic); }

/* ── MARKDOWN ── */
.msg-text > *:first-child { margin-top: 0; }
.msg-text > *:last-child { margin-bottom: 0; }
.msg-text p { margin: 0.6rem 0; }
.msg-text ul, .msg-text ol { margin: 0.6rem 0; padding-left: 1.4rem; }
.msg-text li { margin: 0.2rem 0; }
.msg-text strong { color: var(--ink); font-weight: 500; }
.msg-text em { font-family: var(--serif); font-style: italic; font-size: 1.04em; }
.msg-text a { color: var(--atlantic); text-underline-offset: 3px; }
.msg-text code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--bg-soft);
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--rule);
}
.msg-text pre {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--bg-soft);
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  overflow-x: auto;
  margin: 0.7rem 0;
}
.msg-text pre code { background: none; border: none; padding: 0; font-size: 1em; }
.msg-text h1, .msg-text h2, .msg-text h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0.9rem 0 0.4rem;
}
.msg-text blockquote {
  border-left: 2px solid var(--atlantic-soft);
  padding-left: 0.85rem;
  color: var(--ink-mid);
  margin: 0.6rem 0;
  font-family: var(--serif);
  font-style: italic;
}
