/* Aurevia blog — shared styles. Matches the Aurevia landing design language. */
:root {
  --ink: #171513;
  --muted: #6e6964;
  --cream: #f8f4ec;
  --cream-2: #eee6d8;
  --white: #fff;
  --gold: #b8965f;
  --gold-dark: #7d6138;
  --line: rgba(23, 21, 19, .12);
  --shadow: 0 24px 70px rgba(44, 35, 23, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.serif { font-family: Georgia, "Times New Roman", serif; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { letter-spacing: .18em; text-transform: uppercase; font-size: .76rem; font-weight: 700; color: var(--gold-dark); }
.rule { width: 130px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 1rem 0; }

/* Header / nav (shared with landing) */
header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
nav { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand-group { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; box-shadow: 0 6px 18px rgba(44, 35, 23, .18); }
.brand { text-decoration: none; font-size: 1.35rem; letter-spacing: .08em; font-weight: 800; }
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a { text-decoration: none; font-size: .92rem; color: #504b47; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 54px; padding: 0 1.4rem; border: 1px solid var(--ink); text-decoration: none; font-weight: 700; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }

/* Blog index */
.blog-hero { background: linear-gradient(135deg, #fbf8f1, #eee7dc); border-bottom: 1px solid var(--line); padding: 72px 0 60px; }
.blog-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: .98; font-weight: 300; letter-spacing: -.045em; margin: .4rem 0 0; }
.blog-hero h1 em { color: var(--gold-dark); font-weight: 600; font-style: italic; }
.blog-hero p { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 1rem 0 0; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.posts:empty { display: none; }
.post-card { display: flex; flex-direction: column; padding: 28px; background: var(--cream); border: 1px solid var(--line); text-decoration: none; min-height: 220px; transition: .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(184, 150, 95, .5); }
.post-card .cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.post-card h2 { font-size: 1.3rem; line-height: 1.25; margin: .7rem 0 .6rem; font-weight: 600; }
.post-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.post-card time { margin-top: auto; padding-top: 1rem; color: var(--muted); font-size: .82rem; }

/* Article */
.article-head { background: linear-gradient(135deg, #fbf8f1, #eee7dc); border-bottom: 1px solid var(--line); padding: 56px 0 46px; }
.breadcrumb { font-size: .85rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; color: var(--gold-dark); }
.article-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.04; font-weight: 300; letter-spacing: -.03em; margin: .8rem 0 0; }
.article-meta { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .9rem; }
article.post { width: min(720px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 72px; font-size: 1.12rem; }
article.post h2 { font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; margin: 2.4rem 0 .9rem; line-height: 1.2; }
article.post h3 { font-size: 1.32rem; font-weight: 600; margin: 1.8rem 0 .6rem; }
article.post p { margin: 0 0 1.2rem; }
article.post ul, article.post ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
article.post li { margin: .4rem 0; }
article.post a { color: var(--gold-dark); text-underline-offset: 3px; }
article.post img { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 1.5rem 0; }
article.post blockquote { margin: 1.6rem 0; padding: .4rem 0 .4rem 1.3rem; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
article.post table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .98rem; }
article.post th, article.post td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
article.post th { background: var(--cream); font-weight: 700; }
.notice { padding: 1.2rem 1.4rem; border-left: 3px solid var(--gold); background: var(--cream); color: var(--muted); margin: 2rem 0; border-radius: 0 10px 10px 0; font-size: 1rem; }

/* In-article app callout */
.app-cta { margin: 2.6rem 0; padding: 30px; background: var(--ink); color: #fff; border-radius: 16px; text-align: center; }
.app-cta h3 { color: #fff; margin: 0 0 .5rem; font-size: 1.35rem; }
.app-cta p { color: rgba(255, 255, 255, .72); margin: 0 auto 1.3rem; max-width: 460px; }
.app-cta .button.primary { background: #fff; color: var(--ink); }

/* Related posts */
.related { border-top: 1px solid var(--line); padding: 44px 0 20px; }
.related h2 { font-size: 1.4rem; font-weight: 600; margin: 0 0 1.2rem; }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-list a { text-decoration: none; padding: 18px; border: 1px solid var(--line); background: var(--cream); transition: .2s ease; }
.related-list a:hover { border-color: rgba(184, 150, 95, .5); }
.related-list strong { display: block; font-weight: 600; }

/* Footer (shared with landing) */
footer { background: #0d0c0b; color: #fff; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 38px; }
footer p, footer a { color: rgba(255, 255, 255, .58); }
footer a { text-decoration: none; display: block; margin: .55rem 0; }
footer a:hover { color: #fff; }
.footer-title { font-size: 1.7rem; margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; font-size: .85rem; color: rgba(255, 255, 255, .45); }

/* ---- Pillar hub pages (Pillar-Based Marketing) ---- */
.pillar-badge { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-dark); border: 1px solid var(--gold); border-radius: 999px; padding: .3rem .8rem; }
.article-head .pillar-lead { margin: 1rem 0 0; color: var(--muted); font-size: 1.12rem; max-width: 680px; }

/* Table of contents */
.toc { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; margin: 0 0 2.4rem; }
.toc h2 { font-size: .8rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 .8rem !important; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin: .35rem 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--gold-dark); }

/* Sub-pillar section markers inside a hub */
article.post .subpillar { scroll-margin-top: 100px; }
article.post .subpillar-label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin: 0 0 .3rem; }

/* Cluster list — the supporting posts under a pillar */
.cluster { margin: 1.2rem 0 1.6rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cluster a { display: block; padding: 16px 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: .2s ease; }
.cluster a:hover { border-color: rgba(184, 150, 95, .5); transform: translateY(-2px); }
.cluster a strong { display: block; font-weight: 600; color: var(--ink); }
.cluster a span { color: var(--muted); font-size: .9rem; }
.cluster a.coming { opacity: .6; pointer-events: none; }

/* "Part of the ... guide" up-link on supporting posts */
.pillar-uplink { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.4rem; padding: .6rem 1rem; background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; font-size: .92rem; text-decoration: none; color: var(--muted); }
.pillar-uplink:hover { color: var(--ink); }
.pillar-uplink strong { color: var(--gold-dark); font-weight: 700; }

/* ---- Index organised by pillar ---- */
.pillar-section { padding: 46px 0 10px; border-top: 1px solid var(--line); }
.pillar-section:first-of-type { border-top: 0; }
.pillar-section .pillar-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1.4rem; margin-bottom: 1.4rem; }
.pillar-section h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; margin: 0; }
.pillar-section h2 a { text-decoration: none; }
.pillar-section .pillar-cta { font-size: .9rem; font-weight: 700; color: var(--gold-dark); text-decoration: none; white-space: nowrap; }
.pillar-section p.pillar-blurb { color: var(--muted); margin: 0 0 1.4rem; max-width: 680px; }

@media (max-width: 900px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .related-list { grid-template-columns: 1fr; }
  .cluster { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .nav-links a:not(.button) { display: none; }
  .posts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  article.post { font-size: 1.06rem; }
  .toc ol { columns: 1; }
}
