:root {
  --abs-blue: #1b67a5;
  --abs-green: #16a34a;
  --abs-beige: #f5e5c4;

  --body-background-color: #fafbfe;
  --body-font-family: system-ui, sans-serif;
  --body-font-size: 20px;
  --body-font-weight: 400;
  --body-width: 40rem;

  --heading-font-family: 'Space Grotesk', system-ui, sans-serif;
  --heading-font-weight: 600;

  --text-color: #2c2e36;
  --text-color-muted: #666977;

  --link-color: var(--text-color);
  --link-color-hover: var(--abs-green);

  --code-font: Menlo, Monaco, 'Courier New', monospace;
  --code-font-size: 0.875em;
  --code-background-color: #282c34;
  --code-color: #e7e9eb;
  --inline-code-background-color: #e1e3ee;

  --tag-font-family: var(--body-font-family);
  --tag-font-weight: 500;
  --tag-border-color: var(--text-color);
  --tag-color: var(--text-color);

  --border-color: #d1d5db80;
  --border-radius: 3px;
  --content-padding: 2rem;

  --post-font-family: 'Bitter', system-ui, serif;
  --post-font-weight: 400;

  --callout-background-color: #f3f4f6;
  --callout-text-color: var(--text-color);

  --search-overlay: #11182744;
  --search-background-color: white;
  --search-text-color: var(--text-color);

  @media (prefers-color-scheme: dark) {
    --abs-blue: #479ce1;
    --abs-green: #16a34a;
    --abs-beige: #4e390d;

    --body-background-color: #13141b;

    --text-color: #e1e3ee;
    --text-color-muted: #a4a6b0;
    --inline-code-background-color: #292e32;

    --border-color: #3d464c80;

    --callout-background-color: var(--code-background-color);
    --callout-text-color: var(--code-text-color);

    --search-overlay: #00000099;
    --search-background-color: #13141b;
    --search-text-color: var(--text-color);
  }

  @media screen and (max-width: 1000px) {
    --body-font-size: 16px;
    --content-padding: 1rem;
  }
}

/* Dark mode utils */
.prefers-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .prefers-light {
    display: none;
  }

  .prefers-dark {
    display: unset;
  }

  .invertable {
    filter: invert();
  }
}

* {
  box-sizing: border-box;
}

/* Reusable brutalist card style */
.brutalist-card {
  border: solid 2px var(--text-color);
  border-radius: var(--border-radius);
  box-shadow: 4px 4px 0 var(--text-color);
}

