/* Simple Money Advice: shared site styles (site.css)
   One place for the colors, fonts and article pieces that every article used to repeat.
   Pages link this file just before their own <style> block, so a page can still override
   anything here with its own rule for the same selector.
   Colors and sizes: the variables in :root. Fonts: --font-body (text) and --font-head (headings).
   Added 2026-10-28. Checked against every page at desktop and phone width before the switch. */

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

/* Colors, sizes and fonts. Change a value here and every page that links this file follows. */
:root {
  --bg: #FEFCF7;
  --surface: #FFFFFF;
  --green-dark: #1B4332;
  --green-mid: #2D6A4F;
  --green-light: #52B788;
  --amber: #B45309;
  --amber-light: #FEF3C7;
  --text: #1A1714;
  --text-mid: #4B4540;
  --text-light: #6B635B;
  --border: #E8E3D8;
  --border-light: #F0EDE6;
  --radius-sm: 6px;
  --radius: 12px;
  --font-body: 'Inter',Inter Fallback,Inter Fallback Roboto,sans-serif;
  --font-head: 'Lora',Lora Fallback,Lora Fallback Noto,serif;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Older page top bar (the shared header itself lives in partials/header.css) */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,252,247,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--green-dark);
}

/* Article layout and title */
.article-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.article-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: #ECFDF5;
  color: var(--green-mid);
  margin-bottom: 18px;
}
.article-title {
  font-family: var(--font-head);
  font-size: clamp(28px,4vw,40px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.article-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Callout (the amber note box) */
.callout {
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  margin: 28px 0;
}
.callout p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}
.callout strong {
  color: var(--amber);
}

/* Quick Answer box */
.data-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
}
.data-box-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-light);
  margin-bottom: 16px;
}
.data-row:last-child {
  border-bottom: none;
}
.data-label {
  color: var(--text-mid);
}
.data-value {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 15px;
}

/* Article text */
.article-body h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-dark);
  margin: 36px 0 12px;
}
.article-body p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 18px;
}
.article-body p strong {
  color: var(--text);
  font-weight: 600;
}

/* Verdict box (the bottom line) */
.verdict {
  background: #ECFDF5;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
}
.verdict-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--green-mid);
  margin-bottom: 10px;
}
.verdict p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

/* Read Next card */
.next-article {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}
.next-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-light);
  margin-bottom: 12px;
}
.next-card:hover {
  border-color: var(--green-light);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.next-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}
.next-card span {
  font-size: 13px;
  color: var(--text-light);
}
.next-arrow {
  color: var(--green-mid);
  flex-shrink: 0;
}

/* Footer */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.5);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
}
footer a {
  color: rgba(255,255,255,.5);
}
.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  max-width: 640px;
  margin: 12px auto 0;
  line-height: 1.7;
}
