/* ─────────────────────────────────────────────────────────────────
   SULHA — Illuminated Manuscript website
   Palette:
     Ink       #2B231C
     Vellum    #F8F5EF
     Gold      #B08D57
     Espresso  #1A140F
     Sage      #7A9975
   Typography:
     Display   Cormorant Garamond
     Body      Inter
     Arabic    Amiri
     Utility   JetBrains Mono
─────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────
   Design tokens
──────────────────────────────────────────────── */
:root {
  --ink:       #2B231C;
  --ink-soft:  #4A3F35;
  --vellum:    #F8F5EF;
  --vellum-2:  #F0EBE0;
  --gold:      #B08D57;
  --gold-soft: #C6A876;
  --espresso:  #1A140F;
  --sage:      #7A9975;
  --hairline:  rgba(176, 141, 87, 0.22);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-arabic:  'Amiri', 'Traditional Arabic', serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', monospace;

  --max:      1180px;
  --max-prose: 720px;
  --gutter:   clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 12vh, 140px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ─────────────────────────────────────────────────
   Reset & base
──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--vellum);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

img {
  max-width: 100%;
  display: block;
}

/* ─────────────────────────────────────────────────
   Utility — the section label small caps
──────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ─────────────────────────────────────────────────
   Buttons
──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--vellum);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
}
.btn--primary:hover {
  background: var(--espresso);
  color: var(--gold-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--large {
  padding: 18px 34px;
  font-size: 16px;
}

/* ─────────────────────────────────────────────────
   Navigation
──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 239, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
}
.nav__logo-ar {
  font-family: var(--font-arabic);
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
}
.nav__logo-en {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav__links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav__links a {
  transition: color 0.2s var(--ease);
}
.nav__links a:hover {
  color: var(--gold);
}
@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
}

/* ─────────────────────────────────────────────────
   Hero
──────────────────────────────────────────────── */
.hero {
  padding-top: clamp(80px, 15vh, 160px);
  padding-bottom: clamp(60px, 10vh, 120px);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}
.hero__ar {
  font-family: var(--font-arabic);
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
}
.hero__eyebrow-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 32px;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.hero__lede {
  max-width: 620px;
  margin: 0 auto 44px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero__cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 26px;
}

.hero__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* Gold hairline separator */
.hero__hairline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
}

/* ─────────────────────────────────────────────────
   Thesis
──────────────────────────────────────────────── */
.thesis {
  padding: var(--section-y) var(--gutter);
  background: var(--vellum);
}
.thesis__inner {
  max-width: var(--max-prose);
  margin: 0 auto;
  text-align: center;
}
.thesis__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}
.thesis__text em {
  font-style: italic;
  color: var(--gold);
}
.thesis__drop {
  font-family: var(--font-display);
  font-size: 1.6em;
  color: var(--gold);
  font-weight: 500;
  line-height: 0.8;
  padding-right: 3px;
  vertical-align: -0.06em;
}

/* ─────────────────────────────────────────────────
   The practice — two moments
──────────────────────────────────────────────── */
.practice {
  padding: var(--section-y) var(--gutter);
  background: var(--vellum-2);
}
.practice__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.practice__intro {
  text-align: center;
  margin-bottom: 72px;
}
.practice__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.practice__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 780px) {
  .practice__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.moment {
  background: var(--vellum);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 42px 36px;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.moment:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.moment__marker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.moment__time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 500;
}
.moment__symbol {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}

.moment__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
}

.moment__body {
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.7;
}
.moment__body:last-child {
  margin-bottom: 0;
}

.practice__note {
  max-width: 620px;
  margin: 60px auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ─────────────────────────────────────────────────
   Features — six cards
──────────────────────────────────────────────── */
.features {
  padding: var(--section-y) var(--gutter);
}
.features__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.features__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 20px;
}
.features__lede {
  max-width: 520px;
  margin-bottom: 64px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 40px;
}
@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}
.feature {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.feature__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}
.feature__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}
.feature p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────
   Islamic mode — dark, atmospheric
