/* The clan's landing page. The same paper, ink and bronze as the tree (src/styles.css there), and the
   same self-hosted fonts: nothing is loaded from anyone else's servers. */
@font-face {
  font-family: 'Reem Kufi';
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/reem-kufi-arabic-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026, U+2190-2193;
}

:root {
  --paper: #f6f1e7;
  --card: #fffdf8;
  --sunk: #efe8da;
  --line: #e3d9c7;
  --ink: #1f1b16;
  --ink-2: #5b5247;
  --ink-3: #8a7f70;
  --brand: #2f5233;
  --brand-ink: #ffffff;
  --brand-soft: #e3ecdc;
  --emblem: #7a5a22;
  --glow: rgb(169 122 34 / 0.14);
  --shadow: 0 1px 2px rgb(60 45 20 / 0.06), 0 4px 16px rgb(60 45 20 / 0.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15130f;
    --card: #1e1b16;
    --sunk: #26221b;
    --line: #353026;
    --ink: #efe7da;
    --ink-2: #bfb4a3;
    --ink-3: #8d8374;
    --brand: #8fbf86;
    --brand-ink: #10200f;
    --brand-soft: #24331f;
    --emblem: #d4af7a;
    --glow: rgb(212 175 122 / 0.10);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 36rem at 50% -8rem, var(--glow), transparent 70%),
    var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.85 'IBM Plex Sans Arabic', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: max(2.5rem, env(safe-area-inset-top)) 1rem 3rem;
}
h1, h2 { font-family: 'Reem Kufi', 'IBM Plex Sans Arabic', serif; font-weight: 700; line-height: 1.3; margin: 0; }
p { margin: 0 0 0.9rem; }
a { color: inherit; }

/* The diwan's emblem, coloured by the theme through a mask. */
.hero { text-align: center; padding: 0.5rem 0 2.5rem; }
.emblem {
  width: min(13.5rem, 62vw);
  aspect-ratio: 775 / 821;
  margin: 0 auto 1.5rem;
  background: var(--emblem);
  -webkit-mask: url(/emblem.svg) center / contain no-repeat;
  mask: url(/emblem.svg) center / contain no-repeat;
  animation: rise 0.9s cubic-bezier(.2, .7, .2, 1) both;
}
h1 { font-size: clamp(2.25rem, 10vw, 3.25rem); animation: rise 0.9s 0.12s cubic-bezier(.2, .7, .2, 1) both; }
.place {
  margin: 0.4rem 0 0;
  color: var(--ink-3);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  animation: rise 0.9s 0.2s cubic-bezier(.2, .7, .2, 1) both;
}
.place span { margin: 0 0.35rem; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .emblem, h1, .place { animation: none; } }

/* The tree: the one project so far. More cards can follow it as the clan decides. */
.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem 1.25rem;
  margin-bottom: 1rem;
}
.project-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: var(--brand);
  color: var(--brand-ink);
}
.mark svg { width: 2rem; height: 2rem; }
.project h2 { font-size: 1.5rem; }
.host { margin: 0; color: var(--ink-3); font-size: 0.8rem; line-height: 1.4; text-align: right; }
.project > p { color: var(--ink-2); }
.note {
  background: var(--sunk);
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.75;
}
.button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  margin-top: 1.25rem;
  border-radius: 0.9rem;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: filter 0.15s;
}
.button:hover { filter: brightness(1.08); }
.button:focus-visible { outline: 3px solid var(--emblem); outline-offset: 3px; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1rem max(1.5rem, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--ink-3);
  font-size: 0.85rem;
}
footer p { margin: 0 0 1rem; }
footer nav { display: flex; justify-content: center; gap: 1.25rem; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; color: var(--ink); }

/* Not found. */
.lost { text-align: center; padding-top: 4rem; }
.lost h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.lost .button { display: inline-flex; padding: 0 1.5rem; }
