/* Shared by every page on mc.matthewhearst.com */
:root {
  --night: #1b2140;
  --dusk: #262e55;
  --dusk-edge: #36407a;
  --frost: #eef2f8;
  --mist: #a9b3cf;
  --ice: #8fcaf7;
  --blush: #f2aab4;
  --mint: #7ddc9f;
  --off: #e2737f;
  --pixel: "Pixelify Sans", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--frost);
  font: 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
main { max-width: 40rem; margin: 0 auto; padding: 4rem 1rem 3rem; }
a { color: var(--ice); }
:focus-visible { outline: 3px solid var(--blush); outline-offset: 3px; }

button, .button {
  font: 700 1rem/1 var(--body);
  color: var(--night);
  background: var(--frost);
  border: 0;
  padding: .8rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: inset 0 -4px 0 rgba(27, 33, 64, .25);
}
button:hover, .button:hover { background: var(--blush); }
button:active, .button:active { box-shadow: inset 0 4px 0 rgba(27, 33, 64, .25); }
/* Quieter button for secondary actions */
.ghost {
  color: var(--frost);
  background: var(--dusk);
  box-shadow: inset 0 0 0 2px var(--dusk-edge);
}
.ghost:hover { background: var(--dusk-edge); }
.ghost:active { box-shadow: inset 0 0 0 2px var(--dusk-edge), inset 0 4px 0 rgba(27, 33, 64, .35); }

h1 { font: 600 clamp(1.5rem, 5vw, 2rem)/1.15 var(--pixel); margin: 0; }
h2 { font: 600 1.5rem/1.2 var(--pixel); margin: 3.5rem 0 1rem; }

/* Numbered steps */
ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
ol > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.75rem 3rem;
}
ol > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  font: 600 1.1rem/1 var(--pixel);
  color: var(--night);
  background: var(--ice);
}
ol h3 { margin: 0 0 .25rem; font-size: 1.0625rem; }
ol p { margin: 0 0 .75rem; color: var(--mist); max-width: 34rem; }
ol p:last-child { margin-bottom: 0; }
.small { font-size: .9375rem; }
kbd {
  font: 600 .95rem/1 var(--pixel);
  color: var(--frost);
  background: var(--dusk);
  border: 2px solid var(--dusk-edge);
  padding: .1rem .4rem;
}

footer { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 2px solid var(--dusk); color: var(--mist); font-size: .9375rem; }

@media (max-width: 30rem) {
  main { padding-top: 2rem; }
}
