/*
  Kreatica blog: light editorial theme.
  Warm ivory paper, warm near-black ink, brand gold used sparingly.
  Dark header and footer tie the blog back to the main site.
*/
:root {
  --paper: #f6f2ea; /* warm ivory page */
  --card: #ffffff;
  --rule: #e4ddd0; /* hairlines */
  --ink: #1f1c18; /* headings */
  --text: #3a352f; /* body copy */
  --muted: #6b645b; /* meta, captions */
  --gold: #c0a062; /* brand gold, decorative only */
  --gold-ink: #7d6230; /* darker gold for text and links on ivory */
  --charcoal: #1a1a1a; /* main site background */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--gold-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Small uppercase label (category, section names) */
.label,
.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ---------- Header (dark, like the main site) ---------- */
.site-header {
  background: var(--charcoal);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .logo img {
  height: 40px;
  width: auto;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-header nav a {
  color: #b8b2a7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: #ffffff;
}
.site-header nav .nav-cta {
  color: var(--charcoal);
  background: var(--gold);
  padding: 8px 20px;
  border-radius: 999px;
}
.site-header nav .nav-cta:hover {
  color: var(--charcoal);
  background: #cfb27a;
}
@media (max-width: 560px) {
  .site-header nav {
    gap: 16px;
  }
  .site-header nav .hide-sm {
    display: none;
  }
}

/* ---------- Blog index ---------- */
.blog-hero {
  padding-top: 72px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.blog-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 14px 0 16px;
  max-width: 14ch;
}
.blog-hero h1 span {
  font-style: italic;
  color: var(--gold-ink);
}
.blog-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0;
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding-bottom: 64px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.featured .thumb {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}
.featured .thumb img,
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured:hover .thumb img,
.post-card:hover .thumb img {
  transform: scale(1.03);
}
.featured h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 12px 0 14px;
}
.featured p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 20px;
}
.featured:hover h2,
.post-card:hover h2 {
  color: var(--gold-ink);
}
@media (max-width: 820px) {
  .featured {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.section-title {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
/* Article list: full-width rows, image left and text right */
.post-list {
  display: flex;
  flex-direction: column;
  padding-bottom: 88px;
}
.post-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.post-card:first-child {
  border-top: 0;
  padding-top: 0;
}
.post-card .thumb {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 2;
}
.post-card .body {
  max-width: 560px;
}
.post-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 10px 0 12px;
}
.post-card p {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 0 18px;
}
@media (max-width: 760px) {
  .post-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.meta .tag {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-ink);
}
.more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.more span {
  color: var(--gold-ink);
}

/* ---------- Article ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 40px;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--ink);
}
article {
  padding: 20px 0 72px;
}
article header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 14px 0 18px;
}
article .byline {
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 28px;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--rule);
}
.cover {
  margin: 0 0 40px;
}
.cover img,
figure.inline img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
figure.inline {
  margin: 40px 0;
}
figure.inline figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}
article h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 56px 0 14px;
}
article h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 32px 0 6px;
}
article p,
article li {
  font-size: 1.15rem;
  color: var(--text);
}
article ul,
article ol {
  padding-left: 22px;
}
article li {
  margin-bottom: 10px;
}
article li::marker {
  color: var(--gold-ink);
}
article strong {
  color: var(--ink);
}

/* Highlighted brand section */
.brand-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 4px 28px 16px;
  margin: 28px 0;
}

/* Contact facts */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--rule);
  margin: 24px 0;
}
.facts div {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  padding-right: 16px;
}
.facts b {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 4px;
}
.facts span {
  color: var(--text);
}

/* Call to action: a dark band, like the main site */
.cta {
  background: var(--charcoal);
  color: #f5f5f5;
  border-radius: 4px;
  padding: 44px 32px;
  margin-top: 64px;
  text-align: center;
}
.cta h2 {
  color: #ffffff;
  margin-top: 0;
}
.cta p {
  color: #b8b2a7;
  margin: 0 0 20px;
}
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 999px;
}
.btn-gold:hover {
  background: #cfb27a;
  color: var(--charcoal);
}

.related {
  border-top: 1px solid var(--rule);
  padding: 48px 0 32px;
}

/* ---------- Footer (dark) ---------- */
.site-footer {
  background: var(--charcoal);
  color: #8f897f;
  font-size: 0.88rem;
  padding: 32px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-footer p {
  margin: 0;
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}
.site-footer a {
  color: #b8b2a7;
  text-decoration: none;
  line-height: 1;
}
.site-footer a:hover {
  color: #ffffff;
}
.site-footer .icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #3a3631;
  border-radius: 50%;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.site-footer .icon-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.site-footer .icon-link svg {
  width: 17px;
  height: 17px;
  display: block;
}
@media (max-width: 640px) {
  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-links {
    gap: 20px;
  }
}

/* Reading progress line on articles */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  z-index: 60;
}

/* Gentle fade-in (content stays visible without JavaScript) */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
