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

body {
  background-color: #f5f4f5;
  color: #322f34;
  font-family: "Anonymous Pro", monospace;
  font-size: 28px;
  min-height: 100vh;
}

/* ── Index layout ── */
body.centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  text-align: left;
  padding: 2rem;
  width: 100%;
  max-width: 800px;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

a {
  color: #cb5822;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: #cb5822;
}

p {
  margin-top: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #918e8c;
}

/* ── Case study layout ── */
.cs-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.cs-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #918e8c;
  margin-bottom: 1rem;
  margin-top: 0;
}

.cs-wrap h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.cs-meta {
  font-size: 0.75rem;
  color: #918e8c;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-hook {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: #322f34;
  letter-spacing: 0.02em;
}

hr {
  border: none;
  border-top: 0.5px solid rgba(50, 47, 52, 0.2);
  margin: 2.5rem 0;
}

.cs-section-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #918e8c;
  font-weight: 400;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.cs-body {
  font-size: 0.75rem;
  line-height: 1.75;
  color: #5a5758;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.cs-body:last-child { margin-bottom: 0; }

.cs-findings {
  list-style: none;
  padding: 0;
}

.cs-findings li {
  font-size: 0.75rem;
  line-height: 1.65;
  color: #5a5758;
  padding: 1rem 0;
  border-bottom: 0.5px solid rgba(50, 47, 52, 0.2);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.cs-findings li:first-child {
  border-top: 0.5px solid rgba(50, 47, 52, 0.2);
}

.cs-finding-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #322f34;
  padding-top: 1px;
  text-transform: none;
  letter-spacing: 0.04em;
}

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.cs-metric {
  background: #eceaec;
  border-radius: 4px;
  padding: 1rem;
}

.cs-metric-num {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  color: #322f34;
  letter-spacing: 0.04em;
}

.cs-metric-label {
  font-size: 0.65rem;
  color: #918e8c;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-note {
  font-size: 0.7rem;
  color: #918e8c;
  border-left: 2px solid rgba(50, 47, 52, 0.2);
  padding-left: 1rem;
  margin-top: 1.5rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-transform: none;
}

@media (max-width: 500px) {
  .cs-findings li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
