/* perfectcircle.site — built only from docs/BRAND.md's aliases (§2b), both modes. Fonts are ours
   (IBM Plex, OFL), served from this site: nothing is fetched from anyone else. */

@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(fonts/plex-sans-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(fonts/plex-sans-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(fonts/plex-sans-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-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: "Plex"; font-weight: 500; font-display: swap; src: url(fonts/plex-sans-arabic-500.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-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: "Plex"; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --bg: #FAFFD8; --bg-subtle: #E7EBCC; --surface: #FFFFFF; --tint: #ECFFB0;
  --ink: #54577C; --ink-soft: #575A75; --ink-faint: #546054;
  --line: #C2C890; --accent: #4A7B9D; --accent-hover: #36617F; --accent-ink: #264C65; --focus-ring: #5D93B9;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191B27; --bg-subtle: #2E3042; --surface: #2E3042; --tint: #43455D;
    --ink: #E7EBCC; --ink-soft: #9AA899; --ink-faint: #6A7769;
    --line: #43455D; --accent: #75AFD8; --accent-hover: #90CAF4; --accent-ink: #90CAF4; --focus-ring: #75AFD8;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 "Plex", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-size: 17px; line-height: 1.7; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 0; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 20px; letter-spacing: 0.01em; }
.mark svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.langs { display: flex; gap: 14px; font-size: 14px; }
.langs a { color: var(--ink-soft); text-decoration: none; }
.langs a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.hero { padding: 88px 0 56px; }
.hero h1 { margin: 0; font-weight: 600; font-size: clamp(34px, 7vw, 44px); line-height: 1.15; }
.hero p { margin: 18px 0 0; color: var(--ink-soft); font-size: 18px; max-width: 34em; }
[dir="rtl"] .hero p { font-size: 19px; }

section { padding: 40px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 20px; font-weight: 500; font-size: 20px; }

ol.laws { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
ol.laws li { display: grid; grid-template-columns: 28px 1fr; gap: 6px; }
ol.laws b { font-weight: 500; }
ol.laws .n { color: var(--accent-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
ol.laws span { color: var(--ink-soft); }

.app { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.app img { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.app h3 { margin: 0; font-weight: 500; font-size: 18px; }
.app p { margin: 4px 0 8px; color: var(--ink-soft); }
.app .links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.more { margin: 16px 0 0; color: var(--ink-soft); }

.plain p { margin: 0 0 10px; color: var(--ink-soft); max-width: 36em; }

footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 13px; }
footer p { margin: 0 0 4px; }
