/* =========================
   Base
========================= */

:root {
  --text-main: #1a1a1a;
  --text-sub: #6b6b6b;
  --border-light: #e6e6e6;
  --bg: #ffffff;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family:
    Georgia,
    "Times New Roman",
    "Noto Serif JP",
    serif;
  line-height: 1.8;
}

/* =========================
   Layout
========================= */

main {
  max-width: 680px;
  margin: 4rem auto 6rem;
  padding: 0 1.25rem;
}

header {
    padding: 0px 16px;
}

header {
    border-bottom: 1px solid;
    border-color: var(--border-light);
}

/* =========================
   Links
========================= */

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

a:hover {
  text-decoration: underline;
}

/* =========================
   Article (common)
========================= */

article {
  margin-bottom: 2rem;
  margin-top: 2rem;
  border-bottom: 1px solid var(--border-light);
}

article:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

article h1,
article h2 {
  line-height: 1.35;
  letter-spacing: -0.01em;
}

article h1 {
  font-size: 2.25rem;
  margin: 0 0 1rem;
}

article h2 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

/* =========================
   Meta (date etc)
========================= */

time {
  display: block;
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}

/* =========================
   Top page (list)
========================= */

article > p {
  margin: 0.75rem 0 0;
  color: var(--text-sub);
  font-size: 1rem;
}

/* =========================
   Post content
========================= */

article p {
  margin: 1.6rem 0;
}

article ul,
article ol {
  padding-left: 1.5rem;
  margin: 1.6rem 0;
}

article li {
  margin: 0.5rem 0;
}

article blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--border-light);
  color: var(--text-sub);
}

article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #f6f6f6;
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

article pre {
  background: #f6f6f6;
  padding: 1.25rem;
  overflow-x: auto;
  border-radius: 6px;
  margin: 2rem 0;
}

article pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
}

.post a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.post a:hover {
  opacity: 0.7;
}

.post-footer {
  margin-top: 4rem;
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #666;
}

.post-footer a {
  color: inherit;
  text-decoration: underline;
}

/* =========================
   Images
========================= */

article img {
  max-width: 100%;
  display: block;
  margin: 2.5rem auto;
  border-radius: 6px;
}

/* =========================
   Horizontal rule
========================= */

article hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 3rem 0;
}

/* =========================
   Responsive
========================= */

@media (max-width: 600px) {
  main {
    margin-top: 2.5rem;
  }

  article h1 {
    font-size: 1.9rem;
  }
}