/* TalkGlittz — premium editorial theme v2. No frameworks, no heavy libraries.
   Warm gold + cream brand, deeper and more deliberate. Fast, mobile-first,
   and AdSense-friendly: generous whitespace, clean uncluttered reading column. */

/* Wordmark font: Fraunces 900 (picked by Nima 2026-12-05) — loaded from Google Fonts, Georgia fallback if offline. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,900&display=swap');

* { box-sizing: border-box; }

:root {
  --ink: #211d15;
  --ink-soft: #4d4636;
  --muted: #6b6252;
  --cream: #fbf8f1;
  --paper: #fffdf8;
  --gold: #8a6d00;
  --gold-bright: #c9a227;
  --gold-dark: #e3c766;
  --line: #e9dfc9;
  --line-soft: #f0e9d6;
  --shadow: 0 4px 18px rgba(33, 29, 21, 0.06);
  --shadow-lift: 0 12px 28px rgba(33, 29, 21, 0.12);
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px;
}

.wrap.wide { max-width: 1120px; }

/* ---------- masthead — 3D sunrise scene (HD image + live sparks) ---------- */
header.site {
  position: relative;
  overflow: hidden;
  /* 3D HD header image (2240px wide, golden sunrise over layered mountains) with a dark gradient so the cream/gold wordmark stays readable. */
  background: linear-gradient(rgba(31, 26, 18, 0.62), rgba(31, 26, 18, 0.30) 42%, rgba(31, 26, 18, 0.82)), url('../images/header-bg-3d.jpg') center 38% / cover no-repeat, #1f1a12;
  color: #f5efe0;
  padding: 56px 0 48px;
  margin-bottom: 48px;
  border-bottom: 3px solid var(--gold-bright);
}

/* The 3D image already has its own sun and mountain ridges, so the old CSS sun/ridges are hidden — the floating gold sparks and glow stay live on top. */
.sun, .ridges { display: none; }

header.site::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -140px;
  width: 720px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(227, 199, 102, 0.28), rgba(227, 199, 102, 0) 65%);
  animation: glow-pulse 9s ease-in-out infinite alternate;
  pointer-events: none;
}

header.site .wrap { position: relative; z-index: 1; }

.sky { position: absolute; inset: 0; pointer-events: none; }

.sun {
  position: absolute;
  left: 50%;
  bottom: -58px;
  width: 230px;
  height: 230px;
  margin-left: -115px;
  border-radius: 50%;
  background: radial-gradient(circle, #f7d774 0%, #e3c766 45%, rgba(201, 162, 39, 0.55) 70%, rgba(201, 162, 39, 0) 78%);
  box-shadow: 0 0 60px 24px rgba(227, 199, 102, 0.35);
  animation: sun-rise 16s ease-in-out infinite alternate;
}

.ridges { position: absolute; left: 0; bottom: 0; width: 100%; height: 64px; }

.spark {
  position: absolute;
  left: var(--x);
  bottom: -8px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #f7d774;
  box-shadow: 0 0 8px 2px rgba(247, 215, 116, 0.55);
  opacity: 0;
  animation: spark-rise var(--d) linear var(--t) infinite;
}

@keyframes sun-rise {
  from { transform: translateY(26px); }
  to { transform: translateY(-10px); }
}

@keyframes glow-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@keyframes spark-rise {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.9; }
  70% { opacity: 0.55; }
  100% { transform: translateY(-240px); opacity: 0; }
}

