@charset "UTF-8";

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/InterVariable.woff2?v=4.1') format('woff2');
}

@font-face {
  font-family: JetBrainsMono;
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}



/*
 * ROOT
 */

:root {
  --color-brand: #ffef6b;
  --color-bg-light: rgb(23, 28, 35);
  --color-bg: rgb(13, 18, 25);
  --color-muted: rgb(131, 136, 143);
  --color-text: rgb(207, 212, 219);
  --color-heading: #fff;

  --main-width: 62rem;

  --font-default: Inter, system-ui, sans-serif;
  --font-monospace: JetBrainsMono, ui-monospace, monospace;

  font-family: var(--font-default);
  font-feature-settings: 'liga' 1, 'calt' 1;
  font-size: 16px;
  font-weight: 400;
}

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

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 1.125rem;
  line-height: 1.5;
  padding: 1.5rem;
}



/*
 * ELEMENTS
 */

h1,
h2,
h3,
h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-heading);

}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
}

h3,
h4 {
  font-size: 1.125em;
}

h4 {
  color: var(--color-muted);
  margin-bottom: 0em;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-heading);
  text-decoration: underline;
  transition: text-decoration .2s ease-in-out;
  text-decoration-color: var(--color-muted);
  text-underline-offset: .25rem;
}

a:hover {
  text-decoration-color: var(--color-heading);
}


a:not([href]):not([class]),
a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.5em;
}

ul:not([class]) li {
  padding-inline-start: 1.5ch;
  margin-bottom: .25rem;
  list-style-type: "—";

  &::marker {
    color: var(--color-muted);
  }
}

main {
  max-width: var(--main-width);
  margin: 0 auto;
}

img {
  margin-bottom: 1.5rem;
  border-radius: .5rem;
  max-width: 100%;
  display: block;
}

code[class*=language-],
pre[class*=language-] {
  border-radius: .5rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  background-color: var(--color-bg-light);
}

code[class*=language-],
pre[class*=language-],
code {
  font-family: var(--font-monospace);
}

code {
  word-break: break-word;
  color: var(--color-heading);
}

small {
  font-size: 1rem;
  display: block;
}

input,
button,
select,
optgroup,
textarea {
  margin-bottom: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
input {
  overflow: visible;
}

label {
  margin-top: 0;
  margin-bottom: 1.5rem;
}



/*
 * CLASSES
 */

.row {
  display: flex;
  gap: 0;
}

.column {
  flex: 50%;
}

.navbar {
  margin: 0 auto 3rem;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-bg-light);
}

.navbar-links {
  margin: 0;
  display: flex;
  gap: 1.5rem;
  font-size: 1rem;

  li a {
    text-decoration: none;
  }
}

.link-icon {
  display: inline-flex;
  gap: .25rem;
  align-items: center;

  svg {
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
    color: var(--color-muted);
    fill: currentColor;
    margin-right: .25rem;
  }
}

.footer {
  border-top: 2px solid var(--color-bg-light);
  padding: 1.5rem 0 0;
  margin: 2rem 0 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.list-unstyled {
  list-style: none;
  padding: 0;
}

.list-links li {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.highlight {
  background-repeat: repeat-x;
  padding-left: 0.25em;
  padding-right: 0.25em;
  color: var(--color-bg);
}

.logo {
  width: 32px;
  height: 32px;
  display: block;
}

.highlight,
.logo {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxIDEiPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNGRkVGNkIiLz48L3N2Zz4=);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.tile {
  aspect-ratio: 1;
  background-color: var(--color-heading);
}

.art {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 50%;
  aspect-ratio: 1;
  border: .5rem solid var(--color-heading);
}



/*
 * Small devices breakpoint
 */

@media (max-width: 48rem) {
  body {
    font-size: 1rem;
  }

  .navbar {
    flex-direction: column;
    row-gap: 1.5rem;
  }

  .navbar-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .row {
    flex-direction: column;
  }
}