/* MĀKTĀB interim page. Tokens from the 1405 brand book (page 22). */

@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("/fonts/vazirmatn-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url("/fonts/vazirmatn-arabic-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 900; font-display: swap; src: url("/fonts/vazirmatn-arabic-900-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0E0A09;
  --charcoal: #1D1411;
  --line: #4A3226;
  --brick: #8E3B26;
  --brick-light: #C8664A;
  --barberry: #5E1A24;
  --cream: #F1E8DA;
  --muted: #CDBFA9;
  --copper: #D9A25A;
  --fa: "Vazirmatn", Tahoma, sans-serif;
  --latin: "IBM Plex Sans", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--fa);
  font-size: 17px;
  line-height: 1.9;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
[lang="en"] { font-family: var(--latin); }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.skip {
  position: absolute; inset-inline-start: var(--gutter); top: -100px;
  background: var(--cream); color: var(--ink); padding: 8px 16px; z-index: 10;
}
.skip:focus { top: 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.top, main, .foot { padding-inline: var(--gutter); max-width: 1200px; margin-inline: auto; }
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 72px; } }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 24px; border-bottom: 1px solid var(--line);
}
.top-logo img { width: 132px; }
@media (min-width: 768px) { .top-logo img { width: 168px; } }
.top-cta { font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--brick-light); padding-block: 4px; }
.top-cta:hover { color: var(--copper); border-color: var(--copper); }

/* Shared */
.label { font-family: var(--latin); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brick-light); }
.num { font-family: var(--latin); font-weight: 300; font-size: 13px; letter-spacing: 0.08em; color: var(--copper); }
.h2 { font-weight: 900; font-size: clamp(30px, 5.4vw, 56px); line-height: 1.25; margin-top: 16px; }
.lead { margin-top: 24px; max-width: 34em; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.fine { margin-top: 32px; font-size: 15px; color: var(--muted); }
h3 { font-weight: 700; font-size: 20px; line-height: 1.6; margin-top: 8px; }
.block { padding-block: 72px; border-top: 1px solid var(--line); }
@media (min-width: 1100px) { .block { padding-block: 96px; } }

/* Hero */
.hero { padding-block: 72px 88px; }
@media (min-width: 1100px) { .hero { padding-block: 120px; } }
.hero-title { font-weight: 900; font-size: clamp(44px, 10vw, 112px); line-height: 1.15; margin-top: 24px; }
.hero-lead { margin-top: 32px; max-width: 30em; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.btn {
  display: inline-block; background: var(--brick); color: var(--cream);
  font-weight: 700; text-decoration: none; padding: 14px 32px;
  transition: background-color 200ms var(--ease);
}
.btn:hover { background: var(--barberry); }
.link { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); padding-block: 4px; }
.link:hover { border-color: var(--copper); }
.hero-note {
  margin-top: 48px; padding-inline-start: 16px; border-inline-start: 2px solid var(--brick);
  font-size: 14px; color: var(--muted);
}

/* Columns */
.cols, .services, .steps { display: grid; gap: 0; margin-top: 48px; }
.cols > li, .services > article, .steps > li { padding-block: 24px; border-top: 1px solid var(--line); }
.cols p, .services p, .steps p { color: var(--muted); font-size: 16px; }
.steps .out { margin-top: 8px; font-size: 14px; color: var(--cream); }
@media (min-width: 768px) {
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols > li, .services > article, .steps > li { padding: 32px 0 32px 32px; }
}
@media (min-width: 1100px) {
  .services, .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Promise (brick key-message surface) */
.promise {
  background: var(--brick); color: var(--cream);
  margin-inline: calc(var(--gutter) * -1); padding: 96px var(--gutter);
}
.promise p { max-width: 18em; font-weight: 900; font-size: clamp(28px, 4.6vw, 52px); line-height: 1.5; }

/* Contact */
.contact-list { margin-top: 40px; }
.contact-list > div {
  display: grid; gap: 4px; padding-block: 20px; border-top: 1px solid var(--line);
}
.contact-list dt { font-size: 14px; color: var(--muted); }
.contact-list dd { font-size: clamp(22px, 3vw, 30px); font-weight: 700; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--copper); }
.contact-list [lang="en"] { font-weight: 400; }
@media (min-width: 768px) {
  .contact-list > div { grid-template-columns: 200px 1fr; align-items: baseline; }
}

/* English block */
.en { text-align: left; }
.h2-en { font-family: var(--latin); font-weight: 400; font-size: clamp(26px, 4vw, 40px); line-height: 1.3; margin-top: 16px; }
.en p:not(.label) { margin-top: 24px; max-width: 36em; color: var(--muted); line-height: 1.6; }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-block: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.foot [lang="en"] { letter-spacing: 0.32em; font-weight: 300; }

/* Motion: calm base, Persian lines never letter by letter, off under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 700ms var(--ease) both; }
  .hero > :nth-child(2) { animation-delay: 60ms; }
  .hero > :nth-child(3) { animation-delay: 120ms; }
  .hero > :nth-child(4) { animation-delay: 180ms; }
  .hero > :nth-child(5) { animation-delay: 240ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
