/* Shared styles for isaaclimb.com project pages */
:root {
  --bg: #F5F7FA; --panel: #FFFFFF; --text: #172033; --muted: #5A6577; --faint: #8B94A3;
  --accent: #2563EB; --accent-ink: #1D4FD8; --accent-soft: #EAF1FE; --accent-2: #0EA5A5;
  --border: #E7EBF1; --border-soft: #EEF1F6; --radius: 8px; --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20,30,50,.04), 0 6px 20px rgba(20,30,50,.05);
  --shadow-lg: 0 2px 8px rgba(20,30,50,.06), 0 16px 40px rgba(20,30,50,.09);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(245,247,250,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-in { max-width: 900px; margin: 0 auto; padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; }
.brand { font-weight: 700; color: var(--text); font-size: 16px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.back { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

.article { max-width: 900px; margin: 0 auto; padding: 48px 28px 80px; }

/* Hero */
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
h1.title { font-size: 46px; margin: 12px 0 12px; letter-spacing: -.03em; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }

.meta { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 26px 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.meta .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; margin-bottom: 3px; }
.meta .val { color: var(--text); font-weight: 500; font-size: 14px; }
.meta a { font-weight: 600; }

/* Metric tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 26px 0; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.tile b { font-size: 26px; display: block; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile span { font-size: 12.5px; color: var(--muted); }

/* Images */
.heroimg { margin: 30px 0; }
.imgph { background: repeating-linear-gradient(45deg, #EDF1F7, #EDF1F7 12px, #F4F7FB 12px, #F4F7FB 24px); border: 1px dashed #C4D0E2; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 13.5px; font-weight: 500; text-align: center; padding: 20px; min-height: 300px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0; }
.gallery .imgph { min-height: 190px; margin: 0; }
.cap { font-size: 12.5px; color: var(--faint); margin-top: 9px; text-align: center; }

/* Sections */
h2.sec { font-size: 25px; margin: 50px 0 14px; }
.article p { font-size: 16.5px; color: var(--text); margin-bottom: 16px; }
.article p.m { color: var(--muted); }
ul.clean { list-style: none; margin: 0 0 16px; display: flex; flex-direction: column; gap: 9px; }
ul.clean li { position: relative; padding-left: 22px; color: var(--muted); font-size: 16px; }
ul.clean li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
ul.clean li b { color: var(--text); font-weight: 600; }

/* Decisions */
.decision { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 20px 24px; margin: 20px 0; box-shadow: var(--shadow); }
.decision h3 { font-size: 18px; margin-bottom: 8px; }
.decision p { font-size: 15.5px; margin-bottom: 0; color: var(--muted); }

/* Code */
pre { background: #0E1526; color: #D7E0F2; border-radius: var(--radius-sm); padding: 20px 22px; overflow-x: auto; margin: 16px 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; }
pre .c { color: #7E8CA8; } pre .k { color: #7FB2FF; } pre .s { color: #8FD3A6; } pre .n { color: #E0A66B; }
code.inl { font-family: var(--mono); font-size: 14px; background: var(--accent-soft); color: var(--accent-ink); padding: 1px 6px; border-radius: 5px; }
.snip-cap { font-size: 12.5px; color: var(--faint); margin: -6px 0 22px; }

/* Diagram */
.diagram { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin: 24px 0; box-shadow: var(--shadow); }
.diagram .dcap { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: 16px; }
.flow { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center; }
.flow.vert { flex-direction: column; }
.node { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 9px 14px; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-align: center; }
.node.hot { background: var(--accent-soft); border-color: #BFD5FB; color: var(--accent-ink); }
.node.warn { background: #FEF2E8; border-color: #F6D2AE; color: #B45715; }
.node.sub { font-weight: 500; color: var(--muted); }
.arrow { color: var(--faint); font-weight: 700; font-size: 15px; }
.lane { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.lane-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); text-align: center; margin: 14px 0 8px; }

/* Ladder (e.g., severity tiers) */
.ladder { display: flex; flex-direction: column; gap: 6px; }
.rung { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; font-size: 14px; }
.rung .lv { font-weight: 700; color: var(--faint); font-family: var(--mono); font-size: 12.5px; min-width: 26px; }
.rung.top { background: #FEECEC; border-color: #F3C0C0; }
.rung.top .lv { color: #C0392B; }

.callout { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 18px 22px; margin: 26px 0; font-size: 15.5px; color: var(--accent-ink); }

/* Action buttons */
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 2px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel); color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #D8E0EC; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

/* Real screenshots */
figure.shotfig { margin: 30px 0; }
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
figure.shotfig figcaption { font-size: 12.5px; color: var(--faint); margin-top: 11px; text-align: center; }
.shot.narrow { max-width: 400px; margin: 0 auto; }

/* Tool grid */
.toolgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; margin: 22px 0; }
.toolcat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.toolcat h4 { font-size: 14.5px; margin-bottom: 6px; }
.toolcat p { font-size: 13px; color: var(--muted); margin: 0; }
.foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 15px; }

@media (max-width: 640px) {
  h1.title { font-size: 34px; }
  .article { padding: 34px 20px 60px; }
  .tile b { font-size: 22px; }
}
