/* Spicy Investing — brand system
   Palette: ink navy ground, cream page, warm gold accent.
   Type: Source Serif 4 (headlines, editorial confidence) + IBM Plex Sans (body/UI, clean and readable). */

:root {
  --ink: #12213a;
  --ink-soft: #2a3c5c;
  --cream: #f7f4ec;
  --cream-alt: #efe9db;
  --gold: #c9a24b;
  --gold-deep: #a9823a;
  --text: #1c2333;
  --text-muted: #52607a;
  --border: #e2dcc9;
  --success: #2f6f4f;

  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 40px 0 16px; }
h3 { font-size: 1.2rem; margin: 24px 0 10px; }

p { margin: 0 0 18px; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* Header */
.site-header {
  background: var(--ink);
  padding: 18px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.brand span { color: var(--gold); }
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.primary-nav a {
  color: var(--cream-alt);
  font-size: 0.95rem;
  font-weight: 500;
}
.primary-nav a:hover { color: var(--gold); text-decoration: none; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--ink-soft); text-decoration: none; }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn.secondary:hover { background: var(--ink); color: var(--cream); }
.btn.gold {
  background: var(--gold);
  color: var(--ink);
}
.btn.gold:hover { background: var(--gold-deep); color: var(--cream); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--cream-alt); }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 28px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 26px;
}
.value-card h3 { margin-top: 0; }
.value-card p { margin-bottom: 0; color: var(--text-muted); }

.section-sub {
  color: var(--text-muted);
  max-width: 620px;
}

/* Disclosure banner */
.disclosure-note {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 3px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 28px 0;
}
.disclosure-note strong { color: var(--ink); }

/* Blog list */
.post-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.post-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.post-list .post-date {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.post-list h3 { margin: 0; font-size: 1.25rem; }
.post-list h3 a { color: var(--ink); }
.post-list h3 a:hover { color: var(--gold-deep); }

/* Post page */
.post-body { max-width: 700px; }
.post-body p { max-width: 68ch; }
.post-body ul { max-width: 68ch; }
.post-date { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 10px; }
.post-body .signoff { color: var(--text-muted); margin-top: 36px; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.post-nav a {
  color: var(--ink);
  font-weight: 600;
  max-width: 320px;
}
.post-nav a span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.post-nav .next { text-align: right; margin-left: auto; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream-alt);
  padding: 36px 0;
  margin-top: 40px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
}
.site-footer ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.site-footer a { color: var(--cream-alt); }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .post-nav .next { text-align: left; margin-left: 0; }
}
