@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans+Condensed:wght@400;700&family=IBM+Plex+Serif:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --brand-hue: 280;
}

body {
  font-family: "IBM Plex Serif", serif;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  max-width: 1600px;
  margin: 0 auto;
  color: #111;
  background-color: hsl(var(--brand-hue), 20%, 98%);
}

main {
  flex: 3;
  font-size: 14pt;
  padding: clamp(1rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem);
  min-width: calc(320px - 4rem);
  max-width: calc(1200px - 4rem);
}

aside {
  flex: 1;
  padding: clamp(1rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem);
  font-size: 12pt;
  line-height: 1.4;
  color: #444;
  min-width: calc(320px - 4rem);
  max-width: calc(500px - 4rem);
  position: sticky;
  top: 0;
  height: calc(100vh - 128px);
}

@media (width < 575px) {
  aside {
    height: fit-content;
    position: static;
  }
  body:not(.home) {
    aside {
      order: 2;
    }
    main {
      order: 1;
    }
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
}
h1 {
  margin-block: 0 0.5em;
}
article h1 {
  font-size: 2em;
}
h2, h3, h4, h5, h6 {
  margin-block: 1em 0.5em;
}
body.home h2 {
  margin-bottom: 0;
}
p {
  margin-block: 0 1rem;
  text-wrap: pretty;
}
div.lead {
  font-size: 16pt;
}

a {
  color: hsl(var(--brand-hue), 20%, 35%);
  text-underline-offset: 2px;
  text-decoration-color: hsl(var(--brand-hue), 20%, 35%);
  text-decoration-thickness: 1px;
}
a:hover {
  color: hsl(var(--brand-hue), 20%, 60%);
  text-decoration-color: hsl(var(--brand-hue), 20%, 60%);
}
aside a {
  text-decoration: none;
}

aside h2 {
  font-size: 36pt;
  margin-block: 0 0.5rem;
  line-height: 1;
}
aside .site-description {
  font-family: "IBM Plex Serif", serif;
  text-transform: uppercase;
  font-size: 14pt;
  letter-spacing: 0.03ch;
  line-height: 1;
  margin-top: 8px;
}

aside nav {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  margin-block: 1rem;
  font-size: 18pt;
}
aside nav a {
  text-wrap: nowrap;
}

.svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  fill: hsl(var(--brand-hue), 20%, 50%);
  padding-right: 5px;
  vertical-align: text-top;
}

.email {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  margin: 0;
}

ul {
  margin-top: 0;
}

.article-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.article-list li {
  border-top: 1px solid hsl(var(--brand-hue), 15%, 82%);
  padding-block: 1.25rem;
}
.article-list h2 {
  margin: 0;
}
.byline {
  color: #555;
  font-style: italic;
  margin: 0.3rem 0 0;
}
article > .byline {
  margin-bottom: 2rem;
}

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9em;
  background-color: hsl(var(--brand-hue), 20%, 93%);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

article {
  max-width: 48em;
}

article table {
  width: 100%;
  margin-block: 0 2rem;
}
