/* ----------------------------------------
   BASE
---------------------------------------- */

:root {
  --bg:       #F4F4F4;
  --text:     #111111;
  --accent:   #006666;
  --muted-bg: #E8E8E8;
  --max:      640px;
}

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

html {
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: 1rem;
  line-height: 1.8;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

@media (max-width: 480px) {
  html {
    font-size: 17px;
  }
}


/* ----------------------------------------
   TYPOGRAPHY
---------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: 1.22rem;
  font-weight: normal;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

p {
  margin-bottom: 1.4rem;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: normal;
}

em {
  font-style: italic;
}


/* ----------------------------------------
   NAVIGATION
---------------------------------------- */

nav {
  margin-bottom: 5rem;
}

nav a {
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  margin-right: 1.6rem;
}

nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}


/* ----------------------------------------
   LINKS
---------------------------------------- */

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

a:hover {
  color: var(--accent);
}


/* ----------------------------------------
   POST INDEX
---------------------------------------- */

.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 2.2rem;
}

.post-list a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}

.post-list a:hover {
  color: var(--accent);
}

.post-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}


/* ----------------------------------------
   POST
---------------------------------------- */

article {
  margin-top: 1rem;
}

article .post-meta {
  margin-bottom: 3rem;
}


/* ----------------------------------------
   IMAGES
---------------------------------------- */

img {
  display: block;
  width: 100%;
  height: auto;
  margin: 2.4rem 0;
}

figcaption {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: -1.6rem;
  margin-bottom: 2.4rem;
}


/* ----------------------------------------
   CODE
---------------------------------------- */

pre {
  background: var(--muted-bg);
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.85rem;
  line-height: 1.65;
}

code {
  font-family: monospace;
  font-size: 0.875em;
  background: var(--muted-bg);
  padding: 0.1em 0.3em;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}


/* ----------------------------------------
   FOOTER
---------------------------------------- */

footer {
  margin-top: 6rem;
  text-align: right;
  font-size: 0.78rem;
  color: var(--accent);
}