*:focus {
  outline-color: var(--abs-green);
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  color: var(--text-color);
  background-color: var(--body-background-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font-family);
  font-weight: var(--heading-font-weight);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a[href] {
  color: var(--link-color);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.111111em;

  &:hover {
    color: var(--link-color-hover);
  }
}

hr {
  border: none;
  border-top: solid 2px var(--text-color);
  margin: 4rem -2rem;
  transform: rotate(-2deg);

  &:nth-of-type(even) {
    transform: rotate(2deg);
  }

  @media screen and (max-width: 1000px) {
    margin: 3rem 0;
  }
}

main {
  max-width: var(--body-width);
  padding: var(--content-padding);
  margin: 0 auto;

  & :first-child {
    margin-top: 0;
  }
}

header {
  max-width: var(--body-width);
  margin: 0 auto;

  &:after {
    content: '';
    display: table;
    clear: both;
  }
}

table {
  margin: 2rem 0;

  & td,
  & th {
    padding-right: 1rem;
  }
}

abbr {
  text-decoration-color: var(--text-color);
  text-decoration-style: dotted;
  text-underline-offset: 0.125rem;
  cursor: help;
}

aside {
  font-style: italic;
  border: solid 3px var(--border-color);
  border-radius: calc(var(--border-radius) * 2) 0 calc(var(--border-radius) * 2) 0;
  padding: 1rem;
  margin: 1rem 0;
}

blockquote {
  position: relative;
  border-left: solid 3px var(--text-color);
  font-size: 1.25rem;
  font-style: italic;
  padding: 0 0 0 1rem;
  margin: 2rem -1rem 2rem -1rem;

  @media screen and (max-width: 1000px) {
    margin: 1rem 0 1rem 0;
  }
}

::selection {
  background-color: var(--abs-green);
  color: white;
}

/* Header */
header {
  text-align: center;
  padding-top: 1rem;
}

.header-link {
  display: inline-block;
  padding: 0 1rem;
  margin: 1rem 0;

  & :link:not(:hover) {
    text-decoration: none;
  }
}

.wordmark {
  width: 460px;
  height: 211px;
  margin: 0 auto;

  @media screen and (max-width: 1000px) {
    width: 300px;
    height: 139px;
  }
}

/* Nav */
.nav {
  display: block;
  font-family: var(--heading-font-family);
  text-align: center;
  padding: calc(var(--content-padding) / 2) var(--content-padding);
  margin-bottom: 1rem;

  @media screen and (max-width: 1000px) {
    padding: 0.5rem;
  }

  @media screen and (max-width: 420px) {
    line-height: 2;
    padding: 0.5rem;
  }
}

.nav-item {
  display: inline-block;
  margin-right: 1.5rem;
  border: solid 2px transparent;
  border-radius: var(--border-radius);
  padding: 0.15rem 0.5rem;
  text-decoration: none;
  transition: 50ms all ease;

  &:focus-visible {
    outline: none;
    border-color: var(--link-color-hover);
    color: var(--link-color-hover);
    transition: none;
    box-shadow: 2px 2px 0 var(--link-color-hover);
    scale: 1.1;
  }

  & svg {
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
  }

  &:last-of-type {
    margin-right: 0;
  }

  @media screen and (max-width: 1000px) {
    margin-right: 1rem;
  }

  @media screen and (max-width: 420px) {
    margin-right: 0.5rem;
  }
}

@media (hover: hover) {
  .nav-item[href]:hover {
    color: var(--link-color-hover);
    border-color: var(--link-color-hover);
    box-shadow: 2px 2px 0 var(--link-color-hover);
  }

  .nav-item[href]:active {
    color: var(--link-color-hover);
    translate: 2px 2px;
    box-shadow: 0 0 0 transparent;
  }
}

.nav-item-active {
  font-weight: 700;
  border-color: var(--text-color);
  box-shadow: 2px 2px 0 var(--text-color);
}

/* Post previews */
.post-roll-item {
  margin-bottom: 4rem;
}

.post-roll-item-title {
  margin-bottom: 0.25rem;
}

.post-roll-item-date {
  display: block;
  font-family: var(--body-font-family);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-color-muted);
  margin: 1rem 0 0.75rem 0;
}

.post-roll-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(0.25rem + 4px) 0.25rem;
  margin-top: 0.5rem;
}

.content .post-roll-item img,
.content .post-roll-item .video {
  margin: 1rem 0;
}

/* Post list */
.post-list-item {
  margin-bottom: 0.5rem;
}

.post-list-item-title {
  margin-bottom: 0.25rem;
}

.post-list-item-date {
  font-family: var(--body-font-family);
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-color-muted);
  white-space: nowrap;
}

/* Posts */
.post hr {
  position: relative;
  border: none;
  transform: none;

  &::after {
    position: relative;
    content: '···';
    top: 0;
    left: calc(50% - 1.33em);
    letter-spacing: 1em;
  }
}

/* Tags */
.post-tag {
  display: inline-block;
  vertical-align: text-top;
  text-transform: uppercase;
  font-family: var(--tag-font-family);
  font-size: 0.75rem;
  font-weight: var(--tag-font-weight);
  line-height: 1;
  padding: 0.15rem 0.25rem;
  border: solid 2px var(--tag-border-color);
  color: var(--tag-color);
  border-radius: var(--border-radius);
  box-shadow: 2px 2px 0 var(--text-color);
  text-decoration: none;
  transition: 0.1s all ease;

  &:not(:last-of-type) {
    margin-right: 0.25rem;
  }
}

@media (hover: hover) {
  .post-tag[href]:hover {
    border-color: var(--link-color-hover);
    box-shadow: 2px 2px 0 var(--link-color-hover);
  }

  .post-tag[href]:active {
    translate: 2px 2px;
    box-shadow: 0 0 0 transparent;
  }
}

