/** # Reset: https://hankchizljaw.com/wrote/a-modern-css-reset/ **/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* Natural flow and rhythm in articles by default */
article > * + *,
main > * + *,
section > * + * {
  margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/** # App styles */

:root {
  --base-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

html,
body {
  background: #5d8fa2;
  font-family: var(--base-font);
}

h1 {
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: .5ch;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: pre-line;
}

article {
  max-width: 52em;
}

.section {
  margin-left: auto;
  margin-right: auto;
}

.section--chubby {
  padding: 1em;
}

.btn--solo {
  display: block;
  font-size: 120%;
  margin: 1em auto;
  width: fit-content;
}

xword-puzzle {
  text-align: center;
}

a:link,
a:visited {
  color: currentColor;
}

a:hover,
a:active {
  text-decoration: none;
}

footer {
  padding: 1em;
  text-align: center;
}
