@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --white-secondary: rgb(255 255 255 / 72%);
  --white-rule: rgb(255 255 255 / 26%);
  --text-small: 14px;
  --text-body: 18px;
  --text-heading: 24px;
  --text-title: 40px;
  --measure: 68ch;
  --shell: 880px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: var(--white-secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--black);
  font-size: var(--text-small);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
  border-bottom: 1px solid var(--white-rule);
}

.wordmark {
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: var(--text-small);
}

main {
  flex: 1;
  max-width: var(--measure);
  padding-block: 88px 112px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 18ch;
  margin-bottom: 24px;
  font-size: var(--text-title);
  font-weight: 600;
  line-height: 1.12;
}

h2 {
  margin-bottom: 12px;
  font-size: var(--text-heading);
  font-weight: 500;
  line-height: 1.3;
}

h3 {
  margin-bottom: 8px;
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.4;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry {
  padding-block: 28px 32px;
  border-top: 1px solid var(--white-rule);
}

.entry:first-child {
  border-top-color: var(--white);
}

.entry h2 a {
  text-decoration: none;
}

.entry h2 a:hover,
.entry h2 a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.entry-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 12px;
  color: var(--white-secondary);
  font-size: var(--text-small);
  line-height: 1.45;
}

.article-header {
  margin-bottom: 64px;
}

.article-header h1 {
  max-width: 20ch;
}

.article-body h2 {
  margin-top: 56px;
}

.article-body h3 {
  margin-top: 40px;
}

.article-body p {
  margin-bottom: 1.5em;
}

.article-body blockquote {
  margin: 40px 0;
  padding-left: 24px;
  border-left: 1px solid var(--white);
  color: var(--white-secondary);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 48px;
  border-top: 1px solid var(--white-rule);
  color: var(--white-secondary);
  font-size: var(--text-small);
}

@media (min-width: 720px) {
  .shell {
    width: min(calc(100% - 80px), var(--shell));
  }
}

@media (max-width: 480px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding-block: 64px 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
