@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,650&display=swap');

:root {
  color-scheme: light dark;
  --paper: #f5f1e7;
  --ink: #20271f;
  --muted: #687066;
  --rule: #b9c1b3;
  --moss: #315d4d;
  --soil: #8a5238;
  --wash: #e4ecdf;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Literata, Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.72;
  background-image:
    linear-gradient(to bottom, transparent 0, transparent 2.05rem, rgba(49, 93, 77, .055) 2.1rem);
  background-size: 100% 2.1rem;
}

.strip {
  justify-content: center;
  gap: .25rem 1.3rem;
  padding: .65rem 1rem;
  color: var(--muted);
  background: rgba(228, 236, 223, .78);
  border-bottom: 1px solid var(--rule);
  font: .72rem/1.45 "DM Mono", ui-monospace, monospace;
  letter-spacing: .015em;
}

.strip a {
  color: var(--moss);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.masthead,
main,
.colophon {
  max-width: 43rem;
}

.masthead {
  position: relative;
  padding-top: 3.3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.avatar {
  float: right;
  width: 5.3rem;
  height: 5.3rem;
  margin: .15rem 0 1rem 1.25rem;
}

.blog-title {
  max-width: 34rem;
  font-size: clamp(2rem, 7vw, 3.35rem);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: .98;
}

.blog-title a:hover {
  color: var(--moss);
}

.tagline {
  max-width: 31rem;
  margin-top: .8rem;
  color: var(--muted);
  font-style: italic;
}

main {
  padding-top: .2rem;
  padding-bottom: 4rem;
}

.about {
  padding: 1.35rem 0 .35rem;
}

.about > :first-child {
  margin-top: 0;
}

.about blockquote {
  margin: 1.7rem 0;
  padding: .7rem 1rem .7rem 1.15rem;
  color: var(--moss);
  background: rgba(228, 236, 223, .65);
  border-left: 3px solid var(--moss);
  font-style: italic;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 650;
}

h2 {
  margin-top: 2.7rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .09em;
  line-height: 1.4;
  text-transform: uppercase;
}

h3 {
  font-size: 1.16rem;
}

a {
  color: var(--moss);
  text-decoration-color: rgba(49, 93, 77, .5);
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

a:hover {
  color: var(--soil);
  text-decoration-color: currentColor;
}

.post-list {
  border-top: 1px solid var(--rule);
}

.post-list li {
  padding: .85rem 0 .8rem;
  border-bottom-color: var(--rule);
}

.post-link {
  font-weight: 650;
}

time,
.receipt,
.colophon {
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .73rem;
  line-height: 1.55;
}

.empty,
.notice {
  color: var(--muted);
  font-style: italic;
}

.post-header {
  padding-top: 1.7rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.post-header h1 {
  margin: 0 0 .55rem;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -.035em;
  line-height: 1.06;
}

.post-body h2 {
  margin-top: 2.8rem;
}

.post-body blockquote {
  color: var(--moss);
  border-left-color: var(--moss);
}

code {
  padding: .08em .25em;
  background: rgba(49, 93, 77, .09);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .83em;
}

pre {
  padding: 1rem 1.1rem;
  border-color: var(--rule);
  background: rgba(228, 236, 223, .6);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .8rem;
}

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

hr {
  border-top-color: var(--rule);
}

.colophon {
  border-top-color: var(--rule);
  padding-top: 1.2rem;
  padding-bottom: 3.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #18211c;
    --ink: #edf0e8;
    --muted: #b4bdae;
    --rule: #536457;
    --moss: #a9d1b7;
    --soil: #e4ac8e;
    --wash: #24362b;
  }

  body {
    background-image:
      linear-gradient(to bottom, transparent 0, transparent 2.05rem, rgba(169, 209, 183, .055) 2.1rem);
  }

  .strip,
  .about blockquote,
  pre {
    background: rgba(36, 54, 43, .78);
  }

  code {
    background: rgba(169, 209, 183, .12);
  }
}

@media (max-width: 30rem) {
  .masthead {
    padding-top: 2.4rem;
  }

  .avatar {
    width: 4.2rem;
    height: 4.2rem;
    margin-left: .8rem;
  }

  .strip {
    justify-content: flex-start;
  }
}
