@import url('https://fonts.googleapis.com/css2?family=Bona+Nova+SC&family=IM+Fell+English:ital@0;1&family=Jost:wght@400;900&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Petrona:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap');

@font-face {
  font-family: 'Maple Mono';
  src: url('/fonts/MapleMono.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Maple Mono';
  src: url('/fonts/MapleMono-Italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  font-variation-settings: 'slnt' -12;
}

:root {
  --space-xs:   0.35rem;
  --space-sm:   0.75rem;
  --space-md:   1.5rem;
  --space-lg:   3rem;
  --space-xl:   5rem;

  --p-size: 1.1rem;
  --title-size: 8rem;
  --heading-size: 2rem;
  --subheading-size: 1.5rem;

  --page-width: 53rem;

  --bg-l: #f5f2eb;
  --bg-d: #131109;
  --text-l: #1a1814;
  --text-d: #e8e2d4;
  --accent: #BE562D;

  --font-mono: 'Maple Mono', monospace;
  --font-ui: 'Maple Mono', monospace;
  --font-prose: 'Maple Mono', monospace;
  --font-title: 'Maple Mono', monospace;
  --font-heading: 'Maple Mono', monospace;
}

html {
  --bg: var(--bg-l);
  --text: var(--text-l);
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: var(--p-size);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(100% - 2 * var(--space-md), var(--page-width));
  margin-inline: auto;
  max-width: 95%;
  color: var(--text);
  font-family: var(--font-ui);
}

@media (prefers-color-scheme: dark) {
  html {
    --bg: var(--bg-d);
    --text: var(--text-d);
  }
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: 900;
  font-family: var(--font-heading);
  margin-block: 0;
  margin-top: 1lh;
}

h1 {
  color: var(--accent);
  font-family: var(--font-title);
}


html {
  background: var(--bg);
}

p {
  font-family: var(--font-prose);
  font-size: inherit;
}

article {
  padding-top : var(--space-lg);
}

article p {
  width: 100%;
  margin-inline: auto;
}

article p h1 {
  width: 100%;
  margin-inline: auto;
}

article hr {
  width: 100px;
  margin-block: var(--space-lg);
}

article p + p {
  padding-block: var(--space-sm);
}

article blockquote p + p {
  padding-block: 0;
}

article footer {
  display: flex;
  justify-content: right;
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  padding-top: var(--space-xl);
  font-weight: 100;
  font-size: 0.8rem;
  gap: 0.8em;
}

article footer a, p, time {
  font-weight: inherit;
  font-family: inherit;
  font-size: inherit;
}

footer a.u-in-reply-to {
  vertical-align: baseline;
  padding-top: 0.1rem;
}




hr {
  width: 100%
}

a {
  color: var(--text);
  text-decoration: none;
}
a:hover, a:focus-visible {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
}

footer {
  color: var(--text);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  padding-block: var(--space-md);
  padding-inline: max(var(--space-md), calc((100% - var(--page-width)) / 2));
  background-color: color-mix(in srgb, var(--bg) 95%, black);
  border-top: 0.2px solid #000000;
  font-family: var(--font-ui);
  font-size: 0.8em;
  margin-top: var(--space-md);
}
footer > :nth-child(even) {
  justify-self: end;
}
body > footer > :last-child {
  margin-top: auto;
}
@media (max-width: 40rem) {
  footer { grid-template-columns: 1fr; }
  footer > :nth-child(even) { justify-self: start; }
}

small {
  font-weight: 100;
}

footer p {
  max-width: 50ch;
  font-size: inherit;
  font-family: inherit;
  text-wrap: balance;
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1ch;
}
li > ul {
  grid-column: 1 / -1;
}

ul ul {
  padding-inline-start: 2ch;
}
