/* The website's lettering and atmosphere. The reminder master stays independent. */
@font-face {
  font-family: 'Itqan Ruqah';
  src: url('assets/aref-ruqaa-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root { --paper: #f8f4eb; --line: #ddd3c2; --arabic-ink: #481c29; }
body { background: var(--paper); }
.hero-signature,
.footer-byline > span,
.journal-header .arabic-journal-title,
.journal-logo-caption {
  font-family: 'Itqan Ruqah', 'Itqan Arabic', serif;
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.9;
  color: var(--arabic-ink);
  text-rendering: optimizeLegibility;
}
.hero-signature { font-size: 31px; margin: 0 0 24px; padding-block: 2px; }
.footer-byline > span { font-size: 27px; margin-top: 9px; }
.journal-header .arabic-journal-title { font-size: 32px; margin-bottom: 22px; }
.journal-logo-caption { display: inline-block; font-size: 29px; }
.arabic-signature {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: .32em;
  white-space: nowrap;
}
.arabic-signature > span { flex: 0 0 auto; }
.arabic-signature .signature-divider {
  width: 4px;
  height: 4px;
  align-self: center;
  border-radius: 50%;
  background: var(--gold);
}
/* Optical correction for the rising Ruqaa word; keep its letters and marks together. */
.slogan-settle { display: inline-block; transform: translateY(.16em); }
.hero-actions { flex-wrap: wrap; }
.launch-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 16px 12px 12px;
  border: 1px solid #af95656e;
  border-radius: 5px;
  color: var(--wine);
  background: #f0e6d480;
  transform: rotate(-3deg);
  box-shadow: 2px 4px 8px #5c382209;
}
.launch-badge::after { content: ''; position: absolute; inset: 3px; border: 1px solid #af956535; border-radius: 2px; pointer-events: none; }
.launch-badge svg { width: 21px; height: 30px; fill: none; stroke: #947239; stroke-width: 1; stroke-linecap: round; }
.launch-badge .launch-glint { fill: #aa874825; stroke-width: .8; }
.launch-badge span { display: grid; gap: 4px; }
.launch-badge strong { font: italic 500 24px/1 var(--serif); white-space: nowrap; }
.launch-badge small { font: 600 9px/1.4 var(--sans); letter-spacing: .14em; color: #80673e; }
@media (max-width: 1100px) { .launch-badge { padding-inline: 10px 12px; gap: 7px; }.launch-badge strong { font-size: 22px; } }
@media (max-width: 365px) { .hero-actions { gap: 19px; }.launch-badge { margin-left: 4px; } }

/* A paper margin, an ink flourish, and a fine frame around the morning light. */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: calc((100vw - 100%) / -2); bottom: 0;
  width: min(42vw, 540px); height: 90%;
  background: url('cards/assets/folio-art-v2.jpg') left bottom / cover no-repeat;
  opacity: .15;
  mask-image: linear-gradient(90deg, #000, transparent 92%), linear-gradient(180deg, transparent, #000 18%, #000 74%, transparent);
  mask-composite: intersect;
}
.hero-copy h1 em { position: relative; display: inline-block; }
.hero-copy h1 em::after {
  content: ''; position: absolute; left: 2%; right: -3%; bottom: -4px;
  height: 12px; border-bottom: 1.5px solid #b89455;
  border-radius: 0 0 70% 40%; transform: rotate(-5deg);
}
.hero-visual::before {
  content: ''; position: absolute; right: -7px; top: -15px;
  width: 82%; height: 568px; border: 1px solid #b296605c;
  border-radius: 260px 260px 3px 3px; pointer-events: none;
}
.photo-arch { box-shadow: 0 18px 45px #53402712; }
.scene-note { padding: 13px 16px; background: var(--paper); transform: rotate(-3deg); right: -1px; bottom: -4px; }
.values-strip { background: #ede5d84d; }
.introduction { position: relative; }
.introduction::before {
  content: ''; display: block; width: 1px; height: 47px;
  background: linear-gradient(transparent, var(--gold)); margin: -33px auto 28px;
}
.experience { border-radius: 3px; background: #fffaf14d; box-shadow: 0 16px 48px #5c382209; }
.feature-stage { position: relative; isolation: isolate; }
.feature-stage::before {
  content: ''; position: absolute; z-index: -1; inset: 47px 10%;
  border: 1px solid #ad926745; border-radius: 280px 280px 8px 8px;
  pointer-events: none;
}

/* The evening garden is a pause in the page, with text kept over quiet ink. */
.intention { position: relative; isolation: isolate; overflow: hidden; background: #361720; padding-top: 103px; }
.intention::before,
.intention::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.intention::before {
  left: 0; bottom: 0; width: 480px; height: 100%; opacity: .54;
  background: url('cards/assets/night-art-v2.jpg') left bottom / auto 100% no-repeat;
  mask-image: linear-gradient(90deg, #000, transparent 95%);
}
.intention::after {
  right: 0; top: 0; width: 530px; height: 100%; opacity: .65;
  background: url('cards/assets/night-art-v2.jpg') right top / auto 100% no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 78%);
}
.intention-inner { position: relative; grid-template-columns: 1.15fr 1fr; gap: 110px; padding-bottom: 77px; }
.intention-heading { padding-top: 12px; }
.intention h2 { font-size: clamp(60px, 5.5vw, 79px); }
.intention-copy { padding-top: 98px; max-width: 440px; }
.intention-copy>p { color: #ecdfd8; }
.intention-star { display: none; }
.intention-bottom { border-color: #d4ad6745; }
.intention h2 em { color: #e1bd81; }

/* The Journal opens like an illuminated folio. Its cards keep their own artwork. */
.journal-home { position: relative; }
.journal-section-heading { position: relative; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 46px; }
.journal-section-heading::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 7px; height: 7px;
  background: var(--gold); transform: rotate(45deg);
}
.journal-section-heading>div:last-child { max-width: 360px; }
.journal-card .card-category { display: flex; align-items: center; gap: 11px; }
.journal-card .card-category::before { content: ''; height: 1px; width: 22px; background: var(--gold); }
.journal-header {
  position: relative; isolation: isolate; padding: 62px 54px 51px;
  margin: 43px 0 35px; border: 1px solid #cbb58f80;
  background: #f3e9d8; box-shadow: 0 10px 40px #5c382209;
}
.journal-header::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: url('cards/assets/folio-art-v2.jpg') left 54% / cover no-repeat;
  opacity: .27;
}
.journal-header::after {
  content: ''; position: absolute; inset: 8px; z-index: -1;
  border: 1px solid #c3ab7c4d; pointer-events: none;
}
.journal-header>div:last-child { padding: 0 8px 15px 24px; border-left: 1px solid #b2966070; }
.journal-filters { border-top: 0; }
.article-header { position: relative; }
.article-header::after { content: ''; display: block; width: 45px; height: 1px; background: var(--gold); margin: 35px auto 0; }
.closing { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 42px; border: 1px solid var(--line); }
.closing::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('cards/assets/folio-art-v2.jpg') center 82% / cover no-repeat;
  opacity: .22;
}
.closing .app-icon { box-shadow: 0 7px 25px #4f232926; transform: rotate(-5deg); }
.site-footer { padding-block: 30px; }

@media (max-width: 1100px) {
  .hero-signature { font-size: 29px; }
  .hero-visual::before { height: 505px; }
  .intention-inner { gap: 58px; }
  .intention-copy { padding-top: 85px; }
  .journal-header { padding-inline: 37px; gap: 28px; }
}
@media (max-width: 800px) {
  .hero-signature { font-size: 27px; }
  .hero-visual::before { height: 452px; width: 90%; }
  .hero::before { width: 48vw; }
  .intention { padding-top: 65px; }
  .intention-inner { gap: 35px; }
  .intention h2 { font-size: 56px; }
  .intention-copy { padding-top: 70px; }
  .intention::after { width: 350px; opacity: .45; }
  .journal-header { grid-template-columns: 1fr; gap: 27px; padding: 39px; }
  .journal-header>div:last-child { max-width: none; padding: 0; border: 0; }
  .journal-home-grid,.journal-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .journal-home-grid .journal-card:last-child { display: block; }
  .journal-card h3 { font-size: 27px; }
  .journal-card>p { font-size: 14px; }
}
@media (max-width: 600px) {
  .hero { padding-top: 42px; }
  .hero-signature { font-size: 27px; margin-bottom: 22px; }
  .hero-copy h1 { margin-bottom: 22px; }
  .hero::before { top: 0; bottom: auto; width: 85vw; height: 570px; opacity: .12; }
  .hero-visual::before { width: 83%; height: 495px; right: -9px; top: -12px; }
  .scene-note { bottom: -3px; right: -8px; }
  .introduction::before { height: 35px; margin-top: -23px; }
  .intention { padding-top: 55px; }
  .intention-inner { grid-template-columns: 1fr; gap: 34px; padding-bottom: 42px; }
  .intention-heading { padding: 0; }
  .intention h2 { font-size: 59px; }
  .intention-copy { padding: 0 0 0 22px; border-left: 1px solid #c6a56980; }
  .intention::before { width: 250px; opacity: .26; }
  .intention::after {
    width: 220px; height: 420px; opacity: .3;
    mask-image: linear-gradient(90deg, transparent, #000 78%), linear-gradient(#000 65%, transparent);
    mask-composite: intersect;
  }
  .journal-section-heading { padding-bottom: 27px; }
  .journal-home-grid,.journal-grid { grid-template-columns: 1fr; gap: 39px; }
  .journal-card h3 { font-size: 34px; }
  .journal-card>p { font-size: 16px; }
  .journal-header { margin: 27px 0 17px; padding: 29px 23px; }
  .journal-header h1 { font-size: 59px; }
  .journal-header .arabic-journal-title { font-size: 29px; margin-bottom: 17px; }
  .journal-header>div:last-child { margin-top: 27px; }
  .journal-header>div:last-child p { font-size: 15px; }
  .journal-logo-caption { font-size: 26px; }
  .closing { padding-inline: 14px; }
  .closing h2 { font-size: 46px; }
  .footer-byline > span { font-size: 27px; }
}
@media (max-width: 365px) {
  .hero-signature { font-size: 25px; }
  .hero-visual::before { height: 462px; }
  .journal-header { padding-inline: 19px; }
  .journal-header h1 { font-size: 49px; }
  .journal-logo-caption { font-size: 23px; }
  .intention h2 { font-size: 51px; }
  .closing h2 { font-size: 39px; }
}
