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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: #f5f5f5;
  color: #111;
  display: flex;
  min-height: 100vh;
  padding: 1rem;
}

main {
  width: 100%;
  max-width: 700px;
  margin: 2rem auto;
}

header {
  margin-bottom: 2rem;
}

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

.nav-link {
  color: #555;
  text-decoration: none;
}

.article-list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}

.article-list li {
  display: flex;
  margin-bottom: 0.5rem;
}

.article-list .nav-link {
  font-size: 1.25rem;
}

.nav-link:hover {
  text-decoration: underline;
}

h1 {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #888;
}

p {
  font-size: 1rem;
  color: #555;
}

.layoff-page p,
.layoff-page blockquote {
  line-height: 1.3;
}

.layoff-page p {
  color: #222;
}

blockquote {
  border-left: 4px solid #ccc;
  margin: 1.5rem 0 1rem;
  padding: 0.5rem 1rem;
  font-style: italic;
  color: #555;
}

.layoff-page > .nav-link {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.post-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.feed-link {
  line-height: 0;
  flex-shrink: 0;
}

.feed-link:hover {
  opacity: 0.7;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
}

.post-nav .next {
  margin-left: auto;
}
