/* Zaira landing and documentation: fonts, colour tokens and base styles shared by both pages. */

/* Fonts (self-hosted, same files as the theme) */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(../fonts/manrope-latin.woff2) format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-latin.woff2) format("woff2");
}
@font-face {
    font-family: "Readex Pro";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(../fonts/readexpro-arabic.woff2) format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: "Cairo";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url(../fonts/cairo-arabic.woff2) format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* Tokens */
:root {
    --navy: #183354;
    --navy-deep: #0f2440;
    --coral: #F4796C;
    --coral-text: #B4483C;
    --paper: #ffffff;
    --newsprint: #EEF3F4;
    --ink: #183354;
    --text: #4A5561;
    --muted: #6B7480;
    --line: #DCE3E6;
    --rule: #183354;
    --card: #ffffff;
    --shadow: 0 18px 40px -22px rgba(24, 51, 84, .45);
    --head: "Manrope", "Readex Pro", system-ui, sans-serif;
    --body: "Inter", "Cairo", system-ui, sans-serif;
    --ar-head: "Readex Pro", "Manrope", sans-serif;
    --ar-body: "Cairo", "Inter", sans-serif;
    --wrap: 1240px;
    --gutter: 16px;
    color-scheme: light;
}
/* Night edition: the colours of Zaira's own dark mode */
:root[data-theme="dark"] {
    --paper: #0C1622;
    --newsprint: #111F2E;
    --ink: #EEF3F7;
    --text: #B5C0CC;
    --muted: #8D99A6;
    --line: #22344A;
    --rule: #EEF3F7;
    --card: #13212F;
    --coral-text: #F58C80;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
    color-scheme: dark;
}
/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 400 16px/1.7 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--coral); color: #fff; padding: 10px 16px; font-weight: 700; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; }
[lang="ar"] { font-family: var(--ar-body); letter-spacing: 0; }

.kicker {
    display: inline-block;
    font: 700 12px/1.3 var(--body);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--coral-text);
    margin: 0 0 12px;
}

/* Night switch (documentation top bar) */
.night-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 0; color: #fff; font: 500 13px var(--body); cursor: pointer; padding: 6px 0;
}
.night-toggle .track { width: 34px; height: 18px; border-radius: 20px; background: #34506F; position: relative; transition: background .2s; }
.night-toggle .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.night-toggle[aria-pressed="true"] .track { background: var(--coral); }
.night-toggle[aria-pressed="true"] .track::after { transform: translateX(16px); }
