:root {
  --foreground-primary: #181818;
  --foreground-secondary: #737373;
  --background-primary: #ffffff;
  --background-secondary: #eeeeee;
  --border: #e5e5e5;
  --shadow: #d4d4d4;
  --highlight-primary-rgb: 76 174 31;
  --highlight-primary: rgb(var(--highlight-primary-rgb) / 1);
  --highlight-secondary-rgb: 192, 237, 171;
  --highlight-secondary: rgb(var(--highlight-secondary-rgb) / 1);
  --error-rgb: 212 5 5;
  --error: rgb(var(--error-rgb) / 1);
}

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

html {
  font-size: 14px;
  font-weight: 400;
  font-family: "IBM Plex Mono", monospace;
  color: var(--foreground-primary);
  background-color: var(--background-primary);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-feature-settings: "palt";
  font-variation-settings: "normal";
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0 auto;
  padding: 0;
  max-width: 65ch;
  padding: 2.5rem 1rem;
}

a {
  color: var(--foreground-primary);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.header {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
}

.header > p {
  margin: 0;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb {
  padding: 1rem 0;
}

.breadcrumb ol {
  list-style: none;
  display: inline;
  margin: 0;
  padding: 0;
}

.breadcrumb ol li {
  display: inline;
}

.breadcrumb ol li + li::before {
  content: "›";
  padding: 0 0.25rem;
}

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

.visually-hidden.focusable:focus-visible {
  width: auto;
  height: auto;
  overflow: fixed;
  top: 0;
  left: 0;
  clip: auto;
  white-space: inherit;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--background-primary);
  z-index: 99;
}

.posts {
  position: relative;
}

.posts h2 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.posts__list {
  border-top: 2px solid var(--border);
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding: 0;
  list-style: none;
}

.posts__item {
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.posts__content {
  display: flex;
  gap: 1.5rem;
}

.posts__item + .posts__item {
  border-top: 1px dashed var(--border);
}

.posts__list a {
  text-decoration: underline;
}

.posts time {
  color: var(--foreground-secondary);
  white-space: nowrap;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field input[type="password"],
.field textarea {
  appearance: none;
  font-family: "IBM Plex Mono", monospace;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 1px rgba(0 0 0 / 0.075);
  transition: box-shadow 150ms ease;
  outline: none;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="url"]:focus,
.field input[type="tel"]:focus,
.field input[type="number"]:focus,
.field input[type="date"]:focus,
.field input[type="password"]:focus,
.field textarea:focus {
  box-shadow: 0px 1px 8px rgba(0 0 0 / 0.1) inset;
}

.field__error {
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.button {
  display: inline-block;
  appearance: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: var(--highlight-primary);
  color: var(--background-primary);
  border-width: 1px;
  border-style: solid;
  border-color: var(--foreground-secondary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: inset 0 1px 8px rgba(255 255 255 / 0.5);
  transition: box-shadow 150ms ease;
}

.button:active {
  box-shadow: 0px 1px 8px rgba(255 255 255 / 0.2) inset;
}

main > *:first-child {
  margin-top: 0;
}

article {
  width: 100%;
}

pre {
  background-color: var(--background-secondary);
  color: var(--foreground-primary);
  border-radius: 0.5rem;
  padding: 1rem;
}

code {
  display: inline-block;
  line-height: 1.5;
  padding: 0.25rem 0.5rem;
}

pre > code {
  padding: 0;
}

.dates {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground-secondary);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.footer-nav {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav.center {
  justify-content: center;
}

.codeblock {
  overflow: auto;
}
