:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --pitch: #0f766e;
  --pitch-dark: #115e59;
  --pitch-soft: #f0fdfa;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pitch); text-decoration: none; }
a:hover { color: var(--pitch-dark); text-decoration: underline; }

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--pitch); }
.brand-badge {
  background: var(--pitch);
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
}
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.94rem; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--pitch); text-decoration: none; }

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  color: #f8fafc;
  padding: 56px 0 52px;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.95rem);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 780px;
}
.hero p {
  color: #cbd5e1;
  font-size: 1.08rem;
  max-width: 680px;
  margin: 0 0 24px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-primary { background: #14b8a6; color: #042f2e; }
.btn-primary:hover { background: #2dd4bf; color: #042f2e; text-decoration: none; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.28); color: #f8fafc; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }

.section { padding: 48px 0; }
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  margin: 0 0 8px;
}
.section-sub { color: var(--muted); margin: 0 0 28px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pitch);
  margin-bottom: 8px;
}
.card h2, .card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 10px;
}
.card h2 a, .card h3 a { color: var(--ink); }
.card h2 a:hover, .card h3 a:hover { color: var(--pitch); text-decoration: none; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: 0.96rem; }
.card-meta { font-size: 0.84rem; color: #64748b; }

.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.breadcrumb { font-size: 0.86rem; color: var(--muted); margin-bottom: 16px; }
.article-wrap h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 12px;
}
.byline {
  font-size: 0.88rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 26px;
}
.article-wrap h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  margin: 34px 0 12px;
}
.article-wrap h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.article-wrap ul, .article-wrap ol { padding-left: 22px; }
.article-wrap li { margin-bottom: 8px; }

.callout {
  background: var(--pitch-soft);
  border-left: 4px solid var(--pitch);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.callout strong { color: var(--pitch-dark); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.93rem;
}
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
th { background: #f1f5f9; font-weight: 700; }

.calc-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin: 24px 0;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.calc-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.calc-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
}
.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.stat-tile {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-val { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-top: 4px; }
.stat-val.pos { color: #0f766e; }
.stat-val.neg { color: #b91c1c; }

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 36px 0;
  margin-top: 48px;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
