/* Reset & Base */
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  zoom: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 0 auto;
  max-width: 50rem;
  padding: 1rem;
}

/* Typography */
strong,
b,
h1,
h2,
h3,
h4 {
  font-weight: bold;
}

h2 {
  font-size: 16px;
}

header p strong {
  text-transform: uppercase;
}

p {
  line-height: 2;
}

/* Links */
a,
a:visited {
  color: dodgerblue;
  font-weight: bold;
  text-underline-offset: 6px;
  cursor: pointer;
}

a.active {
  background: black;
  padding: 0.5rem;
  color: white;
  font-weight: bold;
}

/* Post Title */
.post-title {
  background: rgb(63, 94, 251);
  background: radial-gradient(
    circle,
    rgba(63, 94, 251, 1) 0%,
    rgba(252, 70, 107, 1) 100%
  );
  margin: 10rem 0;
  color: white;
  padding: 2rem;
  font-weight: bold;
}

/* Blockquote */
blockquote {
  background: #f9f9f9;
  border-left: 5px solid black;
  font-size: 120%;
  margin: 2rem 0;
  padding: 1rem;
}

blockquote p {
  margin: 0;
}

blockquote footer {
  font-size: 90%;
  margin: 1rem 0 0 0;
}

/* Definition Lists */
dl dt {
  margin-bottom: 0.5rem;
}

dl dd {
  font-style: italic;
  margin-bottom: 2rem;
}

/* Code */
code,
pre {
  font-family: San Francisco Mono, Monaco, "Consolas", "Lucida Console",
    "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
  font-size: 92%;
}

pre {
  background: black;
  color: white;
  overflow: auto;
  padding: 1em;
  width: 100%;
}

/* Layout Elements */
hr {
  background: black;
  border: 0;
  height: 2px;
  margin: 2rem 0;
  width: 100%;
}

/* Tables */
table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
}

table tr {
  border-bottom: 1px solid black;
}

table td {
  padding: 0.5rem;
}

/* Images */
img {
  width: 100%;
  margin: 0.5rem 0;
}

/* Navigation */
nav ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

nav ul li {
  display: inline-block;
}

nav a {
  margin: 0.5rem;
  text-transform: uppercase;
}

/* Footer */
footer {
  margin: 2rem 0;
}

/* Date */
.date {
  opacity: 0.6;
}
