/* Learn Spanish in Urdu — public information site.
   Self-contained: no external fonts, no scripts, no trackers. A privacy policy
   page that phones home to a CDN would be its own counterexample. */

:root {
  --bg: #f7f7f0;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #5b6570;
  --line: #e2e4e0;
  --brand: #58cc02;
  --brand-dark: #3f9601;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --card: #1e2126;
    --text: #e6e8ea;
    --muted: #a2abb5;
    --line: #2e3238;
    --brand: #6ddc16;
    --brand-dark: #8ae83c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

header.site {
  background: var(--brand);
  color: #fff;
  padding: 28px 20px;
}

header.site .wrap { max-width: 820px; margin: 0 auto; }
header.site h1 { margin: 0 0 4px; font-size: 1.5rem; }
header.site p { margin: 0; opacity: 0.95; }

nav.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
}

nav.site .wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 12px 0;
}

nav.site a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
nav.site a:hover { text-decoration: underline; }
nav.site a[aria-current="page"] { color: var(--text); }

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

h2 { margin: 36px 0 12px; font-size: 1.25rem; line-height: 1.35; }
h2:first-child { margin-top: 0; }
h3 { margin: 24px 0 8px; font-size: 1.05rem; }

a { color: var(--brand-dark); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0;
}

.card.callout { border-inline-start: 4px solid var(--brand); }

.meta { color: var(--muted); font-size: 0.9rem; }

ul, ol { padding-inline-start: 1.4em; }
li { margin: 6px 0; }

.table-wrap { overflow-x: auto; }

table { border-collapse: collapse; width: 100%; min-width: 460px; }
th, td { border: 1px solid var(--line); padding: 9px 11px; text-align: start; vertical-align: top; }
th { background: color-mix(in srgb, var(--brand) 12%, transparent); font-weight: 600; }

code { background: color-mix(in srgb, var(--text) 8%, transparent); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  padding-inline-start: 42px;
  position: relative;
  margin: 14px 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem;
}

/* The Urdu half of every page. Nastaliq is not safe to assume as a webfont
   (we ship no fonts), so Noto Naskh / system Urdu is the realistic target and
   the extra line-height is what keeps it legible. */
.urdu {
  direction: rtl;
  text-align: right;
  font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  line-height: 2.1;
}
.urdu code { direction: ltr; display: inline-block; }

hr.split { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 22px 20px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap { max-width: 820px; margin: 0 auto; }
