@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300;1,8..60,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg:          #f7f4ef;
  --bg-deep:     #f0ece4;
  --surface:     #fdfcf9;
  --ink:         #1a1814;
  --ink-mid:     #4a4540;
  --ink-soft:    #8a8480;
  --line:        #ddd9d0;
  --line-light:  #eae7e0;
  --accent:      #7c3a1e;
  --accent-light:#c86030;
  --tag-bg:      #ede9e0;
  --radius:      3px;
  --radius-md:   6px;
  --max-prose:   680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0; gap: 1.5rem;
}
.logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem; font-weight: 700; color: var(--ink);
  transition: opacity 0.18s;
}
.logo:hover { opacity: 0.55; }
.logo span { color: var(--accent-light); }
.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mid); transition: color 0.18s;
}
.nav a.active, .nav a:hover { color: var(--accent); }

/* HOME HERO */
.home-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.home-hero-inner {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 3rem; align-items: end;
}
.kicker {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-light); display: block; margin-bottom: 0.75rem;
}
.home-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1; letter-spacing: -0.025em; font-weight: 700;
  margin-bottom: 0.85rem;
}
.home-tagline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem; font-style: italic; font-weight: 300;
  color: var(--ink-mid); max-width: 44ch; line-height: 1.7;
}
.home-hero-right {
  border-left: 1px solid var(--line); padding-left: 2rem;
  padding-bottom: 0.25rem;
}
.latest-label {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.75rem; display: block;
}
.latest-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem; line-height: 1.3; font-weight: 600;
  color: var(--ink); margin-bottom: 0.45rem;
}
.latest-excerpt {
  font-size: 0.85rem; color: var(--ink-mid); line-height: 1.6; margin-bottom: 0.9rem;
}

/* TAG STRIP */
.tag-strip {
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.tag-strip-label {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-right: 0.3rem;
}

/* CONTENT SPLIT */
.content-layout {
  display: grid; grid-template-columns: 1fr 260px; gap: 0;
}
.posts-column {
  padding: 2rem 2.5rem 3rem 0;
  border-right: 1px solid var(--line);
}
.sidebar { padding: 2rem 0 3rem 2.5rem; }

/* FILTER BAR */
.posts-filter-bar {
  display: flex; align-items: center; gap: 0.45rem;
  flex-wrap: wrap; margin-bottom: 1.75rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-light);
}
.filter-label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-right: 0.2rem;
}
.posts-count { font-size: 0.78rem; color: var(--ink-soft); margin-left: auto; }

/* POST LIST */
.post-list { display: flex; flex-direction: column; }
.post-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-light);
  display: grid; grid-template-columns: 1fr 36px;
  gap: 1rem; align-items: start;
}
.post-item:first-child { padding-top: 0; }
.post-item:last-child { border-bottom: none; }
.post-item-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.post-item-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem; font-weight: 600; line-height: 1.3;
  color: var(--ink); margin-bottom: 0.35rem;
  transition: color 0.18s;
}
.post-item-title:hover { color: var(--accent); }
.post-item-excerpt {
  font-size: 0.85rem; color: var(--ink-mid); line-height: 1.6;
  margin-bottom: 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-item-meta { font-size: 0.73rem; color: var(--ink-soft); }
.post-item-meta span { margin-right: 0.65rem; }
.read-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 0.85rem; color: var(--ink-soft);
  transition: all 0.18s; flex-shrink: 0; margin-top: 2px;
}
.read-arrow:hover { border-color: var(--accent); color: var(--accent); background: var(--tag-bg); }
.no-results { padding: 2.5rem 0; font-size: 0.9rem; color: var(--ink-soft); font-style: italic; }

/* TAGS */
.tag {
  display: inline-block; padding: 0.17rem 0.55rem;
  border-radius: var(--radius); background: var(--tag-bg);
  color: var(--ink-mid); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.18s; user-select: none;
}
.tag:hover, .tag.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag.tag-all.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag.tag-all:not(.active):hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* SIDEBAR */
.sidebar-section { margin-bottom: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line-light); }
.sidebar-section:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-heading {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.85rem; display: block;
}
.sidebar-tag-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sidebar-recent { display: flex; flex-direction: column; gap: 0.8rem; }
.sidebar-recent-item a {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem; line-height: 1.35; font-weight: 600;
  color: var(--ink); transition: color 0.18s;
}
.sidebar-recent-item a:hover { color: var(--accent); }
.sidebar-recent-item .meta { font-size: 0.7rem; color: var(--ink-soft); margin-top: 0.15rem; }
.sidebar-about p { font-size: 0.85rem; color: var(--ink-mid); line-height: 1.65; }
.sidebar-about a { font-size: 0.78rem; color: var(--accent-light); font-weight: 500; display: inline-block; margin-top: 0.45rem; }
.sidebar-about a:hover { text-decoration: underline; }

