/* ── Reset & Base ─────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1c1917;
  background-color: #fefce8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  line-height: 1.3;
  color: #1c1917;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: #ea580c;
  text-decoration: none;
  border-bottom: 1px dotted #ea580c;
  transition: border-color 0.15s;
}

a:hover {
  border-bottom-style: solid;
}

strong {
  font-weight: 600;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

blockquote {
  border-left: 3px solid #ea580c;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #44403c;
  font-style: italic;
}

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.875rem;
  background: #1c1917;
  color: #e7e5e4;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

pre {
  background: #1c1917;
  color: #e7e5e4;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px dotted #d6d3d1;
  margin: 2rem 0;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

.site-main {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  flex: 1;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */

.site-nav {
  border-bottom: 1px dotted #d6d3d1;
  background: #fefce8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 1rem;
  color: #1c1917;
  border-bottom: none;
  white-space: nowrap;
}

.nav-logo:hover {
  color: #ea580c;
  border-bottom: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #78716c;
  border-bottom: none;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ea580c;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #1c1917;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Section Labels ──────────────────────────────────────────────────────── */

.section-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #78716c;
  text-transform: lowercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.section {
  margin-bottom: 3rem;
}

.section-more {
  margin-top: 1rem;
}

.section-more a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px dotted #d6d3d1;
}

.hero-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #78716c;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1rem;
  color: #44403c;
  line-height: 1.7;
  max-width: 600px;
}

/* ── Burn Banner ─────────────────────────────────────────────────────────── */

.burn-banner {
  margin-bottom: 3rem;
}

.burn-banner-inner {
  background: #1c1917;
  color: #e7e5e4;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.burn-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #a8a29e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.burn-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2rem;
  font-weight: 700;
  color: #ea580c;
}

.burn-context {
  font-size: 0.8125rem;
  color: #a8a29e;
}

.burn-context a {
  color: #ea580c;
  border-bottom-color: #ea580c;
}

/* ── Pick Card ───────────────────────────────────────────────────────────── */

.pick-card {
  border: 2px dotted #ea580c;
  padding: 1.5rem;
  border-radius: 4px;
}

.pick-card h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #ea580c;
}

.pick-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  color: #78716c;
  margin-bottom: 1rem;
}

.pick-meta a {
  color: #ea580c;
}

/* ── Article Cards ───────────────────────────────────────────────────────── */

.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-card {
  border-bottom: 1px dotted #d6d3d1;
}

.article-card:last-child {
  border-bottom: none;
}

.article-card a {
  display: block;
  padding: 1rem 0;
  border-bottom: none;
  color: inherit;
}

.article-card a:hover {
  border-bottom: none;
}

.article-card a:hover .article-card-title {
  color: #ea580c;
}

.article-card-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #78716c;
}

.article-card-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  margin: 0.25rem 0;
  transition: color 0.15s;
}

.article-card-desc {
  font-size: 0.875rem;
  color: #57534e;
  margin: 0;
  line-height: 1.5;
}

.article-card-rating {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ea580c;
  display: inline-block;
  margin-top: 0.25rem;
}

/* ── Quick Stack ─────────────────────────────────────────────────────────── */

.quick-stack h2 {
  margin-top: 0;
}

.stack-price {
  color: #ea580c;
  font-size: 1rem;
}

.quick-stack-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.quick-stack-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dotted #e7e5e4;
  font-size: 0.875rem;
}

.tool-name {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 0.8125rem;
}

.tool-price {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  color: #78716c;
  font-size: 0.8125rem;
}

/* ── Page Header ─────────────────────────────────────────────────────────── */

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px dotted #d6d3d1;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #57534e;
  max-width: 600px;
}

.page-updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #78716c;
}

/* ── Article Full ────────────────────────────────────────────────────────── */

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dotted #d6d3d1;
}

.article-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  color: #78716c;
}

