/* Financial Center for Auditing Accounts — site styles.
   Organising idea: the square-kufic grid of the logo. Hairline rules, square corners,
   one orchestrated motion (the mark is ruled in right-to-left, the way it is read). */

@font-face {
  font-family: "Readex Pro";
  src: url("/assets/fonts/readex-arabic.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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: "Readex Pro";
  src: url("/assets/fonts/readex-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Readex Pro";
  src: url("/assets/fonts/readex-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --teal: #0A5F6E;
  --teal-ink: #085160;
  --teal-deep: #073F49;
  --teal-night: #052F36;
  --gold: #D4AF37;
  --gold-hover: #E2C25A;
  --gold-ink: #86690F;
  --paper: #F4F8F8;
  --mist: #E6F3F5;
  --white: #FFFFFF;
  --ink: #14262C;
  --slate: #475569;
  --rule: #D3E0E2;
  --rule-dark: rgba(212, 175, 55, 0.22);
  --focus: var(--teal);

  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 350;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:lang(ar) body, body:lang(ar) { line-height: 1.85; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; color: inherit; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }

h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.0625rem; font-weight: 600; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.4; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--teal-deep); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 2px;
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn-gold { background: var(--gold); color: var(--teal-night); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-line { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-line:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-ink); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--mist); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.4) blur(10px);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal); margin-inline-end: auto; }
.brand-mark { display: block; width: 44px; flex: none; }
.brand-mark svg { display: block; width: 100%; height: auto; }
.brand-name { display: flex; flex-direction: column; font-weight: 600; font-size: 1.02rem; line-height: 1.15; }
.brand-sub { font-weight: 400; font-size: 0.86rem; color: var(--gold-ink); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a, .lang-switch {
  font-size: 0.96rem; font-weight: 400; color: var(--slate); text-decoration: none;
  padding-block: 6px; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .lang-switch:hover { color: var(--teal); border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--gold); }
.lang-switch { color: var(--teal); font-weight: 500; }
.nav .btn { min-height: 42px; padding: 10px 18px; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 2px; background: var(--white); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--teal); position: relative; transition: transform 160ms ease, background-color 160ms ease;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  [data-open] .nav-toggle-bars { background: transparent; }
  [data-open] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  [data-open] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 18px 30px -24px rgba(5, 47, 54, 0.45);
  }
  [data-open] .nav { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a, .lang-switch { display: block; padding-block: 14px; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; min-height: 48px; }
}

@media (max-width: 420px) {
  .brand-mark { width: 38px; }
  .brand-name { font-size: 0.95rem; }
  .brand-sub { font-size: 0.8rem; }
}

/* Hero ------------------------------------------------------------------- */
/* A finance photograph kept faint under a deep-teal wash; centred copy and four compact actions carry the page. */
.hero {
  --focus: var(--gold);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--teal-night);
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 47, 54, 0.84) 0%, rgba(7, 63, 73, 0.80) 45%, rgba(5, 47, 54, 0.96) 100%);
}
.hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: clamp(80px, 12vw, 152px) 0;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.9rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  max-width: 20ch;
  text-wrap: balance;
}
.hero h1:lang(ar) { line-height: 1.35; letter-spacing: 0; max-width: 18ch; }
.hero-lead {
  margin-top: 22px; max-width: 58ch;
  font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.7;
  color: rgba(255, 255, 255, 0.86); font-weight: 300; text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.hero-actions .btn { min-height: 44px; padding: 9px 20px; font-size: 0.95rem; }
.hero-actions .btn-line { background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(4px); }
.hero-actions .btn-line:hover { background: rgba(255, 255, 255, 0.14); }

.facts {
  width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(64px, 9vw, 112px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.fact { padding: 26px 16px 34px; }
.fact + .fact { border-inline-start: 1px solid rgba(255, 255, 255, 0.16); }
.fact dt { font-size: 1.6rem; font-weight: 500; color: var(--gold); line-height: 1.1; }
.fact dd { margin-top: 6px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.76); font-weight: 300; }

@media (max-width: 700px) {
  .hero-inner { padding-block: 64px 0; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 420px; }
  .hero-actions .btn { width: 100%; padding-inline: 12px; }
  .facts { grid-template-columns: 1fr; margin-top: 48px; }
  .fact, .fact + .fact { padding: 18px 0; border-inline-start: 0; }
  .fact + .fact { border-top: 1px solid rgba(255, 255, 255, 0.16); }
}

/* Sections --------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section-paper { background: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { color: var(--teal-deep); }
.section-head p { color: var(--slate); max-width: 60ch; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; }
.split h2 { color: var(--teal-deep); }
.lead { margin-top: 24px; font-size: 1.2rem; line-height: 1.6; font-weight: 300; color: var(--ink); max-width: 44ch; }
.prose h3 { color: var(--teal); margin-bottom: 16px; }
.prose p { color: var(--slate); max-width: 64ch; }
.prose p + p { margin-top: 16px; }

.subhead { margin-top: clamp(64px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--rule); font-size: 1rem; font-weight: 600; color: var(--gold-ink); }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; margin-top: 28px; }
.pillars h4 { font-size: 1.35rem; font-weight: 500; color: var(--teal-deep); }
.pillars h4::before { content: ""; display: block; width: 12px; height: 12px; background: var(--gold); margin-bottom: 18px; }
.pillars p { margin-top: 10px; color: var(--slate); }

@media (max-width: 860px) {
  .section-head, .split { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}

/* Ledger grid: hairline cells shared by services and clients */
.ledger {
  display: grid;
  border-top: 1px solid var(--rule);
  border-inline-start: 1px solid var(--rule);
}
.ledger > li { border-bottom: 1px solid var(--rule); border-inline-end: 1px solid var(--rule); }

.services { grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); }
.service { padding: clamp(28px, 3vw, 40px); }
.service h3 { color: var(--teal-deep); font-size: 1.28rem; }
.service > p { margin-top: 12px; color: var(--slate); font-size: 1rem; }
.service .ticks { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); }

