:root {
  --bg: #f4f1e8;
  --ink: #172026;
  --ink-soft: #4a5963;
  --line: #c8c1b2;
  --accent: #9f2f00;
  --accent-soft: #f3d8cd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, #efe7d6 0%, #f9f7f0 45%, #f4f1e8 100%);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.32;
  z-index: -1;
}

.bg-orb-a {
  width: 300px;
  height: 300px;
  background: #f8b78f;
  top: -80px;
  left: -80px;
  animation: driftA 9s ease-in-out infinite alternate;
}

.bg-orb-b {
  width: 260px;
  height: 260px;
  background: #84a7a1;
  right: -70px;
  bottom: 15%;
  animation: driftB 11s ease-in-out infinite alternate;
}

@keyframes driftA {
  from { transform: translate(0, 0); }
  to { transform: translate(30px, 40px); }
}

@keyframes driftB {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, -35px); }
}

.site-header,
.content,
.site-footer {
  width: min(860px, 92vw);
  margin-inline: auto;
}

.site-header {
  padding: 3.5rem 0 1.4rem;
  border-bottom: 2px solid var(--line);
}

.page-title {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.home-link {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-nav {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.nav-sep {
  margin: 0 0.45rem;
  color: var(--line);
}

.post-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  padding: 0;
  margin: 0.8rem 0 0;
}

.post-tags li {
  margin: 0;
}

.post-tags a {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
}

.post-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.home-link a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site-title {
  text-decoration: none;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  letter-spacing: 0.01em;
}

.site-tagline {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.content {
  padding: 1.8rem 0 3rem;
}

.content p,
.content li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.2;
  margin-top: 1.9rem;
  margin-bottom: 0.7rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

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

a:hover {
  background: linear-gradient(transparent 66%, var(--accent-soft) 0);
}

code, pre {
  font-family: "JetBrains Mono", "Cascadia Mono", monospace;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fffaf0;
  border-radius: 10px;
  padding: 0.9rem;
}

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

.post-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0.8rem 0;
  background: rgba(255, 255, 255, 0.52);
}

.post-item time {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.post-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
  text-align: left;
}

.post-line a {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.3;
  text-decoration-thickness: 1px;
}

.taxonomy-list,
.taxonomy-posts {
  list-style: none;
  padding: 0;
}

.taxonomy-list li,
.taxonomy-posts li {
  text-align: left;
  margin: 0.45rem 0;
}

.taxonomy-count {
  color: var(--ink-soft);
}

.site-footer {
  border-top: 3px solid var(--accent);
  background: rgba(159, 47, 0, 0.04);
  color: var(--ink);
  padding: 1.8rem 1.4rem 2.4rem;
  margin-top: 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
  border-radius: 0 0 10px 10px;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .site-header {
    padding-top: 2.4rem;
  }

  .content {
    padding-top: 1.2rem;
  }
}