──────────────────────────────────────────────── */
.islamic {
  padding: var(--section-y) var(--gutter);
  background: var(--ink);
  color: var(--vellum);
  position: relative;
  overflow: hidden;
}
.islamic::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 80% 0%, rgba(176, 141, 87, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 400px at 10% 100%, rgba(122, 153, 117, 0.08), transparent 60%);
  pointer-events: none;
}
.islamic__inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.islamic__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.islamic__ar {
  font-family: var(--font-arabic);
  font-size: 22px;
  color: var(--gold-soft);
  line-height: 1;
}
.islamic__eyebrow .section-label {
  margin: 0;
  color: var(--gold-soft);
}

.islamic__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--vellum);
  margin-bottom: 28px;
}

.islamic__lede {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(248, 245, 239, 0.72);
  margin-bottom: 68px;
}

.islamic__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 60px;
  margin-bottom: 80px;
}
@media (max-width: 720px) {
  .islamic__features {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.islamic__feature {
  padding-top: 20px;
  border-top: 1px solid rgba(176, 141, 87, 0.28);
}
.islamic__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}
.islamic__feature p {
  color: rgba(248, 245, 239, 0.72);
  font-size: 15.5px;
  line-height: 1.65;
}

.islamic__quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px 0;
  border-top: 1px solid rgba(176, 141, 87, 0.30);
}
.islamic__quote-ar {
  display: block;
  font-family: var(--font-arabic);
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.9;
  color: var(--gold-soft);
  margin-bottom: 20px;
  direction: rtl;
}
.islamic__quote-en {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: rgba(248, 245, 239, 0.80);
  margin-bottom: 8px;
  line-height: 1.55;
}
.islamic__quote-cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-top: 12px;
}

/* ─────────────────────────────────────────────────
   Privacy stance
──────────────────────────────────────────────── */
.privacy-stance {
  padding: var(--section-y) var(--gutter);
}
.privacy-stance__inner {
  max-width: var(--max-prose);
  margin: 0 auto;
}
.privacy-stance__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 50px;
}
.privacy-stance__list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}
.privacy-stance__list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.privacy-stance__list li:last-child {
  border-bottom: none;
}
.privacy-stance__check {
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 18px;
}
.privacy-stance__list strong {
  font-weight: 600;
  color: var(--ink);
}
.privacy-stance__link {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 32px;
}
.privacy-stance__link a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.privacy-stance__link a:hover {
  border-bottom-color: var(--gold);
}

/* ─────────────────────────────────────────────────
   Download
──────────────────────────────────────────────── */
.download {
  padding: var(--section-y) var(--gutter);
  background: var(--vellum-2);
  text-align: center;
}
.download__inner {
  max-width: 640px;
  margin: 0 auto;
}
.download__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 8vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 20px;
}
.download__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 50px;
}
.download__note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.download__note a {
  color: var(--gold);
  border-bottom: 1px solid var(--hairline);
}
.download__note a:hover {
  border-bottom-color: var(--gold);
}

/* ─────────────────────────────────────────────────
   Sister apps
──────────────────────────────────────────────── */
.sister {
  padding: var(--section-y) var(--gutter);
}
.sister__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.sister__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 780px) {
  .sister__grid {
    grid-template-columns: 1fr;
  }
}
.sister__card {
  display: block;
  padding: 32px 28px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--vellum);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.sister__card:not(.sister__card--coming):hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.sister__card--coming {
  opacity: 0.65;
  cursor: default;
}
.sister__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 10px;
}
.sister__desc {
  display: block;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.sister__link {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────
   Footer
──────────────────────────────────────────────── */
.footer {
  padding: 80px var(--gutter) 40px;
  background: var(--ink);
  color: var(--vellum);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 60px;
}
.footer__brand {
  display: grid;
  gap: 8px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(176, 141, 87, 0.28);
}
.footer__ar {
  font-family: var(--font-arabic);
  font-size: 22px;
  color: var(--gold-soft);
}
.footer__name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--vellum);
}
.footer__tag {
  font-style: italic;
  color: rgba(248, 245, 239, 0.65);
  font-family: var(--font-display);
  font-size: 17px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 700px) {
  .footer__links {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.footer__col a {
  color: rgba(248, 245, 239, 0.72);
  font-size: 15px;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover {
  color: var(--gold-soft);
}

.footer__meta {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(176, 141, 87, 0.20);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(248, 245, 239, 0.5);
  flex-wrap: wrap;
  gap: 14px;
}

/* ─────────────────────────────────────────────────
   Reduced motion
──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─────────────────────────────────────────────────
   Focus states — accessible, on-brand
──────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
