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

* {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --neutral: #808080;
  --accent: #ff5733;
  --amber: #FFB223;
  --amber-transparent: #FFB22350;

  --dark: #111111;
  --light: #eeeeee;

  --border: 1px solid var(--dark);

  --space-xs: 0.25rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 6rem;

  font-family:
    InterVariable,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;

  font-feature-settings:
    "liga" 1,
    "calt" 1; /* fix for Chrome */
}

@supports (font-variation-settings: normal) {
  :root {
    font-family:
      InterVariable,
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      Oxygen,
      Ubuntu,
      Cantarell,
      "Open Sans",
      "Helvetica Neue",
      sans-serif;
  }
}

html {
  background: var(--dark);
  color: var(--light);
}

body {
  min-height: 100vh;
  width: 100%;
  margin: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-l);
}

main {
  width: 100%;
  margin: auto;

  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);

  a {
    color: inherit;
    text-decoration: underline;

    &:hover {
      text-decoration: none;
    }
  }

  h2,
  h3,
  h4 {
    font-size: 1.125rem;
    color: var(--neutral);
    margin-top: var(--space-m);
  }

  ul,
  ol {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  ol {
    list-style-type: decimal-leading-zero;
  }

  ul {
    list-style-type: "×   ";
  }

  li {
    list-style-position: inside;

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

    p {
      font-size: var(--font-size-s);
      display: inline;
    }
  }

  sup {
    margin-left: var(--space-xs);
    color: var(--neutral);

    a {
      font-size: 0.75rem !important;
    }

    &::before {
      content: "[";
    }

    &::after {
      content: "]";
    }
  }

  .footnotes {
    margin-top: var(--space-m);
    padding-top: var(--space-m);
    border-top: 0.5px solid var(--neutral);
  }

  #footnote-label {
    display: none;
  }
}

.navigation,
.footer {
  background: var(--dark);
  padding: var(--space-xs) 0;
  width: 100%;
}

.navigation {
  display: flex;
  position: sticky;
  top: 0;
  justify-content: space-between;
  width: 100%;

  .navigation-section {
    display: flex;
    gap: 1rem;
  }
}

.footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);

  .footer-sections {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-m);
  }
  .footer-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-xs);
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
  }
}

h1,
h2,
h3,
h4 {
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
a,
li {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  word-break: break-word;
  font-weight: 400;
}

a {
  color: var(--neutral);
  text-decoration: none;
  text-underline-offset: var(--space-xs);

  &:hover {
    text-decoration: none;
    color: var(--light);
  }
}

p,
a,
span,
time,
li {
  font-size: 1.125rem;
}

.hero {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    color: var(--neutral);
  }
}

.external {
  &:after {
    content: " ↗︎";
  }
}

.list {
padding-left: var(--space-s);
list-style-type: "—";

li::marker {
  color: var(--neutral);
}
}

.content {
  max-width: 75ch;
}

.list-item {
  list-style-position: inside;

    padding-left: 1ch;
}

.updated {
  font-size: var(--font-size-s);
  color: var(--neutral);
}

.notification {
  padding: var(--space-s);
  background-color: var(--amber-transparent);
  border: 1px solid var(--amber);
  border-radius: 5px;
  color: var(--amber);
  max-width: 75ch;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}

.photo, .project {
  flex: 2 1 calc(50% - 1vw);
  box-sizing: border-box;
  overflow: hidden;
}

.photo-image, .project-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.photo-details, .project-details {
  color: var(--neutral);
  font-size: small;
  font-style: italic;
}

@media (max-width: 40rem) {
  body {
    padding: var(--space-s);
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
}
}

@media (min-width: 40rem) {
  body {
    padding: var(--space-m);
  }
}