/* ============================================================
   Ansis Jānis Ozolins personal site
   Warm · calm · light editorial one-page + blog
   (inspired by the calm/warm designs on onepagelove.com)
   ============================================================ */

:root {
  --bg: #f3ebdd;        /* warm sand base */
  --bg-tint: #f8f2e7;   /* slightly lighter warm, for alternating sections */
  --ink: #3b3026;       /* warm dark brown */
  --ink-2: #5c4f40;     /* softer brown for body */
  --soft: #8a7c69;      /* muted taupe */
  --rule: #e6dac6;      /* soft warm hairline */
  --accent: #9e5a34;    /* warm clay / sienna */
  --accent-dk: #874a2a;
  --accent-soft: #ecdcc9;
  --tag-bg: #ece1cf;
}

/* Base */
body {
  background-color: var(--bg);
  color: var(--ink-2);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.big-name, .cta h2, .post-h1, .blog-h1,
.post-content h1, .post-content h2, .post-content h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500; letter-spacing: -0.02em;
}
p { color: var(--ink-2); }
a { color: var(--ink); text-decoration: none; }

/* ---------------- Nav (minimal, warm) ---------------- */
.site-navbar {
  background-color: var(--bg) !important;
  border-bottom: 1px solid var(--rule);
  padding-top: 18px; padding-bottom: 18px;
}
.site-navbar .brand { font-weight: 700; color: var(--ink) !important; font-size: 1.02rem; letter-spacing: -0.02em; }
.site-navbar .nav-link { color: var(--soft) !important; font-weight: 500; font-size: 0.95rem; }
.site-navbar .nav-link:hover, .site-navbar .nav-link.active { color: var(--accent) !important; }
.site-navbar .dropdown-menu { background: var(--bg-tint); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 12px 30px rgba(59,48,38,0.10); }
.site-navbar .dropdown-item:hover { background: var(--accent-soft); }

/* ---------------- Layout ---------------- */
.site-main { min-height: 70vh; }
.wrap { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 60px 0; }
.sec-first { padding-top: 46px; padding-bottom: 34px; }
.sec-tint { background: var(--bg-tint); }

.eyebrow-title {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--soft); font-weight: 600; margin-bottom: 24px;
}

