@font-face {
  font-family: 'Source Sans';
  font-style: normal;
  font-weight: 400 900;
  font-display: block;
  src: url('./fonts/SourceSans3VF-Roman.ttf.woff2')
    format('truetype-variations');
}

:root {
  --bg-color: #fffaf0;
}

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

body {
  font-size: 15px;
  font-weight: 400;
  line-height: 25.5px;
  color: rgb(54, 50, 43);
  background-color: var(--bg-color);
  padding: 0 12px;
  font-family: Source Sans, sans-serif;
}

a {
  color: #36322b;
}

.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
  width: 100%;
}

.header {
  display: flex;
  align-items: center;
  text-align: left;
  justify-content: space-between;
  margin-top: 48px;
  margin-bottom: 64px;
  margin-left: auto;
  margin-right: auto;
  max-width: 728px;
}

.logo {
  display: block;
  width: 40px;
  height: 40px;
}

.logo-img {
  width: 100%;
  border-radius: 50%;
}
.header > .right {
  display: flex;
  align-items: center;
}

.header .neumorphism {
  margin: 0 12px;
}

.color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #36322b;
  background-color: #fffaf0;
  cursor: pointer;
}

.post-list {
  max-width: 728px;
  margin: 0 auto;
  list-style: none;
}

.post-list-item {
  text-decoration: none;
  overflow: hidden;
}

.post-list-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  padding: 32px 0;
}

.post-cover {
  width: 160px;
  aspect-ratio: 4 / 3;
  margin-right: 16px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  object-fit: cover;
  background-color: #fafafa;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 3%);
}

.post-title {
  font-size: 1.2rem;
  line-height: 32px;
}

.post-excerpt {
  display: block;
}

.post-excerpt p {
  display: -webkit-box;
  font-size: 15px;
  color: #88847b;
  line-clamp: 2;
  margin-top: 4px;
  min-height: 25px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media screen and (max-width: 720px) {
  .post-title {
    font-size: 15px;
    line-height: 20px;
  }
  .post-excerpt p {
    font-size: 12px;
  }
  .post-date {
    font-size: 10px;
  }
  .post-cover {
    width: 100px;
    height: 80px;
  }
}

.post-date {
  font-size: 13px;
  color: #88847b;
  margin-top: 4px;
}

.post-tags {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.post-tag {
  font-size: 12px;
  line-height: 20px;
  color: #88847b;
  margin: 0 4px;
  padding: 0 4px;
  background-color: wheat;
  border-radius: 4px;
}

.post-tag:first-child {
  margin-left: 0;
}

/* footer */

.footer {
  padding-bottom: 80px;
  padding-top: 100px;
  margin: 0 auto;
  max-width: 728px;
  opacity: 0.8;
}

.sns-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 20px;
}

.sns-list-item {
  margin-right: 1rem;
}

.sns-list-link {
  color: #36322b;
  text-decoration: none;
}

@media screen and (max-width: 720px) {
  .footer {
    font-size: 12px;
  }
}

.rss-link {
  display: block;
  width: 21px;
  height: 21px;
  transform: translateY(-1px);
}

/* article */

.article > * {
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.article-title {
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 54px;
}

.article-meta {
  display: flex;
  align-items: center;
  color: #88847b;
  font-size: 13px;
  margin-bottom: 1.5em;
}

.article-meta-item {
  margin-left: 12px;
}

.article-meta-item:first-child {
  margin-left: 0;
}

.article p {
  margin-top: 1.5em;
}

.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
  margin-top: 30px;
  margin-bottom: 30px;
}

.line {
  margin-right: 10px;
}

.article img {
  display: block;
  max-width: 100%;
  margin: 20px 0;
}

.article-cover {
  width: 100%;
  aspect-ratio: 4/ 3;
  max-width: 728px;
  margin-bottom: 80px;
  text-align: center;
  object-fit: cover;
}

.article .highlight {
  margin: 20px 0;
}

.article ul,
.article ol {
  padding-left: 20px;
  margin: 20px 0;
}

.license-link {
  margin-left: 20px;
}

.license-link > .license-img {
  margin: 0;
}

.coffee-link {
  display: block;
  max-width: 728px;
  margin: 20px auto;
  margin-bottom: 100px;
}

.coffee-link img {
  margin: 0;
}

.article-more {
  display: flex;
  justify-content: space-between;
  opacity: 0.8;
}

/* Other */

.hljs {
  border: 1px solid #ddd;
}
