/* cormorant-garamond-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  src: url('/fonts/cormorant-garamond-v21-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --bg: #f8fcff;
  --text: #000;
  --link: #000080;
  --code-bg: #f0f0f0;
  --border: #ccc;
  --muted: #666;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --text: #e0e0e0;
    --link: #a2c4e9;
    --code-bg: #2a2a2a;
    --border: #444;
    --muted: #999;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: greyscale;
  }
}

body {
  font-family: Georgia, serif;
  margin: 0 auto;
  max-width: 650px;
  line-height: 1.6;
  font-size: 18px;
  padding: 1.2em;
  background-color: var(--bg);
  color: var(--text);
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.2;
  text-wrap: balance
}

h1 {
  font-size: 2.75em;
  margin-top: 0.75em;
  margin-bottom: 0.6em;
}

h2 {
  font-size: 2em;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

h3 {
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  font-size: 1.5em;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.1em;
  text-decoration-thickness: 0.05em;
}

a:hover {
  opacity: 0.5;
}

li {
  margin-bottom: 0.5em;
}

.site-title {
  display: block;
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.2;
  font-size: 1.5em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  text-wrap: balance;
  text-decoration: none;
}

.site-title--home {
  color: var(--text);
  font-size: 2.75em;
  margin-top: 0.75em;
  margin-bottom: 0.6em;
}

.subtitle {
  opacity: 0.6;
  margin-top: -1em;
  padding-bottom: 2em;
}

.long-subtitle {
  margin-top: -1em;
  padding-bottom: 2em;
}

.post-footer {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
  font-size: 0.9em;
}

.post-footer p {
  margin: 0.5em 0;
}

.post-nav {
  display: flex;
  justify-content: space-between;
}

code {
  font-size: 0.8em;
  padding: 0.1em 0.3em;
  background-color: var(--code-bg);
}

pre {
  font: inherit;
  padding: 0.6em;
  background-color: var(--code-bg);
  overflow-x: auto;
}

blockquote {
  margin-left: 1.5em;
}

aside {
  border-left: 3px solid var(--border);
  padding: 0.6em;
  margin-left: 0;
}

img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  margin: auto;
}

.atom {
  float: left;
  padding-bottom: 20px;
}

.subscribe-box {
  display: flex;
  width: 100%;
}

.subscribe-box input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.5em;
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1em;
}

.subscribe-box button {
  padding: 0.5em;
  background: none;
  border: 1px solid var(--border);
  border-left: none;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 1em;
}

.subscribe-box button:hover {
  color: steelblue;
}

.disclaimer {
  font-size: 0.8em;
  color: var(--muted);
  margin-top: 0.3em;
  text-align: right;
}

/* Timeline feed */
.tl-post {
  margin-bottom: 2.5em;
}

.tl-post-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85em;
  margin-bottom: 0.6em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4em;
}

.tl-post p {
  margin-top: 0.3em;
}

.tl-post img {
  border-radius: 4px;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 2.2em;
  }
  h2 {
    font-size: 1.6em;
  }
  h3 {
    font-size: 1.3em;
  }
  .site-title {
    font-size: 1.3em;
  }

  .site-title--home {
    font-size: 2.2em;
  }
}
