/* RESET */
*, ::before, ::after {
  /* outline: .1px solid red; */
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

html:not(:focus-within) {
  scroll-behavior: auto;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, select, textarea, button {
  font: inherit;
  color: inherit;
}
input:disabled, select:disabled, textarea:disabled, button:disabled {
  opacity: 0.3;
}

textarea {
  resize: vertical;
}

hr, input, select, textarea {
  border: 2px solid rgba(0, 0, 0, 0.1);
}

hr {
  border-width: 0 0 2px 2px;
  align-self: stretch;
}

/* BASE */
/* Inter Font is coming from Google Fonts */
@font-face {
  font-display: swap;
  font-family: "Thabit";
  font-weight: normal;
  src: url("/fonts/thabit.woff") format("woff");
}
:root {
  --radius: 6px;
  --radius: clamp(0px, (100vw - 100%) * 9999, 6px);
  --radius-full: 9999px;
  --shadow: 0px 4px 4px rgba(0, 0, 0, 0.20);
  --shadow-2: 0px 4px 6px rgba(0, 0, 0, 0.25);
  --color-primary: #FCD47D;
  --icon-color: #1F1F1F;
  --icon-color-hover: var(--color-primary);
}

* {
  line-height: calc(1em + 0.4rem);
}

:focus-visible {
  outline: 3px solid #04f;
  outline-offset: 0px;
  transition: outline-width 0.2s;
}

html {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  text-size-adjust: none;
  background-color: #fff;
}
html, html body {
  min-width: 360px;
}
html.noscroll {
  overflow-y: hidden;
}
html.noscroll > body {
  overflow-y: scroll;
}

a {
  color: currentColor;
}
a:not(p a) {
  text-decoration: none;
}

button {
  display: block;
  background-color: rgba(0, 0, 0, 0);
  border: none;
  border-radius: 0;
  user-select: none;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-weight: 400;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

b {
  font-weight: 500;
}

.sr-only {
  clip: rect(1px, 1px, 1px, 1px) !important;
  border: 0 !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  user-select: none !important;
  white-space: nowrap !important;
  width: 1px !important;
}

:root {
  --gap: 2vw;
}

body {
  display: flex;
  gap: var(--gap);
  max-width: 1440px;
  padding: var(--gap);
  margin: auto;
}
body > aside {
  position: sticky;
  top: var(--gap);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  width: 280px;
  height: calc(100vh - var(--gap) * 2);
}
@media (max-width: 1100px) {
  body > aside:last-of-type {
    display: none;
  }
}
body > main {
  flex: 2;
}

.show-on-desktop {
  display: block;
}

.show-on-mobile {
  display: none;
}

@media (max-width: 768px) {
  .show-on-desktop {
    display: none;
  }
  .show-on-mobile {
    display: block;
  }
  body {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    gap: 40px;
  }
  body > aside {
    position: static;
    height: auto;
  }
  body > aside > #sidebar > dl, body > aside > #site-footer {
    display: none;
  }
  body > aside > #sidebar {
    min-height: unset;
  }
  body > aside > #sidebar > #pagination-nav {
    position: fixed;
    width: 100%;
    inset: auto 0 0;
    background-color: #fafafa;
    background-color: #fdfdfd;
    margin-top: unset;
  }
  body > aside > #sidebar > #pagination-nav > a {
    padding: 8px 12px;
  }
  body > main {
    padding-top: 0;
  }
}
#site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
#site-header #logo #logo-group {
  transform-origin: center;
  transform-box: fill-box;
}
#site-header #logo.hovered #logo-group {
  animation: logo-filter 0.5s linear infinite forwards;
  animation: logo-filter 0.5s ease-in-out infinite forwards;
}
#site-header #logo #logo-path {
  transform-origin: center;
  transform-box: fill-box;
  transition: fill 0.3s linear;
}
#site-header #logo.hovered #logo-path {
  fill: #EFBF00;
  animation: logo-rotate 2s linear infinite forwards;
}
#site-header span {
  color: #1FB57F;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  max-width: 240px;
  margin: auto;
}
@media (max-width: 768px) {
  #site-header span {
    display: none;
  }
}
#site-header menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
#site-header menu a {
  font-size: 14px;
  transition: color 0.2s, font-weight 0.2s;
}
#site-header menu a[aria-current=page], #site-header menu a:hover {
  color: #EFBF00;
  font-weight: 700;
}

@keyframes logo-rotate {
  to {
    transform: rotate(1turn);
  }
}
@keyframes logo-filter {
  0% {
    filter: url("#filter-1");
  }
  20% {
    filter: url("#filter-2");
  }
  40% {
    filter: url("#filter-3");
  }
  60% {
    filter: url("#filter-4");
  }
  80% {
    filter: url("#filter-5");
  }
  100% {
    filter: url("#filter-6");
  }
}
#site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
#site-footer .social-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}
#site-footer .social-icons img {
  width: 18px;
  height: 18px;
}
#site-footer > img {
  width: 90px;
}
#site-footer p {
  font-family: monospace;
  font-size: 12px;
  text-align: center;
}

#sidebar {
  flex: 1;
  min-height: 250px;
}

#pagination-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 50px;
}
#pagination-nav > a {
  padding: 3px;
  border-radius: 5px;
  transition: background-color 0.2s;
}
#pagination-nav > a:first-of-type {
  transform: rotate(-180deg);
}
#pagination-nav > a:not([href]) {
  opacity: 0.5;
  cursor: default;
}
#pagination-nav > a[href]:hover {
  background-color: #EEE;
}
#pagination-nav > a > svg {
  width: 24px;
  height: 24px;
}

#archive {
  align-items: center;
  justify-content: center;
  padding-top: 15%;
}
#archive #pillar-box {
  position: relative;
  width: 240px;
  height: auto;
}
#archive #pillar-box:hover #floppy-box {
  transform: translateY(-60px);
}
#archive #pillar-box:hover #floppy {
  animation-play-state: running;
}
#archive #pillar {
  width: 100%;
  height: auto;
}
#archive #floppy-box {
  position: absolute;
  inset: -38px 0 auto -30px;
  width: 90px;
  height: auto;
  margin: auto;
  transition: transform 0.5s;
}
#archive #floppy {
  position: absolute;
  inset: 0;
  width: 90px;
  height: auto;
  animation-name: rotate;
  animation-duration: 2.5s;
  animation-play-state: paused;
  animation-iteration-count: infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(15deg);
  }
  100% {
    transform: rotate(-15deg);
  }
}
main {
  padding: 100px 0 50px;
}
main article > * + * {
  margin-top: 1.5em;
}
main h1 {
  color: #000;
  font-family: "Thabit";
  font-weight: bold;
  font-size: 36px;
  line-height: 110%; /* 39.6px */
}
main .mobile-title {
  font-size: 30px;
}

dd {
  margin-bottom: 15px;
}

dt {
  font-family: "Thabit";
  font-weight: bold;
  font-size: 18px;
}

dl {
  font-size: 14px;
}
