/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400&display=swap');

/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

:root {
  --background-color: #000000;
  --content-background-color: #000000;
  --sidebar-background-color: #000000;
  --text-color: #e8f5d0;
  --sidebar-text-color: #B5DB66;
  --link-color: #B5DB66;
  --link-color-hover: #476A2F;
  --font: 'Silkscreen', sans-serif;
  --heading-font: 'Silkscreen', sans-serif;
  --font-size: 12px;
  --margin: 12px;
  --padding: 12px;
  --border: none;
  --round-borders: 0;
  --sidebar-width: 250px;
}

/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  font-size: var(--font-size);
  margin: 0;
  padding: var(--margin);
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1.2;
  background: var(--background-color);
}

::selection {
  background: rgba(0, 0, 0, 0.2);
}

mark {
  text-shadow: 1px 1px 4px var(--link-color);
  background-color: inherit;
  color: var(--text-color);
}

a {
  text-decoration: none;
}

a,
a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
}
* {
  cursor: url('cura.svg') 6 0, auto;
}
a, button, [onclick], .card {
  cursor: url('curb.svg') 6 0, pointer;
}

header,
nav,
aside,
footer,
main h1, main h2, main h3,
main h4, main h5, main h6,
main pre, main code,
main blockquote,
.sidebar-title,
.header-title {
  text-shadow: 0 0 8px rgba(181, 219, 102, 0.75);
}
.unavailable {
  color: var(--link-color);
  opacity: 0.4;
  cursor: not-allowed;
}
/* -------------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------------- */

.layout {
  width: 1000px;
  display: grid;
  grid-gap: var(--margin);
  grid-template: "header header" auto "leftSidebar main" auto "footer footer" auto / var(--sidebar-width) auto;
}

main {
  grid-area: main;
  overflow: hidden;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
  line-height: 1.5;
}

/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

header {
  grid-area: header;
  font-size: 1.2em;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color);
}

.header-content {
  padding: var(--padding);
}

.header-title {
  font-family: var(--heading-font);
  font-size: 1.5em;
}

.header-image img {
  width: 100%;
  height: auto;
}

/* -------------------------------------------------------- */
/* SIDEBARS */
/* -------------------------------------------------------- */

aside {
  grid-area: aside;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  background: var(--sidebar-background-color);
  padding: var(--padding);
  color: var(--sidebar-text-color);
}

.left-sidebar { grid-area: leftSidebar; }
.right-sidebar { grid-area: rightSidebar; }

.sidebar-title {
  font-size: 1em;
  font-family: var(--heading-font);
}

.sidebar-section:not(:last-child) {
  margin-bottom: 3em;
}

.sidebar-section ul,
.sidebar-section ol {
  padding-left: 1.5em;
}

.sidebar-section > *:not(p):not(ul):not(ol):not(blockquote) {
  margin-top: 10px;
}

.sidebar-section blockquote {
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
  overflow: hidden;
}

.sidebar-section blockquote > *:first-child { margin-top: 0; }
.sidebar-section blockquote > *:last-child { margin-bottom: 0; }

