@view-transition {
  navigation: auto;
}

body {
  margin: 0;
  background-color: #ffefe2;
}

/* Article pages */

header {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

header a {
  display: block;
  width: min(680px, 80vw);
  view-transition-name: logo;
}

header svg {
  width: 100%;
  height: auto;
}

::view-transition-old(logo),
::view-transition-new(logo) {
  animation: none;
  opacity: 1;
}

article {
  max-width: 680px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #2a1a0e;
}

article h1 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2rem;
}

article p {
  margin: 0;
  text-indent: 2em;
  text-align: justify;
}

article p:first-of-type {
  text-indent: 0;
}

article p:first-of-type::first-letter {
  font-size: 3.1em;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.1em 0 0;
}

article code {
  font-size: 75%;
}

article pre {
  font-size: 75%;
  overflow-x: auto;
}

.fleuron {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  max-width: 680px;
  padding: 0 1.5rem;
}

.fleuron svg {
  width: 2rem;
  height: auto;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  max-width: 680px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: #2a1a0e;
}

.article-nav a {
  color: inherit;
  text-decoration: none;
  max-width: 45%;
}

.article-nav a:hover {
  text-decoration: underline;
}

.article-nav .next {
  margin-left: auto;
  text-align: right;
}

/* Home page */

.splash-logo-target {
  position: fixed;
  pointer-events: none;
  view-transition-name: logo;
}

.logo {
  opacity: 0;
  transition: opacity 0.15s ease;
}
