:root {
  color-scheme: light;
  --bg: #fbfaf8;
  --text: #24211f;
  --muted: #6d6862;
  --line: #ded8d0;
  --accent: #146b78;
  --accent-dark: #0d4b54;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

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

a:hover,
a:focus {
  color: var(--accent-dark);
}

.wrap {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.site-header .wrap {
  padding: 32px 0 20px;
}

.site-title {
  display: inline-block;
  color: var(--text);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
}

.tagline {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

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

nav a:hover,
nav a:focus {
  text-decoration: underline;
}

.content {
  padding: 44px 0 64px;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 7vw, 3rem);
}

h2 {
  margin-top: 42px;
}

p {
  margin: 0 0 1.25rem;
}

blockquote {
  margin: 0 0 32px;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--accent);
  color: #3a3631;
  font-size: 1.15rem;
}

figure {
  margin: 32px 0;
}

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

.meta {
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

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

.post-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.post-list h2 {
  margin: 0 0 6px;
}

.post-list h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-list h2 a:hover,
.post-list h2 a:focus {
  color: var(--accent);
}

.comments {
  margin-top: 56px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.comment {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.comment h3 {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.site-footer .wrap {
  padding: 24px 0;
}
