@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Oswald:wght@500&family=Source+Code+Pro:wght@500&family=Work+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --color-bg: #efebe5;
  --color-text: #675353;
  --color-accent: #f75c4d;
  --color-surface: #ffffff;
  --font-body: "Work Sans", "Noto Sans JP", sans-serif;
  --font-code: "Source Code Pro", monospace;
  --font-heading: "Oswald", "Work Sans", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.home,
.index,
.post {
  margin: 0 auto;
  max-width: 920px;
  min-height: calc(100vh - 108px);
  padding: 72px 24px 56px;
}

.prompt {
  color: #ffffff;
  font-family: var(--font-code);
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 20px;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 32px;
}

h2 {
  border-bottom: 1px solid currentColor;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 32px;
  padding-bottom: 16px;
}

.text-link {
  border-bottom: 2px solid var(--color-accent);
  font-weight: 700;
}

.site-header {
  margin-bottom: 72px;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 28px;
}

.post-list-item::before {
  background: var(--color-accent);
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 15px;
  width: 16px;
}

.post-list-item a {
  display: grid;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.post-list-item a:hover {
  opacity: 0.62;
}

.post-date {
  font-family: var(--font-code);
  font-size: 13px;
}

.post-title {
  font-size: 20px;
  font-weight: 700;
}

.post-description {
  font-size: 14px;
}

.breadcrumb {
  font-family: var(--font-code);
  font-size: 14px;
  margin: 0 0 40px;
}

.post article {
  max-width: 760px;
}

.post-header {
  margin-bottom: 56px;
}

.post-header time {
  display: block;
  font-family: var(--font-code);
  font-size: 14px;
  margin-bottom: 16px;
}

.post-header h1 {
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.tag-list li {
  background: #ffffff;
  border-radius: 20px;
  font-size: 13px;
  padding: 4px 12px;
}

.post-body h2,
.post-body h3 {
  color: var(--color-text);
  font-family: var(--font-body);
  letter-spacing: 0;
  margin-top: 48px;
}

.post-body h2 {
  border-bottom-color: rgba(103, 83, 83, 0.35);
  font-size: 26px;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body pre {
  margin: 0 0 24px;
}

.post-body code {
  font-family: var(--font-code);
  font-size: 0.92em;
}

.post-body :not(pre) > code {
  background: rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.post-body pre {
  background: #ffffff;
  border-left: 4px solid var(--color-accent);
  overflow-x: auto;
  padding: 18px 20px;
}

.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 32px 24px;
  text-align: center;
}

@media (max-width: 720px) {
  .home,
  .index,
  .post {
    padding: 48px 20px;
  }

  .prompt {
    font-size: 28px;
    text-align: center;
  }

  h1 {
    font-size: 34px;
    text-align: center;
  }

  .site-header {
    margin-bottom: 48px;
  }
}

