/* Samawi's site: Paper in light, Dusk in dark (docs/design/identity.md §12).
   The values are the app's own (apps/samawi/lib/ui/theme/tokens.dart).
   System fonts only; nothing is loaded from another host. Arabic is never
   letter-spaced: nothing here sets letter-spacing. */

:root {
  color-scheme: light dark;
  --ground: #f6f0e4;  /* paper50 */
  --surface: #fffdf8; /* paper0 */
  --line: #e2d8c6;    /* paperLine */
  --ink: #2b241d;     /* ink900 */
  --muted: #6e6358;   /* ink500, 5.0:1 on the ground */
  --accent: #a24f33;  /* terracotta700 */
  --tint: #f3e1d6;    /* terracottaTint */
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1b1535;  /* dusk900 */
    --surface: #262046; /* dusk800 */
    --line: #3a3168;    /* dusk600 */
    --ink: #f6eedf;     /* ivory100 */
    --muted: #b9afcb;   /* lilac400 */
    --accent: #ddb56c;  /* gold300, legible as text on Dusk */
    --tint: #2e2643;    /* dusk700 */
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic",
    "Noto Sans", Tahoma, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

[lang="ar"] {
  line-height: 1.9;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.35;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.5rem;
}

p,
ul {
  margin: 0.5rem 0 1rem;
}

ul {
  padding-inline-start: 1.25rem;
}

li {
  margin: 0.3rem 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

/* Host names stay whole (a break at «release-» reads as two names); only a
   screen too narrow for the longest one lets them wrap. */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  white-space: nowrap;
}

@media (max-width: 359px) {
  code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.muted {
  color: var(--muted);
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.top a {
  text-decoration: none;
}

.page + .page {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding-top: 2.5rem;
}

/* A value still waiting on the owner. Every one is removed before the
   site goes live: none may reach a reader. */
.pending {
  display: inline-block;
  background: var(--tint);
  color: var(--ink);
  border-radius: 0.375rem;
  padding: 0 0.4em;
  font-size: 0.8rem;
  line-height: 1.6;
  vertical-align: 0.1em;
}

.home {
  padding-top: 18vh;
}

.home .name {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.home section + section {
  margin-top: 2rem;
}

.store {
  margin-top: 2.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.store p {
  margin: 0;
}

footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

footer a {
  text-decoration: none;
}
