@font-face {
  font-family: "Roboto";
  src:
    local("Roboto"),
    url("./Roboto.ttf") format("truetype");
}

@font-face {
  font-family: "Oswald";
  src:
    local("Oswald"),
    url("./Oswald.ttf") format("truetype");
}

.skip-to-main {
  position: absolute;
  top: 1rem;
  left: 1rem;
  overflow: hidden;
  width: 1px;
  height: 1px;
}

.skip-to-main:focus {
  display: inline-block;
  width: auto;
  height: auto;
  overflow: auto;
  padding: 0.25rem 0.5rem;
  background: #fff;
  color: #369;
}

body {
  margin: 0;
  background: #aee1;
  font-family: Oswald, Helvetica, sans-serif;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
}

hr {
  margin: 5rem auto;
  width: 100%;
  max-width: 300px;
  border: 1px solid #ccc;
}

header {
  height: 75vh;
  width: 100%;
  display: grid;
  place-items: center;
  background:
    /* center (kind of) */
    radial-gradient(circle at 30% 40%, #af88 20vmin, #af80 0),
    /* top left */
    radial-gradient(farthest-side, #aee8 99%, #0000) 5vmin 5vmin / 10vmin 10vmin,
    conic-gradient(#f002 0 0) 10vmin 5vmin / 10vmin 10vmin,
    radial-gradient(farthest-side, #af88 99%, #0000) 20vmin 5vmin / 10vmin 10vmin,
    /* top right */
    radial-gradient(farthest-side, #aee8 99%, #0000) calc(100% - 5vmin) 5vmin / 10vmin 10vmin,
    conic-gradient(#f002 0 0) calc(100% - 8vmin) 10vmin / 20vmin 20vmin,
    /* bottom left */
    radial-gradient(farthest-side, #aee8 99%, #0000) 10vmin calc(100% - 15vmin) / 16vmin 16vmin,
    /* bottom right */
    radial-gradient(farthest-side, #f002 99%, #0000) 100% 100% / 40vmin 40vmin,
    conic-gradient(#af88 0 0) 100% 100% / 20vmin 20vmin,
    conic-gradient(#f002 0 0) calc(100% - 20vmin) calc(100% - 20vmin) / 20vmin 20vmin,
    conic-gradient(#aee8 0 0) calc(100% - 40vmin) calc(100% - 40vmin) / 10vmin 10vmin,
    radial-gradient(farthest-side, #aee8 99%, #0000) calc(100% - 40vmin) calc(100% - 40vmin) / 20vmin 20vmin;
  background-blend-mode: color-dodge;
  background-repeat: no-repeat;
}

h1 {
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(3, auto);
  width: fit-content;
  font-family: Oswald, Helvetica, sans-serif;
  line-height: 1;
  align-items: center;
}

h1 span:nth-child(1) {
  font-size: clamp(30px, 30vw, 222px);
  grid-column: 1;
  grid-row: 1 / 3;
  transform: scaleY(1.1);
  transform-origin: 50% 100%;
  align-self: flex-end;
}

h1 span:nth-child(2) {
  grid-row: 1;
  grid-column: 2;
  font-size: clamp(20px, 20vw, 120px);
}

h1 span:nth-child(3) {
  grid-row: 2;
  grid-column: 2;
  font-size: clamp(10px, 15vw, 140px);
  margin-left: 0.1em;
}

h1 span:nth-child(4) {
  grid-row: 3;
  grid-column: 1 / 3;
  font-size: clamp(15px, 10vw, 100px);
  margin-left: 1em;
}

main {
  margin: 0 auto;
  max-width: 600px;
  padding: 1em;
}

h2 {
  text-align: center;
  font-family: Oswald, Helvetica, sans-serif;
  font-size: 2.5em;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.home h2 {
  text-transform: uppercase;
}

.demo-list {
  margin: 0;
  margin-bottom: 10em;
  padding: 0;
  list-style: none;
}

.demo-list li {
  border-radius: 1em;
  background: #eee;
  height: 10em;
  box-shadow: 0 3em 1em -2em #0002;
  margin-bottom: 3em;
  scale: 1;
  transition: scale 0.5s, box-shadow 0.5s;
}

.home .demo-list li:hover,
.home .demo-list li:focus,
.home .demo-list li:focus-within {
  scale: 1.01;
  box-shadow: 0 3em 1.25em -2.25em #0002;
}

.demo-list p {
  font-family: Roboto, Helvetica, sans-serif;
  line-height: 1.4;
}

.demo-list:not(.demos) p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.demo-list>li>a {
  display: flex;
  gap: 1em;
  text-decoration: none;
  color: initial;
  padding-right: 1rem;
  border-radius: 1em;
  outline-offset: 0.25em;
  overflow: hidden;
  max-height: 100%;
}


.demo-list img {
  height: 10em;
  aspect-ratio: 1;
  width: #222;
  border-radius: 1em 0 0 1em;
}

.demo-list h3 {
  font-family: Oswald, Helvetica, sans-serif;
  font-size: 1.75em;
  margin: 0.5em 0;
}

footer {
  margin: 5em auto 1em auto;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.mini header {
  height: auto;
  display: block;
}

.mini h2 {
  font-size: 5.5em;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: -1rem;
  margin-bottom: 8rem;
  line-height: 1;
}

.page-404 h2 {
  margin-top: 1em;
}

.mini h3 {
  margin: 0.5em 0 0.125em 0;
}

.mini .demo-list {
  margin-bottom: 0;
}

.mini .demo-list.demos li {
  background: none;
  box-shadow: none;
  height: auto;
  overflow: visible;
}

.mini .demo-list.demos p {
  font-size: 1.25em;
}

a,
a:link,
a:visited {
  color: #369;
}

.mini .demo-list.demos a,
.mini .demo-list.demos a:visited {
  display: inline;
  text-decoration: underline;
}

.mini .demo-list.demos a:hover {
  text-decoration: none;
}

.mini .demo-list.demos img {
  height: auto;
  margin-bottom: 3em;
  border-radius: 1rem;
  max-width: 100%;
}

.mini .demo-list.demos .tags {
  display: inline-flex;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mini .demo-list.demos .tags li {
  margin: 0;
  padding: 0.25em 0.75em;
  border-radius: 0.5em;
  background: #f002;
  display: block;
  font-size: 0.9em;
  font-weight: 300;
  border: 1px solid #0000;
}

.floating-nav {
  width: 3.5rem;
  height: auto;
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.floating-nav a {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: -0.125em 0.125em 0.5em #0002;
  position: relative;
  display: inline-block;
}

.floating-nav a span {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
}

#go-home::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 55%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  clip-path: polygon(50% 0%, 100% 50%, 85% 50%, 85% 100%, 60% 100%, 60% 70%, 40% 70%, 40% 100%, 15% 100%, 15% 50%, 0% 50%);
}

#go-medium,
#go-dev,
#go-patreon {
  background: #000;
  overflow: hidden;
}

#go-medium::before {
  content: "Medium";
  color: #fff;
  font-family: 'Times New Roman', Times, serif;
  text-decoration: none;
  position: absolute;
  top: 50%;
  left: 20%;
  transform: scaleX(0.95) translateY(-50%);
  font-size: 2.25rem;
  font-weight: 300;
}

#go-dev::before {
  content: "DEV";
  color: #fff;
  font-family: Oswald, Roboto, Helvetica, Arial, sans-serif;
  text-decoration: none;
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1.25rem;
  transform: translate(-50%, -50%);
  font-weight: 500;
  letter-spacing: 0.05rem;
}

#go-patreon::before {
  content: "";
  color: #fff;
  width: 50%;
  height: 50%;
  position: absolute;
  top: 50%;
  left: 52.5%;
  font-size: 1.25rem;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#fff 0 0) 0% 0 / 23% 100% no-repeat,
    radial-gradient(closest-side circle at 65% 35%, #fff calc(100% - 1px), #0000);
}

a.rss::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-inline-end: 0.1rem;
  vertical-align: middle;
  background: repeating-radial-gradient(circle at 40% 50%, #369 0 0.1em, #0000 0 0.2em);
  clip-path: polygon(40% 40%, 70% 0, 100% 50%, 100% 50%, 70% 100%, 40% 60%, 30% 60%, 30% 40%);
}

.extra h2 {
  margin-bottom: 2rem;
}

.extra > div {
  font-family: Roboto, Helvetica, sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
}

.extra section {
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.extra p {
  margin-top: 1rem;
}

.extra h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.flash h3 {
  margin-bottom: 0;
}

.flash p {
  margin-top: 0.35rem;
}


@media (max-width: 500px) {
  html {
    font-size: 0.9rem;
  }
}

@media (min-width: 650px) {
  .go-to-prev {
    transform: translate(-2rem);
  }

  .go-to-next {
    transform: translate(2rem);
  }
}