/* Companion website for books by A-Imam Al-Sammak — shared style */
:root {
  --bg: #f4f6f7;
  --panel: #ffffff;
  --ink: #15222b;
  --muted: #5a6a74;
  --line: #d8e0e4;
  --accent: #1f5fcf;
  --accent-ink: #ffffff;
  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1519; --panel: #151d22; --ink: #e3eaee; --muted: #94a4ad; --line: #27343b;
    --accent: #74a6ff; --accent-ink: #0b1216; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 920px; margin: 0 auto; padding-inline: 20px; padding-block: 28px 48px; }
nav.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
nav.crumbs a { color: var(--accent); text-decoration: none; }
nav.crumbs a:hover { text-decoration: underline; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.15; margin: 0 0 6px; text-wrap: balance; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 36px 0 12px; }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0 0 4px; }
.lede { color: var(--muted); font-size: 17px; max-width: 62ch; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { justify-self: start; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.btn { justify-self: start; display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 7px; padding: 7px 14px; margin-top: 4px; }
.btn:hover { filter: brightness(1.08); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.demo img { width: 100%; border: 1px solid var(--line); border-radius: 8px; display: block; }
.soon { color: var(--muted); font-size: 15px; }
footer { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 28px; }
}
