/* Finlume — premium neo-editorial stylesheet (2026).
   Dark navy + gold, Fraunces serif display + clean sans body,
   hairline borders, generous whitespace. Google Fonts with system fallbacks. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0a1f33;
  --navy-deep: #071526;
  --navy-soft: #10293f;
  --gold: #d4af37;
  --gold-light: #f0d47a;
  --gold-soft: #fdf6e0;
  --ink: #17222e;
  --muted: #5c6b7a;
  --line: #e4e0d4;
  --bg: #faf8f3;
  --card: #ffffff;
  --green: #1a7f4b;
  --radius: 20px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: #0e5a9e; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Sticky glass header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 21, 38, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  color: #fff; padding: 0;
}
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 68px; }
.brand { color: #fff; font-family: var(--serif); font-size: 1.55rem; font-weight: 900; line-height: 1.1; padding: 10px 0; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--gold); }
.brand span { display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #a9c2d8; margin-top: 2px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.main-nav a {
  color: #d6e4f0; padding: 8px 13px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600;
}
.main-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }
.main-nav a.active { background: var(--gold); color: var(--navy-deep); }

main { padding: 0 0 56px; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #143a5c 100%);
  color: #fff; border-radius: 0 0 28px 28px;
  padding: 64px 0 56px; margin-bottom: 40px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 85% 10%, rgba(212,175,55,0.22), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-light);
  border: 1px solid rgba(212,175,55,0.55); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
}
.hero h1 { margin: 0 0 16px; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p { margin: 0 0 24px; color: #c3d5e5; font-size: 1.08rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block; background: var(--gold); color: var(--navy-deep); font-weight: 800;
  padding: 13px 24px; border-radius: 999px; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(212,175,55,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212,175,55,0.45); }
.btn-ghost {
  display: inline-block; color: #fff; font-weight: 700; padding: 13px 20px;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 999px;
}
.btn-ghost:hover { text-decoration: none; background: rgba(255,255,255,0.1); }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div { border-left: 2px solid var(--gold); padding-left: 12px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: #fff; line-height: 1.2; }
.hero-stats span { font-size: 0.82rem; color: #a9c2d8; }
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
  border: 1px solid rgba(212,175,55,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  aspect-ratio: 16 / 10;
}
.hero-visual figcaption { font-size: 0.8rem; color: #8fa9bf; margin-top: 10px; text-align: right; }

/* ---- Section headings ---- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.7rem; color: var(--navy); }
.section-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.rule { height: 2px; background: linear-gradient(90deg, var(--gold), transparent); border: 0; margin: 0 0 24px; }

/* ---- Toolbar / filters ---- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; align-items: center; }
.toolbar input[type="search"] {
  flex: 1; min-width: 220px; padding: 13px 18px; font-size: 1rem; font-family: var(--sans);
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: 0 2px 10px rgba(10,31,51,0.05);
}
.toolbar input[type="search"]:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 10px 18px; border-radius: 999px; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  font-family: var(--sans); transition: all 0.18s ease;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- Post cards ---- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 4px 20px rgba(10,31,51,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(10,31,51,0.14); }
.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.post-card.featured .card-media img { height: 100%; min-height: 260px; }
.card-media { overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2 { margin: 0; font-size: 1.3rem; line-height: 1.3; }
.post-card h2 a { color: var(--navy); }
.post-card h2 a:hover { color: #0e5a9e; }
.post-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.badge {
  display: inline-block; align-self: flex-start; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; background: #e8f1fa; color: #0e4d8a;
}
.badge.stocks { background: #e6f4ea; color: var(--green); }
.badge.crypto { background: var(--gold-soft); color: #7a5a00; }
.meta { font-size: 0.88rem; color: var(--muted); }
.read-more { font-weight: 700; margin-top: auto; padding-top: 6px; }
.no-results { display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* ---- CTA box ---- */
.cta-box {
  margin-top: 48px; background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 36px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  border: 1px solid rgba(212,175,55,0.4);
}
.cta-box h2 { margin: 0 0 6px; color: #fff; font-size: 1.6rem; }
.cta-box p { margin: 0; color: #c3d5e5; max-width: 60ch; }
.cta-box .btn { flex-shrink: 0; }

/* ---- Article ---- */
.article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 40px; box-shadow: 0 4px 20px rgba(10,31,51,0.05);
}
.article h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.25; color: var(--navy); }
.article h2 { margin-top: 34px; color: var(--navy); font-size: 1.45rem; padding-top: 8px; border-top: 1px solid var(--line); }
.article h2:first-of-type { border-top: 0; }
.article h3 { margin-top: 24px; color: var(--navy); }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--gold); font-weight: 700; }
.article p { font-size: 1.05rem; }
.lead { font-size: 1.18rem; color: var(--muted); font-family: var(--serif); line-height: 1.65; }
.post-hero { margin: -36px -40px 28px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.disclaimer {
  margin-top: 32px; padding: 18px 20px; border-left: 4px solid var(--gold);
  background: var(--gold-soft); border-radius: 0 12px 12px 0; font-size: 0.95rem;
}
.disclaimer strong { color: var(--navy); }
.back-link { display: inline-block; margin: 24px 0 16px; font-weight: 700; }
.next-post {
  margin-top: 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); font-size: 1rem;
}
.next-post strong { color: var(--navy); }

/* ---- Static pages ---- */
.page {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 40px; box-shadow: 0 4px 20px rgba(10,31,51,0.05);
}
.page h1 { margin-top: 0; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.2rem); }
.page h2 { color: var(--navy); margin-top: 28px; }
.page-head { margin: 32px 0 24px; }
.page-head .hero-eyebrow { color: #8a6d00; border-color: rgba(180,140,20,0.5); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: #a9c2d8; padding: 44px 0 32px; margin-top: 24px; border-top: 3px solid var(--gold); }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-family: var(--serif); margin: 0 0 10px; font-size: 1.25rem; }
.site-footer h4 { color: var(--gold-light); margin: 0 0 10px; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer p { margin: 0; font-size: 0.95rem; }
.site-footer a { color: #d6e4f0; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.88rem; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 44px 0 40px; }
  .post-card.featured { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1, .article h1 { font-size: 1.7rem; }
  .article, .page { padding: 24px 20px; }
  .post-hero { margin: -24px -20px 22px; }
  .brand { font-size: 1.35rem; }
  .cta-box { padding: 28px 22px; }
  .hero-stats { gap: 18px; }
}
