/* Glyph outline from the Saudi Central Bank's official Saudi Riyal Symbol artwork. */
@font-face {
  font-family: "QCar Riyal Symbol";
  src: url("/fonts/saudi-riyal.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20C1;
}

@font-face {
  font-family: "Alexandria";
  src: url("/fonts/alexandria.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #fff;
  --surface: #fff;
  --soft: #e9f7f8;
  --brand-tint: #d5f0f3;
  --brand-deep: #153d46;
  --edge: #dbeaed;
  --brand: #78c6d0;
  --brand-hover: #69b8c3;
  --wash: #f5fbfc;
  --input-edge: #b9d4d9;
  --brand-icon: #2d7681;
  --brand-ink: #1f606c;
  --text: #18333a;
  --muted: #526970;
  --shadow: 0 6px 22px #173d470f;
  font-family: "QCar Riyal Symbol", "Alexandria", system-ui, Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.65; }
/* Let Arabic phrases wrap normally, with a fallback for long references and links. */
:where(h1,h2,h3,h4,p,li,dd,dt,label,legend,summary,a,button,bdi) { overflow-wrap: anywhere; }
:where(h1,h2,h3) { line-height: 1.5; text-wrap: balance; }
:where(fieldset,figure) { min-inline-size: 0; }
:where(img,video) { max-inline-size: 100%; }
button, input, select, textarea { font: inherit; }
input, select, textarea { accent-color: var(--brand-ink); }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 4px; }
[hidden] { display: none !important; }

.brand-mark {
  display: block;
  flex: none;
  width: 60px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--brand);
}

.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

.preview-brand {
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--soft);
}
.preview-brand img {
  display: block;
  width: clamp(105px, 26vw, 216px);
  height: auto;
  border-radius: 18px;
}
