:root {
    --green: #10b981;
    --orange: #f97316;
    --ink: #172033;
    --muted: #596579;
    --line: #e2e8f0;
    --paper: #fff;
    --wash: #f8fafc;
    --dark: #0f172a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); line-height: 1.65; }
a { color: inherit; }
a:hover { color: #047857; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px max(22px, calc((100% - 1200px)/2)); color: white; background: var(--dark); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 17px; font-weight: 850; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--dark); background: #d1fae5; font-size: 13px; }
.brand small { display: block; color: #cbd5e1; font-size: 10px; font-weight: 500; letter-spacing: .06em; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-header nav a, .site-footer nav a { color: inherit; font-size: 13px; font-weight: 700; text-decoration: none; }
.hero, .page-hero { padding: clamp(58px, 8vw, 100px) max(22px, calc((100% - 1200px)/2)); background: radial-gradient(ellipse at 86% 20%, #d1fae5, transparent 34%), linear-gradient(140deg, #fff, #f8fafc); }
.hero h1, .page-hero h1 { max-width: 930px; margin: 0; font-size: clamp(40px, 6vw, 74px); line-height: 1.04; letter-spacing: -.055em; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.eyebrow { color: #047857; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.lead { max-width: 760px; margin: 22px 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; padding: 10px 17px; border: 0; border-radius: 9px; color: white; background: var(--orange); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { color: white; background: #c2410c; }
.button-secondary { color: var(--dark); background: white; border: 1px solid var(--line); }
.button-secondary:hover { color: #047857; background: #ecfdf5; }
.section { max-width: 1200px; margin: auto; padding: 62px 22px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 3.5vw, 40px); letter-spacing: -.04em; }
.section-heading > p { max-width: 450px; margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.card, .metric-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 7px 22px rgba(15,23,42,.035); }
.card h3 { margin: 5px 0; font-size: 20px; }
.card h3 a { text-decoration: none; }
.card p, .metric-card span { color: var(--muted); }
.notice { margin: 18px 0; padding: 18px; border-left: 4px solid var(--orange); border-radius: 8px; color: #7c2d12; background: #fff7ed; }
.affiliate-box { max-width: 600px; margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.affiliate-box p { color: var(--muted); font-size: 13px; }
.calculator { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.calculator label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
.calculator input, .calculator select { flex: 1; min-height: 46px; padding: 10px 13px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; }
.calculator button, .calculator output { grid-column: 1 / -1; }
.calculator output { min-height: 48px; padding: 13px; border-radius: 8px; color: #334155; background: var(--wash); }
.movement-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.image-controls { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; }
.movement-images figure { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.movement-images img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.movement-images figcaption { padding: 8px; text-align: center; font-weight: 750; }
.muscle-map { display: block; width: min(100%, 440px); margin: 22px 0 5px; }
.muscle-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.muscle-legend span:first-child::before, .muscle-legend span:nth-child(2)::before { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; content: ""; }
.muscle-legend span:first-child::before { background: #ef4444; }
.muscle-legend span:nth-child(2)::before { background: #f59e0b; }
.routine-list { display: grid; gap: 12px; padding-left: 25px; }
.routine-list li { padding: 12px; border-bottom: 1px solid var(--line); }
.routine-list span, .source-link { color: var(--muted); font-size: 13px; }
.article-page { max-width: 820px; margin: auto; padding: 72px 22px; }
.article-page h1, .empty-state h1 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -.045em; }
.article-page p, .article-page li { color: #334155; font-size: 17px; }
.empty-state { padding: 24px 0; color: var(--muted); }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 40px max(22px, calc((100% - 1200px)/2)); color: white; background: var(--dark); }
.site-footer p { max-width: 460px; color: #cbd5e1; font-size: 13px; }
.site-footer nav a { color: #e2e8f0; }
.affiliate-note, .footer-note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 900px) {
    .site-header { align-items: flex-start; flex-direction: column; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .site-header { padding: 14px 17px; }
    .site-header nav { gap: 10px; }
    .hero, .page-hero { padding-right: 18px; padding-left: 18px; }
    .section { padding: 46px 17px; }
    .card-grid, .calculator, .movement-images { grid-template-columns: 1fr; }
    .calculator button, .calculator output { grid-column: auto; }
    .site-footer { grid-template-columns: 1fr; padding: 32px 18px; }
}
