/* Brutalist base + markdown (.md-body) styles. Deliberately small:
   layout lives in Tailwind classes in the HTML. */

* { border-radius: 0 !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: #F2F0EB;
  color: #0B0B0B;
  font-family: Archivo, system-ui, sans-serif;
  text-wrap: pretty;
}

::selection { background: #38BDF8; color: #0B0B0B; }

a { color: #0284C7; text-decoration: none; }
a:hover { color: #0B0B0B; background: #38BDF8; }

/* hard-shadow hover lift used on cards and buttons */
.brut { box-shadow: 6px 6px 0 #0B0B0B; transition: transform .1s linear, box-shadow .1s linear; }
.brut:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #0284C7; }
.brut:active { transform: translate(0, 0); box-shadow: 3px 3px 0 #0B0B0B; }

[x-cloak] { display: none !important; }

/* ---------- markdown body ---------- */
.md-body { font-size: 1.0625rem; line-height: 1.65; max-width: 68ch; }
.md-body > * + * { margin-top: 1.1em; }

.md-body h2 {
  font-size: .875rem;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 3rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #0B0B0B;
}
.md-body h3 { font-size: 1.125rem; font-weight: 700; margin-top: 2rem; }

.md-body strong { font-weight: 700; }
.md-body em { font-style: italic; }

.md-body ul, .md-body ol { padding-left: 1.35rem; }
.md-body ul { list-style: none; }
.md-body ul > li { position: relative; }
.md-body ul > li::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: .62em;
  width: .5rem;
  height: .5rem;
  background: #0284C7;
}
.md-body ol { list-style: decimal; }
.md-body ol > li::marker { font-family: "Space Mono", monospace; font-weight: 700; }
.md-body li + li { margin-top: .4rem; }
.md-body li > ul { margin-top: .4rem; }

.md-body code {
  font-family: "Space Mono", monospace;
  font-size: .875em;
  background: #E0F2FE;
  border: 1px solid #0B0B0B;
  padding: .08em .3em;
  white-space: nowrap;
}

.md-body pre {
  background: #0B0B0B;
  color: #F2F0EB;
  border: 2px solid #0B0B0B;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  box-shadow: 6px 6px 0 rgba(11, 11, 11, .18);
}
.md-body pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: .8125rem;
  line-height: 1.7;
  white-space: pre;
}

.md-body blockquote {
  border-left: 6px solid #0284C7;
  background: #fff;
  padding: .9rem 1.1rem;
  font-weight: 500;
}
.md-body blockquote > * + * { margin-top: .6em; }

.md-body table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border: 2px solid #0B0B0B;
  background: #fff;
  font-size: .9375rem;
  display: block;
  overflow-x: auto;
}
.md-body th, .md-body td {
  border: 1px solid #0B0B0B;
  padding: .55rem .7rem;
  text-align: left;
  vertical-align: top;
}
.md-body th {
  background: #0B0B0B;
  color: #F2F0EB;
  font-family: "Space Mono", monospace;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.md-body tbody tr:nth-child(even) { background: #F2F0EB; }
.md-body td code { white-space: pre-wrap; }

.md-body hr { border: 0; border-top: 2px solid #0B0B0B; margin: 2.5rem 0; }

.md-body a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .brut { box-shadow: none; }
}
