@font-face {
  font-family: Inter;
  src: url("/fonts/inter-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/fonts/noto-sans-arabic-0.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  color: #0b1018;
  background: #f8f9fb;
  font: 100%/1.65 Inter, system-ui, sans-serif;
  --muted: #475568;
  --border: #dce1e8;
  --link: #263bbb;
}

:root:lang(ar) { font-family: "Noto Sans Arabic", Inter, system-ui, sans-serif; line-height: 1.85; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
a { color: var(--link); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible { outline: 3px solid #eb5e3f; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.site-header, .site-footer { background: #0b1018; color: #f8f9fb; }
.header-inner, .site-footer .wrap { display: flex; align-items: center; gap: clamp(.75rem, 4vw, 2.25rem); }
.header-inner { min-height: 4.5rem; justify-content: space-between; padding-block: .75rem; }
.header-inner > a { flex-shrink: 0; }
.header-inner img { width: clamp(5.7rem, 18vw, 8.25rem); height: auto; }
.header-inner nav { display: flex; flex-wrap: wrap; gap: clamp(.7rem, 3vw, 1.6rem); }
.site-header a, .site-footer a { color: inherit; text-decoration: none; }
.site-header a:hover, .site-footer a:hover, [aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.site-footer .wrap { min-height: 5rem; flex-wrap: wrap; padding-block: 1.25rem; font-size: .9rem; }
.skip-link { position: fixed; inset-block-start: .5rem; inset-inline-start: 1rem; background: white; padding: .5rem 1rem; transform: translateY(-150%); z-index: 5; }
.skip-link:focus { transform: none; }
main { padding-block: clamp(2.5rem, 7vw, 5rem); }
.intro { max-width: 52rem; margin-block-end: 2.25rem; }
h1, h2, h3 { line-height: 1.2; overflow-wrap: anywhere; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.5; }
h1 { font-size: clamp(2.1rem, 5vw, 4rem); margin: 0 0 .8rem; letter-spacing: -.035em; }
:lang(ar) h1 { letter-spacing: normal; }
.intro > p { font-size: clamp(1.06rem, 2vw, 1.25rem); color: var(--muted); margin: 0; }
.intro nav { font-size: .92rem; margin-block-end: 1rem; }
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.post-list li { background: white; border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; }
.post-card { padding: 1.4rem; }
.post-card h2 { margin: .45rem 0; font-size: 1.45rem; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { margin: .5rem 0 0; color: var(--muted); }
.post-card time, .intro > .byline { font-size: .88rem; color: var(--muted); }
.intro > .byline { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.25rem; margin-block-start: 1rem; }
.card-cover, .article-cover { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.article { max-width: 50rem; margin-inline: auto; }
.article-cover { border: 1px solid var(--border); border-radius: .75rem; margin-block-end: 2.25rem; }
.article-text { max-width: 44rem; overflow-wrap: break-word; font-size: 1.075rem; }
.article-text h2 { margin-block-start: 2.25rem; font-size: 1.6rem; }
.article-text li + li { margin-block-start: .45rem; }
.article-text li { padding-inline-start: .2rem; }
.article-text img { height: auto; }
.article-text pre { overflow-x: auto; background: white; border: 1px solid var(--border); padding: 1rem; }
.article-text blockquote { margin-inline: 0; padding-inline-start: 1rem; border-inline-start: 3px solid #eb5e3f; }
.article-action { margin-block-start: 2.25rem; }
.action, .pagination a { display: inline-block; padding: .6rem 1.05rem; border-radius: .4rem; background: #263bbb; color: white; text-decoration: none; }
.action:hover, .pagination a:hover { background: #17278f; }
.pagination { display: flex; gap: 1rem; margin-block-start: 2rem; }
.related { max-width: 50rem; border-block-start: 1px solid var(--border); margin: 2.75rem auto 0; padding-block-start: 1.25rem; }
.related ul { padding-inline-start: 1.2rem; }
.analytics-preferences { padding-block: .8rem 1.2rem; color: var(--muted); font-size: .9rem; }
.analytics-preferences summary { cursor: pointer; }
.analytics-preferences button { font: inherit; color: #263bbb; background: white; border: 1px solid var(--border); border-radius: .35rem; padding: .4rem .7rem; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
