:root {
  --canvas: #fbfaf9;
  --canvas-deep: #f4f1ea;
  --ink: #171717;
  --body: #4d4d4d;
  --hairline: #e6e1d8;

  --band: #0b0714;
  --band-card: #16102a;
  --band-hairline: #2a2140;
  --on-band: #ffffff;
  --on-band-body: #c9c3d6;

  --accent: #7c28c9;
  --accent-hot: #ff2d78;
  --marker: #ffd84d;
  --marker-soft: #ffefc2;
  --ok: #2fbf71;
  --on-accent: #ffffff;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --edge: var(--ink);
  --offset-sm: 3px 3px 0 var(--edge);
  --offset-md: 5px 5px 0 var(--edge);
  --border-strong: 2px solid var(--edge);
  --radius-md: 10px;
  --radius-pill: 100px;
  --measure: 42rem;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

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

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--canvas);
  border-bottom: var(--border-strong);
}

.site-header-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: var(--accent);
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border: var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--offset-sm);
  transition: translate 120ms ease, box-shadow 120ms ease;
}

.btn-primary:hover {
  translate: -2px -2px;
  box-shadow: var(--offset-md);
}

.article-wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 3rem 1.5rem 4rem;
}

.article-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  color: var(--body);
  font-size: 0.9rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--hairline);
  margin-bottom: 2rem;
}

.article-meta .author {
  font-weight: 700;
  color: var(--ink);
}

article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 2.75rem 0 1rem;
  text-wrap: balance;
}

article h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
}

article p {
  color: var(--body);
  margin-bottom: 1.1rem;
}

article ul,
article ol {
  color: var(--body);
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

article li {
  margin-bottom: 0.45rem;
}

article strong {
  color: var(--ink);
}

.marker {
  background: linear-gradient(transparent 55%, var(--marker) 55%);
}

figure {
  margin: 2rem 0;
}

figure > svg,
figure > img {
  display: block;
  width: 100%;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-md);
  background: #fff;
}

figcaption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--body);
  margin-top: 0.75rem;
}

.callout {
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-sm);
  background: var(--marker-soft);
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
}

.callout p {
  margin: 0;
  color: var(--ink);
}

.comparison-table {
  overflow-x: auto;
  margin: 2rem 0;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-md);
  background: #fff;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}

.comparison-table th {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
  background: var(--canvas-deep);
  border-bottom: var(--border-strong);
  padding: 0.75rem 1rem;
}

.comparison-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--body);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.yes {
  color: var(--ok);
  font-weight: 700;
}

.no {
  color: var(--accent-hot);
  font-weight: 700;
}

.cta-band {
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-md);
  background: var(--band);
  color: var(--on-band);
  padding: 2rem 1.75rem;
  margin: 3rem 0 1rem;
  text-align: center;
}

.cta-band h2 {
  color: var(--on-band);
  margin: 0 0 0.5rem;
}

.cta-band p {
  color: var(--on-band-body);
  margin-bottom: 1.25rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.post-card {
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-sm);
  background: #fff;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: translate 120ms ease, box-shadow 120ms ease;
}

.post-card:hover {
  translate: -2px -2px;
  box-shadow: var(--offset-md);
}

.post-card .article-eyebrow {
  margin-bottom: 0;
}

.post-card h2 {
  font-size: 1.3rem;
  margin: 0;
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card p {
  color: var(--body);
  font-size: 0.95rem;
  margin: 0;
}

.post-card .post-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--body);
  margin-top: auto;
}

.site-footer {
  border-top: var(--border-strong);
  background: var(--canvas-deep);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--body);
}

.site-footer a {
  color: var(--ink);
}

@media (max-width: 640px) {
  .header-nav {
    gap: 0.9rem;
  }

  .btn-primary {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
  }
}
