/*
  Saga Haus — Blog styles
  Targets the live /blog index and every post page.
  Loads after Arbor's built-in styles.
  Uses the same design tokens as styles.css:
    --ink:#2b2a26  --deep:#3a4740  --green:#46594c
    --accent:#a9744f  --cream:#f6f1e9  --sand:#ece4d7
    --line:#ddd2c2  --muted:#7c7468
*/

/* ─── GLOBAL PAGE BACKGROUND ─── */
body {
  background: #f6f1e9 !important;
  color: #2b2a26 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* ─── INDEX: page heading ─── */
.ab-h1 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  font-size: 2.8rem !important;
  letter-spacing: -.02em !important;
  line-height: 1.1 !important;
  color: #3a4740 !important;
  margin-bottom: 10px !important;
}

@media (max-width: 640px) {
  .ab-h1 {
    font-size: 2rem !important;
  }
}

/* ─── INDEX: card grid ─── */
.ab-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 28px !important;
}

@media (max-width: 680px) {
  .ab-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* ─── INDEX: individual card ─── */
.ab-card {
  background: #fff !important;
  border: 1px solid #ddd2c2 !important;
  border-radius: 6px !important;
  padding: 32px 28px 28px !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* terracotta accent bar — slides in on hover */
.ab-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a9744f, #c9926a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.ab-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 60px rgba(43, 42, 38, .12) !important;
  border-color: transparent !important;
}

.ab-card:hover::before {
  transform: scaleX(1);
}

/* card title */
.ab-card h2 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  letter-spacing: -.01em !important;
  color: #3a4740 !important;
  margin-bottom: 10px !important;
}

/* card blurb */
.ab-card .ab-desc {
  font-size: .93rem !important;
  color: #7c7468 !important;
  line-height: 1.7 !important;
  margin-bottom: 16px !important;
}

/* card date */
.ab-card .ab-meta {
  font-size: .72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .16em !important;
  color: #a9744f !important;
  margin-bottom: 12px !important;
  display: block !important;
}

/* ─── POST PAGE: article wrapper ─── */
.arbor-blog {
  background: #fff;
  border: 1px solid #ddd2c2;
  border-radius: 6px;
  padding: 56px 60px;
  box-shadow: 0 4px 32px rgba(43, 42, 38, .06);
}

@media (max-width: 720px) {
  .arbor-blog {
    padding: 32px 24px;
    border-radius: 6px;
  }
}

/* post title */
.arbor-blog .ab-title {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  font-size: 2.5rem !important;
  letter-spacing: -.02em !important;
  line-height: 1.15 !important;
  color: #3a4740 !important;
  margin-bottom: 16px !important;
}

@media (max-width: 720px) {
  .arbor-blog .ab-title {
    font-size: 1.75rem !important;
  }
}

/* date / byline */
.arbor-blog .ab-meta {
  font-size: .72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .16em !important;
  color: #a9744f !important;
}

/* body text */
.arbor-blog .ab-body {
  font-size: 1.04rem !important;
  line-height: 1.82 !important;
  color: #2b2a26 !important;
}

/* section headings inside post body */
.arbor-blog .ab-body h2 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  font-size: 1.5rem !important;
  letter-spacing: -.015em !important;
  color: #3a4740 !important;
  margin-top: 44px !important;
  margin-bottom: 12px !important;
  line-height: 1.25 !important;
}

/* TL;DR box */
.ab-tldr {
  background: #ece4d7 !important;
  border-left: 3px solid #a9744f !important;
  border-radius: 4px !important;
  padding: 20px 26px !important;
  color: #2b2a26 !important;
  font-size: .98rem !important;
  line-height: 1.75 !important;
}

/* Table of contents sidebar */
.ab-toc {
  background: #ece4d7 !important;
  border: 1px solid #ddd2c2 !important;
  border-radius: 6px !important;
  padding: 22px 24px !important;
  font-size: .9rem !important;
  color: #2b2a26 !important;
}

.ab-toc a {
  color: #46594c !important;
}

.ab-toc a:hover {
  color: #a9744f !important;
}

/* ─── LINKS inside post body ─── */
.arbor-blog .ab-body a {
  color: #46594c !important;
  text-decoration-color: #a9744f !important;
  text-underline-offset: 3px;
}

.arbor-blog .ab-body a:hover {
  color: #a9744f !important;
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .ab-card,
  .ab-card::before {
    transition: none !important;
    transform: none !important;
  }
}
