:root {
  --bg: #121212;
  --bg-light: #1b1b1b;
  --bg-lighter: #242424;
  --text: #c8c8c8;
  --text-dim: #8a8a8d;
  --accent: #ffc107;
  --border: #333;
  --red: #e06c6c;
  --green: #7ccf7b;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.65;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px 40px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: #fff; }
code { overflow-wrap: anywhere; font-family: inherit; font-size: 12px; background: var(--bg-lighter); padding: 1px 5px; border-radius: 3px; }

header { padding: 44px 0 28px; border-bottom: 2px solid var(--border); }
header h1 { font-size: 24px; line-height: 1.3; color: var(--accent); margin-bottom: 10px; }
header .lede { font-size: 15px; max-width: 760px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12px; color: var(--text-dim); }

h2 {
  font-size: 14px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
  margin: 44px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
h3 { font-size: 14px; color: #fff; margin: 26px 0 10px; }
p { margin-bottom: 12px; }
.dim { color: var(--text-dim); font-size: 12px; }
.ok { color: var(--green); }
.bad { color: var(--red); }

.pill {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 3px;
}
.pill.bad { background: rgba(224,108,108,.15); }
.pill.ok { background: rgba(124,207,123,.15); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Before / after rows. */
.ba { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 14px; align-items: center;
      padding: 14px 0; border-bottom: 1px solid var(--border); }
.ba:last-child { border-bottom: 0; }
.ba .label { font-size: 12px; }
.ba .label strong { display: block; font-size: 13px; }
.ba figure { display: flex; align-items: center; gap: 14px; }
.ba figcaption { font-size: 12px; }
.ba-head { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* Checkerboard shows transparent padding. */
.tile {
  width: 112px; height: 112px; flex: none; border-radius: 6px; border: 1px solid var(--border);
  background: repeating-conic-gradient(#3a3a3a 0 25%, #2c2c2c 0 50%) 0 0 / 16px 16px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 11px; color: var(--text-dim); text-align: center;
}
.tile img { width: 100%; height: 100%; }

.shots { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.shots figure { background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.shots img { width: 100%; max-height: 300px; object-fit: contain; border-radius: 6px; display: block; }
.shots figcaption { font-size: 12px; margin-top: 8px; }

table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 14px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--bg-light); color: #fff; }

pre {
  background: #171717; border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 14px; overflow-x: auto; font-size: 12px; margin-bottom: 12px;
}

.btn {
  display: inline-block; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 10px 18px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg-light); color: var(--accent);
}
.btn:hover { background: var(--bg-lighter); text-decoration: none; }

/* Case pages. */
.served { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; margin: 18px 0; }
.served figure { background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px; padding: 14px; text-align: center; }
.served img { display: block; margin: 0 auto; }
.served figcaption { font-size: 11px; color: var(--text-dim); margin-top: 8px; }

@media (max-width: 640px) {
  .ba { grid-template-columns: 1fr 1fr; }
  .ba .label { grid-column: 1 / -1; }
  .ba-head > :first-child { display: none; }
  .ba figure { flex-direction: column; align-items: flex-start; }
  .shots { grid-template-columns: 1fr; }
  .tile { width: 96px; height: 96px; }
}

.box { background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; }
.download { margin-top: 24px; display: grid; gap: 10px; }
.download p { margin: 4px 0 0; }
.download pre { margin: 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; }
