/* Tiny Finance — warm editorial stylesheet */
:root {
  --bg: #faf6ef;
  --card: #ffffff;
  --ink: #2f2620;
  --muted: #8a7a68;
  --accent: #c07f1f;
  --accent-deep: #9a6314;
  --accent-soft: #f7ecd7;
  --line: #e9ddc9;
  --green: #3e7d4e;
  --radius: 10px;
  --maxw: 1080px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f2c14e, #c07f1f);
  display: inline-block; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35);
  flex: none;
}
.main-nav a {
  margin-left: 26px; color: var(--ink); font-weight: 600; font-size: 15px;
}
.main-nav a.active { color: var(--accent-deep); }

/* ---------- hero ---------- */
.hero {
  padding: 58px 0 44px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f6ecda 0%, var(--bg) 100%);
}
.hero h1 {
  font-family: var(--serif); font-size: 42px; line-height: 1.2; margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero p { color: var(--muted); font-size: 19px; max-width: 640px; }

/* ---------- article cards ---------- */
.section-title {
  font-family: var(--serif); font-size: 26px; margin: 40px 0 20px;
}
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  padding-bottom: 56px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(150,110,40,.12); text-decoration: none; }
.card .kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-deep);
}
.card h2 { font-family: var(--serif); font-size: 21px; line-height: 1.35; color: var(--ink); }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card .meta { font-size: 13px; color: var(--muted); }

/* ---------- post layout ---------- */
.post-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px;
  padding: 40px 0 60px; align-items: start;
}
.post {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 48px;
}
.post-meta { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.post h1 {
  font-family: var(--serif); font-size: 36px; line-height: 1.25; margin-bottom: 18px;
  letter-spacing: -0.4px;
}
.lead { font-size: 19px; color: #4d4238; margin-bottom: 28px; }
.post h2 {
  font-family: var(--serif); font-size: 26px; margin: 38px 0 14px;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.post h3 { font-size: 19px; margin: 26px 0 10px; }
.post p { margin-bottom: 16px; }
.post ul, .post ol { margin: 0 0 18px 24px; }
.post li { margin-bottom: 8px; }
.post strong { color: var(--ink); }

.key-takeaways {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 26px 0;
}
.key-takeaways h2, .key-takeaways h3 {
  border: none; margin: 0 0 10px; padding: 0; font-size: 17px;
  font-family: var(--sans);
}
.key-takeaways ul { margin-bottom: 0; }

table.data {
  width: 100%; border-collapse: collapse; margin: 20px 0 26px; font-size: 15px;
}
table.data th, table.data td {
  border: 1px solid var(--line); padding: 10px 14px; text-align: left;
}
table.data th { background: var(--accent-soft); font-weight: 700; }
table.data tr:nth-child(even) td { background: #fffdf8; }

.verdict {
  background: #f2f7f1; border: 1px solid #cfdfcb; border-radius: var(--radius);
  padding: 20px 24px; margin: 28px 0;
}
.verdict strong { color: var(--green); }

.steps { counter-reset: step; list-style: none; margin-left: 0 !important; }
.steps li {
  counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 18px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

.author-box {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; gap: 16px; align-items: center;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, #f2c14e, #c07f1f);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.35);
}
.author-box p { font-size: 14px; color: var(--muted); margin: 0; }
.author-box strong { color: var(--ink); }

/* ---------- sidebar ---------- */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.widget {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.widget h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 12px; }
.widget ul { list-style: none; }
.widget li { margin-bottom: 10px; font-size: 15px; }
.widget p { font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: #f3ecdd;
  padding: 34px 0; margin-top: 20px;
}
.footer-inner p { font-size: 15px; margin-bottom: 6px; }
.fine-print { font-size: 13px !important; color: var(--muted); }

/* ---------- about ---------- */
.about-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 48px; margin: 40px 0 60px;
}
.about-card h1 { font-family: var(--serif); font-size: 34px; margin-bottom: 18px; }
.about-card p { margin-bottom: 16px; }
.about-card h2 { font-family: var(--serif); font-size: 24px; margin: 30px 0 12px; }
.about-card ul { margin: 0 0 16px 24px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .post, .about-card { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .post h1 { font-size: 28px; }
  .main-nav a { margin-left: 16px; }
  table.data { font-size: 13px; }
  table.data th, table.data td { padding: 8px 10px; }
}