/* PAGE HERO */
.page-hero { padding: 2.75rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-hero .kicker { margin-bottom: 0.5rem; }
.page-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 0.5rem;
}
.page-hero .subtitle {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic; font-size: 0.975rem;
  color: var(--ink-mid); font-weight: 300; max-width: 52ch;
}

/* ARTICLE */
.article-layout { display: grid; grid-template-columns: 1fr 240px; gap: 0; }
.article-main { padding: 2.5rem 2.5rem 3rem 0; border-right: 1px solid var(--line); }
.article-sidebar { padding: 2.5rem 0 3rem 2.5rem; }
.article-meta-row {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
  margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line-light);
}
.meta-date { font-size: 0.75rem; color: var(--ink-soft); }
.article-body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.025rem; line-height: 1.82; color: var(--ink-mid);
  max-width: var(--max-prose);
}
.article-body p { margin-bottom: 1.15rem; }
.article-body h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em; margin: 2rem 0 0.6rem;
}
.article-body h3:first-child { margin-top: 0; }
.article-body blockquote {
  margin: 1.5rem 0; padding: 1rem 1.4rem;
  border-left: 3px solid var(--accent-light);
  background: var(--bg-deep);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.article-body blockquote p { font-style: italic; color: var(--ink); margin: 0 0 0.5rem; font-size: 1rem; }
.article-body blockquote p:last-child { margin: 0; }
.article-footer {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

/* ABOUT */
.about-body { display: grid; grid-template-columns: 1fr 260px; gap: 0; padding: 2.5rem 0 3rem; }
.about-prose { padding-right: 3rem; border-right: 1px solid var(--line); }
.about-prose p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.025rem; line-height: 1.8; color: var(--ink-mid); margin-bottom: 1.1rem;
  max-width: var(--max-prose);
}
.about-sidebar { padding-left: 2.5rem; }
.social-list { display: flex; flex-direction: column; gap: 0.5rem; }
.social-item {
  display: flex; flex-direction: column; padding: 0.7rem 0.9rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); transition: border-color 0.18s, box-shadow 0.18s;
}
.social-item:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(124,58,30,0.1); }
.social-item .platform {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.social-item .handle { font-size: 0.875rem; font-weight: 500; color: var(--ink); margin-top: 0.1rem; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 1rem; border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn-ghost { background: transparent; color: var(--ink-mid); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-mid); color: var(--ink); }
.text-link {
  font-size: 0.8rem; font-weight: 600; color: var(--accent-light);
  display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.18s, opacity 0.18s;
}
.text-link:hover { gap: 0.5rem; opacity: 0.75; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; gap: 1rem; }
.site-footer p, .site-footer a { font-size: 0.76rem; color: var(--ink-soft); margin: 0; transition: color 0.18s; }
.site-footer a:hover { color: var(--accent); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.home-hero-left { animation: fadeUp 0.5s ease both; }
.home-hero-right { animation: fadeUp 0.5s 0.1s ease both; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .home-hero-inner, .content-layout, .article-layout, .about-body { grid-template-columns: 1fr; }
  .home-hero-right { border-left: none; border-top: 1px solid var(--line); padding: 1.5rem 0 0; }
  .posts-column { padding: 2rem 0; border-right: none; border-bottom: 1px solid var(--line); }
  .sidebar { padding: 2rem 0; }
  .article-main { padding: 2rem 0; border-right: none; border-bottom: 1px solid var(--line); }
  .article-sidebar { padding: 2rem 0; }
  .about-prose { padding-right: 0; border-right: none; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
  .about-sidebar { padding: 2rem 0 0; }
}
@media (max-width: 580px) {
  .nav { gap: 1.25rem; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}
