:root {
  color-scheme: light;
  --bg: #f5f1ea;
  --surface: #fffdfa;
  --text: #1b1714;
  --muted: #6b625a;
  --line: #ded6ca;
  --accent: #2f2a25;
  --accent-soft: #eee6da;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar,
.page {
  width: min(920px, calc(100% - 34px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.page {
  padding: 34px 0 72px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  align-items: start;
  padding: 20px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.profile-mark {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 238, 227, 0.9));
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero {
  max-width: 720px;
}

.eyebrow {
  margin: 6px 0 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 58ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

.intro.secondary {
  margin-top: 12px;
}

.blogs {
  padding-top: 0;
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  font: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  border-radius: 0;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  color: var(--text);
  border-color: var(--text);
}

.post-count {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.post-card {
  display: grid;
  gap: 8px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.post-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.post-card h3 a:hover,
.back-link:hover,
.nav a:hover,
.brand:hover {
  text-decoration: underline;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.date {
  color: var(--muted);
  font-size: 0.88rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
}

.article {
  max-width: 760px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-head {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  margin-top: 16px;
  max-width: 12ch;
}

.article-body {
  display: grid;
  gap: 18px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body h2,
.article-body h3 {
  margin: 10px 0 0;
  line-height: 1.15;
}

.article-body p,
.article-body ul {
  margin: 0;
}

.article-body ul {
  padding-left: 20px;
}

.article-body pre {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.not-found {
  color: var(--muted);
}

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-mark {
    width: 92px;
    height: 92px;
  }
}
