/* ============================================
   DAVO — Design Tokens
   ============================================ */
:root {
  --bg: #1A120B;
  --panel: #241A11;
  --panel-line: #3A2A1A;
  --accent: #E0973C;
  --accent-bright: #F4B860;
  --cream: #F2E9DC;
  --muted: #B8A98E;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w: 1120px;
}

@font-face {
  font-family: 'Bebas Neue';
  src: local('Bebas Neue');
}

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

html { scroll-behavior: smooth; }

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

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

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* Background texture — faint ledger rule lines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 39px,
    rgba(242, 233, 220, 0.02) 40px
  );
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 400;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

p { color: var(--muted); }
p.lead { color: var(--cream); font-size: 1.15rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   Hero — editorial split
   ============================================ */
.hero-editorial {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid var(--panel-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 640px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 48px;
}

.hero-name {
  font-size: clamp(5rem, 12vw, 9rem);
  color: var(--cream);
  margin-top: 8px;
  line-height: 0.9;
}

.hero-portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-copy {
    padding: 140px 0 40px;
    order: 1;
  }
  .hero-portrait {
    order: 2;
    max-height: 420px;
  }
}

/* ============================================
   Nav
   ============================================ */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 18, 11, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--cream);
}
.logo span { color: var(--accent); }

nav.links {
  display: flex;
  gap: 36px;
}

nav.links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

nav.links a:hover,
nav.links a.active {
  color: var(--accent-bright);
}

nav.links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--panel-line);
  color: var(--cream);
  width: 42px; height: 42px;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 3px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); }

.btn-outline {
  border-color: var(--panel-line);
  color: var(--cream);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-bright); }

/* ============================================
   Sections
   ============================================ */
section { position: relative; z-index: 1; padding: 96px 0; }
section.tight { padding: 64px 0; }
.border-top { border-top: 1px solid var(--panel-line); }

/* ============================================
   Ledger / Work entry component
   ============================================ */
.ledger-head {
  display: grid;
  grid-template-columns: 60px 1.4fr 1fr 1fr 100px;
  gap: 20px;
  padding: 0 28px 14px;
  border-bottom: 1px solid var(--panel-line);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.ledger-entry {
  display: grid;
  grid-template-columns: 60px 1.4fr 1fr 1fr 100px;
  gap: 20px;
  align-items: start;
  padding: 26px 28px;
  border-bottom: 1px solid var(--panel-line);
  transition: background 0.2s ease;
}

.ledger-entry:hover { background: rgba(224, 151, 60, 0.04); }

.ledger-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}

.ledger-entry h3 { text-transform: none; font-size: 1.15rem; margin-bottom: 6px; }
.ledger-entry .platform {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}
.field-value { color: var(--cream); font-size: 0.92rem; }
.field-value.result { color: var(--accent-bright); font-weight: 600; }

.ledger-entry .proof {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.ledger-entry .proof:hover { color: var(--accent-bright); }

/* ============================================
   Cards / stats
   ============================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
}
.stat-box {
  background: var(--bg);
  padding: 28px 24px;
}
.stat-box .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent-bright);
}
.stat-box .label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: 32px;
  border-radius: 4px;
}

/* ============================================
   Footer
   ============================================ */
footer {
  border-top: 1px solid var(--panel-line);
  padding: 48px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer p { font-size: 0.85rem; }
footer .socials { display: flex; gap: 24px; }
footer .socials a { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
footer .socials a:hover { color: var(--accent-bright); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  nav.links { display: none; }
  .nav-toggle { display: block; }
  .ledger-head { display: none; }
  .ledger-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

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