:root {
  --eggshell: #f4f1de;
  --burnt-peach: #e07a5f;
  --twilight-indigo: #3d405b;
  --muted-teal: #81b29a;
  --apricot-cream: #f2cc8f;
}

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

body {
  background-color: var(--eggshell);
  color: var(--twilight-indigo);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 65ch;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* header */

header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--muted-teal);
}

.site-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--twilight-indigo);
  text-decoration: none;
}

.site-name:hover {
  color: var(--burnt-peach);
}

.site-tagline {
  color: var(--muted-teal);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* links */

a {
  color: var(--twilight-indigo);
  text-decoration: underline;
  text-decoration-color: var(--burnt-peach);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--burnt-peach);
}

/* headings */

h1, h2, h3, h4 {
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p {
  margin-bottom: 1.25rem;
}

/* post list */

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

.post-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--apricot-cream);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list .post-title {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}

.post-list .post-date {
  font-size: 0.85rem;
  color: var(--muted-teal);
  display: block;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.post-list .post-desc {
  margin: 0;
}

/* content type label */

.content-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-teal);
  font-family: 'Courier New', Courier, monospace;
  display: block;
  margin-bottom: 0.5rem;
}

/* post article */

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--apricot-cream);
}

.post-header h1 {
  margin-top: 0;
}

.post-header time {
  font-size: 0.85rem;
  color: var(--muted-teal);
  font-style: italic;
}

/* code */

code {
  font-family: 'Courier New', Courier, monospace;
  background-color: rgba(242, 204, 143, 0.35);
  padding: 0.1em 0.3em;
  border-radius: 2px;
  font-size: 0.9em;
}

pre {
  background-color: rgba(242, 204, 143, 0.2);
  border-left: 3px solid var(--apricot-cream);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

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

/* blockquote */

blockquote {
  border-left: 3px solid var(--muted-teal);
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1.25rem;
  font-style: italic;
  opacity: 0.85;
}

/* table */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

th {
  background-color: rgba(242, 204, 143, 0.3);
  text-align: left;
  padding: 0.5rem 0.75rem;
}

td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(242, 204, 143, 0.5);
}

/* hr */

hr {
  border: none;
  border-top: 1px solid var(--muted-teal);
  margin: 2.5rem 0;
  opacity: 0.5;
}

/* lists */

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.25rem;
}

/* footer */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--muted-teal);
  font-size: 0.85rem;
  color: var(--muted-teal);
}
