/* Shared by the three pages of Ashraf's design.
   Every size is in design pixels: calc(N * var(--u)), where --u is one pixel of the designer's canvas (--W wide)
   stretched to the page's width — so the page keeps his proportions on any desktop. Phones get their own sizes. */
:root {
  --ink: #1A100C;
  --body: #5F5853;
  --muted: #8F8A85;
  --line: #E6E1DB;
  --page: #F6F3EE;
  --maroon: #5C1C1E;
  --gold: #C9A066;
  --cocoa: #3B2615;
  --strip: #462C1D;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans Arabic", "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--page);
  container-type: inline-size;
  --u: min(calc(100cqw / var(--W)), 1.25px);
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lat { font-family: "Noto Sans", sans-serif; direction: ltr; unicode-bidi: isolate; }
.page { width: calc(var(--W) * var(--u)); margin-inline: auto; }

/* the header — nav on the right, the logo in the middle, the tools on the left */
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: #F6EEE4; position: relative; z-index: 5;
}
.site-header .nav { display: flex; align-items: center; justify-self: start; }
.site-header .nav a { position: relative; white-space: nowrap; transition: opacity .2s; }
.site-header .nav a:hover { opacity: .75; }
.site-header .nav a.active::after { content: ""; position: absolute; inset-inline: 0; }
.site-header .brand img { width: auto; }
.site-header .tools { display: flex; align-items: center; justify-self: end; }
.site-header .tools .sep { width: 1px; background: currentColor; opacity: .55; }
.site-header .tools a { display: grid; place-items: center; transition: opacity .2s; }
.site-header .tools a:hover { opacity: .75; }
.burger { display: none; }

/* the footer — the designer drew only its top edge, so this is filled in with the brand's own colours */
.site-footer { background: var(--strip); color: #E9DCCB; padding: 56px 24px 28px; }
.site-footer .in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: center; justify-content: space-between; }
.site-footer img { height: 54px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 34px; font-size: 15px; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer .copy { max-width: 1180px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(233, 220, 203, .15); font-size: 13px; color: #B9A897; }

/* a small pill that walks between the three pages — prototype chrome, not part of the design */
.proto {
  position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; gap: 2px; align-items: center;
  background: rgba(26, 16, 12, .86); backdrop-filter: blur(8px); border-radius: 999px; padding: 5px;
  font-size: 13px; color: #EFE3D3; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.proto a { padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.proto a:hover { background: rgba(255, 255, 255, .1); }
.proto a.on { background: #EFE3D3; color: #1A100C; }
.proto .all { color: #C9A066; }

/* the pretend success message — nothing is sent */
.toast {
  position: fixed; left: 50%; bottom: 76px; z-index: 60; transform: translate(-50%, 20px); opacity: 0;
  background: #1A100C; color: #F6EEE4; padding: 12px 22px; border-radius: 6px; font-size: 14px;
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  body { --u: 1px; }
  .page { width: auto; }
  .site-header { grid-template-columns: auto 1fr auto; padding: 14px 18px !important; }
  .site-header .nav { display: none; }
  .site-header .brand { justify-self: center; }
  .site-header .brand img { height: 40px !important; }
  .site-header .tools { gap: 18px !important; font-size: 21px !important; }
  .site-header .tools .lang, .site-header .tools .sep, .site-header .tools .user { display: none; }
  .burger { display: grid; gap: 5px; width: 24px; order: -1; }
  .burger span { height: 1.5px; background: currentColor; border-radius: 2px; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px !important; position: absolute; top: 100%;
    inset-inline: 0; padding: 18px 22px 22px; background: rgba(43, 27, 17, .97); font-size: 16px !important;
  }
  .site-header.open .nav a.active::after { display: none; }
  .proto { left: 50%; transform: translateX(-50%); bottom: 12px; font-size: 12px; }
  .proto a { padding: 6px 9px; }
}
