/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #fafaf9;
  --ink: #1a1a1a;
  --muted: #666666;
  --rule: #eaeaea;
  --accent: #0f3b5f;
  --accent-hover: #0a2a45;
  --max-width: 1080px;
  --prose-width: 720px;
  --radius: 5px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Inter", var(--font-sans);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 2.5rem; line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 0.75em; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
ul li { margin-bottom: 0.4em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-prose {
  max-width: var(--prose-width);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a {
  margin-left: 22px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* ---------- sections (rhythm) ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--rule); }
.section h2 { margin-bottom: 1.5rem; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: 2.75rem; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-image img {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.problem-block h3 {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 0.6em;
}
.problem-block p { color: var(--ink); }

/* ---------- offer ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.offer-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
}
.offer-card h3 { margin-bottom: 0.5em; }
.offer-card p { margin: 0; color: var(--ink); }
.offer-cta { margin-top: 48px; text-align: center; }

/* ---------- about ---------- */
.section-about .container { max-width: var(--prose-width); }
.section-about p { font-size: 1.05rem; }
.about-links {
  list-style: none;
  padding: 0;
  margin-top: 1.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.about-links a { font-weight: 500; }

/* ---------- fit ---------- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.fit-block { border-top: 2px solid var(--ink); padding-top: 16px; }
.fit-block.fit-no { border-top-color: var(--muted); }
.fit-block ul { padding-left: 1.1em; }
.fit-block.fit-no h3 { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 80px 0;
  text-align: center;
}
.cta-line {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto 1.5em;
  color: var(--ink);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { text-align: center; }
.footer-line { margin-bottom: 0.4em; }
.footer-line a { color: var(--muted); text-decoration: none; }
.footer-line a:hover { color: var(--ink); }
.footer-line .sep { margin: 0 8px; color: var(--rule); }
.footer-copy { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- blog index ---------- */
.blog-index .container { max-width: var(--prose-width); padding-top: 80px; padding-bottom: 40px; }
.blog-index h1 { margin-bottom: 1.5rem; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list-item { padding: 24px 0; border-top: 1px solid var(--rule); }
.post-list-item:first-child { border-top: none; padding-top: 0; }
.post-list-item h2 { font-size: 1.35rem; margin: 0 0 0.25em; }
.post-list-item h2 a { color: var(--ink); text-decoration: none; }
.post-list-item h2 a:hover { color: var(--accent); }
.post-list-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.4em; }
.post-list-excerpt { margin: 0; color: var(--ink); }

/* ---------- post ---------- */
.post .container { padding-top: 64px; padding-bottom: 64px; }
.post-back-top, .post-back-bottom { color: var(--muted); }
.post-back-top a, .post-back-bottom a { color: var(--muted); text-decoration: none; }
.post-back-top a:hover, .post-back-bottom a:hover { color: var(--ink); }
.post-header { margin: 24px 0 32px; }
.post-header h1 { font-size: 2.25rem; }
.post-meta { color: var(--muted); margin: 0; font-size: 0.95rem; }
.post-body { font-size: 1.05rem; }
.post-body h2 { font-size: 1.5rem; margin-top: 2em; }
.post-body h3 { font-size: 1.15rem; margin-top: 1.6em; }
.post-body p, .post-body ul, .post-body ol { margin-bottom: 1.2em; }
.post-body code {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.92em;
}
.post-body pre {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  font-size: 0.92em;
  line-height: 1.5;
}
.post-body pre code { background: transparent; border: 0; padding: 0; }
.post-body blockquote {
  margin: 1.2em 0;
  padding: 0.2em 1em;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.post-back-bottom { margin-top: 48px; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 2rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-image { order: -1; }
  .hero-image img {
    margin: 0 auto;
    max-width: 180px;
  }
  .problem-grid { grid-template-columns: 1fr; gap: 28px; }
  .offer-grid { grid-template-columns: 1fr; gap: 16px; }
  .fit-grid { grid-template-columns: 1fr; gap: 32px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-nav a { margin-left: 0; margin-right: 18px; }
  .cta-band { padding: 56px 0; }
  .cta-line { font-size: 1.15rem; }
  .footer-line .sep { display: none; }
  .footer-line { display: flex; flex-direction: column; gap: 4px; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .btn { display: none; }
  body { color: #000; background: #fff; }
}
