:root {
  color-scheme: light;
  --text: #111;
  --muted: #666;
  --line: #bdbdbd;
  --link: #c00;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.72;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(760px, calc(100% - 36px));
  margin: 42px auto 80px;
  background: var(--paper);
}

.site-header {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.site-title {
  display: inline-block;
  color: #d00;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 18px;
  font-size: 14px;
}

.site-nav a::before {
  content: "■";
  margin-right: 3px;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

main {
  padding-top: 34px;
}

.empty-page {
  min-height: 42vh;
}

.blog-feed h1,
.post h1 {
  margin: 0 0 22px;
  color: #d00;
  font-size: 16px;
  font-weight: 400;
}

time {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.post-date {
  color: var(--muted);
}

.post header {
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}

.blog-feed .post {
  margin: 0 0 46px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.blog-feed .post:last-of-type {
  margin-bottom: 30px;
}

.post p,
.post ul {
  margin: 0 0 1.05em;
}

.post img {
  display: block;
  max-width: 40%;
  height: auto;
  margin: 24px 0;
}

.post iframe {
  max-width: 100%;
}

.twitter-tweet {
  margin: 20px 0 !important;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 34px 0 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.pagination:last-child {
  margin: 12px 0 0;
}

.pagination [aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.drawing-tabs {
  display: flex;
  gap: 18px;
  margin: 0 0 30px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.drawing-tabs [aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.drawings h1,
.drawings h2,
.drawing-detail h1 {
  margin: 0 0 18px;
  color: #d00;
  font-size: 16px;
  font-weight: 400;
}

.drawing-section {
  margin-bottom: 44px;
}

.drawing-year {
  margin: 0 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.drawing-year h2 {
  flex: 0 0 100%;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.drawing-item {
  margin: 0;
}

.drawing-item img {
  display: block;
  max-width: 220px;
  max-height: 280px;
  width: auto;
  height: auto;
}

.drawing-link {
  display: inline-block;
}

.drawing-link span {
  color: var(--muted);
}

.drawing-detail img {
  display: block;
  max-width: 100%;
  height: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.93em;
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 28px, 760px);
    margin-top: 28px;
  }

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

  .site-nav {
    gap: 20px;
  }

  .post img {
    max-width: 100%;
  }

  .drawing-item img {
    max-width: 100%;
    max-height: none;
  }
}
