/* Shared styles for www.infinidatum.com. Static pages only; no JavaScript. */
:root {
  --ink: #14213d;
  --muted: #5b6475;
  --line: #e3e7ee;
  --soft: #f5f7fa;
  --accent: #1f5eff;
  --sansad: #b45309;
  --aifp: #6d28d9;
  --sim: #0f766e;
  --risk: #b91c1c;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
header.site { border-bottom: 1px solid var(--line); }
header.site nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; flex-wrap: wrap; gap: 8px 24px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
header.site ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; }
header.site ul a { color: var(--muted); font-size: 0.95rem; }
header.site ul a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Type */
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
.eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.crumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 14px; }
.crumb a { color: var(--muted); }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; border: 1px solid var(--ink); }
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.hero { padding: 80px 0 64px; }
.hero h1 { max-width: 22ch; }
section { padding: 64px 0; }
section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }
.section-head .lead { margin-bottom: 0; }

/* Project cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--tone, var(--accent)); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.card h3 { font-size: 1.3rem; }
.card h3 a { color: var(--ink); }
.card .for { font-size: 0.9rem; color: var(--muted); margin: 0 0 12px; }
.card ul { margin: 0 0 18px; padding-left: 18px; }
.card li { margin-bottom: 4px; }
.card .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }
.tone-sansad { --tone: var(--sansad); }
.tone-aifp { --tone: var(--aifp); }
.tone-sim { --tone: var(--sim); }
.tone-risk { --tone: var(--risk); }

/* Project page */
.project-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.project-hero .eyebrow { color: var(--tone, var(--muted)); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; }
.facts li { border-left: 3px solid var(--tone, var(--accent)); padding: 4px 0 4px 14px; }
.facts strong { display: block; font-size: 1.05rem; }
.facts span { color: var(--muted); font-size: 0.92rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.feature p { margin: 0; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; padding-top: 44px; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--tone, var(--ink)); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps p { color: var(--muted); margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { margin: 0; }
.note { color: var(--muted); font-size: 0.95rem; }
.pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-weight: 600; }

/* Prose pages */
.prose { padding: 56px 0 72px; }
.prose h2 { font-size: 1.35rem; margin: 44px 0 12px; }
.prose ul { padding-left: 18px; margin: 0 0 14px; }
.prose li { margin-bottom: 10px; }
.prose .note { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 44px; }

/* Two columns */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.split h2 { margin: 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 0.9rem; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
footer.site h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; color: var(--ink); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 6px; }
footer.site a { color: var(--muted); }
footer.site .legal { margin-top: 28px; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding: 56px 0 48px; }
  section { padding: 48px 0; }
}
