/* Values from Darkoum's stylesheet: https://claude.ai/artifact/5fpNDgGZuPVDqR299Fcxub (project/tokens.json, README).
   The stylesheet wins: a value changes there first, then here. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("fonts/NotoNaskhArabic-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour tokens, light */
  --ground: #F7F3EC;
  --ground-end: #EADCC6;
  --surface: #FFFDF9;
  --ink: #1C1914;
  --ink-secondary: #625A4D;
  --rule: #E4DACB;
  --gold: #D8AE55;
  --gold-gloss: #E9C982;      /* the top of the glossy gold fill: gold lightened, not a token of its own */
  --gold-ink: #7E5C12;
  --on-gold: #241B0C;
  --status-titre-foncier: #2E8A4B;
  --status-melkia: #B4621A;
  --status-in-progress: #C2443A;
  --on-status: #FFFFFF;       /* the stoplight letter: white in light mode */
  --card-shadow: 0 8px 24px rgba(92, 64, 28, 0.10);
  --button-shadow: 0 10px 30px rgba(126, 92, 18, 0.22);

  /* type */
  --serif: "Newsreader", "New York", Georgia, serif;
  --naskh: "Noto Naskh Arabic", "Newsreader", "Geeza Pro", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* space: the scale 4, 8, 12, 16, 20, 24, 32, 48 */
  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-20: 20px; --s-24: 24px; --s-32: 32px; --s-48: 48px;
  --radius-card: 24px;
  --column: 620px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #16130F;
    --ground-end: #2A2219;
    --surface: #221D17;
    --ink: #F3EDE3;
    --ink-secondary: #B3A998;
    --rule: #3A3229;
    --gold: #E0B862;
    --gold-gloss: #EDCF8E;
    --gold-ink: #E8C677;
    --on-gold: #241B0C;
    --status-titre-foncier: #4CC26F;
    --status-melkia: #F0A04B;
    --status-in-progress: #F06A5F;
    --on-status: #241B0C;     /* on-gold: white failed contrast on the dark-mode status colours */
    --card-shadow: none;
    --button-shadow: none;
  }
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: linear-gradient(180deg, var(--ground) 0%, var(--ground-end) 100%);
  background-color: var(--ground-end);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--on-gold); }

a { color: var(--gold-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* the language switcher */
.bar {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--s-20));
  margin: 0 auto;
  padding: var(--s-12) var(--s-12) 0;
}
.langs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 var(--s-4); }
.langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-8);
  font-size: 15px;
  color: var(--ink-secondary);
  text-decoration: none;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.langs a[lang="ar"] { font-size: 16px; }

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--s-20));
  margin: 0 auto;
  padding: var(--s-32) var(--s-20) var(--s-48);
}

/* the wordmark */
.hero { margin-bottom: var(--s-32); }
.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(64px, 19vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.alt-name {
  margin: var(--s-12) 0 0;
  font-family: var(--naskh);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink-secondary);
  text-align: left;
}
html[dir="rtl"] .alt-name { text-align: right; }
.alt-name[lang="en"] { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.tagline {
  margin: var(--s-4) 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink);
}

p { margin: 0 0 var(--s-16); color: var(--ink-secondary); }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink); }

.soon {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin: var(--s-32) 0 var(--s-48);
  padding-top: var(--s-20);
  border-top: 0.5px solid var(--rule);
}
.soon-line { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--ink); }
.soon-note { font-size: 15px; }

/* the legal statuses: a surface card with plain rows */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--s-20);
  box-shadow: var(--card-shadow);
}
.card h2 {
  margin: 0 0 var(--s-8);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
}
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-12);
  min-height: 44px;
  padding: var(--s-12) 0;
  border-top: 0.5px solid var(--rule);
}
.rows li:first-child { border-top: 0; }
.dot {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  font: 700 12px/1 var(--sans);
  color: var(--on-status);
}
.dot.tf { background: var(--status-titre-foncier); }
.dot.mk { background: var(--status-melkia); }
.dot.ip { background: var(--status-in-progress); }
.row-text { display: flex; flex-direction: column; gap: 2px; }
.row-text strong { font-weight: 600; font-size: 17px; color: var(--ink); }
.row-text span { font-size: 15px; line-height: 1.5; color: var(--ink-secondary); }

.fine { margin-top: var(--s-20); font-size: 15px; line-height: 1.55; }

/* the email-link view */
.auth-title {
  margin: var(--s-16) 0 var(--s-20);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.action { margin: var(--s-32) 0 var(--s-12); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--s-32);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-gloss) 0%, var(--gold) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), var(--button-shadow);
  color: var(--on-gold);
  font: 600 17px/1 var(--sans);
  text-decoration: none;
}
.button:hover { filter: brightness(1.03); }
.button:active { transform: scale(0.98); }
.hint { font-size: 15px; }
.back { margin-top: var(--s-32); font-size: 15px; }

/* 404 */
.eyebrow { margin: 0; }
.eyebrow .name { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--ink); text-decoration: none; }
.others { list-style: none; margin: var(--s-32) 0 0; padding: var(--s-20) 0 0; border-top: 0.5px solid var(--rule); color: var(--ink-secondary); font-size: 15px; }
.others li { margin-bottom: var(--s-8); }
.others li[lang="ar"] { font-size: 17px; text-align: right; }

footer.site {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--s-20));
  margin: 0 auto;
  padding: 0 var(--s-20) var(--s-32);
  font-size: 13px;
  color: var(--ink-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8) var(--s-20);
}

/* Arabic: Naskh for the serif roles, one step larger; the system's Arabic for the rest */
[lang="ar"] .wordmark,
.wordmark:lang(ar) {
  font-family: var(--naskh);
  font-size: clamp(72px, 22vw, 124px);
  line-height: 1.25;
  letter-spacing: 0;
}
html[lang="ar"] .tagline,
html[lang="ar"] .soon-line,
html[lang="ar"] .card h2,
html[lang="ar"] .auth-title {
  font-family: var(--naskh);
  letter-spacing: 0;
  line-height: 1.4;
}
html[lang="ar"] .tagline { font-size: 26px; }
html[lang="ar"] .soon-line { font-size: 24px; }
html[lang="ar"] .card h2 { font-size: 24px; }
html[lang="ar"] body { font-size: 18px; line-height: 1.75; }
html[lang="ar"] .lead { font-size: 21px; line-height: 1.7; }
html[lang="ar"] .row-text strong { font-size: 18px; }
html[lang="ar"] .row-text span,
html[lang="ar"] .fine,
html[lang="ar"] .soon-note,
html[lang="ar"] .hint,
html[lang="ar"] .back { font-size: 16px; line-height: 1.7; }

@media (min-width: 768px) {
  .bar { padding: var(--s-20) var(--s-12) 0; }
  main { padding-top: var(--s-48); padding-bottom: var(--s-48); }
  .hero { margin-bottom: var(--s-48); }
  .card { padding: var(--s-24); }
  .lead { font-size: 22px; }
  html[lang="ar"] .lead { font-size: 23px; }
}

@media (min-width: 1100px) {
  main { padding-top: 96px; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform 0.2s ease, filter 0.2s ease; }
}
