:root {
  --accent-color: #820a0a;
  --text-color: #201f1f;
  --gentle-color: #7e6862;
  --gentler-color: #b2a29d;
  --paper-color: rgb(246, 240, 228);
}

html {
  background-color: var(--paper-color);
}

.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("/images/paper-texture.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

body {
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family:
    "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia,
    serif;
  line-height: 1.6;
  color: var(--text-color);
}

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

@font-face {
  font-family: "Founders Grotesk";
  src: url("/fonts/TestFoundersGrotesk-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
  font-family: "Founders Grotesk", system-ui, sans-serif;
  font-weight: 500;
}

h1,
.site-title {
  font-size: 2rem;
  text-decoration: none;
  color: inherit;
}

header {
  margin-bottom: 8rem;
}

.section-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-nav a {
  color: var(--gentle-color);
  text-decoration: none;
}

.section-nav a.active {
  color: var(--accent-color);
}

.section-nav h2 {
  margin: 0;
}

.gentle {
  color: var(--gentle-color);
}

blockquote {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--gentler-color);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  color: var(--gentle-color);
}

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

.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

time {
  color: var(--gentle-color);
}

footer {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.subscribe-form label {
  width: 100%;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.6rem;
  font: inherit;
  border: 1px solid var(--gentler-color);
  color: var(--gentle-color);
  background-color: var(--paper-color);
  border-radius: 4px;
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--gentler-color);
}

.subscribe-form input[type="submit"] {
  padding: 0.4rem 0.8rem;
  font: inherit;
  border: 1px solid var(--accent-color);
  background: var(--accent-color);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
