/* wearemishkat.com — one stylesheet, both languages, both directions.
 *
 * Everything directional uses CSS logical properties (inline-start, margin-inline, padding-block)
 * so the Arabic RTL layout and the English LTR layout come from the same rules rather than from
 * a mirrored second stylesheet that drifts out of sync.
 *
 * No web fonts. A downloaded font is the single biggest cost on a first visit from a phone on a
 * slow connection, and every device that matters here already ships a good Arabic UI face.
 */

:root {
  --ink: #12211f;
  --ink-soft: #4a5c59;
  --line: #dfe6e4;
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --accent: #0f4c48;
  --accent-ink: #ffffff;
  --focus: #b4531c;
  --wrap: 68rem;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9efed;
    --ink-soft: #a4b4b1;
    --line: #24332f;
    --bg: #0d1513;
    --bg-soft: #131e1c;
    --accent: #6fd4c6;
    --accent-ink: #08201d;
    --focus: #ffb27a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}

html[lang="ar"] body {
  /* The system Arabic faces, in the order the platforms actually ship them. */
  font-family: "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", system-ui, sans-serif;
  line-height: 1.95; /* Arabic needs more room between lines than Latin at the same size. */
}

img, svg { max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Keyboard users get to skip the nav; it is off-screen until focused. */
.skip {
  position: absolute;
  inset-block-start: -100vh;
  inset-inline-start: 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { inset-block-start: 1rem; }

/* --- header ------------------------------------------------------------------------------ */

.site-header {
  border-block-end: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.mark { width: 1.85rem; height: 1.85rem; fill: var(--accent); flex: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  font-size: 0.98rem;
}

.site-nav a { text-decoration: none; color: var(--ink-soft); padding-block: 0.2rem; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.site-nav .lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  color: var(--ink);
}

/* --- type -------------------------------------------------------------------------------- */

h1, h2, h3 { line-height: 1.3; text-wrap: balance; margin-block: 0 0.5em; }
h1 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin-block: 0 1em; max-width: 62ch; }
html[lang="ar"] p { max-width: 68ch; }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 55ch; }
.muted { color: var(--ink-soft); font-size: 0.94rem; }

/* --- sections ---------------------------------------------------------------------------- */

.hero {
  background: var(--bg-soft);
  border-block-end: 1px solid var(--line);
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem);
}
.hero h1 { margin-block-end: 0.35em; }

.page-head { padding-block: clamp(2rem, 1.2rem + 3.5vw, 3.5rem) 0.5rem; }

.band { padding-block: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
.band + .band { border-block-start: 1px solid var(--line); }

.prose h2 { margin-block-start: 2em; }
.prose h2:first-of-type { margin-block-start: 1em; }

/* --- components -------------------------------------------------------------------------- */

.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.75rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
}
.button:hover { filter: brightness(1.12); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }

.facts { list-style: none; padding: 0; margin-block: 1.5rem 0; display: grid; gap: 0.7rem; }

.facts li {
  position: relative;
  padding-inline-start: 1.9rem;
  max-width: 60ch;
}

/* A tick drawn in CSS rather than shipped as an image or an emoji: no request, and no
   glyph that renders as a coloured square on one platform and a tick on another.
   PLACEMENT is logical (inset-inline-start) so it sits on the correct side in both
   directions, but the two BORDERS are physical on purpose. Logical borders flip with the
   writing mode, which turns the tick into a chevron pointing the wrong way in RTL — a tick
   is a fixed shape, not a directional one. */
.facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.25rem;
  inset-block-start: 0.62em;
  width: 0.62rem;
  height: 0.34rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.cards { display: grid; gap: 1rem; margin-block-start: 1.5rem; }
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card h3 { margin-block-start: 0; }
.card p { margin-block-end: 0; font-size: 0.98rem; color: var(--ink-soft); }

.channels { list-style: none; padding: 0; margin-block: 1.25rem 0; display: grid; gap: 0.85rem; }
.channels li { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: baseline; }
.channel-label { font-weight: 600; min-width: 7rem; }

/* --- footer ------------------------------------------------------------------------------ */

.site-footer {
  border-block-start: 1px solid var(--line);
  background: var(--bg-soft);
  margin-block-start: 3rem;
  padding-block: 2.5rem 1.5rem;
}

.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 46rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
html[lang="ar"] .site-footer h2 { text-transform: none; letter-spacing: 0; font-size: 0.95rem; }

.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

.footer-brand { font-weight: 700; margin-block-end: 0.35rem; }
.copyright { margin-block: 1.75rem 0; padding-block-start: 1.25rem; border-block-start: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
