/* community.maktub.it — the maktub.it design language (paper / ink / serif),
   with the brand fonts served from this origin (SIL Open Font License),
   because this page loads nothing from other origins. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/source-serif-4-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/source-serif-4-italic-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/amiri-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --paper: #f7f4ee; --paper-deep: #f1ece2; --ink: #111; --ink-soft: #3a382f;
  --ink-faint: #6b675b; --rule: rgba(17,17,17,.14); --seal: #7c1f1a; --seal-ink: #5e1714;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-content: 720px; --max-wide: 1080px; --gutter: clamp(1.25rem, 5vw, 3rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--serif); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--seal); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; font-family: var(--ui); z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ── nav (as maktub.it) ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247,244,238,.92); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(8px)) { .nav { backdrop-filter: blur(8px); } }
.nav__inner { max-width: var(--max-wide); margin: 0 auto; padding: .9rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 26px; height: 26px; display: block; }
.brand__word { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .01em; }
.brand__sep { color: var(--ink-faint); margin: 0 .15rem; }
.brand__ar { font-family: "Amiri", var(--serif); font-size: 1.18rem; font-weight: 400; }
.brand__sub { font-family: var(--ui); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin-left: .35rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.nav__links a { font-family: var(--ui); font-size: .9375rem; text-decoration: none; color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); }
.btn { display: inline-block; font: 500 .9375rem var(--ui); padding: .8rem 1.4rem; text-decoration: none; border: 1px solid transparent; transition: background .18s ease; }
.btn--seal { background: var(--seal); color: #f7f1e6; }
.btn--seal:hover { background: var(--seal-ink); color: #f7f1e6; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.nav__links .nav__cta { color: #f7f1e6; padding: .55rem 1rem; }

/* ── content ── */
main { max-width: var(--max-content); margin: 0 auto; padding: 4.5rem var(--gutter) 4rem; }
.eyebrow { font: 500 .75rem var(--ui); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin: 0 0 1.5rem; }
h1 { font-weight: 400; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.15; margin: 0 0 1.25rem; letter-spacing: -.01em; }
h2 { font-weight: 400; font-size: 1.5rem; margin: 3.5rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--rule); scroll-margin-top: 5rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.vision { font-style: italic; color: var(--ink); font-size: 1.15rem; }
.lede { font-size: 1.25rem; color: var(--ink); }
.actions { margin: 1.75rem 0 1rem; display: flex; gap: .75rem; flex-wrap: wrap; }
ul.roles { list-style: none; padding: 0; margin: 0; }
ul.roles li { padding: .9rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
ul.roles strong { color: var(--ink); font-weight: 600; }
ul.plain { padding-left: 1.2rem; color: var(--ink-soft); }
ul.plain li { margin-bottom: .4rem; }
.note { font: .875rem/1.6 var(--ui); color: var(--ink-faint); }

/* ── footer (as maktub.it) ── */
.footer { background: var(--paper-deep); border-top: 1px solid var(--rule); padding: 4.5rem var(--gutter) 3rem; }
.footer__inner { max-width: var(--max-wide); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.footer__brand .brand__mark { width: 22px; height: 22px; }
.footer__cols { display: flex; gap: 4.5rem; flex-wrap: wrap; }
.footer__h { font: 500 .72rem var(--ui); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin-bottom: 1rem; }
.footer__cols a { display: block; font: .9rem var(--ui); color: var(--ink-soft); text-decoration: none; padding: .25rem 0; }
.footer__cols a:hover { color: var(--ink); }
.footer__tag { max-width: var(--max-wide); margin: 3rem auto 0; font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
.footer__tag .ar { font-family: "Amiri", var(--serif); font-style: normal; font-size: 1.12em; vertical-align: -0.04em; }
.footer__note { max-width: var(--max-wide); margin: 1rem auto 0; font: .8125rem/1.6 var(--ui); color: var(--ink-faint); }

@media (max-width: 820px) {
  .nav__links { gap: 1.1rem; width: 100%; }
  .nav__links a { font-size: .875rem; }
  .brand__sub { display: none; }
  .footer__cols { gap: 2.5rem; }
}
