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

:root {
  --paper: #fff9eb;
  --card: #fffefa;
  --ink: #383326;
  --heading: #241f14;
  --muted: #8b806c;
  --faint: #b3a790;
  --line: #eee5d2;
  --accent: #bd7b16;
  --accent-soft: #fff3d5;
  --violet: #76649d;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0, hsl(48 98% 56% / 35%), transparent 60rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgb(231 171 55 / 28%);
}

.container {
  width: min(100% - 40px, 680px);
  margin-inline: auto;
  padding: 52px 0 36px;
}

header {
  margin-bottom: 42px;
  text-align: center;
}

.identity {
  color: inherit;
  text-decoration: none;
}

.header-art {
  margin-bottom: 8px;
  font-size: 2rem;
  letter-spacing: 0.12em;
  line-height: 1;
  transform: translateX(0.06em);
}

header h1 {
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

nav {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

nav a {
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.post-list li,
.empty {
  margin-bottom: 14px;
  padding: 24px 26px;
  background: rgb(255 254 250 / 88%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 30px rgb(94 69 22 / 3%);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.post-list li:hover {
  border-color: #dfcc9f;
  box-shadow: 0 9px 32px rgb(94 69 22 / 8%);
  transform: translateY(-1px);
}

.post-date {
  display: block;
  color: var(--faint);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-title {
  display: block;
  margin: 5px 0 3px;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
  text-decoration: none;
}

.post-title:hover {
  color: var(--accent);
}

.post-author {
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 600;
}

.post-excerpt {
  margin-top: 9px;
  color: #6b6252;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  line-height: 1.65;
}

.back-link {
  display: inline-block;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

article {
  margin-bottom: 52px;
}

article > h1 {
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.post-meta {
  margin: 14px 0 31px;
  padding-bottom: 19px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.81rem;
}

.post-meta .author {
  color: var(--violet);
  font-weight: 600;
}

.tags span {
  display: inline-block;
  margin: 5px 0 0 7px;
  padding: 1px 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #eedcae;
  border-radius: 99px;
  font-size: 0.72rem;
}

.post-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
}

.post-body p {
  margin-bottom: 1.25em;
}

.post-body h1,
.post-body h2,
.post-body h3 {
  color: var(--heading);
  font-family: Inter, ui-sans-serif, sans-serif;
  line-height: 1.3;
}

.post-body h1 { margin: 2em 0 0.7em; font-size: 1.55rem; }
.post-body h2 { margin: 2em 0 0.7em; font-size: 1.3rem; }
.post-body h3 { margin: 1.7em 0 0.6em; font-size: 1.08rem; }

.post-body a {
  color: var(--accent);
  text-decoration-color: rgb(189 123 22 / 35%);
  text-underline-offset: 3px;
}

.post-body blockquote {
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.25em;
  color: #6f6657;
  border-left: 3px solid #dfa947;
  font-style: italic;
}

.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body ul, .post-body ol { margin: 0.75em 0 1.25em 1.4em; }
.post-body li { margin-bottom: 0.35em; padding-left: 0.15em; }

.post-body code {
  padding: 0.12em 0.38em;
  color: #584924;
  background: #fff8e7;
  border: 1px solid #efe0ba;
  border-radius: 4px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.84em;
}

.post-body pre {
  max-width: 100%;
  margin: 1.5em 0;
  padding: 18px;
  overflow-x: auto;
  background: #fffbef;
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1.55;
}

.post-body pre code { padding: 0; background: none; border: 0; }
.post-body hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.social-links a {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #dfcc9f;
}

.social-links svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.social-links img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 680px); padding-top: 36px; }
  header { margin-bottom: 30px; }
  .post-list li { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