.post-tag-large {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

.tag-browser {
  display: flex;
  flex-wrap: wrap;
  gap: calc(0.25rem + 5px) 0.25rem;
  margin-block-end: 2rem;
}

.feeds-available {
  font-size: 0.875rem;
  text-align: center;

  & svg {
    vertical-align: -3px;
    margin-inline-end: 0.25rem;
  }
}

/* Warning */
.warning {
  background-color: #ffc;
  padding: 1rem 0.625em;

  & ol:only-child {
    margin: 0;
  }
}

/* Direct Links / Markdown Headers */
a[href].direct-link,
a[href].direct-link:visited {
  text-decoration: none;
  color: var(--text-color);
}

.direct-link {
  &::after {
    content: ' #';
    font-family: sans-serif;
    color: transparent;
  }

  &:hover::after,
  &:focus::after {
    color: var(--text-color);
  }

  @media (hover: none) {
    &::after {
      color: var(--text-color);
    }
  }
}

/* Post nav (prev/next) */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
  line-height: 1.4;
  margin: 2rem -2rem;

  & a {
    display: block;
    font-family: var(--body-font-family);
    font-weight: 600;
    text-decoration: none;
    border: solid 2px var(--text-color);
    border-radius: var(--border-radius);
    padding: 1rem;
  }

  & small {
    display: block;
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
  }

  @media screen and (max-width: 1000px) {
    grid-template-columns: 1fr;
    grid-gap: 1rem;
    margin: 1rem;

    & a:last-child {
      grid-row: 1;
    }
  }
}

/* Post tags */
.post-template .tags {
  margin-top: 2rem;
}

