/* Shared styles for the guide pages. The home page keeps its own inline CSS. */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/playfair-display-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Fallback';
  src: local('Georgia');
  size-adjust: 101.97%;
  ascent-override: 106.1%;
  descent-override: 24.61%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 108.05%;
  ascent-override: 89.66%;
  descent-override: 22.32%;
  line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1B2A4A;
  --cream:  #F7F4EE;
  --slate:  #6B7A8D;
  --teal:   #2D9B8A;
  --amber:  #E8A838;
  --white:  #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  background: var(--cream);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo .logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.nav-logo-text span { color: var(--teal); }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  color: rgba(247,244,238,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--cream); }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
}

.nav-cta:hover { background: #24806f; }

/* ── ARTICLE ── */
.article-head {
  background: var(--navy);
  padding: 128px 5% 64px;
}

.article-head-inner { max-width: 760px; margin: 0 auto; }

.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,244,238,0.55);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.article-head h1 {
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-standfirst {
  font-size: 1.05rem;
  color: rgba(247,244,238,0.72);
  font-weight: 300;
  line-height: 1.7;
}

article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 5% 72px;
}

article h2 {
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 2.5rem 0 0.9rem;
}

article h2:first-child { margin-top: 0; }

article h3 {
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

article p { margin-bottom: 1.1rem; color: #2b3a52; }

article ul, article ol { margin: 0 0 1.3rem 1.2rem; }
article li { margin-bottom: 0.55rem; color: #2b3a52; }
article li::marker { color: var(--teal); }

article a { color: #1d7c6e; }
article strong { color: var(--navy); }

.callout {
  background: #EEF6F4;
  border: 1px solid rgba(45,155,138,0.35);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
}

.callout p:last-child { margin-bottom: 0; }

.callout-title {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.note {
  font-size: 0.875rem;
  color: var(--slate);
  border-top: 1px solid #ddd8ce;
  padding-top: 1.1rem;
  margin-top: 2.5rem;
}

/* ── CTA ── */
.cta {
  background: var(--navy);
  padding: 64px 5%;
  text-align: center;
}

.cta-inner { max-width: 620px; margin: 0 auto; }

.cta h2 {
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.cta p { color: rgba(247,244,238,0.7); margin-bottom: 1.75rem; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #24806f; transform: translateY(-1px); }

.cta-alt { display: block; margin-top: 1rem; font-size: 0.875rem; color: rgba(247,244,238,0.7); }
.cta-alt a { color: var(--teal); }

/* ── FOOTER ── */
footer {
  background: #111D33;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  color: rgba(247,244,238,0.5);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo span { color: var(--teal); }
.footer-logo .logo-mark { width: 26px; height: 26px; }
.footer-links { font-size: 0.8rem; }
.footer-links a { color: rgba(247,244,238,0.65); text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.footer-note { font-size: 0.78rem; color: rgba(247,244,238,0.3); }

@media (max-width: 700px) {
  nav { padding: 0 4%; }
  .nav-links { display: none; }
  .article-head { padding: 104px 4% 48px; }
  article { padding: 40px 4% 56px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