@keyframes gold-shimmer {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

.brand {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 900;
  color: #fdf9ef;
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.brand span {
  background: linear-gradient(120deg, #f7d774, #e3c766 35%, #c9a227 55%, #f7d774 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(227, 199, 102, 0.35));
  animation: gold-shimmer 6s linear infinite;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 46px; border-radius: 11px; flex: none; box-shadow: 0 0 0 1px rgba(227, 199, 102, 0.45), 0 0 18px rgba(227, 199, 102, 0.35); }

.tagline {
  margin: 6px 0 18px;
  font-size: 15px;
  color: #cbbf9f;
  font-style: italic;
}

nav.main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

nav.main a {
  color: #efe6cf;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

nav.main a:hover { color: var(--gold-dark); text-decoration: underline; }

/* ---------- text ---------- */
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--ink);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.3;
  margin: 36px 0 10px;
  color: var(--ink);
}

h3 {
  font-size: 19px;
  margin: 26px 0 8px;
}

p { margin: 0 0 18px; }

.standfirst {
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.6;
}

a { color: var(--gold); }
a:hover { color: #6b4a00; }

ul, ol { margin: 0 0 18px; padding-left: 26px; }
li { margin-bottom: 8px; }

blockquote {
  margin: 24px 0;
  padding: 14px 22px;
  border-left: 3px solid var(--gold-bright);
  background: #faf5e6;
  color: var(--ink-soft);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

/* ---------- article meta ---------- */
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.meta {
  font-size: 14.5px;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
}

/* ---------- article hero image ---------- */
figure.hero { margin: 0 0 30px; }

figure.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(33, 29, 21, 0.14);
}

/* ---------- homepage intro ---------- */
.intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.intro h1 { font-size: 46px; }

.intro .standfirst { font-size: 21px; }

/* ---------- section headings ---------- */
.section-head {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin: 52px 0 26px;
}

.section-head h2 { margin: 0; font-size: 26px; }

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- featured article ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
}

.featured:hover { box-shadow: var(--shadow-lift); }

.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.featured-body { padding: 30px 32px; }

.featured-body h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 6px 0 10px;
}

.featured-body p.desc {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 14px;
}

.featured-body .read-more {
  font-weight: 700;
  color: var(--gold);
  font-size: 16px;
}

/* ---------- article card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body { padding: 20px 22px 24px; }

.card-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.3;
  margin: 6px 0 8px;
  color: var(--ink);
}

.card:hover .card-body h3 { color: var(--gold); }

.card-body p.desc {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- about / closing section ---------- */
.about-blurb { max-width: 720px; }

.about-blurb h2 { margin-top: 0; }

/* ---------- footer ---------- */
footer.site {
  background: #1f1a12;
  color: #b8ab8d;
  border-top: 3px solid var(--gold-bright);
  margin-top: 72px;
  padding: 36px 0 42px;
  font-size: 14.5px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
}

footer.site nav a {
  color: #e8ddc0;
  text-decoration: none;
  font-weight: 600;
}

footer.site nav a:hover { color: var(--gold-dark); text-decoration: underline; }

footer.site p { margin: 0; }

/* ---------- small screens ---------- */
@media (max-width: 680px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  header.site { padding: 26px 0 20px; margin-bottom: 34px; }
  .brand { font-size: 28px; }
  nav.main a { font-size: 15px; }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .intro h1 { font-size: 33px; }
  .intro .standfirst { font-size: 18px; }
  figure.hero img { aspect-ratio: 16 / 10; border-radius: 10px; }
  .featured { grid-template-columns: 1fr; }
  .featured-body { padding: 22px 20px 26px; }
  .featured-body h2 { font-size: 25px; }
  .card-grid { grid-template-columns: 1fr; gap: 22px; }
  .section-head { margin: 40px 0 20px; }
  footer.site { margin-top: 56px; }
}

/* ---------- trust layer: byline, author box, FAQ, related posts ---------- */
.byline {
  font-size: 15px;
  color: var(--muted);
  margin: -12px 0 24px;
}

.author-box {
  background: #faf5e6;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-bright);
  border-radius: 0 8px 8px 0;
  padding: 20px 22px;
  margin: 36px 0;
}

.author-box h2 { margin: 0 0 8px; font-size: 23px; }

.author-box p { margin: 0; color: var(--ink-soft); }

.related-list { list-style: none; padding: 0; margin: 0 0 18px; }

.related-list li { margin-bottom: 10px; }

.related-list a {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.related-list a:hover { color: var(--gold); box-shadow: var(--shadow-lift); }

/* ---------- masthead on small screens + reduced motion ---------- */
@media (max-width: 680px) {
  header.site { padding: 36px 0 28px; }
  .brand { font-size: 30px; }
  .sun { width: 160px; height: 160px; margin-left: -80px; bottom: -46px; }
  .ridges { height: 48px; }
  .spark:nth-of-type(n+5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sun, .spark, header.site::before, .brand span { animation: none; }
}
