/* miftahcheckin.com: the film's world on the web. A night ground, sand line-work, and one plain
   family for every word (IBM Plex, bold for display) so the Arabic reads at a glance. One page per
   language. */
:root {
  --ground: #0d1015;
  --ground-lift: #151a22;
  --ink: #f3efe7;
  --muted: #aaa69c;
  --sand: #d2c6ad;
  --hair: rgba(243, 239, 231, 0.14);
  --display: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --text: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

html[lang="en"] {
  --display: "IBM Plex Sans", system-ui, sans-serif;
  --text: "IBM Plex Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--ground);
}

::selection {
  background: var(--sand);
  color: var(--ground);
}

a,
button {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Keyboard users can jump past the header to the page. */
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--sand);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus-visible {
  top: 12px;
}

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Top */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
}

.brand svg {
  width: 64px;
  height: auto;
}

.brand svg path,
.key-line path {
  fill: none;
  stroke: var(--sand);
  stroke-width: 9;
  stroke-linejoin: round;
}

.switch {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 4px;
}

.switch:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  padding-block: clamp(32px, 7vw, 88px) 0;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.18;
  max-width: 13ch;
  text-wrap: balance;
}

html[lang="en"] .brand,
html[lang="en"] h1,
html[lang="en"] h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero p {
  margin-top: 22px;
  max-width: 40em;
  font-size: clamp(17px, 2vw, 21px);
  color: #d9d4ca;
  text-wrap: pretty;
}

.film {
  margin-top: clamp(32px, 5vw, 56px);
}

.film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.film figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* Sections */
section {
  padding-block: clamp(56px, 9vw, 112px) 0;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.25;
  margin-bottom: 28px;
  text-wrap: balance;
}

.gains {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--hair);
}

.gains li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px 40px;
  padding-block: 26px;
  border-bottom: 1px solid var(--hair);
}

.gains b {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
}

html[lang="en"] .gains b {
  font-weight: 600;
}

.gains span {
  color: var(--muted);
  align-self: center;
}

.built {
  margin-top: 22px;
  font-size: 16px;
  color: #c9c3b8;
}

.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.offer {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.offer h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 8px;
}

html[lang="en"] .offer h3 {
  font-weight: 600;
}

.offer p {
  color: var(--muted);
}

.status {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--ground-lift);
  border-radius: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* Contact */
/* Hairlines drawn to the content's width, not across the gutters. */
.contact,
footer {
  background: linear-gradient(var(--hair), var(--hair)) top center / calc(100% - 2 * var(--gutter)) 1px
    no-repeat;
}

.contact {
  margin-top: clamp(56px, 9vw, 112px);
  padding-block: clamp(48px, 7vw, 88px);
}

.contact p {
  max-width: 38em;
  color: #d9d4ca;
}

.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}

.button:hover {
  background: #e2d8c3;
}

.button:active {
  transform: scale(0.98);
}

.mail {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  direction: ltr;
  unicode-bidi: isolate;
}

.files {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
  color: var(--muted);
}

.files a {
  padding-block: 8px;
}

footer {
  padding-block: 28px 40px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .gains li,
  .offers {
    grid-template-columns: 1fr;
  }

  .offers {
    gap: 28px;
  }

  .brand svg {
    width: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