.site-button {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-button textarea {
  font-family: monospace;
  font-size: 0.7em;
}

/* -------------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------------- */

footer {
  grid-area: footer;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  font-size: 0.75em;
  padding: 15px;
  background: var(--content-background-color);
  display: flex;
}

footer a,
footer a:visited { color: var(--link-color); }

footer a:hover,
footer a:focus { color: var(--link-color-hover); }

/* -------------------------------------------------------- */
/* NAVIGATION */
/* -------------------------------------------------------- */

nav {
  margin-bottom: 3em;
}

nav .sidebar-title {
  margin-bottom: 0.5em;
}

nav ul {
  margin: 0 -5px;
  padding: 0;
  list-style: none;
  user-select: none;
}

nav ul li {
  margin-bottom: 0;
}

nav > ul li > a,
nav > ul li > strong {
  display: inline-block;
}

nav > ul li > a,
nav > ul li > details summary,
nav > ul li > strong {
  padding: 5px 10px;
}

nav ul summary {
  cursor: pointer;
}

nav ul ul li > a {
  padding-left: 30px;
}

/* -------------------------------------------------------- */
/* CONTENT */
/* -------------------------------------------------------- */

main a,
main a:visited { color: var(--link-color); }

main a:hover,
main a:focus {
  color: var(--link-color-hover);
  text-decoration-style: wavy;
}

main p, main li {
  color: #e8f5d0;
}
main p,
main .image,
main .full-width-image,
main .two-columns {
  margin: 0.75em 0;
}

main ol,
main ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

main ol li,
main ul li {
  margin-bottom: 0.2em;
  line-height: 1.3;
}

main ol {
  padding-left: 2em;
}

main blockquote {
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
}

main pre { margin: 1em 0 1.5em; }
main code { text-transform: none; }
main center { margin: 1em 0; padding: 0 1em; }

main hr {
  border: 0;
  border-top: var(--border);
  margin: 1.5em 0;
}

/* HEADINGS */

main h1, main h2, main h3,
main h4, main h5, main h6 {
  font-family: var(--heading-font);
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: normal;
}

main h1:first-child, main h2:first-child, main h3:first-child,
main h4:first-child, main h5:first-child, main h6:first-child {
  margin-top: 0;
}

main h1 { font-size: 1.5em; }
main h2 { font-size: 1.4em; }
main h3 { font-size: 1.3em; }
main h4 { font-size: 1.2em; }
main h5 { font-size: 1.1em; }
main h6 { font-size: 1em; }

/* COLUMNS */

.two-columns {
  display: flex;
}

.two-columns > * {
  flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child { padding-right: 0.75em; }
.two-columns > *:last-child { padding-left: 0.75em; }

/* IMAGES */

.image,
.full-width-image,
.image-sb {
  display: block;
  height: auto;
  filter: saturate(50%);
  transition: filter 0.5s ease;
}

.image,
.image-sb { width: auto; }
.full-width-image { width: 100%; }
.image-sb { max-width: 25%; margin: 0 5px 0 0; }

.image:hover,
.full-width-image:hover,
.image-sb:hover {
  filter: saturate(200%);
}

.image { max-width: 100%; }

.images {
  display: flex;
  width: 100%;
  will-change: transform;
  position: relative;
}
.images img {
  width: 33.33%;
  height: auto;
  display: block;
  padding: 0 5px 0 0;
}
.images-asset img {
  width: 100%;
  height: auto;
  display: block;
}
.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
}

.asset-grid section {
}
/* --
/* -------------------------------------------------------- */
/* CARD FLIP */
/* -------------------------------------------------------- */

.card {
  width: 25%;
  padding: 0 5px 0 0;
  box-sizing: border-box;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-front img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0%);
  transition: filter 0.5s ease;
}

.card:hover .card-front img {
  filter: saturate(100%);
}

.card-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  color: white;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.card-back a {
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
}

/* -------------------------------------------------------- */
/* CRT OVERLAY */
/* -------------------------------------------------------- */

.crt-overlay {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 9999;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
}

/* -------------------------------------------------------- */
/* ACCESSIBILITY */
/* -------------------------------------------------------- */

/* please do not remove this. */

#skip-to-content-link {
  position: fixed;
  top: 0; left: 0;
  display: inline-block;
  padding: 0.375rem 0.75rem;
  line-height: 1;
  font-size: 1.25rem;
  background-color: var(--content-background-color);
  color: var(--text-color);
  transform: translateY(-3rem);
  transition: transform 0.1s ease-in;
  z-index: 99999999999;
}

#skip-to-content-link:focus,
#skip-to-content-link:focus-within {
  transform: translateY(0);
}

/* -------------------------------------------------------- */
/* MOBILE RESPONSIVE */
/* -------------------------------------------------------- */

@media (max-width: 800px) {
  body { font-size: 14px; }

  .layout {
    width: 100%;
    grid-template: "header" auto "main" auto "footer" auto / 1fr;
  }

  .left-sidebar,
  .right-sidebar { display: none; }

  aside {
    border-bottom: 1px solid;
    padding: 9px;
    font-size: 0.9em;
  }

  header nav { display: block !important; }

  nav { padding: 0; }

  nav > ul { padding-top: 0.5em; }

  nav > ul li > a,
  nav > ul li > details summary,
  nav > ul li > strong { padding: 0.5em; }

  main {
    max-height: none;
    padding: 15px;
  }

  .images { flex-wrap: wrap; }
  .images img { width: 100%; }

  #skip-to-content-link { font-size: 1rem; }
}