:root {
  --theme: #a33b2e;
  --text: #222;
  --bg: hsl(34, 26%, 95%);
  --muted: #888;
  --subtle: #555;
  --faint: #aaa;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
  --font-my-name: var(--font-body);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

a {
  color: var(--theme);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* header */
header nav {
  font-family: var(--body);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--faint);
}

header nav div {
  display: flex;
  gap: 0.75rem;
}

header nav div a + a::before {
  content: "·";
  margin-right: 0.75rem;
  color: var(--faint);
  text-decoration: none;
  display: inline-block;
}

.site-name {
  font-family: var(--font-my-name);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
}

/* home */
.about {
  font-family: var(--font-body);
  line-height: 1.7;
}

.about p {
  margin-bottom: 1rem;
}

hr {
  border: none;
  border-top: 1px solid var(--faint);
  margin: 2rem 0;
}

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

.post-item {
  margin-bottom: 2rem;
}

.post-item a {
  font-weight: 600;
  font-size: 1.1rem;
}

.post-item time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.2rem 0 0.4rem;
}

.post-item p {
  font-family: var(--font-body);
  color: var(--subtle);
  font-size: 0.95rem;
}

/* single post */
article h1 {
  font-size: 2rem;
  color: var(--theme);
  margin-bottom: 0.25rem;
}

article h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

article time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

article p {
  font-family: var(--font-body);
  margin-bottom: 1rem;
}

/* inline code */
code {
  font-size: 0.9em;
  color: var(--theme);
  background: hsla(0, 0%, 0%, 0.04);
  border: 1px solid hsla(0, 0%, 0%, 0.08);
  border-radius: 4px;
  padding: 0.15em 0.35em;
}

pre {
  background: #111 !important;
  color: hsl(34, 26%, 90%);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  line-height: 1.5;
  font-size: 1.2em;
}

pre code {
  color: inherit;
  background: inherit;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* footer */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--faint);
}
