/* Britley Hoff Consulting — terminal-session identity built from the
   BH stamp mark's own palette. Dark = the CRT default; light = the same
   session viewed on paper. */

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

:root {
  --ink: #1a0a12;
  --ink-2: #241019;
  --ink-3: #341824;
  --wine: #993556;
  --rose: #d4537e;
  --rose-pale: #f4c0d1;
  --paper: #f5efe9;
  --paper-2: #ece0d7;
  --paper-3: #ddccc0;
  --ink-soft: #4a2430;

  --bg: var(--ink);
  --bg-panel: var(--ink-2);
  --bg-panel-2: var(--ink-3);
  --border: #55293a;
  --text: #f3e3e9;
  --text-dim: #c79aa8;
  --accent: var(--rose);
  --accent-soft: var(--rose-pale);
  --logo-mark: url('assets/logo-dark.svg');

  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: var(--paper);
    --bg-panel: #ffffff;
    --bg-panel-2: var(--paper-2);
    --border: var(--paper-3);
    --text: var(--ink-soft);
    --text-dim: #8a5c68;
    --accent: var(--wine);
    --accent-soft: var(--wine);
    --logo-mark: url('assets/logo-light.svg');
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- eyebrow / field labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.25rem;
}
.eyebrow::before { content: '>>'; opacity: 0.7; }

/* ---------- hero / boot sequence ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 2rem;
}

.seal {
  width: 44px;
  height: 44px;
  background-image: var(--logo-mark);
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.session-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.5;
}

.boot {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 3rem 0 1.5rem;
}
.boot p {
  margin: 0 0 0.4rem;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent);
  width: 0;
}
.boot .line-1 {
  animation: type-27 0.7s steps(27, end) 0.1s forwards,
             blink-off 0.1s 0.8s forwards;
}
.boot .line-2 {
  animation: type-34 0.85s steps(34, end) 0.9s forwards,
             blink-off 0.1s 1.75s forwards;
}
.boot .ok { color: var(--accent); }

.hero h1 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  color: var(--text);
  opacity: 0;
  animation: rise 0.6s ease-out 1.9s forwards;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 42ch;
  color: var(--text-dim);
  margin: 0 0 2.25rem;
  opacity: 0;
  animation: rise 0.6s ease-out 2.15s forwards;
}

.hero .cta {
  opacity: 0;
  animation: rise 0.6s ease-out 2.4s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  padding: 0.8em 1.3em;
  border: 1px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: transparent; color: var(--accent); }

@keyframes type-27 {
  from { width: 0; }
  to { width: 20.5ch; }
}
@keyframes type-34 {
  from { width: 0; }
  to { width: 25.5ch; }
}
@keyframes blink-off {
  to { border-color: transparent; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .boot p, .hero h1, .hero .tagline, .hero .cta {
    animation: none !important;
    opacity: 1 !important;
    width: auto !important;
    border-right: none !important;
  }
}

/* ---------- sections ---------- */
section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--border); }

.about p { max-width: 68ch; color: var(--text); }
.about .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
}
.about .tags span {
  font-size: 0.78rem;
  border: 1px solid var(--border);
  padding: 0.3em 0.7em;
  color: var(--text-dim);
}

/* ---------- services: 3270 unprotected fields ---------- */
.fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 760px) {
  .fields { grid-template-columns: 1fr; }
}

.field {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 1.5rem;
  position: relative;
}
.field::before {
  content: attr(data-label);
  position: absolute;
  top: -0.6em;
  left: 1rem;
  background: var(--bg);
  padding: 0 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.field p { margin: 0.25rem 0 0; color: var(--text); font-size: 0.95rem; }
.field a { display: inline-block; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.85rem; }

/* ---------- open source list ---------- */
.oss-list { display: grid; gap: 1rem; }
.oss-item {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.oss-item:last-child { border-bottom: none; }
.oss-item a {
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
}
.oss-item a:hover { text-decoration: underline; }
.oss-item p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
@media (max-width: 600px) {
  .oss-item { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- publications ---------- */
.pubs { columns: 2; column-gap: 2rem; font-family: var(--font-mono); font-size: 0.88rem; color: var(--text-dim); }
.pubs li { margin-bottom: 0.6rem; break-inside: avoid; }
@media (max-width: 600px) { .pubs { columns: 1; } }

/* ---------- status-line footer ---------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  max-width: 880px;
  margin: 0 auto;
}
.status-line a { color: var(--text-dim); }
.status-line a:hover { color: var(--accent); }
.status-line .sep { opacity: 0.4; margin: 0 0.5em; }
.status-ready { color: var(--accent); }

/* ---------- privacy / doc page ---------- */
.doc {
  max-width: 68ch;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.doc h1 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.doc h2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin-top: 2.5rem;
}
.doc .manline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
