* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: #0066ff;
  color: #000000;
  font-family: "DM Mono", monospace;
  line-height: 1.7;
}
.site-name a,
h1 {
   font-family: "DM Mono", monospace;
  font-weight: 500;
  font-style: normal;
}

.site-name a {
  text-decoration: none;
}

.site-name a:hover {
  text-decoration: underline;
}
.site {
  width: calc(100% - 2rem);
  max-width: 760px;
  margin: 1.5rem auto;
  padding: 1.5rem 1.25rem 2.5rem;
  background: #fcfefb;
  border: 2px solid #000000;
  border-radius: 18px;
}

.site-header,
.site-footer {
  padding: 0.25rem 0 1rem;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid #000000;
  padding-bottom: 0.8rem;
}

.site-name {
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.nav {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

main {
  padding-top: 1.5rem;
}

.page,
.intro,
.home-block,
.article-page {
  max-width: 42rem;
}

.home-block {
  margin-top: 2.25rem;
  padding-top: 1rem;
  border-top: 1px solid #000000;
}

.eyebrow,
.meta {
  color: #000000;
  font-size: 0.92rem;
}

.eyebrow {
  text-transform: lowercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

h1,
.h1-like {
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 0 0 1rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.8rem;
  text-transform: none;
  letter-spacing: 0.03em;
}

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 1rem;
}

.article-list {
  padding-left: 1.25rem;
}

.article-list li {
  margin-bottom: 0.85rem;
}

.lede {
  font-size: 1.08rem;
  max-width: 38rem;
}

a {
  color: #000000;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

hr {
  border: 0;
  border-top: 1px solid #000000;
  margin: 2rem 0;
}

code {
  font-family: "DM Mono", monospace;
  font-size: 0.95em;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid #000000;
  padding-top: 1rem;
  color: #000000;
}

/* Articles page layout */
.articles-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 220px;
  gap: 1rem;
  align-items: start;
}

.articles-panel,
.tags-panel {
  background: #ffffff;
  border: 0px solid #000000;
  border-radius: 14px;
  padding: 1rem;
}

.tags-panel h2 {
  margin-top: 0;
}

.tags-panel {
  position: sticky;
  top: 1rem;
}

.tag-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-button {
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-family: "DM Mono", monospace;
  font-size: 0.9rem;
  cursor: pointer;
}

.tag-button:hover {
  background: #eeeeee;
}

.active-tag {
  background: #000000;
  color: #ffffff;
}

.article-item {
  margin-bottom: 1.5rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.tag-pill {
  display: inline-block;
  border: 1px solid #000000;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .site {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
    padding: 1rem 0.9rem 1.75rem;
    border-radius: 14px;
  }

  .masthead {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 0.85rem;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 2.2rem;
  }

  .articles-layout {
    grid-template-columns: 1fr;
  }

  .tags-panel {
    position: static;
  }
}