/* =========================
   Base layout & typography
   ========================= */

html {
  font-family: monospace;
  font-size: 1rem;
  line-height: 1.5;
  margin: auto;
  max-width: 70ch;
  padding: 1.5rem 1em 3em;
  background: #000;
  color: #fff;
}

body {
  margin: 0;
  background: inherit;
  color: inherit;
}

/* =========================
   Headings
   ========================= */

h1 {
  font-size: inherit;
  margin: 2rem 0 1em;
  text-align: center;
}

h1::before {
  content: "# ";
}

/* =========================
   Container
   ========================= */

.container {
  width: 100%;
}

/* =========================
   Grid system (row / col)
   ========================= */

.row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.col {
  min-width: 0;
}

.text-center {
  text-align: center;
}

/* =========================
   Header row
   ========================= */

.dark-mode-header {
  border-bottom: 1px dashed;
  padding-bottom: 0.5rem;
}

/* =========================
   Buttons
   ========================= */

.btn {
  font-family: monospace;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.3rem;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  cursor: pointer;
}

.btn:hover {
  text-decoration-style: wavy;
}

/* Button variants (semantic only) */

.btn-primary {
  color: oklch(0.87 0.24 165.59);
}

.btn-danger {
  color: oklch(0.76 0.25 344.92);
}

.btn-info {
  color: oklch(0.79 0.13 297.29);
}

/* =========================
   Button spacing helpers
   ========================= */

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

/* =========================
   Text colors
   ========================= */

p,
ul,
ol {
  color: oklch(0.92 0.15 94.86);
}

/* =========================
   Links
   ========================= */

a {
  color: oklch(0.87 0.24 165.59);
}

a:visited {
  color: oklch(0.79 0.13 297.29);
}

a:hover,
a:active {
  color: oklch(0.76 0.25 344.92);
  text-decoration-style: wavy;
}
