* {
  box-sizing: border-box;
}

body {
  /* background-color: #07d;
  background-image: linear-gradient(45deg, #d07, #dd0, #07d); */

  background: radial-gradient(hsl(330, 100%, 27%) 4%, hsl(330, 100%, 18%) 9%, hsla(0, 100%, 20%, 0) 9%) 0 0,
    radial-gradient(hsl(330, 100%, 27%) 4%, hsl(330, 100%, 18%) 8%, hsla(0, 100%, 20%, 0) 10%) 50px 50px,
    radial-gradient(hsla(330, 100%, 30%, 0.8) 20%, hsla(0, 100%, 20%, 0)) 50px 0,
    radial-gradient(hsla(330, 100%, 30%, 0.8) 20%, hsla(0, 100%, 20%, 0)) 0 50px,
    radial-gradient(hsla(330, 100%, 20%, 1) 35%, hsla(0, 100%, 20%, 0) 60%) 50px 0,
    radial-gradient(hsla(330, 100%, 20%, 1) 35%, hsla(0, 100%, 20%, 0) 60%) 100px 50px,
    radial-gradient(hsla(330, 100%, 15%, 0.7), hsla(0, 100%, 20%, 0)) 0 0,
    radial-gradient(hsla(330, 100%, 15%, 0.7), hsla(0, 100%, 20%, 0)) 50px 50px,
    linear-gradient(45deg, hsla(0, 100%, 20%, 0) 49%, hsla(0, 100%, 0%, 1) 50%, hsla(0, 100%, 20%, 0) 70%) 0 0,
    linear-gradient(-45deg, hsla(0, 100%, 20%, 0) 49%, hsla(0, 100%, 0%, 1) 50%, hsla(0, 100%, 20%, 0) 70%) 0 0;
  background-color: #300;
  background-size: 100px 100px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  font-size: clamp(12px, 0.5rem + 1vw, 20px);
  margin: 0;
  min-block-size: 100vh;
  padding: 10vmin 5vw;
  position: relative;
}

@keyframes move {
  100% {
    rotate: 360deg;
  }
}

.icon {
  block-size: 1em;
  inline-size: 1em;
  margin: 0 0.125em;
  vertical-align: -0.125em;
}

a,
a:link,
a:visited {
  color: #6cf;
  text-underline-offset: 0.125em;
}

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

.page {
  margin: 0 auto;
  max-inline-size: 60rem;
}

header,
footer {
  display: flex;
  padding: 0 2vmin;
  position: relative;
}

header {
  inset-block-start: 1rem;
  justify-content: space-between;
  z-index: 2;
}

footer {
  justify-content: flex-end;
}

header div {
  align-items: center;
  border-radius: 1vmin 1vmin 0 0;
  display: flex;
  filter: drop-shadow(0rem 0.25rem 0.25rem rgba(0, 0, 0, 0.5));
  gap: 1rem;
  margin: 0;
  padding: 0.25rem 0.75rem;
}

footer div {
  background-color: #333;
  border-radius: 0 0 1vmin 1vmin;
  color: #fff;
  display: flex;
  filter: drop-shadow(0rem 0.25rem 0.25rem rgba(0, 0, 0, 0.5));
  gap: 1rem;
  justify-content: flex-end;
  margin: 0;
  padding: 0.25rem 0.75rem;
}

article {
  background-color: #222;
  border-radius: 1vmin;
  color: #ddd;
  filter: drop-shadow(0rem 0.25rem 0.25rem rgba(0, 0, 0, 0.5));
  overflow: hidden;
  padding: 5vmin;
  position: relative;
  z-index: 1;
}

