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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  background: #0C0B0A;
}

body {
  background: #0C0B0A;
  color: #E8E0D4;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Progress Bar ── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #D4A24E;
  z-index: 9999;
  transition: width 50ms linear;
}

/* ── Layout ── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── Contact Bar ── */
.contact-bar {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.72rem;
  color: #635B50;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

.contact-bar a {
  color: #635B50;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-bar a:hover { color: #D4A24E; }

/* ── Reading Time ── */
.reading-time {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.7rem;
  color: #635B50;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2.5rem;
}

/* ── Typography ── */
h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

p { margin-bottom: 1.25rem; }

strong {
  color: #fff;
  font-weight: 600;
}

em {
  font-style: italic;
  color: #9B9081;
}

a {
  color: #D4A24E;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: #F0C060; }

/* ── Lede ── */
.lede {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #9B9081;
  margin-bottom: 2.5rem;
}

.lede strong { color: #E8E0D4; }

/* ── Section Breaks ── */
.section-break {
  margin-top: 4rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.section-break::before {
  content: '';
  flex: none;
  width: 32px;
  height: 1px;
  background: #D4A24E;
}

hr {
  border: none;
  border-top: 1px solid #2A2520;
  margin: 3.5rem 0;
}

/* ── Lists ── */
ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 1.25rem;
}

ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #D4A24E;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

/* ── Blockquotes / Tweet ── */
blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid #D4A24E;
  background: #141210;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #F0C060;
  font-size: 1.15rem;
  line-height: 1.5;
}

blockquote p { margin-bottom: 0; }

blockquote .attribution {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #635B50;
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Code ── */
code {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.82em;
  background: #1A1714;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: #D4A24E;
}

/* ── Timestamp Log ── */
.timestamp-log {
  margin: 2rem 0;
  padding: 1.75rem;
  background: #141210;
  border: 1px solid #2A2520;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.timestamp-log .log-header {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #635B50;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2A2520;
}

.log-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.log-entry:last-child { margin-bottom: 0; }

.log-date {
  color: #D4A24E;
  white-space: nowrap;
  font-weight: 500;
}

.log-detail {
  color: #9B9081;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}

.log-detail strong { color: #E8E0D4; }

.log-stat {
  display: inline-block;
  background: #1A1714;
  border: 1px solid #2A2520;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #D4A24E;
  margin: 0.15rem 0.1rem 0.15rem 0;
}

.log-punchline {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #2A2520;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #E8E0D4;
  text-align: center;
}

.log-punchline .num {
  color: #F0C060;
  font-weight: 600;
}

/* ── Big Number ── */
.big-number {
  margin: 3rem 0;
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
}

.big-number::before,
.big-number::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background: #2A2520;
}

.big-number::before { top: 0; }
.big-number::after { bottom: 0; }

.big-number .amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 600;
  color: #D4A24E;
  letter-spacing: -0.03em;
  display: block;
}

.big-number .label {
  font-size: 0.88rem;
  color: #9B9081;
  margin-top: 0.5rem;
  display: block;
}

/* ── Edge Case Cards ── */
.edge-case {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: #141210;
  border: 1px solid #2A2520;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.edge-case:hover { border-color: #D4A24E; }

.edge-case-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #D4A24E;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.edge-case p {
  font-size: 0.92rem;
  color: #9B9081;
  line-height: 1.7;
  margin-bottom: 0;
}

.edge-case.featured {
  border-color: #D4A24E;
  background: linear-gradient(135deg, #141210, #1a160e);
}

.edge-case.featured .edge-case-note {
  margin-top: 0.75rem;
  color: #E8E0D4;
}

/* ── Cost Table ── */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #635B50;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #3A3530;
}

tbody td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #2A2520;
  color: #9B9081;
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }

tbody td:first-child {
  font-weight: 600;
  color: #E8E0D4;
  font-size: 0.82rem;
}

.me-col {
  color: #D4A24E;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

/* ── Multiplier Grid ── */
.multipliers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 2.5rem 0;
  background: #2A2520;
  border-radius: 8px;
  overflow: hidden;
}

.mult-item {
  background: #141210;
  padding: 1.5rem 1rem;
  text-align: center;
}

.mult-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: #D4A24E;
  display: block;
}

.mult-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #635B50;
  margin-top: 0.4rem;
  display: block;
}

.mult-detail {
  font-size: 0.76rem;
  color: #9B9081;
  margin-top: 0.25rem;
  display: block;
}

/* ── Figures / Screenshots ── */
figure {
  margin: 2rem 0;
}

figure .placeholder {
  background: #1A1714;
  border: 1px solid #2A2520;
  border-radius: 6px;
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #635B50;
  font-size: 0.82rem;
  font-style: italic;
}

figcaption {
  font-size: 0.78rem;
  color: #635B50;
  margin-top: 0.6rem;
  text-align: center;
  line-height: 1.5;
}

/* ── Footer ── */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #2A2520;
}

.site-footer .contact-bar { margin-bottom: 0.75rem; }

.colophon {
  font-size: 0.72rem;
  color: #635B50;
  line-height: 1.6;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  html { font-size: 16px; }
  .container { padding: 2.5rem 1.25rem 4rem; }
  h1 { font-size: 1.6rem; }
  .timestamp-log { padding: 1.25rem; }
  .log-entry {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
  }
  .multipliers { grid-template-columns: 1fr; }
  .edge-case { padding: 1rem 1.25rem; }
  table { font-size: 0.82rem; }
  thead th, tbody td { padding: 0.5rem; }
}
