/* Nadeemi preview: ink / sand / brass tokens from cycle4/brand-site.md section 4. Typographic only. */
:root {
  --ink:#14213D; --ink-2:#2B3654; --sand:#E9E1D3; --paper:#F6F2EA;
  --brass:#B08D57; /* rules and the seal only, never text */
  --muted:#5A6275; --line:#D6CCBA; --focus:#14213D; --btn-ink:#F6F2EA;
  --warn-bg:#8A5A12; --warn-ink:#FFFFFF;
  --serif:"Cormorant Garamond", Georgia, serif;
  --sans:"IBM Plex Sans", system-ui, sans-serif;
  --mono:"IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink:#E9E1D3; --ink-2:#C9C0B0; --paper:#0E1320; --sand:#161D2E;
  --muted:#9AA1B2; --line:#2A3247; --brass:#C2A06A; --focus:#E9E1D3; --btn-ink:#0E1320;
} }
:root[data-theme="dark"] {
  --ink:#E9E1D3; --ink-2:#C9C0B0; --paper:#0E1320; --sand:#161D2E;
  --muted:#9AA1B2; --line:#2A3247; --brass:#C2A06A; --focus:#E9E1D3; --btn-ink:#0E1320;
}
html[lang="ar"] { --serif:"Amiri", serif; --sans:"IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-wrap: anywhere; }
html[lang="ar"] body { line-height: 1.8; font-size: 1.125rem; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

.preview { background: var(--warn-bg); color: var(--warn-ink); text-align: center; padding: 8px 16px; font-size: .9rem; font-weight: 500; }
.preview a { color: var(--warn-ink); }
.caps { padding-inline-start: 1.2em; margin: 16px 0; }
.caps li { margin: 0 0 10px; }
.note { font-size: .85rem; color: var(--muted); margin-top: 32px; }

.top { max-width: 72rem; margin: 0 auto; padding: 20px 16px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.seal { width: 36px; height: 36px; flex: none; }
.lockup { display: inline-flex; align-items: center; gap: 12px; }
.wm-lat { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.5rem; letter-spacing: .05em; }
.wm-ar { font-family: "Amiri", serif; font-weight: 700; font-size: 1.5rem; letter-spacing: 0; }
.lockup .rule { width: 1px; height: 1.6rem; background: var(--brass); }
.tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lang { min-height: 44px; display: inline-flex; align-items: center; }
.top nav { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .95rem; }
.top nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-2); }
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; background: var(--ink); color: var(--btn-ink); text-decoration: none; font-weight: 500; border: 1px solid var(--ink); }
.btn:hover { background: transparent; color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: .95rem; }

main { max-width: 44rem; margin: 0 auto; padding: 8px 16px 48px; }
html[lang="ar"] main { max-width: 42rem; }
.hero { padding: 40px 0 16px; border-bottom: 1px solid var(--brass); margin-bottom: 24px; }
.kicker { font-family: var(--serif); color: var(--muted); letter-spacing: .08em; margin: 0 0 8px; }
html[lang="ar"] .kicker { letter-spacing: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); margin: 40px 0 8px; }
h3 { font-size: 1.35rem; margin: 0 0 4px; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.5; font-weight: 700; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
p { max-width: 68ch; }
html[lang="ar"] p { max-width: 60ch; }

.story { margin: 32px 0; padding-block: 8px; padding-inline-start: 20px; border-inline-start: 2px solid var(--brass); font-family: var(--serif); font-size: 1.5rem; color: var(--ink-2); }
.story p { margin: 0; }

.jobs { list-style: none; padding: 0; margin: 16px 0; }
.jobs li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.jobs li:last-child { border-bottom: 1px solid var(--line); }
.jobs .n { font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--ink-2); border-top: 2px solid var(--brass); padding-top: 6px; text-align: center; }
.jobs p { margin: 0; }

.strip { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; }
.strip li { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; }
.strip li:last-child { border-bottom: 1px solid var(--line); }

.sample { display: grid; gap: 0; border: 1px solid var(--line); background: var(--sand); margin: 16px 0; }
.sample > div { padding: 16px; }
.sample > div + div { border-top: 1px solid var(--line); }
.sample p { margin: 4px 0; }
.sample [lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; line-height: 1.8; }
.mono { font-family: var(--mono); font-size: .9rem; color: var(--muted); }
html[lang="ar"] .mono, .sample [lang="ar"] .mono { font-family: "IBM Plex Sans Arabic", var(--mono); }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
caption { text-align: start; font-family: var(--serif); font-size: 1.15rem; padding-bottom: 8px; }
th, td { text-align: start; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--line); }
th { font-weight: 500; color: var(--ink-2); border-top: 2px solid var(--brass); }

details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 500; }
details p { margin: 0 0 12px; color: var(--ink-2); }

.band { margin-top: 48px; padding: 28px 20px; background: var(--sand); border-top: 2px solid var(--brass); }
.band h2 { margin-top: 0; }

footer { max-width: 72rem; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
footer nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (min-width: 900px) { .top nav { flex-basis: auto; order: 2; } .tools { order: 3; } }