@media (max-width: 1024px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

.ticks li { position: relative; padding-inline-start: 22px; font-size: 0.97rem; color: var(--ink); }
.ticks li + li { margin-top: 10px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 7px; height: 7px; background: var(--teal); }
:lang(ar) .ticks li::before { top: 0.78em; }

/* Clients */
.clients { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.client { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 20px; text-align: center; min-height: 176px; }
.client-mark { display: flex; align-items: center; justify-content: center; height: 88px; width: 100%; }
.client-mark img { max-height: 88px; max-width: 160px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.client-initial { display: grid; place-items: center; width: 56px; height: 56px; background: var(--mist); color: var(--teal); font-size: 1.5rem; font-weight: 600; }
.client-name { font-size: 0.92rem; color: var(--slate); line-height: 1.35; }
@media (max-width: 480px) {
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { min-height: 150px; padding: 20px 12px; }
}
@media (hover: none) { .client-mark img { filter: none; opacity: 1; } }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--teal); }
.person { padding-block: 40px 8px; }
.person:first-child { padding-inline-end: clamp(24px, 4vw, 56px); }
.person + .person { padding-inline-start: clamp(24px, 4vw, 56px); border-inline-start: 1px solid var(--rule); }
.person h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--teal-deep); }
.person .role { margin-top: 6px; color: var(--gold-ink); font-weight: 500; }
.person > p:not(.role) { margin-top: 20px; color: var(--slate); max-width: 60ch; }
.person h4 { margin-top: 32px; margin-bottom: 16px; color: var(--teal); }
@media (max-width: 860px) {
  .people { grid-template-columns: 1fr; }
  .person:first-child { padding-inline-end: 0; }
  .person + .person { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rule); margin-top: 32px; }
}