/* Content */
.content {
  font-family: var(--post-font-family);
  font-size: var(--post-font-size);
  font-weight: var(--post-font-weight);

  & h1 {
    font-size: 2rem;
    line-height: 1.25;
    text-wrap: pretty;
  }

  & h2,
  & h3,
  & h4,
  & h5,
  & h6 {
    text-wrap: pretty;
    line-height: 1.25;
    margin: 1.5rem 0 0.5rem 0;
  }

  & ul,
  & ol,
  & p {
    line-height: 1.8;
  }

  & p {
    text-wrap: pretty;

    &:last-child {
      margin-bottom: 0;
    }
  }

  & :where(img) {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 3rem auto;
  }

  & :where(iframe[src^='https://www.youtube.com/embed/']) {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    margin: 1rem 0;
  }

  & .post-date {
    font-family: var(--body-font-family);
    font-size: 0.875rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text-color-muted);
  }

  & mark {
    background-color: var(--abs-beige);
    border-radius: var(--border-radius);
    padding: 0.125rem 0.25rem;

    @media (prefers-color-scheme: dark) {
      color: inherit;
    }
  }

  & kbd {
    font-family: var(--code-font);
    font-size: var(--code-font-size);
    border: solid 2px currentColor;
    border-radius: var(--border-radius);
    box-shadow: 2px 2px 0 var(--text-color);
    padding: 0.125em 0.25em;
    margin-inline: 0.125em;
  }

  & .starred::before {
    content: '★';
    position: absolute;
    margin-left: -1.33em;
  }

  @media screen and (max-width: 1000px) {
    & .starred {
      margin-left: 1.33em;
    }
  }

  & details {
    interpolate-size: allow-keywords;
    border: solid 2px var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: 4px 4px 0 var(--text-color);
    padding-inline: 1rem;

    &[open] {
      padding-block-end: 1rem;
    }

    &[open] > summary::before {
      rotate: 90deg;
    }

    &::details-content {
      font-size: 0.75em;
      height: 0;
      overflow: hidden;
      transition:
        height 200ms ease,
        content-visibility 200ms ease allow-discrete;
    }

    &[open]::details-content {
      height: auto;
    }

    @starting-style {
      &[open]::details-content {
        height: 0;
      }
    }

    > :first-child {
      margin-block-start: 0;
    }
  }

  & details summary {
    display: block;
    position: relative;
    list-style: none;
    margin-inline: -1rem;
    padding-inline-start: 1rem;
    padding-inline-end: 2.5rem;
    padding-block: 1rem;
    cursor: pointer;
    user-select: none;
    font-family: var(--heading-font-family);
    font-weight: 600;

    ~ * {
      margin-block-start: 0;
    }

    &::before {
      position: absolute;
      top: calc(50% - 0.5em);
      right: 1rem;
      width: 1em;
      height: 1em;
      transform-origin: center;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%231f2938'%3E%3Cpath d='M9 6c0-.852.986-1.297 1.623-.783l.084.076 6 6a1 1 0 0 1 .083 1.32l-.083.094-6 6-.094.083-.077.054-.096.054-.036.017-.067.027-.108.032-.053.01-.06.01-.057.004-.059.002-.059-.002-.058-.005-.06-.009-.052-.01-.108-.032-.067-.027-.132-.07-.09-.065-.081-.073-.083-.094-.054-.077-.054-.096-.017-.036-.027-.067-.032-.108-.01-.053-.01-.06-.004-.057-.002-12.059z'/%3E%3C/svg%3E");
      background-position: center;
      background-size: 1em;
      background-repeat: no-repeat;
      content: '';
      transition: rotate 200ms ease;

      @media (prefers-color-scheme: dark) {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23e0e3f3'%3E%3Cpath d='M9 6c0-.852.986-1.297 1.623-.783l.084.076 6 6a1 1 0 0 1 .083 1.32l-.083.094-6 6-.094.083-.077.054-.096.054-.036.017-.067.027-.108.032-.053.01-.06.01-.057.004-.059.002-.059-.002-.058-.005-.06-.009-.052-.01-.108-.032-.067-.027-.132-.07-.09-.065-.081-.073-.083-.094-.054-.077-.054-.096-.017-.036-.027-.067-.032-.108-.01-.053-.01-.06-.004-.057-.002-12.059z'/%3E%3C/svg%3E");
      }
    }

    &::-webkit-details-marker {
      display: none;
    }
  }

  /* Embedded videos */
  & .video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 3rem auto;

    & iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: var(--border-radius);
    }
  }

  /* Tables */
  & table {
    width: 750px;
    border-collapse: collapse;
    margin: 50px auto;
  }

  & tr:nth-of-type(even) {
    background: #f9fafb;
  }

  & th {
    background: #f9fafb;
    font-weight: bold;
  }

  & td,
  & th {
    padding: 10px;
    text-align: left;
    font-size: 18px;
  }

  /* Avatars */
  & .avatar {
    max-width: 256px;
    max-height: 256px;
    border-radius: var(--border-radius);
    float: right;
    margin: 0 0 0 2rem;
  }

  & .avatar-small {
    max-width: 128px;
    max-height: 128px;
  }

  @media screen and (max-width: 1000px) {
    & .avatar {
      max-width: 128px;
      max-height: 128px;
    }

    & .avatar-small {
      max-width: 64px;
      max-height: 64px;
    }
  }
}

.legacy-warning {
  position: relative;
  background-color: var(--callout-background-color);
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  border-left: solid 3px currentColor;
  font-style: italic;
  color: var(--callout-text-color);
  padding: 1rem 8rem 1rem 1rem;
  margin: 1.5rem 0;

  & p:first-of-type {
    margin-top: 0;
  }

  & p:last-of-type {
    margin-bottom: 0;
  }

  @media screen and (max-width: 1000px) {
    padding: 1rem;
  }
}

.legacy-warning-icon {
  position: absolute;
  top: calc(50% - 60px);
  right: 1.75rem;
  width: 120px;
  height: 120px;
  stroke-width: 0.75px;

  @media screen and (max-width: 1000px) {
    display: none;
  }
}

/* One offs */
.artwork-on-the-mountain {
  width: auto;
  max-height: 300px;
  float: right;
  margin-left: 2rem;

  @media screen and (max-width: 1000px) {
    float: none;
    margin: 2rem auto;
  }
}

