/* danialmurad.com. Fonts are served from this site, not from Google, so no
   visitor data goes there. Light or dark follows the visitor's device. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --ink: #141414;
  --ink-soft: #45464a;
  --muted: #6a6b70;
  --border: #e2e0da;
  --accent: #2d4fd6;
  --halal: #f2a33a;
  --halal-tint: #fbefdc;
  --clips: #7c4dff;
  --clips-tint: #ece6ff;
  --faith: #1f7a5c;
  --faith-tint: #dff0e8;
  --shadow: 0 24px 60px -28px rgba(20, 20, 20, 0.3);
  --radius: 28px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111213;
    --surface: #1b1c1f;
    --ink: #f1f0ec;
    --ink-soft: #c4c3c0;
    --muted: #94959a;
    --border: #2c2d31;
    --accent: #8ea4ff;
    --halal-tint: #362a17;
    --clips: #a98bff;
    --clips-tint: #251e3d;
    --faith: #4fbf95;
    --faith-tint: #15302a;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
}

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

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 22px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.site-nav a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  padding: 48px 0 88px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 800;
}
.hero h1 span {
  color: var(--muted);
}
.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-soft);
  max-width: 32em;
  margin: 24px 0 32px;
}
.portrait {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  height: auto;
  max-width: 420px;
  justify-self: end;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
}
.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.button:hover {
  opacity: 0.88;
}

/* Sections */

section {
  padding: 72px 0;
}
.section-head {
  margin-bottom: 40px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
}

/* Projects */

.projects {
  display: grid;
  gap: 24px;
}
.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.project-body {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.project .meta {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 12px;
}
.project h3 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
}
.project p {
  color: var(--ink-soft);
  margin: 16px 0 0;
  max-width: 30em;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
}
.tags li {
  font-size: 14px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.project .links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.button.store svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}
.project-visual {
  display: grid;
  place-items: center;
  padding: 40px 32px 0;
  min-height: 340px;
}
.project-visual svg {
  width: min(320px, 100%);
  height: auto;
}

.project-visual:has(.device) {
  align-items: end;
}
.project.halal .project-visual {
  background: var(--halal-tint);
}
.project.clips .project-visual {
  background: var(--clips-tint);
}
.project.faith .project-visual {
  background: var(--faith-tint);
}

/* Web and app side by side, same layout as on cutclips.ai:
   the web app in a browser window with the phone app in front */
.project-visual.duo {
  display: grid;
  place-items: center;
  padding: 40px 28px;
}
.project.clips .project-visual.duo {
  background:
    radial-gradient(45% 55% at 30% 45%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(40% 50% at 80% 60%, rgba(147, 51, 234, 0.28), transparent 70%),
    var(--clips-tint);
}
.web-and-app {
  position: relative;
  width: 100%;
  padding: 0 7% 9% 0;
}
.browser {
  border-radius: 12px;
  overflow: hidden;
  background: #0b0d19;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.6);
}
.browser img {
  width: 100%;
  height: auto;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  background: #121527;
  border-bottom: 1px solid #23263a;
}
.browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5f57;
}
.browser-bar i:nth-child(2) {
  background: #febc2e;
}
.browser-bar i:nth-child(3) {
  background: #28c840;
}
.browser-bar span {
  margin: 0 auto;
  padding: 1px 8px;
  border-radius: 4px;
  background: #0b0d19;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: #9a9db3;
  transform: translateX(-14px);
}
.web-and-app .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24%;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  margin-bottom: 18px;
}

.device {
  width: min(250px, 70%);
  border-radius: 34px 34px 0 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.device img {
  width: 100%;
  height: auto;
}
.device .dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .device .light {
    display: none;
  }
  .device .dark {
    display: block;
  }
}

/* About */

.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
}
.about p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 19px;
}

/* Contact */

.contact {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 72px);
}
.contact .eyebrow {
  color: inherit;
  opacity: 0.6;
}
.contact h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
}
.contact .mail {
  display: inline-block;
  margin: 18px 0 30px;
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  color: inherit;
  word-break: break-word;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.socials a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.socials a:hover {
  background: color-mix(in srgb, var(--bg) 12%, transparent);
}

/* Footer */

.site-footer {
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a {
  color: var(--muted);
}

/* Legal and app pages */

.legal {
  max-width: 760px;
  padding: 32px 0 72px;
}
.legal h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 23px;
  font-weight: 700;
  margin: 40px 0 12px;
}
.legal h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
  letter-spacing: -0.01em;
}
.legal p,
.legal li {
  color: var(--ink-soft);
}
.legal p {
  margin: 0 0 14px;
}
.legal ul {
  padding-left: 22px;
  margin: 0 0 14px;
}
.legal .updated {
  color: var(--muted);
  font-size: 15px;
}
.legal .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
.legal .card p {
  margin: 0;
}
.legal .back {
  display: inline-block;
  margin-bottom: 18px;
  font-weight: 600;
  text-decoration: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 32px;
}
.features div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
}
.features h2 {
  margin: 0 0 6px;
  font-size: 19px;
}
.features p {
  margin: 0;
  font-size: 16px;
}

/* Small screens */

@media (max-width: 860px) {
  .hero .wrap,
  .project,
  .about {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 16px;
  }
  .hero .wrap {
    gap: 36px;
  }
  .portrait {
    order: -1;
    max-width: 200px;
    justify-self: start;
  }
  .project-visual,
  .project-visual.duo {
    min-height: 0;
  }
  .project-visual.duo {
    padding: 32px 20px;
  }
  .about {
    gap: 16px;
  }
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-nav {
    gap: 16px;
  }
  .site-nav a {
    font-size: 14px;
  }
  .site-nav .optional {
    display: none;
  }
  section {
    padding: 56px 0;
  }
}

/* Language switch */

.site-nav {
  align-items: center;
}
.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
}
.site-nav .lang a {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.site-nav .lang a[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
}
.brand {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .brand {
    font-size: 18px;
  }
  .site-nav {
    gap: 12px;
  }
  .site-nav .lang a {
    padding: 3px 8px;
    font-size: 12px;
  }
}
