@font-face {
  font-family: 'OH Display';
  src: url('../../fonts/web.black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OH Text';
  src: url('../../fonts/web.regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OH Arabic Title';
  src: url('../../fonts/web-arabic-title.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-black: 'OH Display', sans-serif;
  --font-bold: 'OH Display', sans-serif;
  --font-latin: 'OH Display', sans-serif;
  --font-med: 'OH Text', sans-serif;
  --font-reg: 'OH Text', sans-serif;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-reg);
}

h1,
h2,
h3,
h4,
.home-title,
.fd-title-ar,
.fd-title-en,
.font-detail-back {
  font-family: var(--font-black);
}

.home-fonts-title {
  font-family: 'OH Arabic Title', sans-serif;
  font-size: 57px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transform: translateY(-18px);
  overflow: visible;
  white-space: nowrap;
  padding-inline: 0.15em;
}

.home-fonts-title-text {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 400 !important;
}

body[data-page='home'] .home-fonts-title {
  font-size: 57px !important;
  margin: 0 !important;
}

body[data-page='home'] #home-fonts-title-text {
  font-size: 57px !important;
}

body[data-page='home'] .home-fonts-head {
  border-bottom: 0 !important;
}

body[data-page] :where(h1, h2, h3, h4, h5, h6, p, span, a, label, button, input, select, textarea, option, small, strong, li) {
  color: #fff !important;
}

body[data-page] ::placeholder {
  color: #fff !important;
  opacity: 1;
}

.home-title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

#menu-toggle,
#drawer,
#drawer-overlay,
#topbar-logo {
  cursor: pointer;
}

.fd-descriptions {
  margin-top: 22px !important;
  padding-top: 22px !important;
}

.fd-desc {
  font-family: var(--font-reg) !important;
  max-width: 78ch;
}

.fd-weight-preview-tools input {
  font-family: var(--font-reg) !important;
}

body[data-page='font'] #fd-images {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px !important;
}

body[data-page='font'] #fd-images > * {
  grid-column: span 12;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(243, 238, 227, 0.04);
}

body[data-page='font'] #fd-images > *:nth-child(n + 2) {
  grid-column: span 6;
}

@media (min-width: 860px) {
  body[data-page='font'] #fd-images > *:first-child {
    grid-column: span 12;
  }
}

@media (max-width: 680px) {
  body[data-page='font'] #fd-images > *:nth-child(n + 2) {
    grid-column: span 12;
  }
}

.oh-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(243, 238, 227, 0.055);
}

.oh-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 247, 232, 0.1), transparent);
  animation: oh-shimmer 1.35s infinite;
}

.font-card-skeleton {
  pointer-events: none;
}

.font-card-skeleton .font-card-media,
.font-card-skeleton .font-card-body {
  position: relative;
  overflow: hidden;
}

.font-card-skeleton .font-card-media {
  aspect-ratio: 4 / 3;
  background: rgba(243, 238, 227, 0.06);
}

.font-card-skeleton .font-card-body {
  min-height: 74px;
}

.font-card-skeleton .skeleton-line {
  height: 18px;
  width: 62%;
  border-radius: 8px;
  margin: 18px 0;
  background: rgba(243, 238, 227, 0.08);
}

.fd-shot-skeleton {
  aspect-ratio: 16 / 10;
  min-height: min(46vw, 420px);
  border-radius: 18px;
}

@keyframes oh-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .oh-skeleton::after {
    animation: none;
  }
}
