:root {
  --bg: #f8f7f3;
  --surface: #fffcf5;
  --text: #1f1f1c;
  --muted: #6f6e67;
  --line: #dfddd4;
  --accent: #222;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% -10%, #ffffff 0, #f8f7f3 55%);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  font-size: 1.2rem;
  line-height: 1.75;
}

.container {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.content {
  padding: 3.5rem 0 5rem;
}

.hero h1,
.page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  font-weight: 500;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.78rem;
}

.lead {
  margin-top: 1.1rem;
  color: #37362f;
}

.posts h2 {
  margin-top: 3rem;
  font-size: 1.3rem;
  font-weight: 500;
}

.post-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.post-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 1.15rem 1.25rem;
}

.post-item h2,
.post-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 500;
}

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

.post-item a:hover,
.post-item a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.prose :is(h2, h3, h4) {
  margin-top: 2rem;
  line-height: 1.3;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 10px;
  background: #f1efe8;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .nav-wrap {
    min-height: auto;
    padding: 0.9rem 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
