/* ===== Smart Money Moves — main stylesheet ===== */

:root {
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --ink-faint: #8492a6;
  --paper: #ffffff;
  --paper-warm: #f7f9fc;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-light: #ccfbf1;
  --gold: #d97706;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo .logo-mark { color: var(--accent); }
.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}
.site-footer .logo-icon { width: 24px; height: 24px; border-radius: 6px; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--accent); text-decoration: none; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, #0f2e2b 0%, #115e59 60%, #0f766e 100%);
  color: #f0fdfa;
  padding: 72px 0 80px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0 auto 18px;
}

.hero p {
  font-size: 1.15rem;
  color: #99f6e4;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Sections ===== */
.section { padding: 56px 0; }

.section-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--ink-faint);
  margin-bottom: 32px;
  font-size: 0.98rem;
}

/* ===== Article cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-thumb {
  height: 170px;
  overflow: hidden;
  background: var(--paper-warm);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-thumb img { transform: scale(1.04); }

.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }

.card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.card-meta {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ===== Ad slots =====
   Replace the inner content of .ad-slot with your Google AdSense
   code once approved. The placeholder styling disappears when a
   real ad iframe is injected. */
.ad-slot {
  background: var(--paper-warm);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 40px 0;
}

.ad-slot--leaderboard { min-height: 110px; }
.ad-slot--rect { min-height: 260px; }

/* ===== Article page ===== */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.article-page .breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.article-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.article-meta {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-hero {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 36px;
}

@media (max-width: 720px) {
  .article-hero { height: 140px; }
}

.article-page h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 44px 0 16px;
  letter-spacing: -0.01em;
}

.article-page h3 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
}

.article-page p { margin-bottom: 20px; color: #2d3748; }

.article-page ul, .article-page ol {
  margin: 0 0 20px 26px;
  color: #2d3748;
}

.article-page li { margin-bottom: 8px; }

.article-page blockquote {
  border-left: 4px solid var(--accent);
  background: var(--paper-warm);
  padding: 18px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--ink-soft);
}

.article-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.article-page th, .article-page td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.article-page th { background: var(--paper-warm); font-weight: 600; }

.callout {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  color: var(--accent-dark);
  font-size: 0.97rem;
}

.callout strong { display: block; margin-bottom: 4px; }

/* ===== Newsletter strip ===== */
.newsletter {
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

.newsletter h2 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 8px; }
.newsletter p { color: var(--ink-soft); margin-bottom: 20px; }

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  width: min(320px, 100%);
}

.newsletter-form button {
  padding: 12px 26px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.newsletter-form button:hover { background: var(--accent-dark); }

/* ===== Footer ===== */
.site-footer {
  background: #0f1a2a;
  color: #94a3b8;
  padding: 48px 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.site-footer .logo { color: #f1f5f9; font-size: 1.25rem; }
.site-footer h4 {
  color: #e2e8f0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #f1f5f9; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

/* ===== Static pages ===== */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.page-content h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.page-content h2 { font-family: var(--font-serif); font-size: 1.4rem; margin: 36px 0 14px; }
.page-content p { margin-bottom: 18px; color: #2d3748; }
.page-content ul { margin: 0 0 18px 26px; }
.page-content li { margin-bottom: 6px; }

/* ===== Contact form ===== */
.hidden-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 28px 0 40px;
  padding: 28px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form button {
  margin-top: 16px;
  align-self: flex-start;
  padding: 12px 26px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover { background: var(--accent-dark); }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .main-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 48px 0 56px; }
}