header a {
  align-items: center;
  block-size: 2.5rem;
  border: solid 0.25rem #222;
  border-radius: 50%;
  color: #fff !important;
  display: flex;
  font-size: 20px;
  inline-size: 2.5rem;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

header a:hover {
  transform: scale(1.5);
}

.home {
  background-color: #d07;
}

.home span:first-child {
  align-items: center;
  border-radius: 50%;
  font-family: "Russo One", sans-serif;
  justify-content: center;
}

.codepen {
  background-color: #000;
}

.mastodon {
  background-color: #6364ff;
}

.x-twitter {
  background-color: #000;
}

.feed {
  background-color: #f82;
}

h1,
h2 {
  background: linear-gradient(to right, #d07, #07d);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  color: #d07;
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.025em;
}

h1 {
  font-size: 3em;
  margin: 0 0 1rem 0;
  text-wrap: balance;
}

.subhead {
  color: #999;
  margin-block-end: 2rem;
  text-align: end;
}

address {
  display: inline;
}

p,
ul {
  font-family: sans-serif;
  line-height: 1.5;
}

.details {
  color: #666;
  text-align: end;
}

.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list > li {
  background-color: #444;
  border-radius: 0.25rem;
  display: flex;
  filter: drop-shadow(0rem 0.25rem 0.25rem rgba(0, 0, 0, 0.5));
  flex-direction: column;
  flex: 1 1 16rem;
  gap: 1rem;
  justify-content: space-between;
  overflow: hidden;
  padding: 1rem;
  position: relative;
  transition: background-color 0.6s ease-in-out;
}

.post-list > li:hover {
  background-color: #d07;
  color: #fff;
}

.post-list > li:hover > a {
  color: #fff;
}

.post-list > li > a::after {
  content: "";
  inset: 0;
  position: absolute;
}

.post-list > li > time {
  text-align: end;
}

code {
  background-color: #333;
  border-radius: 0.25em;
  display: inline-block;
  padding: 0 0.25em;
}

pre > code {
  display: block;
  padding: 1rem;
}

table {
  border-collapse: collapse;
}

th,
td {
  border: solid 1px #d07;
  padding: 0.5rem 1rem;
  text-align: start;
  vertical-align: top;
}

th {
  background-color: #d07;
  color: #fff;
}

th:first-child {
  border-start-start-radius: 0.25rem;
}
th:last-child {
  border-end-start-radius: 0.25rem;
}
td:first-child {
  border-start-end-radius: 0.25rem;
}
td:last-child {
  border-end-end-radius: 0.25rem;
}

section {
  padding: 1rem 0;
}

section:nth-child(odd) {
  background-color: #333;
  margin: 1rem -5vmin;
  padding: 1rem 5vmin;
}

hr {
  border-block-start: solid 1px #d07;
}

.about-the-author {
  background-color: #333;
  color: #eee;
  margin: 5vmin -5vmin -5vmin -5vmin;
  padding: 5vmin;
}

.about-the-author .about-layout {
  display: flex;
  gap: 5vmin;
}

.about-the-author #cs-portrait {
  aspect-ratio: 1;
  border: solid 0.25rem #d07;
  border-radius: 0.25rem;
  filter: drop-shadow(0rem 0.25rem 0.25rem rgba(0, 0, 0, 0.5));
  inline-size: clamp(100px, 15vw, 150px);
  rotate: 3deg;
}

.about-the-author h3 {
  font-family: "Russo One", sans-serif;
  margin-block-start: 0;
}

.about-the-author p:last-child {
  margin-block-end: 0;
}

@media (prefers-color-scheme: light) {
  article,
  footer div {
    background-color: #fff;
    color: #222;
  }
  footer div {
    background-color: #eee;
  }
  header a {
    border-color: #fff;
  }
  .subhead {
    color: #757575;
  }
  code {
    background-color: #eee;
  }
  .about-the-author {
    background-color: #eee;
    color: #000;
  }
  a,
  a:link,
  a:visited {
    color: #06c;
  }
  .post-list > li {
    background-color: #eee;
  }
  section:nth-child(odd) {
    background-color: #eee;
  }
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  block-size: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  inline-size: 1px;
}
