@font-face {
  font-family: "et-bembo";
  src: url("/assets/fonts/et-bembo-roman-old-style.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "et-bembo";
  src: url("/assets/fonts/et-bembo-italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "et-bembo";
  src: url("/assets/fonts/et-bembo-bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "elzevier";
  src: url("/assets/fonts/elzevier-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.dropcap {
  font-family: "elzevier", serif;
  float: left;
  font-size: 4em;
  line-height: 0.8;
  padding: 0 0.1em 0.1em 0;
}

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

/* Base */
body {
  font-family: "et-bembo", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 21px;
  line-height: 1.7;
  color: #2c2c2c;
  background: #fffff8;
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: "et-bembo", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 400;
  color: #111;
}

h1 {
  font-size: 2.6rem;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

h2 {
  font-style: italic;
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1.4rem;
  line-height: 1;
}

h3 {
  font-style: italic;
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(#fffff8, #fffff8), linear-gradient(#fffff8, #fffff8), linear-gradient(#333, #333);
  background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: 0% 93%, 100% 93%, 0% 93%;
  text-shadow: 0.03em 0 #fffff8, -0.03em 0 #fffff8, 0 0.03em #fffff8, 0 -0.03em #fffff8, 0.06em 0 #fffff8, -0.06em 0 #fffff8, 0.09em 0 #fffff8, -0.09em 0 #fffff8, 0.12em 0 #fffff8, -0.12em 0 #fffff8, 0.15em 0 #fffff8, -0.15em 0 #fffff8;
}

a:hover {
  background: linear-gradient(#fffff8, #fffff8), linear-gradient(#fffff8, #fffff8), linear-gradient(#111, #111);
  background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: 0% 93%, 100% 93%, 0% 93%;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e4e0;
}

.site-title {
  font-family: "et-bembo", Palatino, Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  text-decoration: none;
  background: none;
  text-shadow: none;
  color: #1a1a1a;
}

.site-header nav a {
  font-size: 15px;
  color: #666;
  background: none;
  text-shadow: none;
}

/* Intro */
.intro {
  margin-bottom: 48px;
}

.intro h1 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.intro p {
  line-height: 1.7;
  color: #3a3a3a;
}

/* Post list (home) */
.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 12px;
}

.post-date {
  display: inline-block;
  width: 130px;
  color: #999;
  font-size: 15px;
}

/* Post */
.post time {
  display: block;
  color: #999;
  font-size: 15px;
  margin-bottom: 32px;
}

.post p,
.page p {
  margin-bottom: 1.4em;
}

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

/* Epigraph */
blockquote.epigraph {
  border-left: none;
  padding-left: 0;
  margin: 2.5em 0;
  text-align: center;
  color: #555;
}

/* End mark */
.end-mark {
  text-align: center;
  margin-top: 2em;
  font-size: 0.8em;
  color: #111;
}

/* Section breaks */
hr {
  border: none;
  margin: 1.7em auto;
  text-align: center;
}

hr::after {
  content: "*\2003\2003*\2003\2003*";
  color: rgba(17, 17, 17, 0.25);
  font-size: 0.9em;
}

/* Blockquotes */
blockquote {
  border-left: 3px solid #e0dcd8;
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: #888;
}

blockquote a {
  color: #4a90d9;
  font-style: normal;
}

/* Code */
code {
  font-size: 15px;
  background: #f0eeeb;
  padding: 2px 5px;
  border-radius: 3px;
}

pre {
  background: #f0eeeb;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 16px;
}

pre code {
  background: none;
  padding: 0;
}

/* Footer */
.site-footer {
  margin-top: 64px;
  padding-top: 16px;
  border-top: 1px solid #e8e4e0;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 14px;
}

.site-footer a {
  color: #999;
  text-decoration: none;
  background: none;
  text-shadow: none;
}

.site-footer a:hover {
  color: #666;
}

/* Mobile */
@media (max-width: 600px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .post-date {
    display: block;
    width: auto;
    margin-bottom: 2px;
  }

  .site-footer {
    gap: 24px;
  }
}
