:root {
  --ink: #000000;
  --ink-soft: #555555;
  --paper: #ffffff;
  --line: #eeeeee;
  --accent: #0052cc;
  --max: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-shell {
  min-height: 100vh;
}

.blog-topbar {
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 60px;
}

.blog-topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.blog-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: #000;
}

.blog-brand img {
  width: 32px;
  height: 32px;
}

.blog-home-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
}

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

.blog-hero {
  margin-bottom: 60px;
}

.blog-hero.has-image {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
}

@media (max-width: 800px) {
  .blog-hero.has-image {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.3rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.blog-hero-image {
  margin: 40px 0;
}

.blog-hero.has-image .blog-hero-image {
  margin: 0;
}

.blog-hero-image img {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
}

.img-float-right {
  float: right;
  width: 300px;
  margin: 0 0 30px 40px;
}

@media (max-width: 800px) {
  .img-float-right {
    float: none;
    width: 100%;
    margin: 40px 0;
  }
}

h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 60px 0 20px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 16px;
}

p {
  margin-bottom: 24px;
  font-size: 1.15rem;
}

ul, ol {
  margin-bottom: 32px;
  padding-left: 24px;
}

li {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.note {
  margin: 40px 0;
  padding: 32px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
}

.sidebar-box {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.sidebar-box h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: #999;
}

.keyword-chip {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 4px 12px;
  border: 1px solid #eee;
  font-size: 0.85rem;
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-secondary {
  border: 1px solid #000;
  color: #000;
}

.blog-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #eee;
  text-align: center;
}

.calculator {
  margin: 40px 0;
}

.calculator label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.calculator input {
  width: 100%;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 1rem;
}

.calc-result {
  margin-top: 24px;
  font-weight: 700;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.2rem;
  }
  .lead {
    font-size: 1.1rem;
  }
}