* {
  box-sizing: border-box;
}

html {
  background: #050505;
}

body {
  margin: 0;
  min-height: 100vh;

  background: #050505;
  color: #e8e8e8;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 14px;
  line-height: 1.4;
}


/* --------------------------------
   Header
-------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 80px;
  padding: 0 32px;

  border-bottom: 1px solid #202020;
}

.site-title {
  color: #f2f2f2;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;

  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a,
.nav-plus {
  color: #888;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 13px;
  letter-spacing: 0.08em;

  text-decoration: none;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #fff;
}

.nav-plus {
  color: #aaa;

  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}


/* --------------------------------
   Main
-------------------------------- */

.site-main {
  width: min(1000px, calc(100% - 64px));
  margin: 0 auto;

  padding: 120px 0 80px;
}


/* --------------------------------
   Posts
-------------------------------- */

.posts {
  width: 100%;
}

.post-row {
  display: grid;

  grid-template-columns:
    54px
    minmax(240px, 0.8fr)
    minmax(300px, 1.5fr)
    110px;

  align-items: center;

  min-height: 58px;

  border-top: 1px solid #252525;

  color: inherit;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.post-row:last-child {
  border-bottom: 1px solid #252525;
}

.post-row:hover {
  background: #101010;
}


/* --------------------------------
   Columns
-------------------------------- */

.post-number,
.post-title,
.post-description,
.post-date {
  padding: 18px 14px;
}

.post-number,
.post-date {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 12px;
}

.post-number {
  color: #555;
}

.post-title {
  color: #e8e8e8;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.post-description {
  overflow: hidden;

  color: #777;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 12px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.post-date {
  color: #777;

  text-align: right;
  white-space: nowrap;
}


/* --------------------------------
   Article
-------------------------------- */

.article {
  width: min(720px, calc(100% - 80px));

  margin: 0 auto;

  padding: 100px 0 120px;
}

.article-header {
  padding-bottom: 40px;

  border-bottom: 1px solid #252525;
}

.article-meta {
  margin-bottom: 24px;

  color: #666;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 11px;
}

.article-header h1 {
  margin: 0;

  color: #e8e8e8;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: clamp(32px, 5vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.article-description {
  max-width: 600px;

  margin: 20px 0 0;

  color: #777;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 13px;
  line-height: 1.6;
}

.article-content {
  padding-top: 42px;

  color: #b8b8b8;

  font-size: 16px;
  line-height: 1.8;
}

.article-content p {
  margin: 0 0 1.5em;
}

.article-content h2,
.article-content h3 {
  margin: 2em 0 1em;

  color: #e8e8e8;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-weight: 500;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 22px;
}

.article-content h3 {
  font-size: 18px;
}

.article-content a {
  color: #e8e8e8;

  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5em;

  padding-left: 1.5em;
}

.article-content blockquote {
  margin: 2em 0;

  padding-left: 20px;

  border-left: 1px solid #555;

  color: #888;
}

.article-content code {
  padding: 2px 5px;

  background: #111;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 0.9em;
}

.article-content pre {
  overflow-x: auto;

  margin: 2em 0;
  padding: 20px;

  background: #0d0d0d;

  border: 1px solid #202020;
}

.article-content pre code {
  padding: 0;

  background: none;
}


/* --------------------------------
   Footer
-------------------------------- */

.site-footer {
  display: none;
}


/* --------------------------------
   Mobile
-------------------------------- */

@media (max-width: 700px) {

  /* Header */

  .site-header {
    height: 64px;

    padding: 0 20px;
  }

  .site-title {
    font-size: 13px;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .nav-plus {
    font-size: 20px;
  }


  /* Main */

  .site-main {
    width: calc(100% - 40px);

    padding: 70px 0 50px;
  }


  /* Posts */

  .post-row {
    grid-template-columns:
      32px
      minmax(0, 1fr)
      82px;

    min-height: 54px;
  }

  .post-description {
    display: none;
  }

  .post-number,
  .post-title,
  .post-date {
    padding: 16px 6px;
  }

  .post-number {
    font-size: 10px;
  }

  .post-title {
    overflow: hidden;

    font-size: 12px;

    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .post-date {
    font-size: 10px;
  }


  /* Article */

  .article {
    width: auto;

    margin: 0;

    padding: 70px 20px 80px;
  }

  .article-header {
    padding-bottom: 32px;
  }

  .article-meta {
    margin-bottom: 18px;

    font-size: 10px;
  }

  .article-header h1 {
    font-size: 28px;
  }

  .article-description {
    margin-top: 18px;

    font-size: 11px;
  }

  .article-content {
    padding-top: 32px;

    font-size: 15px;
    line-height: 1.7;
  }
}