[hidden] { display: none !important; }

.content {
  flex: 1;
  width: 100%;
}

.posts-view {
  width: min(100% - 72px, 1040px);
  margin: 0 auto;
  padding: clamp(60px, 9vh, 105px) 0 95px;
}

.eyebrow,
.list-meta,
.post-list time,
.post-list small,
.article-meta,
.back-link {
  font-family: 'Courier New', Courier, monospace;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .08em;
}

.page-heading h1 {
  margin: 0;
  font: 400 clamp(57px, 5vw, 82px)/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -.055em;
}

.period { color: #c78e89; }

.page-description {
  max-width: 520px;
  margin: 21px 0 0;
  font: 15px/1.65 'Courier New', Courier, monospace;
}

.list-meta {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(52px, 7vh, 84px);
  padding: 0 6px 12px;
  font-size: 11px;
  letter-spacing: .08em;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.post-list li { border-bottom: 1px solid var(--ink); }

.post-list a {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 24px;
  min-height: 94px;
  padding: 14px 6px;
  text-decoration: none;
  transition: background .2s ease, padding .2s ease;
}

.post-list a:hover,
.post-list a:focus-visible {
  background: var(--hover);
  padding-left: 17px;
}

.post-list time { font-size: 12px; white-space: nowrap; }
.post-list-copy { display: block; min-width: 0; }
.post-type {
  display: inline-block; padding: 4px 7px; border: 1px solid var(--ink);
  color: var(--ink); font: 10px/1 'Courier New', Courier, monospace;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.post-type--devlog { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.post-list-copy .post-type { margin-bottom: 10px; }
.post-list strong { display: block; font: 400 clamp(20px, 1.8vw, 27px)/1.2 Georgia, 'Times New Roman', serif; letter-spacing: -.025em; }
.post-list small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.row-arrow { justify-self: end; width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }

.article-shell {
  width: min(100% - 72px, 850px);
  margin: 0 auto;
  padding: 72px 0 115px;
}

.back-link {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
  font-size: 13px;
}

.back-link:hover { color: var(--accent); border-color: var(--accent); }

.article-header { margin: 66px 0 50px; }
.article-header h1 { max-width: 780px; margin: 0; font: 400 clamp(45px, 4.6vw, 72px)/1.06 Georgia, 'Times New Roman', serif; letter-spacing: -.048em; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); font-size: 12px; letter-spacing: .04em; }

.post-body {
  max-width: 740px;
  font: 17px/1.75 Georgia, 'Times New Roman', serif;
}

.post-body p { margin: 0 0 1.45em; }
.post-body p:first-child {
  margin-bottom: 2em; padding: 18px 22px;
  border-left: 3px solid var(--accent); background: var(--hover);
  font-size: 17px; line-height: 1.7;
}
.post-body h2 { margin: 2.25em 0 .55em; font: 400 clamp(28px, 2.5vw, 36px)/1.2 Georgia, 'Times New Roman', serif; letter-spacing: -.025em; }
.post-body ul, .post-body ol { margin: 0 0 1.5em; padding-left: 1.6em; }
.post-body li { margin-bottom: .45em; }
.post-body table { display: block; width: 100%; margin: 1.8em 0; overflow-x: auto; border-collapse: collapse; font: 13px/1.5 'Courier New', Courier, monospace; }
.post-body th, .post-body td { padding: 10px 12px; border: 1px solid var(--code-border); text-align: left; white-space: nowrap; }
.post-body th { background: var(--hover); }
.post-body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { color: var(--accent); }
.post-body :not(pre) > code {
  font: .86em/1.5 'Courier New', Courier, monospace;
  color: var(--code-ink); background: var(--code-bg);
  padding: .12em .34em; border: 1px solid var(--code-border); border-radius: 3px;
}
.post-body pre {
  position: relative; overflow-x: auto; margin: 2em 0 2.2em; padding: 35px 28px 25px;
  border: 1px solid var(--code-border); border-left: 4px solid var(--accent);
  background: var(--code-bg); color: var(--code-ink); tab-size: 4;
}
.post-body pre::before {
  content: attr(data-language); position: absolute; top: 11px; left: 28px;
  font: 10px/1 'Courier New', Courier, monospace; letter-spacing: .12em; color: var(--muted);
}
.post-body pre code { display: block; width: max-content; min-width: 100%; padding: 0; background: transparent; font: 14px/1.65 'Courier New', Courier, monospace; }
.article-bottom-link { margin-top: 70px; }

@media (max-width: 700px) {
  .posts-view { width: min(100% - 44px, 1040px); padding: 65px 0 80px; }
  .list-meta { margin-top: 57px; }
  .post-list a { grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 18px; padding: 20px 5px; }
  .post-list time { grid-column: 1; font-size: 11px; }
  .post-list-copy { grid-column: 1; }
  .row-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .post-list strong { font-size: 23px; }
  .article-shell { width: min(100% - 44px, 850px); padding: 48px 0 80px; }
  .article-header { margin: 48px 0 35px; }
  .article-header h1 { font-size: clamp(38px, 9vw, 55px); }
  .article-meta { flex-wrap: wrap; gap: 7px 20px; }
  .post-body { font-size: 16px; }
  .post-body p:first-child { padding: 15px 17px; font-size: 16px; }
  .post-body pre { margin-inline: -8px; padding: 35px 15px 18px; }
  .post-body pre::before { left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .post-list a { transition: none; }
}