.article-rating {
  font-weight: 700;
  color: #ea580c;
  background: rgba(234, 88, 12, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.review-product-info {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
}

.review-product-name {
  font-weight: 600;
}

.review-product-price {
  color: #78716c;
}

.article-body {
  margin-bottom: 3rem;
}

.article-body h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dotted #e7e5e4;
}

.article-body h2:first-child {
  border-top: none;
  padding-top: 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px dotted #d6d3d1;
}

.article-body th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.article-body tfoot td {
  border-bottom: none;
  border-top: 2px solid #1c1917;
  font-weight: 600;
}

.article-body ul {
  margin: 1rem 0 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.cta-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.875rem;
  font-weight: 500;
}

.article-footer {
  padding-top: 2rem;
  border-top: 1px dotted #d6d3d1;
}

.article-footer a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── Stack Cards ─────────────────────────────────────────────────────────── */

.stack-card {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px dotted #d6d3d1;
}

.stack-card:last-child {
  border-bottom: none;
}

.stack-header h2 {
  margin-top: 0;
}

.stack-subtitle {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.875rem;
  color: #78716c;
  font-style: italic;
}

.stack-description {
  color: #44403c;
  margin: 1rem 0;
}

.stack-philosophy {
  background: #1c1917;
  color: #e7e5e4;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  margin: 1.5rem 0;
}

.stack-philosophy .section-label {
  color: #a8a29e;
  margin-bottom: 0.5rem;
}

.stack-philosophy p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── Tools Table ─────────────────────────────────────────────────────────── */

.tools-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.tools-table th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid #1c1917;
}

.tools-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px dotted #d6d3d1;
}

.tools-table a {
  font-weight: 500;
}

.tool-cat {
  color: #78716c;
  font-size: 0.8125rem;
}

.tool-cost {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Cost Calculator ─────────────────────────────────────────────────────── */

#burn-calculator {
  background: #fef9c3;
  border: 1px dotted #d6d3d1;
  padding: 1.5rem;
  border-radius: 4px;
}

.calc-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.calc-tool {
  flex: 1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d6d3d1;
  border-radius: 3px;
  background: #fefce8;
  color: #1c1917;
}

.calc-cost {
  width: 100px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d6d3d1;
  border-radius: 3px;
  background: #fefce8;
  color: #1c1917;
  text-align: right;
}

.calc-remove {
  background: none;
  border: none;
  color: #78716c;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 1;
}

.calc-remove:hover {
  color: #dc2626;
}

.calc-add {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #ea580c;
  background: none;
  border: 1px dotted #ea580c;
  border-radius: 3px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  margin: 0.75rem 0;
  transition: background 0.15s, color 0.15s;
}

.calc-add:hover {
  background: #ea580c;
  color: #fefce8;
}

.calc-total {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid #1c1917;
  flex-wrap: wrap;
}

.calc-total-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-total-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ea580c;
}

.calc-annual-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  color: #78716c;
}

/* ── Cost Categories ─────────────────────────────────────────────────────── */

.cost-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cost-category {
  padding: 1rem 0;
  border-bottom: 1px dotted #d6d3d1;
}

.cost-category:last-child {
  border-bottom: none;
}

.cost-category h3 {
  margin-top: 0;
  font-size: 0.9375rem;
}

.cost-range {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  color: #78716c;
  margin-bottom: 0.5rem;
}

.cost-rec {
  font-size: 0.875rem;
  color: #44403c;
  margin-bottom: 0;
}

/* ── Comparison Table ────────────────────────────────────────────────────── */

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid #1c1917;
}

.comparison-table td {
  padding: 0.75rem;
  border-bottom: 1px dotted #d6d3d1;
}

.comparison-highlight {
  background: rgba(234, 88, 12, 0.08);
}

.comparison-highlight td {
  font-weight: 600;
}

/* ── Ditched Tools ───────────────────────────────────────────────────────── */