/* ---------------- Hero ---------------- */
.hero-photo-min {
  width: 124px; height: 124px; border-radius: 50%; object-fit: cover;
  margin-bottom: 28px; box-shadow: 0 12px 30px rgba(59,48,38,0.16);
}
.eyebrow { font-size: 0.95rem; color: var(--soft); font-weight: 500; margin-bottom: 16px; }
.big-name { font-size: 3.6rem; line-height: 1.05; margin: 0 0 16px; color: var(--ink); }
.lead { font-size: 1.32rem; color: var(--ink); font-weight: 500; line-height: 1.45; margin-bottom: 22px; }
.intro { font-size: 1.13rem; line-height: 1.78; color: var(--ink-2); margin-bottom: 16px; }
.intro strong { color: var(--ink); font-weight: 600; }
.links-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* buttons */
.btn-ink {
  background: var(--accent); color: #fff !important; border: 1px solid var(--accent);
  border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s ease; display: inline-block;
}
.btn-ink:hover { background: var(--accent-dk); color: #fff !important; }
.btn-ghost {
  background: transparent; color: var(--ink) !important; border: 1px solid var(--rule);
  border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 0.95rem;
  transition: all 0.15s ease; display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ---------------- Work ---------------- */
.work-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 18px;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.work-role { font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.work-org { color: var(--soft); font-size: 0.96rem; margin-top: 1px; }
.work-period { color: var(--soft); font-size: 0.9rem; white-space: nowrap; text-align: right; padding-top: 2px; }
.work-desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.98rem; line-height: 1.62; margin: 8px 0 0; }

/* ---------------- Skills ---------------- */
.skill-cat { margin-bottom: 24px; }
.skill-cat:last-child { margin-bottom: 0; }
.skill-cat h3 { font-size: 1rem; margin-bottom: 12px; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--tag-bg); border: 1px solid var(--rule); color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; font-weight: 500;
}

/* ---------------- Certification ---------------- */
.cert { font-size: 1.1rem; line-height: 1.7; color: var(--ink-2); }
.cert strong { color: var(--ink); font-weight: 700; }

/* ---------------- Education ---------------- */
.edu-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.edu-row .d { font-weight: 600; color: var(--ink); }
.edu-row .s { color: var(--soft); text-align: right; }

/* ---------------- Projects ---------------- */
.proj-item { padding: 22px 0; border-top: 1px solid var(--rule); }
.proj-item h3 { font-size: 1.18rem; margin: 0 0 5px; color: var(--ink); }
.proj-desc { color: var(--ink-2); font-size: 0.98rem; line-height: 1.62; margin: 0 0 10px; }
.proj-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.proj-link { color: var(--accent); font-weight: 600; font-size: 0.92rem; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.proj-link:hover { color: var(--accent-dk); border-color: var(--accent-dk); }
.proj-meta { color: var(--soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------------- CTA / contact ---------------- */
.cta h2 { font-size: 2.5rem; margin-bottom: 14px; color: var(--ink); }
.cta p { font-size: 1.13rem; color: var(--ink-2); margin-bottom: 8px; line-height: 1.7; }

/* ---------------- Blog ---------------- */
.blog-h1 { font-size: 2.6rem; line-height: 1.08; margin: 6px 0 16px; color: var(--ink); }
.blog-card-link { display: block; }
.blog-card { padding: 26px 0; border-top: 1px solid var(--rule); }
.post-date { color: var(--soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.post-title-link { font-size: 1.4rem; margin: 0 0 8px; color: var(--ink); transition: color 0.15s ease; }
.blog-card-link:hover .post-title-link { color: var(--accent); }
.post-summary { color: var(--ink-2); margin: 0 0 12px; line-height: 1.6; }

/* single post */
.post-h1 { font-size: 2.7rem; line-height: 1.1; margin: 10px 0 20px; color: var(--ink); }
.post-content { color: var(--ink-2); font-size: 1.13rem; line-height: 1.85; }
.post-content h1, .post-content h2, .post-content h3 { color: var(--ink); margin: 1.6em 0 0.5em; }
.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content p { margin: 0 0 1.15em; }
.post-content a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.post-content ul, .post-content ol { margin: 0 0 1.15em 1.25em; }
.post-content li { margin-bottom: 0.45em; }
.post-content blockquote { border-left: 3px solid var(--accent-soft); margin: 1.3em 0; padding: 0.3em 0 0.3em 1.2em; color: var(--soft); font-style: italic; }
.post-content code { background: var(--tag-bg); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }
.post-content pre { background: #efe6d6; padding: 16px; border-radius: 12px; overflow: auto; }
.post-content img { max-width: 100%; border-radius: 12px; }
.back-link { color: var(--soft); font-weight: 500; font-size: 0.9rem; }
.back-link:hover { color: var(--accent); }

/* ---------------- Subscribe ---------------- */
.subscribe {
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 32px 28px;
  margin-top: 44px;
}
.subscribe-title { font-size: 1.4rem; margin: 0 0 6px; color: var(--ink); }
.subscribe-text { color: var(--ink-2); margin: 0 0 18px; line-height: 1.6; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-input {
  flex: 1 1 260px; min-width: 0;
  padding: 11px 18px; border: 1px solid var(--rule); border-radius: 999px;
  background: #fffdf9; color: var(--ink); font-size: 0.95rem; font-family: inherit;
}
.subscribe-input:focus { outline: none; border-color: var(--accent); }
.subscribe-msg { margin-top: 12px; color: var(--accent-dk); font-weight: 600; font-size: 0.95rem; min-height: 1.2em; }
.consent { margin-top: 14px; font-size: 0.9rem; color: var(--ink-2); }
.consent label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.gdpr-note { margin-top: 14px; font-size: 0.8rem; color: var(--soft); line-height: 1.55; }
.gdpr-note a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.footer-link { color: var(--soft); font-weight: 500; }
.footer-link:hover { color: var(--accent); }

/* ---------------- Mobile ---------------- */
@media (max-width: 768px) {
  .big-name { font-size: 2.5rem; }
  .blog-h1, .post-h1 { font-size: 2rem; }
  .lead { font-size: 1.18rem; }
  .sec { padding: 42px 0; }
  .work-item { grid-template-columns: 1fr; }
  .work-period { text-align: left; }
  .cta h2 { font-size: 2rem; }
}

/* ============================================================
   Legacy styling kept for the Trader / financial dashboard pages
   ============================================================ */
button, input[type="submit"] { border-radius: 8px; font-weight: 500; transition: all 0.2s ease-in-out; }
.dash-graph, .js-plotly-plot {
  background-color: #ffffff !important; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); padding: 10px; margin-bottom: 20px;
}
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); padding: 16px; margin-bottom: 16px;
}
.fd-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fd-input { width: 220px; }
.fd-dropdown { width: 180px; }
.fd-btn { padding: 8px 14px; }
.fd-status { margin-left: 6px; font-style: italic; color: #6b7280; }
.fd-controls { display: grid; gap: 12px; }
.fd-control { margin-bottom: 8px; }
.fd-peers-label { margin-right: 8px; }
.fd-peers-input { width: 420px; }
.cards-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }
.kpi-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 14px 18px; min-width: 160px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.kpi-value { font-size: 1.2rem; font-weight: 700; color: #111827; }
.kpi-label { color: #6b7280; font-size: 0.9rem; }
.dash-table-container { border-radius: 10px; overflow: hidden; }