/* Site search */
.site-search {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--search-overlay);

  &[hidden] {
    display: none;
  }

  & input {
    display: block;
    width: 100%;
    background: var(--search-background-color);
    border: none;
    border-radius: var(--border-radius);
    font: inherit;
    font-family: var(--heading-font-family);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--search-text-color);
    padding: 1rem;
    margin: 0;
    -webkit-appearance: none;

    &::placeholder {
      font-weight: normal;
      color: var(--text-color);
      font-family: var(--heading-font-family);
    }

    &:focus {
      outline: none;
    }
  }

  &.site-search-has-results input {
    border-bottom: solid 2px var(--text-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

.site-search-panel {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  max-height: calc(100vh - 10rem);
  background-color: var(--search-background-color);
  border-radius: var(--border-radius);
  border: solid 2px var(--text-color);
  box-shadow: 4px 4px 0 var(--text-color);
  margin: 8rem auto;
  overflow: hidden;

  @media screen and (max-width: 1000px) {
    max-width: 100%;
    max-height: 40vh;
    margin: 2vh 1em;
  }
}

.site-search-header {
  flex: 0 0 auto;
  background: var(--search-background-color);
  padding: 0;
  margin: 0;
}

.site-search-body {
  flex: 1 1 auto;
  overflow: auto;
}

.site-search-results {
  display: none;
  line-height: 1.4;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-search-has-results .site-search-results {
  display: block;
}

.site-search-result {
  margin: 0;
  padding: 0;
  list-style: none;

  & a,
  & a:hover {
    display: block;
    padding: 0.625rem 1rem;
    border-radius: 0;
    text-decoration: none;
    color: var(--text-color);
  }

  &[aria-selected='true'] a {
    background-color: var(--text-color);
    color: var(--body-background-color);
  }

  &[aria-selected='true'] .site-search-result-url {
    color: inherit;
    opacity: 0.7;
  }
}

@media (hover: hover) {
  .site-search-result:not([aria-selected='true']) a:hover {
    background-color: var(--border-color);
    color: var(--text-color);
  }
}

.site-search-result-title {
  display: block;
  font-family: var(--heading-font-family);
  font-weight: 600;
}

.site-search-result-url {
  display: block;
  font-size: 0.8em;
  color: var(--text-color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.search-visible {
  overflow: hidden;
}

/* Code blocks and inline code */
code {
  white-space: nowrap;
}

pre,
code {
  font-family: var(--code-font);
  font-size: var(--code-font-size);
}

pre,
code[class*='language-'] {
  background: var(--code-background-color);
  border-radius: var(--border-radius);
  color: var(--code-color);
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.6;
  tab-size: 2;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

pre[class*='language-']::selection,
pre[class*='language-'] ::selection,
code[class*='language-']::selection,
code[class*='language-'] ::selection {
  background: #575f70;
}

pre {
  padding: 1rem;
  margin: 1.5rem 0;
  overflow: auto;

  @media screen and (max-width: 1000px) {
    padding: 1rem;
  }
}

:not(pre) > code {
  background-color: var(--inline-code-background-color);
  border-radius: var(--border-radius);
  padding: 0.125rem 0.25rem;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6f7584;
}

.token.punctuation {
  color: #abb2bf;
}

.token.selector,
.token.tag {
  color: #e06c75;
}

.token.property,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.attr-name,
.token.deleted {
  color: #d19a66;
}

.token.string,
.token.char,
.token.attr-value,
.token.builtin,
.token.inserted {
  color: #98c379;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #56b6c2;
}

.token.atrule,
.token.keyword {
  color: #c678dd;
}

.token.function {
  color: #61afef;
}

.token.regex,
.token.important,
.token.variable {
  color: #c678dd;
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

pre.line-numbers {
  position: relative;
  padding-left: 3.8rem;
  counter-reset: linenumber;

  & > code {
    position: relative;
  }
}

.line-numbers .line-numbers-rows {
  position: absolute;
  pointer-events: none;
  top: 0;
  font-size: 100%;
  left: -3.8rem;
  width: 3rem;
  letter-spacing: -1px;
  border-right: 0;
  user-select: none;
}

.line-numbers-rows > span {
  pointer-events: none;
  display: block;
  counter-increment: linenumber;

  &:before {
    content: counter(linenumber);
    color: #5c6370;
    display: block;
    padding-right: 0.8rem;
    text-align: right;
  }
}

/* Homepage */
.homepage {
  font-family: var(--body-font-family);
  text-wrap: balance;
}

.homepage-intro {
  font-family: var(--post-font-family);
  font-size: 1.125rem;
  line-height: 1.6;

  & strong {
    font-family: var(--heading-font-family);
  }
}

.homepage-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: solid 2px var(--text-color);
  border-left: solid 2px var(--text-color);
  border-radius: var(--border-radius);
  box-shadow: 4px 4px 0 var(--text-color);
  margin: 2rem 0;

  @media screen and (max-width: 1000px) {
    grid-template-columns: 1fr;
  }
}

.homepage-service {
  border-right: solid 2px var(--text-color);
  border-bottom: solid 2px var(--text-color);
  padding: 1.25rem;

  & strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  & p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-color-muted);
  }

  &:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  @media screen and (max-width: 1000px) {
    &:last-child:nth-child(odd) {
      grid-column: auto;
    }
  }
}

.homepage-work {
  line-height: 1.8;

  & li {
    margin-bottom: 0.5rem;
  }
}

/* Pagination */
.pagination-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--heading-font-family);
  margin: 2rem 0;

  & > :first-child {
    justify-self: start;
  }

  & > :last-child {
    justify-self: end;
  }

  & a {
    font-weight: 600;
    text-decoration: none;
  }

  & svg {
    font-size: 1.25rem;
    vertical-align: -0.2em;
  }

  & .newer svg {
    margin-inline-end: 0.25rem;
  }

  & .older svg {
    margin-inline-start: 0.25rem;
  }
}

.pagination-nav-status {
  font-size: 0.7rem;
  color: var(--text-color-muted);
}

/* Announcements */
#announcement {
  display: block;
  color: black;
  background-color: hsl(25, 95%, 72%);
  background-image:
    radial-gradient(at 71% 0%, hsl(25, 95%, 72%) 0px, transparent 55%),
    radial-gradient(at 94% 41%, hsl(355, 97%, 62%) 0px, transparent 55%),
    radial-gradient(at 18% 54%, hsl(55, 100%, 84%) 0px, transparent 55%);
  text-align: center;
  padding: 2rem;
  margin-block: 2rem;
  border-radius: 1rem;
  text-decoration: none;
  text-wrap: balance;
  transition: 200ms background-color ease;
}

/* Add padding to body so content isn't hidden behind the banner */
body:has(#announcement) {
  padding-top: 50px;
}

/* Footer */
.site-footer {
  max-width: var(--body-width);
  margin: 0 auto;
  padding: 3rem var(--content-padding) 2rem;
  text-align: center;
  color: var(--text-color);
  font-size: 0.7rem;
  font-family: var(--heading-font-family);

  & svg {
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.125rem;
  }

  & p {
    margin: 0.25rem 0;
    line-height: 1.6;
  }
}

/* Labs page */
.labs-page main {
  max-width: 48rem;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 3rem 0;
  padding: 2rem 0;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-image: repeating-linear-gradient(
      to bottom,
      var(--text-color) 0,
      var(--text-color) 16px,
      transparent 16px,
      transparent 28px
    );
  }

  @media screen and (max-width: 1000px) {
    padding: 1rem 0;

    &::before {
      background-image: repeating-linear-gradient(to bottom, var(--text-color) 0, var(--text-color) 100%);
    }
  }
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  width: 44%;
  padding: 1.75rem;
  margin-bottom: -1rem;
  font-family: var(--body-font-family);

  &:first-child {
    margin-top: 0;
  }

  &:last-child {
    margin-bottom: 0;
  }

  &:nth-child(odd) {
    margin-right: auto;
  }

  &:nth-child(even) {
    margin-left: auto;
  }

  & h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
  }

  & p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-color-muted);
  }

  @media screen and (max-width: 1000px) {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    background-color: var(--body-background-color);

    &:nth-child(odd),
    &:nth-child(even) {
      margin-left: 0;
      margin-right: 0;
    }
  }
}

.timeline-item-icon {
  grid-row: 1 / -1;
  align-self: start;
  width: 48px;
  height: 48px;
  color: currentColor;
  border-radius: var(--border-radius);
  object-fit: contain;
  margin: 0;

  @media screen and (max-width: 1000px) {
    grid-row: auto;
  }
}

.timeline-item-content {
  min-width: 0;
}

@media screen and (max-width: 1000px) {
  .labs-page main {
    max-width: 40rem;
  }
}
