/* Marsa. Copyright (c) 2026 Marsa. All rights reserved. */
/* The website's few pages (about, the family tree, terms, privacy): the app's colours, its navy and gold, the
   condensed face for English headings and naskh for Arabic ones. No outside fonts or scripts: a private app's
   site asks nobody else for anything. */
:root {
  --night: #15284b; --navy: #1c3561; --gold: #d6ab4e; --sand: #f5f2ec; --paper: #ffffff; --ink: #15201e;
  --muted: #5d6965; --line: #e2ddd2; --father: #3f6fb5; --mother: #3f8f6a; --on-night: #f3efe4; --on-night-2: #b9c2d6;
  --head: "sans-serif-condensed", "Roboto Condensed", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  --naskh: "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --sand: #0e1220; --paper: #161b2c; --ink: #e8ebf3; --muted: #9aa3b8; --line: #283048; --navy: #9db6ec; --night: #0a1530; --father: #7ea6e6; --mother: #74c39d; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 17px/1.6 var(--body); }
:lang(ar) * { letter-spacing: 0 !important; }
a { color: var(--navy); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
html:not(.ar) .ar, html.ar .en { display: none !important; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* the bar: the pier, the name, two links and the way into the app */
.bar { display: flex; align-items: center; gap: 18px; padding: 16px 0; }
.mark { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 22px/1 var(--head); }
.mark svg { width: 40px; height: 29px; flex: none; }
.ar .mark { font-family: var(--naskh); font-size: 25px; }
.bar nav { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.bar nav a { text-decoration: none; font-size: 15px; }
.bar nav a:hover { text-decoration: underline; }
.lang { background: none; border: 0; padding: 4px 2px; color: inherit; font: inherit; font-size: 15px; cursor: pointer; }
.ar .lang { font-family: var(--body); }
.go { display: inline-block; background: var(--navy); color: var(--sand) !important; padding: 10px 18px; border-radius: 999px; text-decoration: none !important; font-weight: 600; font-size: 15px; }
.go.gold { background: var(--gold); color: #1a1406 !important; }
.go.quiet { background: none; color: inherit !important; box-shadow: inset 0 0 0 1.5px currentColor; }

/* the harbour: the one bold thing on the site */
.harbour { background: var(--night); color: var(--on-night); }
.harbour .bar { color: var(--on-night); }
.harbour .bar nav a, .harbour .lang { color: var(--on-night-2); }
.harbour .go { background: var(--gold); color: #1a1406 !important; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font: 700 clamp(40px, 6.4vw, 72px)/1.02 var(--head); margin: 0 0 22px; letter-spacing: -0.01em; max-width: 12ch; }
.ar .hero h1 { font: 700 clamp(38px, 5.6vw, 64px)/1.35 var(--naskh); max-width: 14ch; }
.hero p { color: var(--on-night-2); font-size: 19px; max-width: 34em; margin: 0 0 28px; }
.acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.harbour .go.quiet { background: none; color: var(--on-night) !important; box-shadow: inset 0 0 0 1.5px rgba(243, 239, 228, .55); }
.pier { width: 100%; height: auto; color: var(--gold); }
.pier .deck, .pier .post, .pier .bollard { stroke-dasharray: 400; stroke-dashoffset: 0; animation: draw 1.6s ease-out both; }
.pier .post { animation-delay: .35s; } .pier .bollard { animation-delay: .7s; }
.pier .sea { color: var(--on-night-2); opacity: .55; }
@keyframes draw { from { stroke-dashoffset: 400; } }
@media (prefers-reduced-motion: reduce) { .pier * { animation: none !important; } }

/* the light pages */
main { padding: 8px 0 40px; }
.lead { padding: 28px 0 8px; }
.lead h1 { font: 700 clamp(36px, 5.6vw, 60px)/1.05 var(--head); margin: 0 0 18px; max-width: 16ch; }
.ar .lead h1 { font: 700 clamp(34px, 5vw, 54px)/1.35 var(--naskh); }
.lead p { font-size: 19px; color: var(--muted); max-width: 36em; margin: 0 0 24px; }
section.part { padding: 44px 0 8px; }
h2 { font: 700 30px/1.15 var(--head); margin: 0 0 18px; }
.ar h2 { font: 700 28px/1.4 var(--naskh); }

/* what Marsa has now: a list, one line of picture and a few words each */
.parts { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.parts li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.parts li:last-child { border-bottom: 1px solid var(--line); }
.parts svg { width: 40px; height: 40px; color: var(--navy); }
.parts b { display: block; font-size: 19px; margin-bottom: 2px; }
.parts p { margin: 0; color: var(--muted); }
.parts a { font-weight: 600; }
.aside { color: var(--muted); max-width: 40em; margin: 18px 0 0; font-size: 16px; }

/* 1.68.0, the homepage's way in: three plain cards (Android, iPhone, a computer) */
.get { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 980px; }
.get li { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 22px; display: flex; flex-direction: column; align-items: flex-start; }
.get svg { width: 36px; height: 36px; color: var(--navy); margin-bottom: 8px; }
.get b { font-size: 19px; }
.get p { color: var(--muted); font-size: 15.5px; margin: 4px 0 16px; flex: 1; }
.get .go.quiet { color: var(--navy) !important; }
@media (max-width: 760px) { .get { grid-template-columns: minmax(0, 1fr); } }

/* how your data is kept: three plain statements beside a heading */
.kept { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; border-top: 3px solid var(--gold); padding-top: 26px; }
.kept ul { margin: 0; padding: 0; list-style: none; }
.kept li { padding: 0 0 16px; font-size: 16px; color: var(--muted); }
.kept li b { display: block; color: var(--ink); font-size: 19px; font-weight: 650; margin-bottom: 2px; }

/* the family tree page */
.treehero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; padding: 18px 0 8px; }
.treepic { width: 100%; height: auto; }
.treepic .card { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.treepic .you { stroke: var(--gold); stroke-width: 3; }
.treepic .fs { fill: var(--father); } .treepic .ms { fill: var(--mother); }
.treepic .ln { stroke: var(--muted); stroke-width: 1.6; fill: none; opacity: .7; }
.treepic .ring { stroke: var(--gold); stroke-width: 2.2; fill: var(--sand); }
.treepic text { fill: var(--ink); font: 600 15px var(--body); }
.treepic text.r { fill: var(--muted); font-weight: 400; font-size: 13px; }
.treepic text.arr { font-family: var(--naskh); font-size: 16px; font-weight: 700; }
.lead .note { font-size: 15px; color: var(--muted); max-width: 32em; margin: 18px 0 0; }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; max-width: 900px; }
.points li { padding: 14px 0 14px; border-top: 1px solid var(--line); }
.points li::before { content: ""; display: block; width: 18px; height: 3px; background: var(--gold); margin-bottom: 10px; border-radius: 2px; }

/* terms and privacy: a reading column */
.doc { max-width: 720px; padding-bottom: 24px; }
.doc h1 { font: 700 clamp(34px, 5vw, 48px)/1.1 var(--head); margin: 20px 0 8px; }
.doc .date { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 4px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; }
.doc li { margin: 4px 0; }
.doc ul { padding-inline-start: 22px; }
.short { background: var(--paper); border-inline-start: 4px solid var(--gold); padding: 6px 20px 8px; margin: 18px 0 8px; border-radius: 0 12px 12px 0; }
.ar .short { border-radius: 12px 0 0 12px; }
.arnote { font: 17px/1.8 var(--naskh); border-inline-start: 0; border-inline-end: 4px solid var(--gold); border-radius: 12px 0 0 12px; padding: 10px 18px; margin-top: 22px; }
.toc { padding-inline-start: 22px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; }
footer a { color: inherit; }
footer .c { margin-inline-start: auto; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero, .treehero, .kept { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 16px 0 48px; gap: 8px; }
  .hero .pier { order: -1; max-width: 300px; }
  .hero p, .lead p { font-size: 17px; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .treepic { width: calc(100% + 32px); margin: 0 -16px; }
  .toc { columns: 1; }
  .bar { flex-wrap: wrap; gap: 10px; }
  .bar nav { gap: 12px; }
  .bar nav .hide-s { display: none; }
  footer .c { margin-inline-start: 0; width: 100%; }
}

/* 1.68.1: one gold for the main action on every page and theme; the visitor's device first in Get Marsa */
.bar .go, .get li .go:not(.quiet) { background: var(--gold); color: #1a1406 !important; }
html[data-dev="android"] .get li[data-dev="android"], html[data-dev="ios"] .get li[data-dev="ios"], html[data-dev="desktop"] .get li[data-dev="desktop"] { order: -1; border-color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--gold); }
.ar .kicker { letter-spacing: 0; font-size: 15px; }
footer a { display: inline-block; padding: 10px 0; }