.ditched-total {
  margin-top: 1.5rem;
  background: #1c1917;
  color: #e7e5e4;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.ditched-total-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #a8a29e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ditched-total-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: #dc2626;
}

.ditched-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ditched-card {
  padding: 1.25rem 0;
  border-bottom: 1px dotted #d6d3d1;
}

.ditched-card:last-child {
  border-bottom: none;
}

.ditched-header {
  margin-bottom: 0.75rem;
}

.ditched-header h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.ditched-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.ditched-category {
  color: #78716c;
}

.ditched-price {
  color: #dc2626;
  font-weight: 600;
}

.ditched-time {
  color: #78716c;
}

.ditched-reason {
  font-size: 0.9375rem;
  color: #44403c;
}

.ditched-verdict {
  font-size: 0.875rem;
  color: #1c1917;
  margin-bottom: 0;
}

/* ── Pattern Card ────────────────────────────────────────────────────────── */

.pattern-card {
  border-left: 3px solid #ea580c;
  padding-left: 1.25rem;
}

.pattern-card p:last-child {
  margin-bottom: 0;
}

/* ── About Content ───────────────────────────────────────────────────────── */

.about-content h2 {
  font-size: 1.15rem;
}

.about-content ul {
  list-style: none;
  padding: 0;
}

.about-content li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.about-content li::before {
  content: "$";
  position: absolute;
  left: 0;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  color: #ea580c;
}

/* ── Legal Content ───────────────────────────────────────────────────────── */

.legal-content h2 {
  font-size: 1rem;
  margin-top: 2rem;
}

.legal-content p {
  font-size: 0.9375rem;
  color: #44403c;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px dotted #d6d3d1;
  margin-top: auto;
  padding: 2rem 1.25rem;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  color: #78716c;
  border-bottom: none;
}

.footer-links a:hover {
  color: #ea580c;
}

.footer-sep {
  color: #d6d3d1;
  margin: 0 0.5rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: #78716c;
  margin-bottom: 0.25rem;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #a8a29e;
  margin-bottom: 0;
}

/* ── Mobile Responsive ───────────────────────────────────────────────────── */

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fefce8;
    border-bottom: 1px dotted #d6d3d1;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem 0;
  }

  .burn-banner-inner {
    flex-direction: column;
    gap: 0.25rem;
  }

  .burn-number {
    font-size: 1.75rem;
  }

  .calc-row {
    flex-wrap: wrap;
  }

  .calc-tool {
    flex: 1 1 100%;
  }

  .calc-cost {
    flex: 1;
    width: auto;
  }

  .calc-total {
    flex-direction: column;
    gap: 0.25rem;
  }

  .article-body table {
    font-size: 0.8125rem;
  }

  .article-body th,
  .article-body td {
    padding: 0.4rem 0.5rem;
  }

  .tools-table th,
  .tools-table td {
    padding: 0.4rem 0.5rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
    font-size: 0.8125rem;
  }

  .ditched-total {
    flex-direction: column;
    gap: 0.25rem;
  }

  .review-product-info {
    flex-direction: column;
    gap: 0.25rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ── Focus States ────────────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

input:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 0;
  border-color: #ea580c;
}

button:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

/* ── Selection ───────────────────────────────────────────────────────────── */

::selection {
  background: rgba(234, 88, 12, 0.2);
  color: #1c1917;
}

/* ── Print ───────────────────────────────────────────────────────────────── */

@media print {
  .site-nav,
  .site-footer,
  .nav-toggle,
  .calc-add,
  .calc-remove {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  a {
    color: black;
    border-bottom: none;
  }

  .burn-banner-inner {
    background: #f5f5f5;
    color: black;
  }

  .stack-philosophy {
    background: #f5f5f5;
    color: black;
  }

  .ditched-total {
    background: #f5f5f5;
    color: black;
  }
}

/* ── Number input spinner removal ────────────────────────────────────────── */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}
