:root {
  --font-mono: "DM Mono", monospace;
  --font-serif: "Fraunces", serif;
  --font-sans: "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
*:not(dialog) {
  margin: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

body {
  font-family: var(--font-mono);
  font-weight: 300;
  background: url("https://rachsmith-assets.b-cdn.net/assets/paper.jpg");
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
}

.container {
  max-width: 69ch;
  margin: 0 auto;
  padding: 0 2rem;
}

.index-header {
  position: relative;
  padding: 4rem 0;
}

.title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title .small {
  font-size: 1.2rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  text-align: left;
  margin-left: -4.2rem;
}

.title .large {
  font-size: 4rem;
  line-height: 0.8;
  text-transform: lowercase;
}

.index-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.index-posts h2 a {
  position: relative;
  font-size: 2rem;
  text-decoration: none;
  color: inherit;
}

.index-posts li {
  margin-bottom: 6rem;
}

.index-posts li.note:nth-child(even) {
  text-align: right;
}

.post {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.post h2 {
  position: relative;
}

.category,
.date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: #666;
}

.category {
  font-weight: 600;
  text-transform: uppercase;
}

.header-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
}
