/* Ferman website. Colors follow src/lib/theme.ts (ahar paper, lacivert ink, lâl, tezhip gold). */

@font-face { font-family: 'Gloock'; src: url('/fonts/Gloock_400Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Amiri'; src: url('/fonts/Amiri_400Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --paper: #F4EFE4;
  --surface: #FFFDF8;
  --surface-alt: #EAE2D1;
  --ink: #1B2E4B;
  --ink-soft: #56627A;
  --ink-faint: #8C93A3;
  --line: rgba(27, 46, 75, 0.12);
  --lal: #B0392E;
  --gold: #C9A24E;
  --gold-text: #7A5F22;
  --hero: #1B2E4B;
  --on-hero: #FFFDF8;
  --on-hero-soft: rgba(255, 253, 248, 0.75);
  --primary: #1B2E4B;
  --on-primary: #FFFDF8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11161F;
    --surface: #1A212D;
    --surface-alt: #262F3E;
    --ink: #ECE5D5;
    --ink-soft: #AAB1BF;
    --ink-faint: #737B8C;
    --line: rgba(236, 229, 213, 0.10);
    --lal: #E26D60;
    --gold: #D8B35E;
    --gold-text: #E8C978;
    --hero: #22324F;
    --on-hero: #ECE5D5;
    --on-hero-soft: rgba(236, 229, 213, 0.72);
    --primary: #D8B35E;
    --on-primary: #11161F;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

header.top { padding: 18px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 22px Gloock, Georgia, serif; }
.brand img { width: 36px; height: 36px; }
nav.links { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--ink-soft); }
nav.links a:hover, nav.links a[aria-current] { color: var(--ink); }

h1, h2, h3 { font-family: Gloock, Georgia, serif; font-weight: 400; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(34px, 7vw, 54px); }
h2 { font-size: clamp(26px, 4.5vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 14px; }
.soft { color: var(--ink-soft); }
.ota { font-family: Amiri, 'Noto Naskh Arabic', serif; direction: rtl; unicode-bidi: isolate; }

.hero { padding: 40px 0 56px; text-align: center; }
.hero .ota { font-size: clamp(64px, 14vw, 104px); line-height: 1.3; color: var(--lal); }
.hero h1 { margin-top: 4px; }
.hero .lead { font-size: 20px; color: var(--ink-soft); max-width: 520px; margin: 14px auto 28px; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 10px 20px; border-radius: 14px;
  background: var(--primary); color: var(--on-primary);
  text-decoration: none; font-weight: 600;
}
.store small { display: block; font-weight: 400; font-size: 12px; opacity: 0.8; line-height: 1.1; }
.store span { line-height: 1.2; text-align: left; }
.store svg { width: 24px; height: 24px; flex: none; }
.store.soon { background: var(--surface-alt); color: var(--ink-soft); cursor: default; }

section.block { padding: 40px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card .ota { font-size: 30px; color: var(--gold-text); display: block; margin-bottom: 6px; text-align: left; direction: rtl; }

.band { background: var(--hero); color: var(--on-hero); border-radius: 24px; padding: 32px 24px; text-align: center; }
.band p { color: var(--on-hero-soft); max-width: 520px; margin: 10px auto 0; }
.mascots { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.mascots figure { margin: 0; width: 88px; text-align: center; font-size: 14px; color: var(--on-hero-soft); }
.mascots img { width: 88px; height: 88px; border-radius: 22px; display: block; margin-bottom: 6px; box-shadow: 0 0 0 1px rgba(255, 253, 248, 0.2); }

.prose h1 { margin: 24px 0 6px; }
.prose h2 { font-size: 24px; margin: 34px 0 10px; }
.prose .updated { color: var(--ink-faint); font-size: 15px; margin-bottom: 28px; }
.prose a { color: var(--lal); }
.placeholder { background: var(--surface-alt); border-radius: 6px; padding: 0 4px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--ink-faint); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '−'; }
details > div { padding: 0 18px 6px; color: var(--ink-soft); }

.contact { margin-top: 32px; }

footer { padding: 40px 0 48px; color: var(--ink-faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  nav.links { gap: 14px; font-size: 14px; }
  .hero { padding-top: 20px; }
  .hero .lead { font-size: 18px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .mascots { gap: 10px; }
  .mascots figure, .mascots img { width: 68px; }
  .mascots img { height: 68px; border-radius: 18px; }
}
