:root {
  /* Brand Colors */
  --brand-1: #feb000; /* Z-Train Brown */
  --brand-1-light: transparent;
  --brand-2: #2563eb; /* tailwind blue 600 */
  --brand-2-light: transparent;
  --brand-3: transparent;
  --brand-3-light: transparent;

  /* Neutral Colors */
  --white: #ffffff;
  --lighter: #f4f4f5;
  --light: #a1a1aa;
  --midtone: #52525b;
  --dark: #27272a;
  --darker: #18181b;
  --black: #09090b;

  --info: #1d4ed8;
  --info-light: #dbeafe;
  --success: #166534;
  --success-light: #bbf7d0;
  --warning: #f97316;
  --warning-light: #fed7aa;
  --error: #991b1b;
  --error-light: #fecaca;
  --link: var(--brand-1);
  --highlight: #fef08a;

  /* Other */
  --section-min-width: 320px;
  --section-max-width: 1600px;
  --text-max-width: 50rem;
  --form-max-width: 30rem;
  --border-radius: 3px;
  /* Prewind lg fluid spacing, scaling from a 320px to 1600px viewport. */
  --space-lg: clamp(1.688rem, 1.328rem + 1.798vw, 3.126rem);
  --fluid-gutter: var(--space-lg);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: clamp(var(--section-min-width), 100%, var(--section-max-width));
}

hr {
  border: 0;
  border-top: 1px solid var(--light);
  margin: var(--fluid-space-lg) 0;
}

/* Typography
  --------------------------------------------------------------- */
body,
button,
p {
  color: var(--light);
  font-size: var(--fluid-text-lg);
  font-weight: 300;
  line-height: 1.6;
  overflow-wrap: break-word;
}

p {
  margin-top: var(--fluid-space-xs);
  max-width: var(--text-max-width);
}

blockquote {
  padding-left: var(--fluid-space-xs);
  border-left: 6px solid var(--light);
  max-width: var(--text-max-width);
}

h1 {
  color: var(--white);
  font-size: var(--fluid-text-3xl);
  font-weight: 800;
  line-height: 1.3;
  margin-top: var(--fluid-space-xl);
  max-width: var(--text-max-width);
}

h2 {
  color: var(--white);
  font-size: var(--fluid-text-2xl);
  font-weight: 800;
  line-height: 1.3;
  margin-top: var(--fluid-space-xl);
  max-width: var(--text-max-width);
}

h3 {
  color: var(--white);
  font-size: var(--fluid-text-xl);
  font-weight: bold;
  line-height: 1.3;
  margin-top: var(--fluid-space-lg);
  max-width: var(--text-max-width);
}

h4 {
  color: var(--white);
  color: var(--brand-1);
  font-weight: bold;
  font-size: var(--fluid-text-lg);
  line-height: 1.3;
  margin-top: var(--fluid-space-md);
  max-width: var(--text-max-width);
}

a {
  color: var(--link);
  text-decoration: underline;
}

mark {
  background-color: var(--highlight);
}

:not(pre) > code {
  font-size: 80%;
  padding: 0.2rem 0.3rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--midtone);
  color: var(--lighter);
  background: rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* Lists
  --------------------------------------------------------------- */
ul,
ol {
  margin-top: var(--fluid-space-md);
  margin-left: var(--fluid-space-sm);
}

ul {
  padding-left: var(--fluid-space-xs);
  list-style: none;
}

ol {
  padding-left: 0;
}

ul li::before {
  position: absolute;
  left: calc(-1 * var(--fluid-space-xs) + 0.2rem);
  top: 1px;
  font-size: var(--fluid-text-sm);
  color: var(--brand-1);
  content: "⬥";
}

ul li {
  position: relative;
  font-size: var(--fluid-text-base);
  line-height: var(--fluid-text-lg);
  margin-top: var(--fluid-space-xs);
  padding-left: var(--fluid-space-2xs);
  max-width: var(--text-max-width);
}

ol li::before {
  content: counter(step-counter);
  display: block;
  position: absolute;
  color: var(--black);
  font-weight: bold;
  left: 0;
  line-height: var(--fluid-text-lg);
  width: var(--fluid-text-lg);
  border-radius: 50%;
  background-color: var(--brand-1);
  text-align: center;
  font-size: var(--fluid-text-sm);
}

ol li {
  list-style: none;
  counter-increment: step-counter;
  padding-left: var(--fluid-space-md);
  position: relative;
  line-height: var(--fluid-text-lg);
  margin-top: var(--fluid-space-xs);
  max-width: var(--text-max-width);
}

/* Tables
  --------------------------------------------------------------- */
table {
  border-collapse: collapse;
  width: calc(100% + var(--fluid-space-xs) * 2);
  margin-left: calc(-1 * var(--fluid-space-xs));
}

table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

table td.header {
  text-transform: uppercase; font-weight: 700; font-size: var(--fluid-text-lg);
}

table td,
table th {
  padding: var(--fluid-space-2xs) var(--fluid-space-xs); text-align: left;
}

table thead td {
  overflow: visible;
}

table th {
  background: var(--light); font-weight: 600; color: var(--dark); text-transform: uppercase; font-size: var(--fluid-text-sm);
}

table th:first-child {
  border-radius: 0.5rem 0 0 0.5rem;
}

table th:last-child {
  border-radius: 0 0.5rem 0.5rem 0;
}
