/* Daivon — shared styles for the Journal hub & articles.
   Mirrors the design tokens used on the homepage (index.html). */
:root {
  --midnight: #050F1A;
  --navy: #0A1B2E;
  --navy-2: #0E2740;
  --gold: #D6A535;
  --gold-light: #F2D27A;
  --blue: #2187C2;
  --cloud: #EAF2FB;
  --silver: #8FA0B3;
  --pearl: #C8D4E0;
  --snow: #F0F4F9;
  --white: #FFFFFF;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--midnight);
  color: var(--pearl);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--midnight); }
a { color: var(--gold); }

/* Navigation (shared with homepage) */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.1rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(5, 15, 26, 0.72);
  border-bottom: 1px solid rgba(214, 165, 53, 0.12);
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 6px; }
.brand .wm {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600; letter-spacing: 0.28em; color: var(--gold);
}
.brand .wm span {
  display: block; font-family: 'DM Sans', sans-serif; font-weight: 300;
  color: var(--silver); letter-spacing: 0.18em; font-size: 0.58rem; text-transform: uppercase; margin-top: 2px;
}
.nav-links { display: flex; gap: 2.3rem; list-style: none; }
.nav-links a {
  color: var(--silver); text-decoration: none; font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.5rem; cursor: pointer; line-height: 1; }

/* Page shell */
.page { max-width: 820px; margin: 0 auto; padding: 9rem 1.6rem 5rem; }
.section-label { font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 500; }
.breadcrumb { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--silver); margin-bottom: 1.6rem; }
.breadcrumb a { color: var(--silver); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* Article typography */
.article h1 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 300; line-height: 1.12; color: var(--snow); margin-bottom: 1rem;
}
.article .lede { font-size: 1.15rem; line-height: 1.8; color: var(--pearl); font-weight: 300; margin-bottom: 2.4rem; }
.article h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 500;
  color: var(--gold); margin: 2.6rem 0 1rem; line-height: 1.25;
}
.article p { font-size: 1.02rem; line-height: 1.9; color: var(--silver); font-weight: 300; margin-bottom: 1.3rem; }
.article strong { color: var(--pearl); font-weight: 600; }
.article em { color: var(--snow); font-style: italic; }
.article ul { margin: 0 0 1.4rem 1.2rem; }
.article li { font-size: 1.02rem; line-height: 1.8; color: var(--silver); font-weight: 300; margin-bottom: 0.6rem; padding-left: 0.4rem; }
.article li::marker { color: var(--gold); }
.article a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(214,165,53,0.4); transition: color .3s; }
.article a:hover { color: var(--gold-light); }
hr.rule { border: none; border-top: 1px solid var(--navy-2); margin: 3rem 0; }

/* Inline CTA */
.cta-card {
  margin-top: 2.6rem; padding: 2.2rem; border: 1px solid var(--navy-2);
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); text-align: center;
}
.cta-card p { font-size: 1.02rem; color: var(--pearl); margin-bottom: 1.4rem; font-weight: 300; line-height: 1.7; }
.btn-primary {
  display: inline-block; padding: 0.9rem 2.4rem; background: var(--gold); color: var(--midnight);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border: none; cursor: pointer; text-decoration: none; transition: all 0.3s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(214,165,53,0.25); }
/* Keep the CTA label readable: .article a colours links gold, which would hide
   the button text on its gold background. Force dark text + no underline. */
.article a.btn-primary, .article a.btn-primary:hover { color: var(--midnight) !important; border-bottom: none; }

/* Related / hub cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.5rem; background: var(--navy-2); }
.card {
  display: flex; flex-direction: column; padding: 2.2rem; background: var(--midnight);
  text-decoration: none; transition: all 0.4s; position: relative;
}
.card::before { content:''; position:absolute; top:0; left:0; width:100%; height:2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.card:hover::before { transform: scaleX(1); }
.card:hover { background: var(--navy); }
.card .kicker { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 500; color: var(--snow); margin-bottom: 0.7rem; line-height: 1.25; }
.card p { font-size: 0.9rem; line-height: 1.7; color: var(--silver); font-weight: 300; margin-bottom: 1.1rem; }
.card .read { margin-top: auto; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.related-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--snow); font-weight: 400; margin-top: 4rem; }

/* Footer (shared with homepage) */
footer { padding: 2.6rem 4rem; border-top: 1px solid rgba(214,165,53,0.1); }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; color: var(--silver); }
footer a { color: var(--silver); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--gold); }
.disclaimer { margin-top: 1.4rem; font-size: 0.7rem; color: #5d6b7a; line-height: 1.7; max-width: 720px; }

@media (max-width: 950px) {
  nav { padding: 0.9rem 1.6rem; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(5,15,26,0.98); border-bottom: 1px solid rgba(214,165,53,0.15); padding: 0.5rem 1.6rem 1rem; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.7rem 0; border-bottom: 1px solid rgba(214,165,53,0.06); }
  .cards { grid-template-columns: 1fr; }
  footer { padding: 2.6rem 1.6rem; }
  .footer-top { flex-direction: column; text-align: center; }
}