/* Contact ---------------------------------------------------------------- */
.contact { --focus: var(--gold); background: var(--teal-deep); color: var(--white); padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px clamp(40px, 7vw, 104px); align-items: start; }
.contact .lead { color: rgba(255, 255, 255, 0.8); }
.channels { margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.channel { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding-block: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.channel dt { color: var(--gold); font-weight: 500; }
.channel dd { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; color: rgba(255, 255, 255, 0.86); }
.channel a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.channel a:hover { border-bottom-color: var(--gold); }
.channel a[dir="ltr"] { unicode-bidi: isolate; }
.map-link { margin-top: 8px; font-size: 0.94rem; }

.compose { --focus: var(--teal); background: var(--white); color: var(--ink); padding: clamp(24px, 4vw, 44px); border-top: 4px solid var(--gold); }
.compose h3 { color: var(--teal-deep); font-size: 1.45rem; margin-bottom: 24px; }
.field + .field { margin-top: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.optional { font-weight: 300; color: var(--slate); }
.field input, .field textarea {
  display: block; width: 100%; padding: 12px 14px; min-height: 48px;
  border: 1px solid #B9CCCF; border-radius: 2px; background: var(--white);
  font-size: 1rem; line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input::placeholder, .field textarea::placeholder { color: #7B8794; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #B42318; }
:lang(ar) .field input[dir="ltr"] { text-align: right; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.field-row + .field { margin-top: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-status { margin-top: 18px; padding: 12px 14px; font-weight: 500; font-size: 0.95rem; border-inline-start: 3px solid currentColor; }
.form-status[data-kind="success"] { color: #0B5B33; background: #E7F5EC; }
.form-status[data-kind="error"] { color: #B42318; background: #FDECEA; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.compose-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.compose-actions .btn { flex: 1 1 200px; }
.form-note { margin-top: 16px; font-size: 0.88rem; color: var(--slate); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .channel { grid-template-columns: 1fr; gap: 6px; }
}

/* Inner pages ------------------------------------------------------------ */
.page-head { --focus: var(--gold); background: var(--teal-deep); color: var(--white); padding-block: clamp(48px, 7vw, 88px); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; max-width: 20ch; }
.page-head h1:lang(ar) { letter-spacing: 0; line-height: 1.35; }
.page-lead { margin-top: 18px; max-width: 60ch; color: rgba(255, 255, 255, 0.8); font-size: 1.12rem; font-weight: 300; }

.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-more { margin-top: 28px; }
.section-more a { color: var(--teal); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.section-more a:hover { color: var(--teal-deep); }

.services-full { border-top: 2px solid var(--teal); }
.service-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 64px; padding-block: 40px; border-bottom: 1px solid var(--rule); }
.service-detail-head h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); color: var(--teal-deep); letter-spacing: -0.01em; }
.service-detail-head h2:lang(ar) { letter-spacing: 0; }
.service-detail-head p { margin-top: 12px; color: var(--slate); max-width: 46ch; }
.service-detail-body h3 { font-size: 1rem; font-weight: 600; color: var(--gold-ink); margin-bottom: 16px; }
@media (max-width: 860px) { .service-detail { grid-template-columns: 1fr; } }

.cta-band { --focus: var(--gold); background: var(--teal-deep); color: var(--white); padding-block: clamp(44px, 6vw, 72px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-text { max-width: 56ch; font-size: 1.15rem; font-weight: 300; color: rgba(255, 255, 255, 0.85); }

.hours-row { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.hours-row > span:first-child { min-width: 10.5rem; }

.contact-page-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px clamp(40px, 7vw, 104px); align-items: start; }
.contact-page-title { font-size: 1.45rem; color: var(--teal-deep); letter-spacing: 0; }
.contact-page .channels { margin-top: 24px; border-top-color: var(--rule); }
.contact-page .channel { border-bottom-color: var(--rule); }
.contact-page .channel dt { color: var(--gold-ink); }
.contact-page .channel dd { color: var(--ink); }
.contact-page .channel a { color: var(--teal); border-bottom-color: var(--rule); }
.contact-page .channel a:hover { border-bottom-color: var(--gold); }
.contact-page .compose { border: 1px solid var(--rule); border-top: 4px solid var(--gold); }
@media (max-width: 860px) { .contact-page-grid { grid-template-columns: 1fr; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { --focus: var(--gold); background: var(--teal-night); color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px 56px; padding-block: 64px 48px; }
.footer-mark { display: block; width: 56px; color: var(--gold); margin-bottom: 20px; }
.footer-mark svg { display: block; width: 100%; height: auto; }
.footer-name { color: var(--white); font-weight: 500; margin-bottom: 10px; }
.footer-brand p:last-child { max-width: 42ch; }
.footer-title { font-size: 0.95rem; font-weight: 600; color: var(--gold); margin-bottom: 16px; }
.footer-links li + li { margin-top: 10px; }
.footer-links a, .footer-legal a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 24px 32px; font-size: 0.88rem; }
.footer-base::before { content: ""; position: absolute; top: 0; inset-inline: var(--gutter); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* Legal documents -------------------------------------------------------- */
.doc-page { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.doc { max-width: calc(46rem + var(--gutter) * 2); }
.doc h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: var(--teal-deep); padding-bottom: 28px; border-bottom: 2px solid var(--teal); letter-spacing: -0.02em; }
.doc h1:lang(ar) { letter-spacing: 0; }
.doc section { padding-block: 28px; border-bottom: 1px solid var(--rule); }
.doc h2 { font-size: 1.3rem; color: var(--teal); letter-spacing: 0; margin-bottom: 12px; }
.doc p { color: var(--slate); }
.doc .ticks { margin-top: 16px; }

/* 404 -------------------------------------------------------------------- */
.not-found { background: var(--paper); }
.not-found-inner { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding-block: 64px; }
.not-found-mark { display: block; width: 72px; color: var(--teal); }
.not-found-mark svg { display: block; width: 100%; height: auto; }
.not-found-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--rule); padding-top: 40px; }
.not-found h1, .not-found .h1-like { font-size: 2rem; color: var(--teal-deep); }
.not-found p { margin-block: 12px 24px; color: var(--slate); }
@media (max-width: 640px) { .not-found-cols { grid-template-columns: 1fr; } }

/* Motion preference ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .compose, .hero-media, .hero::before { display: none; }
  .hero, .contact, .site-footer { background: none; color: #000; }
}
